/insight-blueprint:premortem [--design <id>]from insight-blueprint
Report-only pre-flight cost/risk evaluation for analysis designs. Before expensive data access, evaluates each design (source registered? BigQuery location ok? methodology packages allowed? estimated rows?) and prints a risk table (HARD_BLOCK / HIGH / MEDIUM / LOW / SKIP). Issues no token and writes nothing. Triggers: "premortem", "事前チェック", "実行前チェック", "リスク判定", "pre-flight check", "run premortem".
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.
Read when SKILL.md points to them.
Standalone skill that evaluates analysis designs against a deterministic, static risk decision tree (HARD_BLOCK / HIGH / MEDIUM / LOW / SKIP) and prints a report. It does not issue tokens, gate execution, or write to disk — it advises.
Collect design data (Claude Code responsibility):
design_io list to enumerate designs
(use --design <id> to scope to one).design_io get --id <id>, then, for each id in its source_ids, build
source_checks_map from catalog_io get-schema --id <source_id> /
catalog_io search --query <source_id> and .insight/rules/package_allowlist.yaml
(source registered? location ok? packages allowed? estimated rows?). The map holds one
entry per design: a check is false when it fails for any of its sources, and
estimated_rows is the largest of theirs.allowlist_ok: check each package named in methodology.package against the import names
and pip names of the default allowlist plus the packages in .insight/rules/package_allowlist.yaml
("Default allowlist" in notebook-contract.md).
true when every package is in it, false when one is not.
methodology.package is free text: compare the top-level module of each name (the part
before the first .) case-insensitively, and skip words that are not package names.
An empty methodology.package is true. A missing file adds nothing and is never null: use
null only when the file exists but cannot be read (invalid YAML, no allowed_packages), even
when every package is in the default allowlist.analyzing is evaluated again like any other: only a terminal status
is skipped. Run premortem again whenever the extraction of a design changed after its
last premortem, as after the analyst answered what a handed-over analysis asked
(/analysis-auto Step 3H).design_io stage --id <id> says stopped, leave it out of designs and say so.{ "designs": [...], "source_checks_map": {...} } as JSON to cli.py stdin. Put each
design in designs as design_io get returned it: a design without source_ids is
HARD_BLOCK with the reason no data source declared.Evaluate (pure static decision engine):
echo '{ "designs": [...], "source_checks_map": {...} }' | premortem # reads stdin, prints table
premortem (on PATH via the plugin) reads the JSON payload on stdin, prints one line per
design (id / intent / est_rows / strategy / risk / reasons), and exits 2 if any design is
HARD_BLOCK/HIGH, else 0.
Present the risk table to the user and advise on next steps (e.g. fix HARD_BLOCK designs, reconsider HIGH ones before running). No token, no gating.
| Level | Trigger | Suggested action |
|---|---|---|
HARD_BLOCK | Unregistered source, allowlist violation, or BigQuery location mismatch | Don't run this design; fix it first (/analysis-design, or declare the package in .insight/rules/package_allowlist.yaml) |
HIGH | estimated_rows > static_rows_high, or a source check errored (location API error, or an allowlist file that exists but cannot be read) | Reconsider before expensive access |
MEDIUM | estimated_rows > static_rows_medium | Proceed with awareness |
LOW | Small/unknown row count, all checks pass | Happy path |
SKIP | Terminal status (explored / supported / rejected / inconclusive) | Not evaluated |
Thresholds live in .insight/config.yaml under premortem.*
(static_rows_high, static_rows_medium; see .insight/config.example.yaml).
| Code | Meaning |
|---|---|
| 0 | No HARD_BLOCK / HIGH design |
| 2 | At least one HARD_BLOCK / HIGH design (warning signal) |
| 1 | Bad input (e.g. --design id not in payload) |
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
15 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", "テーマの振り返り", "現時点の答え".
npx claudepluginhub etoyama/insight-blueprint-skills --plugin insight-blueprint