/continuous-improvement:proceed-with-the-recommendation runs instead · from continuous-improvement
Executes user-approved recommendations, plans, or checklists step by step. Routes each item to the appropriate specialist skill, verifies changes before proceeding, and holds destructive actions pending authorization.
This skill never runs in Claude Code
It ships in continuous-improvement at skills/, but /continuous-improvement:proceed-with-the-recommendation (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
Use the user’s reply to determine the scope. A selection from alternatives authorizes a single direction. An approved plan may contain several compatible actions. Check the outcome of each authorized change before moving on.
This skill is the execution engine for the continuous-improvement framework. Mirrored from continuous-improvement/SKILL.md so this file stands alone if that companion is not installed:
The Loop: Research → Plan → Execute → Verify → Reflect → Learn → Iterate. Skipped step = the step you needed most.
This skill is the orchestrator for the other companions in this repo. It does not duplicate them — it calls them.
| Phase | Companion invoked | 7 Laws alignment |
|---|---|---|
| Pre-flight check that the files, plugins and MCP servers the list names exist | inline | Law 1: Research Before Executing |
| Plan restatement + tagging + routing decision | superpowers:writing-plans (if plan > 3 items or > 150 LOC) else inline | Law 2: Plan Is Sacred |
| Per-item specialist routing | superpowers:* / simplify / schedule / loop / security-review / documentation-lookup / update-config / commit-commands:* (see routing table) | Law 3: One Thing at a Time |
| Per-item verification | superpowers:verification-before-completion or inline smallest-check | Law 4: Verify Before Reporting |
| Long-running or autonomous execution (PRD-style, multi-iteration) | oh-my-claudecode:ralph if installed, else the inline story loop in the routing table | Laws 3 + 6 at scale |
| End-of-run reflection | Write a Reflection block + append to ~/.claude/instincts/<hash>/observations.jsonl | Laws 5 + 7: Reflect, Learn |
| Iterate if user course-corrects | Restart from Phase 2 with the corrected list | Law 6: Iterate Means One Thing |
Use this skill when the immediately preceding turn offered a choice or proposed a plan, and the user responds to it. A number or label selects that option. “The recommended one” selects the uniquely marked recommendation. A bare “yes” with no clear referent needs one short clarification. If the user clearly approves a single proposal, proceed with it.
For an approved additive checklist, “do the whole list” means carry out its compatible steps in order. If “all” would combine mutually exclusive alternatives, ask which direction the user wants. Routine work inside an already chosen direction continues without a new menu. Any required permission still applies.
--once ModeFor single-item, low-risk confirmations, the seven-phase flow below is overkill — a long plan and retrospective can cost more time than the change. --once is an opt-in fast path that runs Phase 1 (Pre-Flight) + Phase 3 (Execute) + Phase 4 (Verify) only. Phase 0 (P-MAG), Phase 2 (Plan), Phase 6 (Reflect) and the longer completion summary are skipped. A change-caused verification failure can be repaired and checked once within the approved item.
--once appliesInvoke --once only when ALL of the following hold:
safe in Phase 1 (not caution, not needs-approval).--once to the trigger or invoked /proceed-with-the-recommendation --once.--once/proceed-with-the-recommendation --once/proceed --once (a phrase this skill reads in a message; the plugin ships no /proceed command)--once suffix anywhere in the user message--once| Phase | Status under --once |
|---|---|
| Phase 0 — P-MAG | Skipped. Reason: single-item runs do not accumulate enough state to need a past-mistake gate; running it twice on the same surface within minutes is wasted ceremony. |
| Phase 1 — Pre-Flight | Runs. Restate the one item, tag it safe, route it. |
| Phase 2 — Plan | Skipped. Reason: a one-line item does not need a docs/plans/ artifact. |
| Phase 3 — Execute | Runs. Route to the preferred skill or inline fallback. |
| Phase 4 — Verify | Runs. Smallest check, with the output snippet quoted verbatim. |
| Phase 5 — Iterate | If the change caused an ordinary failed check, fix the cause within the approved item and retry once. Report a remaining failure. Ask only if resolving it would change the outcome or require new permission. |
| Phase 6 — Reflect | Skipped. No Reflection block, no observations.jsonl append, no Will NOT repeat: carry-forward. |
| Phase 7 — User-facing close | Skipped. On success report Done: <item>. Verified: <check + output>. On failure report the unverified result. |
--once if any fail)--once MUST refuse and fall back to the full flow if:
caution or needs-approval. P-MAG is the gate that catches "we already broke this last week"; skipping it on caution-tagged work is exactly the failure pattern the gate was built for.>3 files, >150 LOC, or any of .github/, bin/, lib/, src/, third-party/. Those surfaces have explicit invariants (verify:all, the third-party vendor contract, the .mts build pipeline) that the seven-phase flow protects.If a precondition fails, emit one line: --once refused: <reason>. Falling back to full proceed flow. and continue with Phase 0.
--once trades the longer reflection for a short, verified report. Concrete losses per skipped phase:
observations.jsonl. Mulahazah will not learn from this iteration.--once is the right call when the work is genuinely smaller than the ceremony. For anything larger, the seven-phase flow is the discipline.
Prior turn (last item from a five-item recommendation block):
- Run
npm run verify:docs-substringsand confirm green before committing.
Operator: /proceed --once
Under --once, the entire response is two lines:
Routed to: inline (Bash). Item: "Run npm run verify:docs-substrings and confirm green." Tag: safe.
Done: ran `npm run verify:docs-substrings`. Verified: `OK docs-substrings: all 150 substring assertion(s) match their target files.`
The verification line completes the fast path.
First resolve the user's selection or the scope of their approved checklist. Use these three rules to carry relevant previous corrections into that work.
Run node "${CLAUDE_PLUGIN_ROOT}/scripts/scan-past-mistakes.mjs" (source: scripts/scan-past-mistakes.mjs) at the project root. Scan three surfaces for corrections relevant to the approved work:
~/.claude/instincts/<project-hash>/observations.jsonl — last N (default 10) entries with type: failure or correction (legacy event field also matched for pre-2026-05-06 rows)~/.claude/projects/<project-hash>/memory/feedback_*.md — every file whose frontmatter declares type: feedback; the canonical home of the operator's named corrections (e.g. feedback_past_mistake_gate.md, feedback_no_git_add_all_on_windows.md)<project-root>/CLAUDE.md "## Past Mistakes" table rows (if present)Pass --json for machine consumption, or override paths via --observations <path>, --memory-dir <dir>, --claude-md <path> (the auto-detection derives all three from the project root via the standard <hash> convention). If the script outputs No prior mistakes recorded — proceed., all three surfaces were empty and Rule 1 is satisfied.
When a recorded correction affects the selected work, use its evidence: Past mistake observed: <quote>. Source: <file:line>. Omit unrelated history from the reply.
Hold an item only when the unresolved issue is a prerequisite for the selected work. For example, residue from a prior fix (a stale artifact still in use) can block the selected change, its required verification step was never run, or a needs-approval operation is required for this item. Report the precise dependency: BLOCKED on prior mistake: <specific issue>. Required clearance: <action and evidence>. Continue independent approved work. An unrelated queued approval or an unselected alternative stays outside this run.
For a relevant recorded failure, cite a specific prior session or file when using Will NOT repeat: <pattern>. Generic promises (“will not skip verification”) do not qualify. If there is no relevant record, omit this field and proceed.
When a relevant correction was recorded, use its evidence in any Phase 6 reflection.
If the recommendation list references files, plugins, or MCP servers not obviously present in the current repo, then confirm each one exists before restating the list: read the file, and list the plugins and MCP servers the agent has installed. Otherwise skip.
For a decision composed under wild-risa-balance, resolve which option the user selected. Execute only the selected direction. Keep the other alternatives outside the plan. Apply the same rule when the user chooses one idea from an explicitly requested portfolio.
For an approved additive checklist, retain the item order and any exclusions. Carry out authorized routine steps without another confirmation. Identify any step that still needs a missing fact or explicit permission and ask for that directly. The later phases apply only to the approved scope.
If the list has >3 items OR touches >150 LOC, call superpowers:writing-plans to generate a bite-sized task breakdown. Save the plan to docs/plans/YYYY-MM-DD-<slug>.md.
Otherwise, state the approved change, its verification and the fallback. Include a past-failure note only when Rule 3 identified a relevant record.
Create a TodoWrite list mirroring the plan.
For each approved item in its original order:
needs-approval item, stop that item and ask directly for permission. Independent items already approved as part of the same checklist can continue.Run node "${CLAUDE_PLUGIN_ROOT}/scripts/route-recommendation.mjs" "<item>" (source: scripts/route-recommendation.mjs) to match a single recommendation item to its preferred chain + inline fallback. Default mode prints the matched row; --json for programmatic consumption; --list enumerates every row. The programmatic source of truth is scripts/route-recommendation.routes.json — the table below is the human-readable documentation that mirrors it. If they drift, the routes.json file wins.
Rows whose Preferred skill is not bundled with the continuous-improvement plugin carry a (Reference behavior — does not require <skill>.) marker on the fallback cell. The marker makes the soft-dependency contract visible at point of use: the inline fallback is fully self-contained and runs without that skill installed. Rows whose preferred skill ships with the plugin (tdd-workflow, deploy-receipt, continuous-improvement) carry no marker — the dedicated skill is always available.
| Recommendation type | Preferred skill | Inline fallback |
|---|---|---|
| Long-running / PRD-style autonomous execution | oh-my-claudecode:ralph | Split the PRD into stories, each with acceptance criteria a test, build or lint run can prove (intent-driven-development writes them), and run this skill once per story, highest priority first: prove each criterion with its own fresh run, commit that story alone, note what you learned, then take the next. A story that will not fit is split, never marked passed with a TODO, and the loop does not stop to summarise between stories. This plugin ships no loop script: for an unattended run use upstream snarktank/ralph or the host's /loop or /goal. (Reference behavior — does not require oh-my-claudecode.) |
| Implement feature / add capability | superpowers:brainstorming → superpowers:writing-plans | Restate goal → list 3 design options → pick one → outline files to touch → build. (Reference behavior — does not require superpowers.) |
| Fix bug / investigate failure | superpowers:systematic-debugging | Hypothesis → add logs/tests → reproduce → smallest fix → verify with the failing repro. (Reference behavior — does not require superpowers:systematic-debugging.) |
| Write tests / add coverage | superpowers:test-driven-development or tdd-workflow | RED (failing test) → GREEN (minimal code) → REFACTOR; one test, one behavior |
| Refactor / dead code cleanup | simplify | Find dupes/unused exports, delete in place, re-run type check and smallest test. (Reference behavior — does not require simplify.) |
| Over-engineering check on a diff | simplicity-review (bundled), in apply mode | Walk the reuse ladder (existing file, stdlib, native feature, installed dependency, one line) over the current diff, make one simplification at a time, rerun the existing tests unmodified after each one and undo any change that fails. Never flags input validation, data-loss handling, security, or accessibility. |
| Security review / auth audit | security-review | Scan for hardcoded secrets, unsanitized input, missing authz, SQL string concat, open CORS. (Reference behavior — does not require security-review.) |
| Code review before merge | superpowers:requesting-code-review or code-review | Read diff top-to-bottom, flag CRITICAL / HIGH / MEDIUM. (Reference behavior — does not require code-review.) |
| Verify before shipping | superpowers:verification-before-completion | Smallest check that proves correctness: typecheck + one test + one curl. (Reference behavior — does not require superpowers:verification-before-completion.) |
| Multiple independent tasks | superpowers:dispatching-parallel-agents | Launch N parallel Agent tool calls in one message; reconcile results after. (Reference behavior — does not require superpowers:dispatching-parallel-agents.) |
| Merge / close branch | superpowers:finishing-a-development-branch | Verify clean tree, rebase on main, green CI, open PR with summary + test plan. (Reference behavior — does not require superpowers:finishing-a-development-branch.) |
| Post-merge deploy receipt (auto-deploy projects) | deploy-receipt (companion in this repo) | Confirm deployed SHA == merge SHA via provider CLI, GitHub Deployments API, or version-endpoint curl, plus a 200 from a documented healthcheck. INCOMPLETE receipt blocks the merge from being reported as done. |
| Schedule a follow-up | schedule | Tell user the exact action + cadence; if no scheduler, write a dated TODO/memory entry. (Reference behavior — does not require schedule.) |
| Recurring poll / interval task | loop | Tell user the cadence + how to re-run manually. (Reference behavior — does not require loop.) |
| Library / API docs lookup | documentation-lookup | Use WebFetch against the official docs URL, cite what changed. (Reference behavior — does not require documentation-lookup.) |
| Frontend / UI design work | frontend-design:frontend-design | Build smallest vertical slice first, verify in browser before styling. (Reference behavior — does not require frontend-design.) |
| Settings / hooks / permission change | update-config | Edit ~/.claude/settings.json with a minimal patch; restart session. (Reference behavior — does not require update-config.) |
| Commit and push | commit-commands:commit or commit-commands:commit-push-pr | git add <specific files> → commit with type(scope): outcome → push when asked. (Reference behavior — does not require commit-commands.) |
| Continuous-improvement analysis / instinct update | continuous-improvement (core 7-Laws skill) | Run the 7-Laws Reflection block manually; append to observations.jsonl |
| Spec-first contract before code | agent-skills:spec-driven-development | Restate the contract as a testable spec; downstream tests/code regenerate from it. (Reference behavior — does not require agent-skills.) |
| Source-first reading before writing | agent-skills:source-driven-development | Read the existing implementation top-to-bottom first; never write blind. (Reference behavior — does not require agent-skills.) |
| Curate context window before answering | agent-skills:context-engineering → context-budget | Trim irrelevant context; keep only the load-bearing files in scope. (Reference behavior — does not require agent-skills.) |
| Slice atomic increment with safe deploy | agent-skills:incremental-implementation | Smallest reviewable change; ship behind a flag if the full scope is too big. (Reference behavior — does not require agent-skills.) |
| Refine vague request into ranked options | agent-skills:idea-refine → superpowers:brainstorming | Compress N ideas to 1 with explicit scoring criteria. (Reference behavior — does not require agent-skills.) |
| Fan out N agents on isolated worktrees with shared contract | superpowers:dispatching-parallel-agents → ruflo-swarm:swarm-init | Use the swarm contract: fixed roles + base ref + shared contract test; reconcile results after. Freeze the candidate list and the contract test before the fan-out, halt instead of editing the contract mid-run, name the winner from the measured rubric, and merge nothing. (Reference behavior — does not require ruflo-swarm.) |
| Stream live observation of long agent runs | ruflo-swarm:monitor-stream | Push-based event log; poll fallback if the MCP server is offline. (Reference behavior — does not require ruflo-swarm.) |
| Visual regression / browser-level diff | oh-my-claudecode:visual-verdict | Playwright screenshot diff against staging baseline. (Reference behavior — does not require oh-my-claudecode.) |
| Multi-session retrospective across a sprint | continuous-improvement (core 7-Laws skill) | Record what worked, what failed and one next action if needed. If the goal is met, finish with the evidence. |
| Long autonomous run with quality gates | oh-my-claudecode:ultragoal → oh-my-claudecode:ralph | PRD-shaped autonomous loop with verify-between-iterations: the story loop in the first row of this table. (Reference behavior — does not require oh-my-claudecode.) |
| Product-management work (PRD, user stories, acceptance criteria, OKRs, experiments, personas, JTBD, lean canvas, market sizing, competitive analysis, meetings family, launch checklist) | Install phuryn/pm-skills via Claude Code marketplace — see docs/THIRD_PARTY.md | Out-of-band install (claude plugin marketplace add phuryn/pm-skills + the eight pm-*@pm-skills plugins). Inline fallback: keep the work shape (problem → user → goal → metric → scope; Given/When/Then per story; objective + 3-5 measurable KRs; we-believe / we'll-know hypothesis; TAM/SAM/SOM bottom-up; cross-cutting meetings agenda/brief/recap/synthesize) without depending on a specific routing target. |
Before moving to the next item, run the smallest check that proves correctness:
Emit one line per item: Done: <item>. Verified: <actual check + output snippet>. Routed to: <skill|inline>.
"Should work" is NOT verification. If verification is impossible, explicitly mark the item as unverified and explain why — do not claim done.
Verification is per-item and non-transitive. A later item's broader check (e.g. an end-to-end test exercising a mid-stack route) never retroactively verifies an earlier item. If item #2 has a 3-minute typecheck and item #3 would exercise the same code path, you still run #2's typecheck before moving on. Coverage-at-the-suite-level is not a substitute for per-item proof.
If verification fails:
If the user course-corrects mid-loop, stop cleanly and restart from Phase 2 with the updated list. Never carry forward silently.
When a reflection is requested or useful for learning from the run, use the Reflection block. Include a next action only when the evidence identifies useful unfinished work:
## Reflection
- What worked: <concrete behaviors that saved time or caught bugs>
- What failed: <concrete slips, skipped verifications, missed approvals>
- What I'd do differently: <specific change for next time>
- Rule to add: When <situation>, <action>. Evidence: <what happened, with a log time or file path>.
- Saved as: <instinct id, as ci_instincts or the file shows it> | not saved: <reason> | nothing to save
- Next action (if needed): <one evidence-backed next step; omit when the goal is met>
Save the rule before you print the block, with the Law 7 steps of the core continuous-improvement skill: check ci_instincts for a duplicate, call ci_create_instinct (or write <id>.yaml in the project's instinct directory), then confirm the id and write it in Saved as. A block with that line empty is not finished. If no rule would have caught the problem, write None and nothing to save.
Record only follow-up findings supported by the work. If the goal is met, record that and stop. A reflection does not automatically become a recommendation list, a user decision, or permission to expand scope.
If an ~/.claude/instincts/<project-hash>/observations.jsonl exists, append this reflection as one JSONL line. This feeds the instinct system (Law 7) per the core continuous-improvement skill.
Give the verified outcome in one or two sentences. Name the check and its actual result. Mention remaining work when it matters to the user's goal. For a completed goal, finish without another menu.
Follow the user's steering preference. With milestone steering, continue the approved work until a milestone needs their decision. If a remaining choice would change the outcome and needs the user's judgment, show three concise, genuinely viable alternatives. Mark exactly one option recommended and explain why it fits the goal. Treat the alternatives as separate paths. An approved checklist instead consists of compatible steps. Ask directly for a missing fact or required permission. Never pad a decision with a made-up option.
Choose the format that fits the task. Use WILD/RISA only for an explicitly requested broad portfolio. A verified result can stand on its own.
Hold only the work that depends on a missing permission, an unanswered material decision or an unresolved prerequisite. Continue independent approved work. Prior-mistake residue still present can hold the affected item under P-MAG Rule 2. A destructive or external step still requires the applicable authorization.
Leave unrelated work outside the plan. If the user changes direction, stop the affected work and follow the corrected scope. If context is exhausted, hand off the current state.
Common execution errors: (Stop Conditions and Red Flags above already cover the rest — needs-approval halts, drive-by edits, urgency-as-authorization, transitive-verification rationalization.)
| Mistake | Fix |
|---|---|
| Skipping verification on "easy" items | Every item gets the smallest proof. "Should work" is not verification (Law 4). |
| Adding new items not in the list | Log as deferred follow-up. Even one drive-by line is out of scope. |
| Treating alternatives as a checklist | Carry out the selected direction and leave the others untouched. |
| Asking for a new choice after a completed task | Report the verified result and stop. |
mkdir -p ~/.claude/skills/proceed-with-the-recommendation
curl -L https://raw.githubusercontent.com/naimkatiman/continuous-improvement/main/skills/proceed-with-the-recommendation.md \
-o ~/.claude/skills/proceed-with-the-recommendation/SKILL.md
Restart the Claude Code session so the registry picks it up. No other plugins required — the skill falls back to inline behavior for any specialist that is not present.
SKILL.md (core) — the 7 Laws of AI Agent Discipline; this skill is its execution enginesuperpowers.md — routing table the agent reads to pick a skill for each kind of taskInstall them together for the full continuous-improvement experience, or use this skill alone — it is self-contained.
A concrete trace covering the most-failed paths: a needs-approval halt, a verification failure-and-retry, and the Phase 7 close. Use this to calibrate output shape — don't copy the wording.
Prior turn (an additive checklist of compatible actions):
1. Add input validation to the /api/users POST handler
2. Drop the unused `legacy_users` table
3. Refactor the duplicated paginate() helper in lib/db.ts and lib/api.ts
This turn (user): “Do the checklist. Leave the table in place until I explicitly approve deleting it.”
Phase 1 — Restated:
1. Add input validation to /api/users POST → safe → Inline fallback (security-review pattern)
2. Drop legacy_users table → needs-approval → STOP at this item
3. Refactor duplicated paginate() → safe → Routed to `simplify`
Phase 2 — Plan (inline, ≤3 items):
/api/orders did 2026-04-15.paginate() to lib/pagination.ts, update both callsites. Will NOT change behavior. Verification: typecheck + the existing paginate unit test green. Fallback: revert if test count drops. Will NOT repeat: extracting a shared helper without diffing both callsite signatures first (the lib/api.ts vs lib/db.ts drift from this same example).Phase 3 — Execute item 1:
Edit routes/users.ts adding zod schema. Run curl -X POST .../api/users -d '{}' → returns 400 {"errors":[{"field":"email","msg":"required"}]}. ✓
Phase 4 verification line: Done: input validation. Verified: curl bad-payload → 400 with field error. Routed to: inline.
Phase 3 — Execute item 2:
HALT. Item 2 is needs-approval. Emit:
Item 2 (drop
legacy_userstable) is destructive — D1 schema change. Need explicit "drop the legacy_users table" from you before I touch this. Continuing to item 3 in the meantime.
The user explicitly approved item 3 as part of the same checklist; it is independent of the blocked deletion.
Phase 3 — Execute item 3:
Extract paginate(), update callsites. Run npx tsc --noEmit → ❌ fails: lib/api.ts had a slightly different signature (limit?: number vs limit: number = 20). Phase 5 kicks in:
limit?: number signature in the extracted helper.Phase 4 verification line: Done: paginate refactor. Verified: tsc clean + paginate.test.ts → 1 passing. Routed to: simplify.
Phase 6 — Reflection (where useful):
tsc on item 3 (lib/api.ts vs lib/db.ts).legacy_users table remains in place pending the user's explicit authorization.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub naimkatiman/continuous-improvement --plugin continuous-improvement22 skills in this plugin
/auditReview a code change and report only bugs proven against the code: pin the diff, read every changed file and log it in a coverage ledger, run one find pass per defect class, then confirm each finding at the cited lines. Use when asked to review a branch or pull request (PR) for broken code before it merges, or to audit commits that already merged. Reports only, unless the user asks for fixes. Not for checking your own work in progress, style or design feedback, or debugging a known failure. Guidance for Law 4 (Verify Before Reporting)./be-ambitiousTakes one task and works it at three kinds of ambition (Altitude, the goal behind the task; Depth, the way a top expert in the field would do it; Range, other fields doing their real work), fixes a numeric target and an outside judge before the work starts, then does the work. Use when the user says go big or a plan looks timid. It still has the agent deliver the literal ask and wait for a yes on anything hard to reverse. Method from Felix Rieseberg's "How to be more ambitious", restated. Guidance for Law 2 (Plan Is Sacred)./continuous-improvementThe drive pillar, beside the be-ambitious skill (ambition). Tells the agent to work a task in seven steps: research, plan, implement, review, contemplate, relearn and learn, iterate. Use when a task changes code (fix, refactor) or runs commands. Also use for a first recommendation or when someone asks which available skill fits their task. Before the final report, if the user corrected you, an approach was dropped or a check failed twice, or when the user asks to reflect: read the session log, write the reflection and save its rule as a project instinct the next session can load. Other simple questions can be answered directly.Other plugins' skills for the same job