/insight-blueprint:premortem [--queued | --design <id> | --all] [--yes] [--mode manual|review|auto]from insight-blueprint
Pre-flight risk evaluation and approval token issuance for batch analysis designs. Evaluates queued designs against history-based extrapolation and static thresholds, then issues an approval token for /batch-analysis --approved-by. Triggers: "premortem", "事前チェック", "batch の承認", "リスク判定", "pre-flight check", "run premortem". Chains to: /batch-analysis --approved-by TOKEN evaluate-only (write-prohibition contract, AC-1.5).
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 scans queued (or specified) analysis designs, runs a
deterministic risk decision tree (HARD_BLOCK / HIGH / MEDIUM / LOW / SKIP),
and issues an approval token consumed by /batch-analysis --approved-by TOKEN.
/batch-analysis to validate the queueParse arguments -- Claude Code invokes skills/premortem/cli.py via
Python subprocess. The CLI expects design data as JSON on stdin (Claude Code
reads MCP tools and pipes the result).
Collect design data (Claude Code responsibility, before invoking cli.py):
list_analysis_designs() and filter next_action.type == "batch_execute"
(or use --design <id> / --all to select differently)get_analysis_design(id), get_table_schema(source_id),
search_catalog(source_id) to build source_checks_mapRisk evaluation (cli.py, pure decision engine):
history_query.query() + risk_evaluator.evaluate()Interactive gate (manual mode or review+HIGH):
[s]kip / [e]dit / [a]bort / [c]ontinue per HIGH design[c]ontinue is NOT offeredToken issuance:
token_manager.issue() writes .insight/premortem/{TIMESTAMP}.yamlLaunch with: /batch-analysis --approved-by {token_id}Every design is classified into one of five levels. The level determines what the operator (or automation) should do next.
| Level | Trigger | Operator Action |
|---|---|---|
HARD_BLOCK | Unregistered source, allowlist violation, or BigQuery location mismatch. | Batch MUST NOT run this design. The [c]ontinue option is withheld; use [s]kip, [e]dit (fix the design), or [a]bort (stop the whole batch). |
HIGH | History median × buffer exceeds time_high_min or estimated_rows exceeds static_rows_high or success rate over history_min_samples samples drops below success_rate_high_threshold. | manual mode: operator prompt (s/e/a/c). review mode: batch STOPS (exit 2). auto mode: batch RUNS with a WARNING: HIGH risk executed without human approval line appended to summary.md. |
MEDIUM | Extrapolated time between time_medium_min and time_high_min. | Proceeds automatically in every mode. Logged for visibility. |
LOW | Nothing above triggered, history is healthy. | Proceeds automatically. The happy path. |
SKIP | Terminal status (supported / rejected / inconclusive) or next_action cleared. | Recorded as skipped with skip_reason=terminal_status; never enters the batch queue. |
Thresholds live in .insight/config.yaml under premortem.* (see
.insight/config.example.yaml). Change them there, not in code.
| Code | Meaning |
|---|---|
| 0 | Token issued successfully, batch may proceed |
| 2 | review mode + HIGH detected, batch should stop |
| 1 | Unexpected error (config invalid, I/O failure, etc.) |
During /premortem execution, the following paths are NEVER written to:
notebook.py / marimo session JSON.insight/designs/*.yaml / .insight/designs/*_journal.yaml.insight/runs/*/*/manifest.yaml / .insight/runs/*/run.yaml.insight/catalog/**Only .insight/premortem/ receives writes (approval token).
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub etoyama/insight-blueprint --plugin insight-blueprint10 skills in this plugin
/analysis-designGuides Claude through creating analysis design documents for hypothesis-driven EDA.
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 hypothesis.
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".