ワンクリックで
setup-connection
Research the database driver, implement connection methods, stub credentials.json, and verify with connection tests
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Research the database driver, implement connection methods, stub credentials.json, and verify with connection tests
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
Research the vendor API, implement fetch_metadata and fetch_run_details, and verify with ETL tests
Export capabilities and build a custom agent Docker image for one or more connectors
Scaffold a new connector directory with base template, manifest, credentials.json, and requirements.txt
Implement all template methods in a connector's connector.py — the main agent workflow
SOC 職業分類に基づく
| name | setup-connection |
| description | Research the database driver, implement connection methods, stub credentials.json, and verify with connection tests |
| argument-hint | <connector-name> |
| disable-model-invocation | true |
$ARGUMENTS contains the connector name (required). Example: snowflake, bigquery, redshift.
Read these files to understand the current state:
connectors/<name>/connector.py — the stub fileconnectors/<name>/requirements.txt — currently emptyconnectors/<name>/credentials.json — empty templateUse web search to find the correct Python database driver for this database. Look for:
-binary variants (e.g., psycopg2-binary over psycopg2) — these avoid needing C compiler tooling in DockerIf web search is unavailable, fall back to training data knowledge.
Write the driver package with a pinned version to connectors/<name>/requirements.txt:
# Example:
psycopg2-binary==2.9.9
If the driver requires system-level libraries (e.g., ODBC driver, native client, C libraries), add the installation commands to connectors/<name>/Dockerfile.extra:
RUN apt-get update && apt-get install -y --no-install-recommends \
<packages> \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
Then regenerate the test Dockerfile:
python scripts/generate_test_dockerfile.py
The same Dockerfile.extra is automatically used when building the agent image. COPY instructions are not supported — use RUN to download and install dependencies.
Edit connectors/<name>/connector.py to implement these two methods in BaseConnector:
create_connection()Import the driver at the top of the file and create a connection using self.credentials[key] for each credential key defined in credentials.json's connect_args. Follow the driver's documented connection API.
create_cursor()Return a cursor from self.connection. Add any session-level settings if needed (e.g., date format, timezone).
Do not implement execute_query, fetch_all_results, close_connection, or any template methods — those come later in /implement-connector.
Write connectors/<name>/credentials.json with the credential keys your create_connection() method expects, using placeholder values:
{
"connect_args": {
"host": "",
"port": 5432,
"database": "",
"user": "",
"password": ""
}
}
This is the same format used for self-hosted credentials in production — the user fills it in once and reuses it for deployment.
You must stop here and tell the user:
Connection code is ready. Please fill in your database credentials in
connectors/<name>/credentials.jsonand confirm when done so I can run the connection test.
Do not proceed until the user confirms. The connection test will fail without real credentials.
After user confirms credentials are set:
docker compose build
CONNECTOR=<name> docker compose run --rm test -m connection
If tests pass: Report success and suggest:
Connection verified! Next step: run
/implement-connector <name>to implement all template methods.
If tests fail: Read the error output carefully.
requirements.txt spelling and rebuildcredentials.json valuescreate_connection()Fix what you can in the code, then re-run. For credential issues, ask the user to update credentials.json and confirm.