/insight-blueprint:analysis-auto [theme_id | design_id]from insight-blueprint
Guided 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", "論点を順に調べて".
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.
The one entry for the analyst. It takes a theme, keeps the theme's question tree, and
investigates the tree one decision per round, so you type no /command between the steps. It
orchestrates the existing skills (it does not reimplement them) and stops only at
genuine decisions. Autonomy is scoped to this run — the individual skills stay
explicit/interactive everywhere else.
See ADR-0005 and
ADR-0026.
/command directly).The whole point is reduce friction, keep judgment. The driver enforces:
| Step | KEEP — pause for the user | AUTO — proceed without asking |
|---|---|---|
| entry: a design without a tree | whether to build a tree for the theme and walk it, or to carry only this design — asked once, and only for a design_id whose theme has no tree | reading the position (tree_io position) |
| rq-problematization | whether to review the list of assumptions, and the review when chosen — asked by /rq-problematization itself | collecting prior research, extracting and testing assumptions, the RQ Brief |
| framing ① root question and aim | /analysis-framing 4a | — |
| framing ② first node | /analysis-framing 4b | — |
| framing ③ root revision | /analysis-framing 4c | — |
| framing ④ next node | /analysis-framing 4d | — |
| design ① intent | ask the intent first (exploration or confirmation, never mixed), then confirm the question to explore + its background, or the hypothesis + its background, and the decision context (who decides what; skippable) | drafting them from the Framing Brief |
| design ② methodology | confirm the method + metrics + explanatory roles (treatment/confounder/…), and for a confirmation the criterion of the verdict in the primary metric's comparison, after explaining the metrics as /analysis-design Step 2 "Metrics explained" does: one sentence for each metric, and the five parts for a metric built from two or more quantities that is new to the theme | auto-drafting these fields from the Framing Brief |
| design ③ data-extraction | confirm the data-acquisition plan — the actual query text (methodology.steps, with each table as {source:ID}) for SQL sources, or the data source id + columns + filter for CSV/others, plus expected grain & rough row scale | auto-drafting the query / column selection from the catalog schema |
| design ④ charts | confirm the planned chart[] specs (intent / type / x / y) | auto-drafting chart specs from the direction |
| check before handing over | the designs of a round of several nodes, read side by side on the page: hand them over as they are, comment on a design, or leave a design out — asked once for all of them (Step 3H) | drafting the designs, saving them in_review, linking them, rebuilding the page |
| confirmation after handing over | what a handed-over analysis cannot go on without changing: answer it, or stop that analysis — asked for one analysis at a time, while the others go on (Step 3H) | rebuilding the page on every return, recording the answer, running premortem again |
| endings | how the analyses of ask_first end (a confirmation, and an analysis whose check found a difference): the three questions of /analysis-reflection Step 3 for each of them, and for a design whose computation differs from its design, whether it is read as it is or computed again — asked once for all of them (Step 3H) | the check of the computation of each analysis as it comes back, the summary and 読むもの of each design, and after the reply the conclusions and the terminal transitions |
| review (optional) | the verdict (revision_requested vs approve) | running the critique itself |
| premortem | result is HARD_BLOCK/HIGH → stop, surface the risk | running premortem; LOW/MEDIUM |
| notebook | non-allowlisted package / external comms beyond the declared source / other side-effects | generate + run when premortem cleared AND it's declared-source read + allowlisted + local compute |
| journal | — | auto-record the notebook verdict (observe/evidence/question) |
| reflection | この分析設計をどう終えるか (/analysis-reflection Step 3) + the terminal transition — for a confirmation a verdict, more investigation or a derived design; for an exploration explored or more investigation, never a verdict. Only for a design of ask_first: any other exploration ends at the theme reflection, unasked | the check of the computation, presenting the evidence summary and the place of the design note (/analysis-reflection Step 2) |
| theme reflection | one reply on the screen: 主題への答えをどこまで言い切るかの選択と次の決定 (/analysis-reflection {theme_id} T3). It stops once more only to read back, before anything is written, a decision whose reason cites a record, or the analyst's view. An answer heard from a person (T7) is asked, and the driver does not wait for it. After the reply, T7 asks the decision again only when it was refused; a decision the reply left open stays open. A round whose analyses were all stopped shows no screen: it stops at T1 (whether the answers stay) and at T7 (what was heard, and the decision) | — |
| tree-upload | the file to send as an Artifact — asked by /tree-upload itself, at its approval gate; the driver adds no question of its own | starting /tree-upload when the analyst asks to hand the tree over |
| catalog-register | registering a data source (external-data side-effect); unregistered source → stop | — |
A KEEP cell that names a step of a delegated skill is that skill's own gate. That skill says what
the step asks, and also when it does not ask (4d, for a not_started position). The rest of that
skill follows it as written.
The four design ①–④ beats are ordered confirmation gates run before design_io create
(and therefore before premortem): each is presented as its own AskUserQuestion so the user can
adjust it, rather than collapsing the whole design into a single "looks good?". Beat ③
(data-extraction) is where the actual data pull — the SQL query or the CSV file+columns+filter —
gets a seat, so premortem then estimates cost against the confirmed query.
The four beats belong to a round of one node; a round of several nodes has the check before
handing over in their place (Step 3H). The reflection row is that of a round of one node
as well: a round of several nodes asks the endings in its place.
Ask the analyst nothing outside the KEEP column. If in doubt whether something is a genuine decision, stop and ask — bias toward the KEEP column.
Every delegated skill is disable-model-invocation: true, so the Skill tool refuses it. That
is intended: outside this run the skills stay explicit. Inside this run, the analyst's
/analysis-auto is the explicit invocation that covers them
(ADR-0005).
${CLAUDE_PLUGIN_ROOT}/skills/{skill-name}/SKILL.md, the
sibling of this skill's own directory — and follow it as written, under the gate policy
above. Never search the disk for it.CLAUDE_PLUGIN_ROOT (written with ${ and } around it) as the plugin
root, which is the part before /skills/ in the path above. Read the variable ARGUMENTS
(written with a $ in front) as the value you hand that skill: the design_id, the
theme_id, or nothing. In a shell command, write the path itself in its place: the shell
does not have the variable./command: carrying the steps is what this run is for.design_io, catalog_io, tree_io and tree_check are on PATH: call them
by name, from the project directory.Never cd anywhere before a *_io command: each one reads the .insight of the directory it
is run from.
theme_id ([A-Z][A-Z0-9]*) is the theme. A design_id
({theme_id}-H{nn}) names its theme by its prefix; load it with
design_io get --id {design_id}. With no argument, ask what the analyst wants decided, or
what they want to research: there is no theme yet, so go to Step 2.tree_io position --theme LIB
It prints a state, and with a decision the node_id it names, every node it names
(node_ids), the design_ids in play, and in nodes each design on those nodes with its
analysis stage. Never work the position out yourself from the tree file, the dates or the journals.
With a decision it also prints ask_first, the analyses whose ending is asked one by one
before the theme reflection (a confirmation whose result is on record, and an analysis
whose check of the computation found a difference), and screen, whether the theme
reflection shows its one question now. Never work out yourself which analysis is asked
first, or whether the screen is due.
If it exits non-zero, show stderr and stop: a linked design is missing or unreadable, and
the analyst has to fix it before the walk can go on.
state | What it means | Enter at |
|---|---|---|
no_tree | The theme has no question tree. stderr names the file it looked for: check that it is under this project's .insight | Step 2 |
no_decision | A tree without a first node to investigate: an earlier framing stopped halfway | Step 2, item 3 (/analysis-framing finishes it: 4c, "An unfinished tree") |
not_started | No design is unfinished, and undesigned_node_ids names the nodes of the latest decision with no design made on them since | Step 3, item 1 |
in_progress | design_ids are the unfinished designs on the nodes the decision names (node_ids); a stopped one is not unfinished, and neither is one whose result the analyst chose not to use yet (not_used_yet) | Step 3, by the stage of each of them (below) |
concluded | design_ids were made after the decision on its node_ids, and each is finished, stopped or not_used_yet; the round lacks its theme reflection | Step 3, item 8 |
closed | The analyst closed the walk at node_id, and no design was made on it since; closed_with_node_ids are the other nodes the walk held, which stopped with it | Step 3, item 1 |
A decision that names more than one node (node_ids) makes the round one of several nodes:
whatever the state, short of concluded, it runs Step 3H from its first item, and each
item there skips what no design calls for. A decision that names one node runs Step 3.
For in_progress in a round of one node, read the stage of each design of design_ids
in nodes. Never work the stage out yourself from the status of the design and its
journal.
stage | What it means | Enter Step 3 at |
|---|---|---|
before_run | Saved, and not run yet | review or premortem |
running | Moved into the analysis, with no result on record | premortem |
awaiting_confirmation | It asked the analyst something and waits for the answer | confirmation of Step 3H, then premortem |
awaiting_reflection | Its result is on record | reflection when it is in ask_first; otherwise the check of item 7, then theme reflection once screen is true |
With more than one unfinished design, carry the first and tell the analyst which ones wait.
3. A design_id of a theme that has a tree is never asked about: carry that design, entering
the round at the item its stage calls for. If no node of the tree holds it, say so and run
/analysis-framing {theme_id} first (4c, "Designs no node holds").
4. Tell the analyst the plan, naming every node of node_ids, so they know what each
question of the round is for.
closed the analyst has not chosen the next nodes yet, so whether the round hands
several of them over is not known: tell the plan of one node, and say that choosing
several nodes hands them over together. Right after the analyst chooses several nodes
(at 4d, or at 4b of a new tree), tell the plan of a round of several nodes once, before
any design is written.design_id was given): this is a KEEP gate. Ask
"このテーマには論点ツリーがない。ツリーを作って巡回に入るか、この分析設計だけを流すか" and wait.
A design of a theme that has a tree is never asked this. The answer is not stored: whether
the tree exists is the record.
/rq-problematization before framing. Its questions are its own gates. It ends with an RQ
Brief, which /analysis-framing picks up. Skip this item for a business theme and for a
theme that already has its research question. When it is unclear whether the theme is
research, do not ask: go to framing, whose 4a gate settles the kind of the aim./analysis-framing in full. Its KEEP gates are 4a and 4b. The skill writes
the tree, records the first node as the start decision, outputs the Framing Brief and
renders the HTML.tree_io position again and enter Step 3 by its state, as in Step 1: an
unfinished design that 4b placed on the first node makes it in_progress, and that design is
carried instead of a new one. When the run started from a design_id, the round carries
that design: enter the round at the item its stage calls for.A round takes the node of one decision from its design to the tree decision. For each item, follow that skill's SKILL.md (do not duplicate its logic here) and apply the gate policy above. Repeat the round until the analyst closes the walk or says stop.
framing brief: a design is made from the Framing Brief of its node. When the position
is not_started or closed and that Brief is not in the conversation yet, run
/analysis-framing {theme_id} and hand it the output of tree_io position, which its 4d
reads. Skip this item when Step 2 has just output the Brief of that node. When the
analyst chooses several nodes at 4d, tell the plan of a round of several nodes
(Step 1, item 4) once, and go on at Step 3H.
design: run /analysis-design, auto-drafting fields from the agreed Framing Brief. Then walk
the four ordered confirmation beats — one AskUserQuestion each — before design_io create, letting
the user adjust at every beat. Do not collapse them into a single "looks good?"; don't silently commit
auto-picked methodology / roles / query.
analysis_intent first, as /analysis-design Step 2 "Intent" does: exploration
(exploratory) or confirmation (confirmatory), never mixed. The Brief's intent is only the
suggestion. Then present the drafts of that form: exploration_question + exploration_background
for an exploration, or hypothesis_statement + hypothesis_background for a confirmation. Ask for
decision_context (who decides what — /analysis-design Step 2; the user may skip it); confirm.methodology (method + code patterns), metrics, and especially the
explanatory variables' causal roles (treatment / confounder / covariate / …); confirm. These
shape the analysis and are genuine choices. For a confirmation, present the criterion of the
verdict written in the comparison of the primary metric (/analysis-design Step 2 "Criterion")
and confirm it here, before the data is touched. Explain the metrics before asking, as
/analysis-design Step 2 "Metrics explained" does: say "どの指標にも、詳しい解説を求められます。",
give every metric its one sentence, and give the five parts to a metric built from two or more
quantities that is new to the theme, with example numbers that are not the result to be judged.source_ids (each checked as /analysis-design
"Data sources" says) and the actual data-acquisition plan: for a SQL source, the query text
drafted into methodology.steps (see /analysis-design Step 2.6); for a CSV/other source, the data source id
chart[] specs (intent / type / x / y); confirm.After all four beats are confirmed, design_io create the design.
/analysis-design then links the design to the Brief's node_id and copies an answer the
analyst heard into its journal. A design left unlinked never shows in the tree: if the link
fails, stop and show the error.
review (optional): if the user wants a review pass, run /analysis-review; pause on the verdict.
premortem: always run /premortem before touching data. If HARD_BLOCK/HIGH, stop and
surface the risk (source not registered → offer /catalog-register; no data source declared →
offer /analysis-design to fill source_ids; package outside allowlist → offer to declare the
package in .insight/rules/package_allowlist.yaml (list only that package); cost/location → let
the user decide).
If LOW/MEDIUM, continue.
notebook: run /analysis-notebook. The declared source(s) are the ids in the design's
source_ids. Auto-run only when premortem cleared and the analysis is
confined to the declared source(s) + allowlisted packages + local computation. The allowlist is
the default allowlist in the notebook contract plus .insight/rules/package_allowlist.yaml
(ADR-0027). If the methodology needs a non-allowlisted package, network egress beyond the
declared source, or another side-effect, stop and get the user's go-ahead first.
journal: the notebook step already records observe/evidence/question — no pause.
reflection: only for a design of ask_first in tree_io position: run
/analysis-reflection {design_id}; pause at its third question,
この分析設計をどう終えるか, and at the terminal transition. Its Step 2 読むもの says what
the analyst reads; the driver adds no list of files of its own. An exploration that is
not in ask_first is not asked how it ends: run the check of its computation as that
Step 2 says, read tree_io position again, and go on to item 8, which ends it as
explored once the analyst has confirmed the answers (ADR-0078 9).
theme reflection: when screen is true, or the state is concluded, run
/analysis-reflection {theme_id}. Its KEEP gate is the reply to the screen of T3, as
the theme reflection row of the gate policy says. Everything T3 asks before it
writes the answers belongs to that one gate, however many replies it takes, and the
driver adds no question of its own.
Before that gate, show the path of the tree's HTML, so the analyst decides
with the tree in view. When the analyst chooses 主題そのものを見直す at Step T7, the
reflection runs only 4c of /analysis-framing {theme_id}, a KEEP gate of its own. The
round is not over then: after the revision the reflection asks the decision again at
Step T7, and the walk goes on from that decision.
next round: after a deepen or a return the walk goes on: read tree_io position
again and start the next round at item 1, in the same turn, or at Step 3H when the
decision names several nodes (Step 1). Do not summarize in between, and
never tell the analyst to run /analysis-auto again to continue: a decision that names the
next node is the go-ahead for it. After a close, go to Step 4. When the analyst leaves the
decision open or says stop, go to Step 4 as well: the tree keeps its last decision, and the
next run resumes from it.
Three things happen only when the analyst asks for them, at any point of the walk, in Step 3H as well:
/analysis-framing {theme_id}, whose KEEP
gate is 4c, "The root question or the aim". Then read tree_io position again. Inside a
round the analyst reaches the same gate from Step T7 (item 8); never offer it yourself
anywhere else./tree-upload {theme_id}. Do not
ask whether to send: the skill lists the file and waits at its own KEEP gate, the only
question about it. Never answer it for them
(ADR-0016). Never start it unasked.A round of several nodes runs this step in place of framing brief to reflection of Step 3. Read references/handover.md when a decision hands several nodes over, when Step 1 resumes a round of several nodes, or when the analyst asks to stop an analysis in any round, and go through its items there. Read references/execution-brief.md before you start an execution agent: it says what to write in the agent's brief.
Report what ran automatically, where it paused and why, and the final state (status, journal, lineage).
For the walk, add the nodes it went through, the tree decisions the analyst took, the path of
the tree's HTML, and the node the next /analysis-auto {theme_id} resumes from.
When the theme has a question tree, name /report-export {theme_id} as the skill to use next
once the analyst judges the theme ready to report: it writes the theme's report and exports it
to Claude Docs. Never start it, and do not ask whether to export
(ADR-0040).
/rq-problematization, /analysis-framing, /analysis-design, /analysis-review, /premortem,
/analysis-notebook, /analysis-journal, /analysis-reflection, /tree-upload, /catalog-register — each remains explicit-invocable on its own; /analysis-auto only
sequences them and enforces the gate policy. It never writes the question tree itself: the skills do,
through tree_io. In Step 3H it writes the designs' review comments, their changes, their
stops, the analyst's answers and the checks of the computation through design_io, and
rebuilds the page.
| From | To | When |
|---|---|---|
| /analysis-auto | → /rq-problematization | A research theme has no research question yet |
| /analysis-auto | → /analysis-framing | The theme has no tree, the round needs the Framing Brief of its node, or the root changes |
| /analysis-auto | → /analysis-design | The node of the round needs its design |
| /analysis-auto | → /analysis-reflection | Autopilot reaches results; the conclusion and the tree decision are the user's call |
| /analysis-auto | → /tree-upload | The analyst asks to hand the tree over; its own approval gate is the only question |
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-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", "テーマの振り返り", "現時点の答え".
/analysis-reviewProduces a structured review of an analysis design and records it as a review batch.
Claude critiques the design (question or hypothesis, methodology, metrics, confounders, charts)
and, after the analysis, the result (notebook, verdict, figures),
the user confirms the comments, and they are written via design_io review-batch with a
post-review status — feeding /analysis-revision. The producer side of the review loop
(there is no web UI).
Triggers: "レビューして", "design をレビュー", "批評して", "review this design",
"review design", "レビュー依頼".