/solopreneur:session-retrofrom solopreneur
Reviews the current conversation to find mistakes, trace root causes, and propose process improvements. Useful at end of a work session or mid-session after a correction.
Ships in solopreneur. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A session retrospective that turns conversation mistakes into durable process improvements, and successful patterns into reusable skills.
Without retro, the same mistakes repeat across sessions — Claude gets corrected, apologizes, and forgets by next conversation. Retro breaks this cycle by tracing errors to their source (a skill, CLAUDE.md, memory, or tool behavior) and proposing concrete fixes that persist.
1. Scan conversation for correction signals
2. Classify: errors found → Path A | smooth session → Path B
3. For each finding: analyze → attribute → propose action
4. Run Path C (token efficiency analysis)
5. Present report with action proposals
6. Ask user which actions to execute
7. Ask user if they want to save the report
Search the conversation for moments where the user corrected or redirected Claude's behavior.
Correction signal patterns (not exhaustive — use judgment):
Also scan for silent corrections — places where the user quietly fixed something Claude should have done (e.g., user manually ran a command Claude skipped).
For each correction found, build a root cause analysis:
State factually: what did Claude do, and what should it have done? No defensiveness, no hedging. Just the facts.
Identify which document or mechanism should have guided the correct behavior:
| Source type | How to check |
|---|---|
| Skill | Was a skill invoked? Read the skill — does it clearly cover this case? |
| CLAUDE.md | Does project or global CLAUDE.md have instructions for this? |
| Memory | Is there a relevant memory file that should have applied? |
| Tool behavior | Was a tool used incorrectly, or was the wrong tool chosen? |
| No source | No existing document covers this case |
Read the actual source file to verify — don't rely on memory of what it says.
Determine which category the error falls into:
Source is unclear — The document exists but is ambiguous or poorly structured, making it easy to misinterpret. (Example: a default rule buried in an "override" subsection)
Source is missing — No document covers this scenario. Claude had to improvise and guessed wrong.
Execution drift — The document is clear, but Claude didn't follow it. This happens when instructions are long or when shortcuts seem reasonable in context.
One-off mistake — A simple slip (wrong file path, typo, etc.) with no systemic cause.
Based on the attribution:
| Attribution | Proposed action |
|---|---|
| Source unclear | Update the source — rewrite the ambiguous section with clearer structure |
| Source missing | Create source — new skill, memory, or CLAUDE.md section |
| Execution drift | Save feedback memory — a concise rule that catches attention on future reads |
| One-off mistake | No action needed — note it but don't over-engineer a fix |
For each action, specify:
When the session went smoothly, look for patterns worth preserving:
For each pattern, assess:
Only propose extraction for patterns scoring high on at least 2 of 3 criteria.
Runs after Path A/B. The goal is to find token waste within this session and suggest concrete improvements for future sessions.
Claude Code cannot access exact token counts, so use heuristic estimation based on observable signals: file sizes read, tool call count, subagent dispatches, and conversation round-trips. Focus on actionable patterns, not precise numbers.
Review the conversation for these patterns:
| Signal | What to look for |
|---|---|
| Subagent model mismatch | Opus agent dispatched for tasks a cheaper model could handle (simple grep, file lookup, straightforward code generation) |
| Redundant operations | Same file read multiple times, identical or near-identical searches repeated |
| Oversized reads | Large files (>500 lines) read in full when only a small section was needed |
| Agent overuse | Subagent spawned for tasks achievable with direct Grep/Glob/Read (see 4c for skill-required dispatches) |
| Sequential round-trips | Multiple dependent tool calls that could have been parallelized, or information gathered piecemeal that could have been collected in one pass |
| Wasted exploration | Dead-end research paths that could have been avoided with a better starting question |
For each cost signal found:
high (different model tier or eliminated agent), medium (fewer round-trips or targeted reads), low (minor optimization)If no subagent dispatches occurred in this session, skip this section.
Review each subagent dispatch in the session:
Explore for a task that only needed Grep)model set in their agent definition frontmatter, not just via the dispatch model
parameter. If the agent definition pins a model, use that as the actual tier for
cost assessment. When a skill required dispatching that specific agent type and the
agent definition pins the model: do not blame the caller — but DO evaluate whether
the skill or agent definition itself is over-specified. If so, propose updating the
skill or agent definition as an actionable finding (e.g., "agent X pins opus but
its tasks only need sonnet-level reasoning — consider changing the agent definition").Present the report directly in conversation (not as a file):
# Retro: YYYY-MM-DD
## Findings
### 1. [Short title of error or pattern]
- **What happened**: [factual description]
- **Root cause**: [source file path + specific section, or "no source"]
- **Attribution**: source unclear / source missing / execution drift / one-off
- **Proposed action**: [action type] — [brief description]
- **Details**: [what specifically to change]
### 2. [Next finding...]
...
## Summary
- Errors: N (action needed: N, no action: N)
- Successful patterns: N (worth extracting: N)
## Proposed Actions
1. [Action type] [target file] — [one-line description]
2. ...
## Token Efficiency (omit if Path C was skipped or no cost signals found)
### Cost Signals
- Subagents dispatched: N (by type: Explore: N, ios-dev: N, ...)
- Large file reads (>500 lines): N
- Redundant operations: N
- Avoidable round-trips: N
### Optimization Opportunities
1. [Specific suggestion] — estimated saving: high/medium/low
- **Proposed action**: [save feedback memory / update skill / update agent definition / update CLAUDE.md / no action]
- **Target**: [file path or "feedback memory: ..."]
2. ...
### Subagent Dispatch Issues (if any)
- [Agent description] used [type/model] → [recommend alternative] because [reason]
Ask which actions to execute. Combine actions from both "Proposed Actions" (Path A/B) and "Optimization Opportunities" (Path C) into a single numbered list for user approval. The user may approve all, some, or none. Only execute approved actions.
Execute approved actions. For each:
Ask if user wants to save the report.
If yes, save to docs/retro/YYYY-MM-DD.md (create the directory if needed).
If no, the report lives only in conversation history.
Very short session (< 5 exchanges, where one exchange = one user message + one assistant response): Tell the user there's not enough context for a meaningful retro. Offer to note any specific concern instead.
User was wrong, not Claude: If investigation reveals the user's correction was based on a misunderstanding, say so respectfully with evidence. Don't create process fixes for non-problems.
Multiple errors with same root cause: Group them under one finding. One fix should address all instances.
Sensitive corrections: If the user's correction was about tone or communication style (not technical), save as a feedback memory rather than a skill update.
What SKILL.md sets; muted values are Claude Code's defaults
17 skills in this plugin
/autopilotPR orchestration planner. Reads a task file, discusses PR splitting strategy
with the user, produces plan + spec files, and either dispatches a worktree
subagent in the current session (single PR, run now) or schedules execution
via cron (multi-PR, or single-PR scheduled). Use when the user wants a task
implemented, reviewed, and merged automatically — whether the scope fits in
one PR or needs to be split. Triggers: "autopilot", "orchestrate", "batch
implement", "split into PRs and run", or when the user provides a todo/spec
and wants unattended PR execution.
/codex-agents-bootstrapInstall or refresh custom agents shipped by solopreneur-family plugins in the
Codex user agents directory. Use after installing, updating, enabling, or
disabling a solopreneur-family plugin, or when the user asks to bootstrap,
install, refresh, or diagnose Codex agents. This is unnecessary on Claude.
/greenlightAutomated PR review loop that keeps running until the PR is clean. Triggers
external reviewers (Codex bot, Codex CLI, and the Gemini bot when activity
detection sees it on the repo), processes feedback, fixes issues, and
re-triggers — repeating until no new suggestions remain.
Supports `/greenlight external` to skip internal review and go straight to
external reviewers, and `/greenlight external gemini` to specify a starting
reviewer. Use when the user says "greenlight", "run reviews until clean",
"get this PR approved", or wants automated review cycling on an open PR.
Also auto-detects uncommitted mode: when on main branch with uncommitted
changes and no PR, runs Codex CLI `--uncommitted` review loop only, fixes
in-place without committing, until codex reports clean.
Also supports post-commit mode (explicit `/greenlight post-commit <SHA>`
or `<SHA1>..<SHA2>`): Phase 1 subagents + Codex CLI + agy (Gemini-family CLI)
in parallel, fixes as new commits on top (no amend, no new PR), pushes after
each round.
/handoffGenerate a self-contained handoff context document for the current work,
printed inline as markdown so the user can copy it and paste into any other
agent — a fresh Claude Code session, Codex, ChatGPT, or an agent on another
machine. Use when the user says /handoff, "write context for the next
session", "package this for handoff", "hand off to another agent", or wants
to capture the current session's state in a portable form. Output is printed
inline AND written to `/tmp/handoff/<YYYY-MM-DD>_<slug>.md`. No worktree is created (use
worktree-handoff if a git worktree is needed).
/merge-prMerge an open PR for the current branch. Refuses to merge when the worktree
has uncommitted changes, consolidates the branch's plan file (renaming
the latest Handoff Context section to Final Progress and moving the file
to done/ in state-machine mode), merges via GitHub CLI, and reports status.
Also cleans up stale merged-but-not-removed worktrees from prior sessions
on every Claude Code run. Codex V1 uses a merge-only profile that performs
no pre-merge plan or worktree mutation.
Use when the user says "merge", "merge PR", "merge this", or wants to
land the current branch.
/mvpMeta-orchestrator for going from a product idea to a demo-able MVP fast.
Drives the full flow: brainstorming → PRD visual confirmation (user
gate) → template lookup → MVP-flavored plan → single-subagent
execution. Optimized for **time-to-first-demo**, not production
quality — no TDD, no per-task review loops, no hardening. Use INSTEAD
OF superpowers:brainstorming when the user is starting a new product
from scratch — this skill calls brainstorming internally, then chains
in a PRD confirmation phase, template discovery, plan writing, and
execution. Triggers: "/mvp", "我要做 app", "想做產品",
"想做一個 app", "做個 MVP", "build a product", "build an app from
scratch", "MVP from scratch", "start a new app", "new product".
npx claudepluginhub hanamizuki/solopreneur --plugin solopreneurOther plugins' skills for the same job