/insight-blueprint:catalog-register [source_type: csv|api|sql]from insight-blueprint
Guides Claude through discovering data source schemas and registering them in the insight-blueprint data catalog. Supports CSV, API, and SQL sources. Triggers: "register data source", "add to catalog", "catalog register", "データカタログ登録", "ソース登録", "カタログにデータを追加".
Ships in insight-blueprint. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Guides Claude through exploring a data source's structure and registering it
in the insight-blueprint catalog by writing .insight/catalog/ YAML directly via
the catalog_io helper (no MCP server).
catalog_io CLI (provided on PATH by the plugin; JSON payload on stdin, JSON on stdout;
targets your project's .insight/):
echo '<source-json>' | catalog_io create
echo '<changes-json>' | catalog_io update --id <source_id>
catalog_io get --id <source_id>
catalog_io get-schema --id <source_id>
catalog_io search --query "<q>" [--type csv] [--tags a,b]
Note: the create payload uses
id(notsource_id) for the source identifier.
catalog_io update directly)catalog_io search directly)Before proceeding, confirm with the user:
type is an open string (E5c / ADR-0004): any non-empty value is valid. Suggest
the conventional values but accept whatever fits the source:
parquet, gsheet, bigquery, graphql, excel, etc.If $ARGUMENTS is provided, use it as the source type. The workflows below cover the
three most common cases; for other types, reuse the closest one and adjust connection.
Follow the appropriate exploration workflow below.
Construct the catalog_io create JSON payload with the discovered schema.
connection never holds a credential: no password, token, API key, secret or private key.
This plugin does not handle credentials (ADR-0023).
If the source needs one, keep it in an environment variable and write only the variable's
name, in a key ending in _env (e.g. "password_env": "PG_PASSWORD"). catalog_io refuses
the payload otherwise. It checks key names only, so also keep the password out of any URL or DSN
(no user:password@): write the URL without it and name the variable in a *_env key.
Pipe the payload to catalog_io create and show the returned JSON to the user.
Optionally verify with catalog_io get-schema --id <id> and catalog_io search.
Read the file with limit=5 to see headers and sample data
Ask the user for:
local-survey-2024)echo '{
"id": "local-survey-2024",
"name": "Local Survey 2024",
"type": "csv",
"description": "Annual community survey results",
"connection": {"file_path": "data/survey_2024.csv", "encoding": "utf-8", "delimiter": ","},
"columns": [
{"name": "respondent_id", "type": "integer", "description": "Unique respondent ID"},
{"name": "age", "type": "integer", "description": "Respondent age", "range": {"min": 18, "max": 99}}
],
"tags": ["survey", "local"]
}' | catalog_io create
Do not call the API yourself. Fetching data is the job of the project's fetch script, which reads the API key from an environment variable; this plugin does not handle credentials (ADR-0023).
CLASS_INF)Ask the user for:
estat-population)none, api_key, oauth)echo '{
"id": "estat-population",
"name": "e-Stat Population Census",
"type": "api",
"description": "Japanese population statistics from e-Stat",
"connection": {"base_url": "https://api.e-stat.go.jp/rest/3.0", "provider": "e-stat", "table_id": "0003348423", "auth": "api_key", "api_key_env": "ESTAT_API_KEY"},
"columns": [
{"name": "prefecture_code", "type": "string", "description": "JIS X 0401 code (01-47)", "nullable": false, "examples": ["01", "13", "47"]},
{"name": "year", "type": "integer", "description": "Census year", "range": {"min": 2000, "max": 2024}},
{"name": "population", "type": "integer", "description": "Total population", "unit": "people"}
],
"tags": ["government", "population", "demographics"],
"primary_key": ["prefecture_code", "year"],
"row_count_estimate": 2350
}' | catalog_io create
SELECT column_name, data_type, is_nullable, description
FROM `{project}.{dataset}.INFORMATION_SCHEMA.COLUMN_FIELD_PATHS`
WHERE table_name = '{table}'
ORDER BY ordinal_position
SELECT column_name, data_type, is_nullable,
col_description(c.oid, a.attnum) as description
FROM information_schema.columns
WHERE table_name = '{table}'
ORDER BY ordinal_position
Ask the user for:
bq-sales-data)echo '{
"id": "bq-sales-data",
"name": "BigQuery Sales Data",
"type": "sql",
"description": "Daily sales transaction data from BigQuery",
"connection": {"provider": "bigquery", "project_id": "my-gcp-project", "dataset": "analytics", "table": "daily_sales"},
"columns": [
{"name": "sale_date", "type": "date", "description": "Transaction date"},
{"name": "product_id", "type": "string", "description": "Product identifier"},
{"name": "amount", "type": "float", "description": "Sale amount", "unit": "JPY"},
{"name": "quantity", "type": "integer", "description": "Units sold"}
],
"tags": ["sales", "bigquery"],
"primary_key": ["sale_date", "product_id"],
"row_count_estimate": 500000
}' | catalog_io create
catalog_io <command> (available on PATH via the plugin):
| Command | Purpose | Input |
|---|---|---|
create | Register a new source (writes sources/ + empty knowledge/) | stdin: {id, name, type, description, connection, columns?, tags?, primary_key?, row_count_estimate?} |
update --id ID | Partial update | stdin: {<fields>} |
get --id ID | Source without connection (add --with-connection to include it) | — |
describe --ids=ID,ID | {sources, missing} for a list of ids, without connection (ADR-0020) | — |
get-schema --id ID | Column schema | — |
search --query Q [--type T] [--tags a,b] | Compact hits across sources + knowledge | — |
get-knowledge --id ID [--category C] | Knowledge entries for a source | — |
add-knowledge --id ID | Append/upsert knowledge (authoring: → /knowledge-extract) | stdin: {entries:[...]} |
create and update also print the source without connection; the stored source keeps it.
create and update refuse a connection key that names a credential (password, token,
api_key, secret, credential, private_key, …) and exit non-zero, naming the key but not its
value; a key ending in _env passes when its value is a variable name (^[A-Z_][A-Z0-9_]*$) (ADR-0023).
A nested key is judged joined to its parent keys, so {"api": {"key": …}} is refused like api_key;
authorization and sas are refused as a whole key name, so authorization_url passes (ADR-0034).
A source stored before these rules with such a key
is still read, but update refuses it. To fix it, the analyst edits its YAML by hand: never read it with
--with-connection or open the file, since that puts the secret in the model's context.
For an id that is not registered, get prints {} and exits 0; a non-empty result means registered.
Validation runs inside catalog_io (DataSource model) before writing; invalid input
exits non-zero with nothing written.
| Error (stderr) | Cause | Action |
|---|---|---|
Source 'X' already exists | Duplicate id | Use catalog_io update or choose a different ID |
Invalid source_id '...' | id not [a-zA-Z0-9_-]+ | Use a slug id |
pydantic ValidationError | Missing required field, or empty type | type may be any non-empty string; fix the payload |
| From | To | When |
|---|---|---|
| /analysis-framing | → /catalog-register | Data missing: "必要なデータを登録するなら /catalog-register" |
| /analysis-reflection | → /catalog-register | A new data source needs registering |
| /catalog-register | → /knowledge-extract | Source registered; capture what's known about it |
| /catalog-register | → /analysis-framing | Registration complete, return to framing: "フレーミングに戻るなら /analysis-framing" |
| /catalog-register | → /analysis-design | Registration complete, continue design: "デザイン作成を続けるなら /analysis-design" |
/catalog-register skill to register new data sources interactively.source_id and is stored as .insight/catalog/sources/<source_id>.yaml.schema_info.columns.catalog_io update (pass a new columns list)..insight/catalog/knowledge/{source_id}.yaml (created empty on register).source_id.catalog_io get-knowledge --id <source_id>; search spans knowledge too.catalog_io add-knowledge --id <source_id> (validates + upserts by key)./knowledge-extract (reads a
concluded analysis and proposes source-scoped entries). Findings/conclusions stay
in reflection, not the catalog.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub etoyama/insight-blueprint-skills --plugin insight-blueprint15 skills in this plugin
/analysis-autoGuided autopilot and the analyst's single entry. Takes a theme, builds its question tree
(or resumes at the node the latest tree decision names) and walks the tree one decision per round:
design → review → premortem → notebook → journal → reflection → theme reflection →
tree decision. A decision that names several nodes hands their designs over together, after
one check of all of them. Progresses automatically through low-friction steps and
pauses only at genuine decision points (root question and aim, the node to investigate,
intent and the question to explore or the hypothesis, the designs to hand over together,
what a handed-over analysis cannot go on without changing, source registration, cost/risk, code with external effects, conclusion, the results
the theme's answers rest on, the tree decision, sending anything outside this machine).
Triggers: "オートで進めて", "自動で分析を回して", "autopilot", "guided auto",
"最後まで進めて", "analysis auto", "論点を順に調べて".
/analysis-designGuides Claude through creating analysis design documents for hypothesis-driven EDA:
an exploration (a question to measure) or a confirmation (a hypothesis to judge).
Use when the user wants to create, manage, or review analysis designs.
Triggers: "create analysis design", "hypothesis document", "new hypothesis",
"分析設計を作りたい", "仮説を立てたい", "新しい仮説", "仮説ドキュメント".
/analysis-framingExplores existing data and analyses to help frame a question to explore or a hypothesis to confirm.
Triggers: "framing", "何を分析する", "分析テーマ", "仮説を考えたい",
"データを探して", "既存分析を確認", "analysis framing".
/analysis-journalRecords reasoning steps during hypothesis-driven analysis as an Insight Journal.
Supports observation logging, evidence tracking, method decisions, question management,
and hypothesis branching. Journal data is stored as YAML alongside design files.
Triggers: "journal", "記録して", "ジャーナル", "推論を残す", "分析ログ",
"分析の経緯", "なぜこの結論に至ったか記録", "evidence log".
/analysis-notebookGenerates a notebook (a plain Python script) from an analysis design's methodology, runs it,
and records the results to the Insight Journal. Turns a reviewed/approved design into an
executed, lineage-tracked analysis. Fills the design→analysis step (successor to the
removed batch-analysis, now interactive).
Triggers: "notebook を作って分析", "分析を実行", "ノートブック生成", "run analysis",
"generate notebook", "分析ノートブック".
/analysis-reflectionGuides structured reflection on an analysis design using its Insight Journal.
Helps say what the results tell, check the open questions, and decide how the design ends:
a verdict for a confirmation, `explored` for an exploration, or a derived design.
Given a theme, writes the current answer of each node of its question tree across the
designs of the theme, citing journal events, and checks it before the analyst sees it.
Triggers: "振り返り", "reflection", "まとめ", "結論を出す", "分析を振り返る",
"この仮説どうなった", "wrap up analysis", "テーマの振り返り", "現時点の答え".