ワンクリックで
retrospect
Analyzes the current session and suggests harness improvements to reduce prompts, tokens, and errors.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Analyzes the current session and suggests harness improvements to reduce prompts, tokens, and errors.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | retrospect |
| description | Analyzes the current session and suggests harness improvements to reduce prompts, tokens, and errors. |
| trigger | /retrospect |
Analyzes what happened this session and produces concrete harness improvement suggestions.
.claude/sessions/<session_id>.jsonl, written by .claude/hooks/log-tool-use.sh on every PostToolUse. Each line: {ts, tool, summary, error}.Find the current session's log by sorting .claude/sessions/*.jsonl by mtime and taking the newest. If no log exists, note that and skip the tool-use sections below.
Run a quick aggregation over the JSONL log. Report:
Read entries that appear ≥2× with overlapping ranges. Each repeat is a likely waste.Bash calls in a row without an intervening tool) that had no inter-dependency — these should have been a single parallel batch.error: true.cat/head/tail/sed/awk invocations — these should be Read/Edit. Count ls/find/grep invocations when graphify-out/ exists — these should be graphify queries.Print the stats as a compact table at the top of the output. Keep it under 15 lines.
For each pattern below, if it triggers, emit an ISSUE block (see format in Step 4):
| Pattern | Trigger | Likely fix |
|---|---|---|
| Re-read same file | Same file_path Read ≥2× with no Edit between | Cache state in memory; re-read only after Edit/Write |
| Sequential Bash | ≥3 consecutive Bash calls with no cross-dependency | Batch into one parallel message |
| Read-without-Edit cluster | ≥5 Reads with no Edit/Write in window | Exploration scope creep — narrow the task or use Explore agent |
Raw cat/sed/awk | Bash command starts with these | Use Read/Edit instead |
| Grep/find when graphify exists | Grep/Glob/find calls and graphify-out/ exists | Use graphify query for cross-module questions |
| Bash error spike | error: true rate > 20% on Bash | Likely missing context or wrong assumption upstream |
Evaluate against these (in order). Tool-use data feeds priorities 2 and 3 directly.
/feature skill's research phase should have caught them..claude/skills/feature/SKILL.md Phase 3 steps. For each step, verify it was executed this session. Flag any step that was skipped or only partially done — even if it didn't cause a visible failure. Also check: was Railway deployment verified? Was the bead closed before or after deployment confirmed? Were e2e tests run or explicitly noted as skipped?Produce a concrete suggestion in this format:
ISSUE: <one-line description of what went wrong>
ROOT CAUSE: <why it happened — missing context, wrong instruction, no hook, etc.>
EVIDENCE: <optional: cite tool-log row count, file path re-read N times, etc.>
FIX: <exact change — new skill instruction, hook script, CLAUDE.md line, agent rule, etc.>
PRIORITY: high | medium | low
Consider all harness mechanisms:
Always check for the rebuild pattern: if the session ended with a clean-slate rewrite or significant rework, ask: what harness rule, research step, or constraint document would have prevented this? That answer is the highest-priority fix.
Do NOT suggest vague improvements like "be more thorough". Every suggestion must be actionable: a file to edit, a line to add, a hook to write.
.claude/improvements.md:---
## <YYYY-MM-DD> Session retrospect
### Tool-use stats
<paste the compact table>
### Issues & suggestions
<paste the ISSUE/ROOT CAUSE/EVIDENCE/FIX blocks>