一键导入
connect-data
Triggers on "connect", "add data source", "link database", "/connect-data", "/datasets".
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Triggers on "connect", "add data source", "link database", "/connect-data", "/datasets".
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | connect-data |
| description | Triggers on "connect", "add data source", "link database", "/connect-data", "/datasets". |
| triggers | ["/connect-data","/datasets","connect my database","add a data source","link data","set up a connection"] |
Guided wizard to connect a new dataset. Walks the user through selecting a connection type, configuring credentials, validating the connection, profiling the schema, and setting up the knowledge brain.
/connect-data or "connect my database" or "add a new dataset"/switch-dataset when the target dataset doesn't exist yet/connect-data — start the connection wizard
/connect-data type=postgres — skip type selection
Present options:
For CSV:
For DuckDB:
SELECT 1For MotherDuck:
For PostgreSQL / BigQuery / Snowflake:
connection_templates/$PG_PASSWORD).<workspace>/.knowledge/datasets/{id}/ directorymanifest.yaml from the connection template + user inputsquirks.md with section headersmetrics/index.yamlUse ConnectionManager from helpers/connection_manager.py:
test_connection()list_tables() to enumerate tablesget_table_schema()schema.md using schema_to_markdown() from helpers/data_helpers.py<workspace>/.knowledge/datasets/{id}/schema.md<workspace>/.knowledge/active.yaml to point to the new dataset/explore to browse, /metrics to define metrics,
or just ask a question<workspace>/.knowledge/datasets/{id}/ tree even if profiling fails/datasets)When invoked as /datasets, display all connected datasets with their status.
Read <workspace>/data_sources.yaml to get the list of registered sources.
Read <workspace>/.knowledge/active.yaml to determine which dataset is currently active.
For each registered source, check if <workspace>/.knowledge/datasets/{name}/manifest.yaml exists. If it does, read summary stats (table_count, date_range, analysis_count, last_used).
Connected Datasets:
* your_dataset (active)
Your Dataset Name — {table_count} tables, {date_range}
Connection: {type} ({database})
Analyses: 0
- {other_dataset}
{display_name} — {table_count} tables, {date_range}
Connection: {type} ({details})
Analyses: {count}
Commands:
/switch-dataset {name} — switch active dataset
/connect-data — connect a new dataset
/data — inspect active dataset schema
Mark the active dataset with *. Mark others with -.
<workspace>/.knowledge/datasets/ dirs without a data_sources.yaml entry should be ignoredSee references/connection-guide.md for SQL dialect-specific guidance for each connection type.
EMBEDDED — Establishes a clear analysis plan before writing queries. This functionality is built into the ask-question and run-analysis skill. Do NOT invoke analysis-design-spec separately — use ask-question and run-analysis instead, which includes these instructions inline.
EMBEDDED — Retrieves proven SQL patterns and reusable CTEs. This functionality is built into the ask-question and run-analysis skill. Do NOT invoke archaeology separately — use ask-question and run-analysis instead, which includes these instructions inline.
Run the multi-persona planning methodology to produce a master plan for a new project or feature. Triggered when users say "architect", "plan this", "design the system", or invoke `/architect`.
EMBEDDED — Saves completed analysis to the knowledge archive. This functionality is built into the run-analysis skill. Do NOT invoke archive-analysis separately — use run-analysis instead, which includes these instructions inline.
USE THIS SKILL for ANY data question, analytical request, or metric inquiry. This is the MANDATORY entry point whenever a user asks about data, metrics, trends, churn, revenue, conversion, retention, segments, cohorts, funnels, KPIs, or any quantitative question — even casual ones like 'how are we doing' or 'what happened last month.' Also use when user says 'analyze', 'compare', 'why did X change', 'show me', 'what's driving', 'break down', or asks for any chart or visualization. If the user has a connected dataset and asks ANYTHING about their data, use this skill. Do NOT attempt to answer data questions without this skill — it contains critical charting standards, validation steps, and knowledge loading that produce professional-quality outputs.
Interactive browser for your organization's knowledge system. Explore terms, products, metrics, objectives, and team structure. Also crawl Notion workspaces to extract and populate business context. Triggered when users say "/business", "browse business context", "/notion-ingest", or "crawl notion workspace".