/insight-blueprint:analysis-revision [design_id]from insight-blueprint
Guides structured revision of an analysis design based on review comments. Reads review feedback via design_io, tracks progress per comment, and helps fix each issue. Triggers: "レビューを直して", "指摘を反映して", "revision対応して", "fix review", "address comments", "レビュー修正".
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 the user through a structured revision workflow for an analysis design
that has received review comments. Reads review feedback via design_io
(list-reviews), creates a persistent tracking file for per-comment progress,
and helps address each comment through interactive dialogue.
revision_requested and review comments need to be addressedrevision_requested statusIf $ARGUMENTS contains a design ID (e.g., "FP-H01"), use it directly.
Otherwise, run design_io list --status revision_requested
and ask the user to select.
design_io get --id {design_id} -- load the design (JSON).
Status check: If status != "revision_requested", display an error and exit:
このデザイン ({design_id}) は revision_requested 状態ではない (現在: {status})。
レビューで修正依頼が出た後にこのスキルを使おう。
design_io list-reviews --id {design_id} -- get all review batches (JSON, newest first).
Batch selection (important -- do NOT just pick the newest batch overall):
status_after == "revision_requested"created_atIf no qualifying batch found (all batches have status_after != "revision_requested"):
revision_requested に対応するレビューバッチが見つからない。
レビューは design_io append_review_batch で {id}_reviews.yaml に記録される。
レビューバッチが記録済みか確認しよう。
Exit.
Display situation summary:
-- Revision: {design_id} --
Title: {title}
Status: {status}
Target batch: {batch.id} ({batch.created_at})
Reviewer: {batch.reviewer}
Comments: {len(batch.comments)} items
Read .insight/designs/{design_id}_revision.yaml using the Read tool.
If file exists AND batch_id matches the target batch -> reuse existing tracking (session resume).
Show: "前回のセッションから再開する。未対応のコメントから進めよう。"
If file does not exist OR batch_id does not match the target batch -> create new tracking file.
If file exists but is corrupted (parse error) -> treat as non-existent and create new tracking file. Show: "tracking file が破損していたため、新しいバッチから再作成する。"
New tracking file schema:
batch_id: "{target_batch.id}"
created_at: "{now_jst in ISO 8601 format}"
items:
- index: 0
fingerprint: "{fingerprint}"
comment_summary: "{first 50 chars of comment}"
target_section: "{target_section or null}"
status: "open"
addressed_at: null
- index: 1
fingerprint: "{fingerprint}"
comment_summary: "{first 50 chars of comment}"
target_section: "{target_section or null}"
status: "open"
addressed_at: null
# ... one item per comment in the batch
Fingerprint generation formula (stable identity key for cross-session matching):
import hashlib
fingerprint = hashlib.sha256(f"{comment}|{target_section or ''}".encode()).hexdigest()[:8]
The fingerprint is based on comment content rather than index position, so it remains stable even if comments are reordered. It is used for reconciliation when resuming a session.
Write the tracking file using the Write tool. Write the full YAML content to
.insight/designs/{design_id}_revision.yaml.
Note: In production code, atomic writes should use the tempfile + os.replace() pattern.
Since the skill operates through Claude's Write tool, the tool handles file writing directly.
For each item in the tracking file where status == "open":
Display the comment with context:
-- Comment {index+1}/{total} --
Section: {target_section or "general"}
Comment: {full comment text from the batch}
Target content: {target_content from the batch, if present}
Current value: {current value of that section from design_io get, if target_section is set}
Status: {status}
To get the current value, run design_io get --id {design_id} and extract
the field matching target_section (e.g., if target_section == "hypothesis_statement",
show design["hypothesis_statement"]).
A comment on the result targets notebook, verdict or figures (a review after the
analysis, ADR-0054). It has no field of the design: show the cell, the metric of
.insight/notebooks/{design_id}_verdict.json or the figure it points at as the current
value instead.
When the design has analysis_started_at, its analysis has started, and the design keeps
what the verdict was judged against (ADR-0053): the hypothesis_statement and the
primary metrics (their target, comparison and tier) of a confirmation, a legacy
exploration or a mixed design, and the analysis_intent of any design. Say so when the
comment targets one of them. The one exception: a legacy exploration may still set
analysis_intent to confirmatory (ADR-0049), so that comment is fixed as usual.
Ask user for direction:
どう対応する?
1. fix -- 修正する (修正内容を一緒に考える)
2. skip -- 対応しない (wontfix としてマーク)
3. discuss -- 方針を相談したい
If fix:
echo '{<changed fields>}' | design_io update --id {design_id}status: "addressed", addressed_at: "{now_jst}"A comment on the result (notebook, verdict, figures) is fixed in the notebook,
not in the design:
.insight/notebooks/{design_id}.py. Seeing
the result must not change the analysis beyond what the comment asked for.support_line and the reject_line are copied again from the comparison of the
design, never set from the result./analysis-notebook (Step 4), and record the
new verdict to the journal as its Step 6 does. The earlier verdict is overwritten.A comment on what a started design keeps: do not try design_io update; the write is
refused. Offer two choices instead:
parent_id) with /analysis-design, which holds the changed
hypothesis, criterion or intent, and leave this one as it was analyzed.If skip (wontfix):
status: "wontfix", addressed_at: "{now_jst}"If discuss:
Write updated tracking file after each comment is resolved.
Write the full YAML content to .insight/designs/{design_id}_revision.yaml
using the Write tool.
After all items have been processed, verify: every item has status of either
"addressed" or "wontfix".
Show summary:
-- Revision Summary --
Total: {total} comments
Addressed: {addressed_count}
Won't fix: {wontfix_count}
Propose re-submission:
全コメントへの対応が完了した。in_review に戻してレビュアーに再確認を依頼する?
If yes: design_io transition --id {design_id} --target in_review
Suggest next steps:
design_io <command> (available on PATH via the plugin):
| Command | Used for |
|---|---|
get --id ID | Load design details and check status |
list --status revision_requested | Find designs awaiting revision |
list-reviews --id ID | Get review batches with comments (newest first) |
update --id ID (stdin JSON) | Apply fixes to design fields |
transition --id ID --target in_review | Re-submit for review |
.insight/designs/{design_id}_revision.yaml
This file is skill-managed data, edited directly (see YAML Format Reference in analysis-design SKILL.md).
| Situation | Action |
|---|---|
| Design not found | Show error, suggest design_io list |
| Design not in revision_requested status | Show current status, exit with guidance |
| No revision_requested batch found | Show message, suggest reviewing first |
| Tracking file corrupted | Re-create from target batch, warn user |
design_io update fails | Show error, ask user to retry or adjust |
| Session interrupted mid-loop | On next run, resume from tracking file (open items) |
| From | To | When |
|---|---|---|
| /analysis-review | -> /analysis-revision | Review recorded with revision_requested status |
| /analysis-revision | -> /analysis-design | Major redesign needed: "大きな方針変更が必要なら /analysis-design {id}" |
| /analysis-revision | -> /analysis-journal | Need to investigate before fixing: "調査してから修正するなら /analysis-journal {id}" |
| /analysis-revision | -> (reviewer) | After transition to in_review, the reviewer records a new review batch via design_io |
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