/insight-blueprint:analysis-framing [theme]from insight-blueprint
Explores existing data and analyses to help frame a question to explore or a hypothesis to confirm. Triggers: "framing", "何を分析する", "分析テーマ", "仮説を考えたい", "データを探して", "既存分析を確認", "analysis framing".
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.
Explores the .insight/ directory to discover available data, existing analyses,
and domain knowledge, helping the user frame a well-grounded hypothesis direction.
Does NOT create hypotheses --- that is /analysis-design's responsibility.
/analysis-design/analysis-journal/analysis-reflectionAccept the analysis theme from $ARGUMENTS or ask the user for one.
$ARGUMENTS is provided, use it as the themecatalog_io list returns/rq-problematization):
use its テーマ as the theme and its 検証の方向性 as the seed direction. The research
questions are theory-driven and not yet grounded — your job is to ground them in
available data. Carry the central assumption forward into the Direction Dialogue (Step 4)..insight/ does not exist yet, that's fine — it holds nothing to explore, so tell the user
it's empty and proceed to frame from the conversation/theme. The .insight/ directory tree is
created automatically the first time a skill writes to it (via the design_io/catalog_io
wrappers); there is no separate init step.Explore .insight/ to gather theme-relevant information.
Do NOT use MCP tools. Use only Glob, Read, and Grep via Agent tool, plus catalog_io list
for the data sources (2b).
Execution method: Delegate exploration to an Agent tool (subagent_type: "Explore").
Loading all .insight/ YAML files into the main context would cause token
consumption to spike and degrade the quality of the subsequent dialogue (Steps 3-5).
Pass the theme and the exploration instructions below to the subagent, and have it
return a structured summary in the Data Map format (Step 3) to the main context.
.insight/designs/*_hypothesis.yaml to list all design files*_journal.yaml), check key findingscatalog_io list to get every registered data source. It prints each source
without its connection (ADR-0018); the paths, hosts and project ids in connection
are for /analysis-notebook alone, so never open the source YAML files instead
(ADR-0022).schema_info), period, granularity.insight/rules/*.yaml to list domain knowledge entriesRun Grep across .insight/designs/, .insight/catalog/knowledge/ and .insight/rules/
with keywords derived from the theme (synonyms, broader terms, narrower terms) to catch
files missed in 2a-2c. Data sources come from 2b only: a Grep over the source YAML prints
connection lines.
Return exploration results as a structured summary in the Data Map format (Step 3). Do NOT return raw file contents. Return a semantically grouped summary with relevance judgments applied.
Present the exploration results in the following structured format:
-- Data Map: {theme} --
利用可能データ:
- {source_name} ({source_id})
カラム: {key_columns} 期間: {period} 粒度: {granularity}
- ...
既存分析:
- {design_id}: {title} [{status}]
手法: {methodology} 結論: {conclusion_summary}
- ...
関連知識:
- [{category}] {content_summary}
出典: {source_design_id or manual}
- ...
ギャップ:
- {gap_description}
- ...
If catalog_io list returns no sources or no relevant data:
/catalog-register to register new data sourcesDiscuss with the user to narrow the direction (a question to explore, or a hypothesis to confirm):
/catalog-register)The agreed direction is kept as the theme's question tree
(.insight/themes/{theme_id}_tree.yaml): the root question, its aim, and the first-level
nodes under it. The analyst settles them at two KEEP gates (4a, 4b). You draft, the analyst decides.
In every sentence for the analyst, call the root question 主題, an answer to an earlier
root revision 見直す前の主題への答え, and reflection round N N回目の振り返り. Never show the
word 版 or the number of a root revision: say how many times the 主題 was revised
(主題を1回見直した), and nothing of it while it was never revised (ADR-0055). At the gate
of 4c, ask whether to record the change as a revision of the 主題 (主題を見直す). The YAML
keys and tree_io revise-root keep the word root.
A run handed the position of the theme reads the end of 4d before it asks anything in 4a or 4c.
Do NOT create a design, its hypothesis_statement or its exploration_question. The Framing Brief
carries only a draft of the question to explore or of the hypothesis, and /analysis-design
asks the intent and confirms the draft with the analyst.
The framing skill's responsibility ends at "proceed to analysis-design on this node."
This is a KEEP gate. Settle three things with the analyst and wait for their answer:
theme_id — it names the tree file and prefixes every design id, so it must match
[A-Z][A-Z0-9]*. Propose the theme of the related designs in the Data Map, or a new one.
Then run tree_io get --theme {theme_id}. If it prints {}, the theme has no tree yet:
continue with 2 and 3. Otherwise the theme already has a tree: go to 4c now, without 2 and 3.
If {path} in tree_io: no tree at {path} on stderr is not under this project's
.insight, run it again from the project directory: never cd before, since tree_io
reads the .insight of the directory it is run from.kind | Fields (both required) | Meaning |
|---|---|---|
business | decision_maker, decision | Who decides what on the strength of the answer. Write a role or a team, not a personal name |
research | audience, claim_scope | Who reads the claim, and how far it reaches (population, period, conditions) |
Take the kind from the conversation and confirm it. A theme that came from
/rq-problematization is research, and its root question is the research question the
analyst chooses to test.
If the RQ Brief does not state the audience, ask the analyst who the audience is before you go on.
Take claim_scope from the analyst as well; propose a draft from the research questions if that helps.
Never fill a field of the aim with a guess, an empty string, or a placeholder such as "未定":
tree_io rejects a half-filled aim, and a placeholder would later read as a real decision.
If the analyst cannot name the aim yet, stop here and say that the tree needs it.
Draft the first-level nodes: the questions that sit directly under the root question. Each node has two parts:
question — what to find out, as a question. Not a hypothesis and not a method.contribution — how answering it moves the judgment on the root question.
A node whose contribution you cannot state does not belong under this root.Ground the draft in the Data Map: say for each node which sources could answer it, and name the gaps. Present the nodes with a recommended order and the reason for it. This is a KEEP gate, so ask the analyst two things and wait: whether the nodes are right (add, drop, reword), and which node to investigate first, with their reason. Keep the reason in the analyst's words. The analyst may choose several nodes to investigate first: 4d, "Several nodes in one decision", says which nodes go together and how the decision holds them.
If the Data Map lists designs of this theme that no node of the tree holds, ask a third thing at the same gate: which node each of them belongs to. Show each design with its title and status. A design may stay unlinked, and one design may go under more than one node. Never place a design yourself.
The second level may stay empty. Deeper nodes are added when the analysis raises them.
One theme has one tree. When tree_io get printed a tree in 4a, the theme already has one, so
show it (root question, aim, nodes, decisions) and ask what this run changes.
tree_io add-node (5a).start:
start is the first choice, and tree_io rejects another one.bump:echo '{"question": "取り置き期限を延ばす試行を、分館も含めて始めるか", "bump": true, "reason": "分館も対象に入り、決める範囲が変わった"}' | tree_io revise-root --theme LIB
"bump": true appends a root revision and needs the analyst's reason. From then on the
earlier answers are shown as answers to the previous root.
"bump": false rewrites the current revision in place, so it is only for a rewording that keeps the meaning.
"bump": false takes no reason; tree_io rejects one, because nothing would keep it.
When the aim changes, send the whole aim (kind and both of its fields) in the same payload.
Never choose bump yourself and never default it. Do not say which answer you expect, and
keep your reading of the change (a rewording or a change of meaning) to yourself until the analyst has answered.
Do not ask for a reason, or for a go-ahead on a bump value, before they answer; ask for the reason once they have chosen to raise the revision.
A change of meaning always raises the revision: the question asks something else, another role decides, the decision differs, or the audience or the claim scope moves. If the analyst answers "no bump" to a change you read as one of these, only then tell them which part changed and that earlier answers would silently read as answers to the new root, and ask once more. Their second answer stands.
Every rerun on a tree that has a decision passes this KEEP gate before 5b. A rerun never names a node the analyst has not just chosen. The one exception is a run handed the position of the theme (at the end of this step).
tree_io progress --theme {theme_id} and tree_io candidates --theme {theme_id}.decisions: its node_id
and its with_node_ids, the node_ids of tree_io position) and, after a close, also
the nodes that stopped with it (closed_with_node_ids), each with its
progress and the designs linked to it. Say the progress the way the page does: the word
of progress (not_started 未着手, investigating 調べている, stopped 止めた,
analyzed 分析済み), then,
when below is not empty, この論点の下に置いた論点 {N} つ: 分析済み a、止めた b、調べている c、未着手 d
(主題 in place of この論点 for the root question; {N} is their sum, and a word with
no count is left out). A node whose progress is null shows the counts alone and is
never shown as 未着手: it has no design of its own, but one below it (ADR-0057). Show the
next candidates that candidates printed, with their notes./analysis-design, until the analyst has answered.node_ids, not the closed_with_node_ids of a close), write no decision: the
tree already says so. This holds after a close too; designing on that node resumes it.echo '{"kind": "return", "node_id": "LIB-Q03",
"reason": "数え方は定まったので、通知が期限に間に合っているかを先に確かめる"}' | tree_io decide --theme LIB
kind is deepen when the chosen node is a node the latest decision names, or below one,
and return otherwise. Never write a close here: stopping is decided in
/analysis-reflection {theme_id}, after the analyst has seen the current answers.
tree_io sets the round. If decide exits non-zero, show stderr and ask again; do not
output the Framing Brief for a node the tree does not name.
Several nodes in one decision. The analyst may choose several nodes that are handed
over together. The first goes into node_id and the rest into "with_node_ids", a list of
node ids in the same payload ("with_node_ids": ["LIB-Q04", "LIB-Q06"]). kind is read from
node_id alone. A close takes none: it closes every node the decision before it named.
Only nodes that do not wait for each other go together. A node waits for another when its design cannot be written before the other's result is known: what it counts, what it extracts or the line it judges by is to be chosen from what the other finds. Before you write the decision, say for each chosen node in one line whether it needs a result of another chosen node. If it does, leave it out of the decision and tell the analyst which result it waits for, and that it can be chosen in the round after that result. No field records it: say it, write it nowhere. If the analyst says the node does not need that result, their word stands.
When handed the position. A run may be handed the output of
tree_io position --theme {theme_id}. When its state is not_started, or in_progress
with undesigned_node_ids not empty, the latest decision
names nodes the analyst chose, and undesigned_node_ids holds those with nothing designed on
them since: take undesigned_node_ids as the answer, do not ask again and write no decision,
and skip the question of 4c about what
this run changes. Designs no node holds are still placed (4c). Go to 5b and output a Framing
Brief for each of them, in that order. In any other state the gate stands: ask. A run
that was not handed the position always asks, whatever the tree says.
Write the tree with tree_io (on PATH; JSON on stdin, JSON on stdout; it validates before
every write). Never create or change .insight/themes/*_tree.yaml with the Write or Edit tool.
For a new tree, run the commands in this order, one add-node per first-level node.
Coming from 4c, skip create, run add-node only for the new nodes, and run decide here only if the tree has no decision (a later decision is written in 4d):
echo '{"theme_id": "LIB",
"question": "取り置き期限を延ばす試行をするか",
"aim": {"kind": "business", "decision_maker": "図書館員", "decision": "取り置き期限を延ばす試行を始めるか"}}' | tree_io create
echo '{"question": "期限切れを一貫して数えられるか",
"parent_question_id": "LIB-Q01",
"contribution": "予約取消が混ざると、延長で改善しうる件数が変わる"}' | tree_io add-node --theme LIB
echo '{"kind": "start", "node_id": "LIB-Q02",
"reason": "取消が混ざると延長で改善しうる件数が変わるため"}' | tree_io decide --theme LIB
create writes the root question as {theme_id}-Q01 with the first root revision.
A research aim is {"kind": "research", "audience": "...", "claim_scope": "..."}.add-node prints the node it wrote. Its id ({theme_id}-Q{nn}) is the id to use from here on.decide records the first node to investigate and the analyst's reason (4b).For each design the analyst placed in 4b, link it to its node:
tree_io link --theme LIB --node LIB-Q02 --design LIB-H01
link only ties the design to the node, and running it twice changes nothing. It copies no
heard answer into a journal; /analysis-design does that for the designs it creates.
A command that exits non-zero wrote nothing: read stderr, fix the payload and run that
command again. Do not output the Framing Brief until the tree has a start decision
(tree_io get --theme {theme_id} shows it under decisions). If the run stops between
commands, the next run finds the tree in 4a and continues from 4c.
Output the following structured text verbatim
(copy the heading hierarchy exactly). analysis-design will detect this format
from the conversation context and pre-populate draft values.
theme_id is the theme of the tree, and node_id is the {theme_id}-Q{nn} id that
tree_io printed in 5a for the node to design next. /analysis-design links the design it
creates to that node.
The draft of the design follows the intent you suggest in analysis_intent. Write one draft line
and leave the other out:
exploratory: keep 探索の問いの案 and drop 検証仮説の案. The draft is a question that says what
to measure, with no guess of the answer and no criterion.confirmatory: keep 検証仮説の案 and drop 探索の問いの案. Suggest it only when a tentative
answer can be stated and the criterion of the verdict can be fixed now; otherwise suggest
exploratory.Never suggest mixed: a new design cannot be mixed. /analysis-design asks the intent again
whatever the Brief suggests, except in a round of several nodes, where the analyst reads it on
the page.
## Framing Brief
### テーマ
{theme_one_liner}
### 利用可能データ
- {source_name} ({source_id}): {key_columns}, {period}, {granularity}
### 既存分析
- {design_id}: {title} [{status}] --- {conclusion_summary}
### ギャップ
- {gap_description}
### 推奨方向
- analysis_intent: {exploratory | confirmatory}
- 探索の問いの案: {exploration_question_draft}
- 検証仮説の案: {hypothesis_draft}
- theme_id: {theme_id}
- node_id: {node_id}
- 論点: {node_question}
- parent_id: {suggested_parent_id or "なし"}
- 推奨手法: {methodology_suggestion}
Run this once, after the last tree_io write of this run (5a, or a revise-root in 4c).
Run it even when this run wrote nothing, so the view matches the tree:
tree_io render --theme LIB
It writes the HTML view next to the tree (.insight/themes/{theme_id}_tree.html) and prints
its path. Tell the analyst that path: "論点ツリーの図: {path}(ブラウザで開ける)".
.insight/themes/*_tree.html with the Write or Edit tool. tree_io
generates the page from the tree; the next render overwrites it.render exits non-zero, show stderr and say that the view was not made. The Framing Brief
stands, because the tree itself is written./tree-upload {theme_id}, which asks before sending. Say so in one line; do not
start it.Then end with the next step:
"分析設計を作るなら /analysis-design"
| From | To | When |
|---|---|---|
| /development-partner* | → /analysis-framing | 分析テーマが出て、ドメイン接地が必要: "データと既存分析を探索するなら /analysis-framing" |
| /rq-problematization | → /analysis-framing | RQ が出てデータ接地が必要(RQ Brief 付き): "RQ をデータに接地して検証枠組みにするなら /analysis-framing" |
| /analysis-design | → /analysis-framing | データ不足で仮説の方向を再検討: "データを探し直すなら /analysis-framing" |
| /analysis-reflection | → /analysis-framing | 新しい探索の問いか検証仮説が要るが、データと方向を先に探す: "新しい角度を探すなら /analysis-framing" |
| /catalog-register | → /analysis-framing | データ登録完了、フレーミングに戻る: "フレーミングに戻るなら /analysis-framing" |
| /analysis-auto | → /analysis-framing | guided autopilot が論点ツリーを作る、次の論点の Framing Brief を得る、主題を変える |
| /analysis-framing | → /analysis-design | 方向が定まった(Framing Brief 付き): "分析設計を作るなら /analysis-design" |
| /analysis-framing | → /tree-upload | 論点ツリーを書き、図(HTML)を作った: "論点ツリーの図を URL で渡すなら /tree-upload" |
| /analysis-framing | → /catalog-register | 必要なデータが未登録: "データを登録するなら /catalog-register" |
| /analysis-framing | → /development-partner* | テーマが分析ドメインを超えて漠然: "問題を整理するなら /development-partner" |
* = 外部スキル(development-deck)。存在時のみ表示する。存在しない場合この行は Chaining セクションに含めない。
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",
"分析設計を作りたい", "仮説を立てたい", "新しい仮説", "仮説ドキュメント".
npx claudepluginhub etoyama/insight-blueprint-skills --plugin insight-blueprint