/nlsmdn:plan [--plan-only] [--review] [--complete] <task, or blank to infer from conversation>from nlsmdn
Lightweight planning workflow — run one short `blind-spots` round only when what the user wants is unclear, then plan read-only in-session when already on Opus or stronger, otherwise delegate planning to an Opus subagent (or adopt a plan already agreed in the conversation). With --plan-only, save the plan to a Markdown file and stop. With --complete, skip planning for work already done ad hoc and run only the finishing steps (QA, review, docs, commit, squash). Otherwise check readiness, get one go-ahead, implement in auto mode, run QA and one `code-review --multi`, fix findings, repeat QA only after substantial code changes, update docs, and commit the task's work. The middle tier between "just do it" (tiny tasks) and `longshot` (multi-hour features). Never enters plan mode, so it sidesteps the plan-mode permission prompts. Use when the user invokes /plan, or wants a plan for a medium-sized task before implementing.
Ships in nlsmdn. 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.
Produce a concrete implementation plan for a medium-sized task, verify readiness,
then implement it after one approval gate. With --plan-only, save the plan to a
file and stop.
Deliberately lighter than longshot (no full up-front
interview, per-task implementer subagents or rulings ledger) and
heavier than just editing — the space where a plan helps but full ceremony is overkill.
This skill IS the planning workflow for this task. Do not also invoke
brainstorming — that is the heavyweight path this skill exists to avoid.
Two design choices make it work:
ExitPlanMode. Everything runs in the
session's normal (auto) mode. This is intentional: it avoids plan mode's read-only
permission prompts entirely, and a subagent's own tool calls never prompt you.The argument is the task. If blank, infer the task from the current conversation.
/plan add a --json flag to the export command # plan a stated task
/plan # plan the task from context, or adopt a plan agreed above
/plan --review <task> # plan, then multi-agent review before the gate
/plan --plan-only <task> # save the plan to a file and stop
/plan --plan-only --review <task> # review the plan, then save it and stop
/plan --complete # finish ad-hoc work already done: QA, review, docs, commit, squash
--plan-only — draft the plan, write it to a Markdown file, and stop at Step 3a.
Use a path the user specifies; otherwise use
docs/plans/<YYYY-MM-DD>-<task-slug>.md relative to the project root (or the
working directory outside a project). Create the parent directory as needed.
Choose a numbered suffix if the default path already exists; update an existing
plan only when the user asks to revise it. This flag takes no positional value;
the remaining text is the task. It combines with --review in either order.--review — after the plan is drafted, run review-plan (multi-agent) on it and
fold the findings in before presenting for go-ahead. review-plan is already
multi-agent; there is no separate --multi. The final code-review --multi --fix --re
runs regardless of this flag when implementing; --plan-only stops before it.--complete — the work was already discussed and implemented in this session
without the skill. Skip planning, the gate and implementation (Steps 1–5) and run
the finishing steps (Steps 6–9) over it, as set up in Step 0. Remaining text, if
any, names the task or narrows its scope; otherwise infer both from the
conversation. Invoking it is the go-ahead for the finishing steps, including
committing and squashing the task's work; honor any explicit limit the user gives.
It does not combine with --plan-only or --review.--complete)Set up what the planning steps would otherwise have produced, then go straight to Step 6:
HEAD before the task's first commit. Work from other sessions in the
checkout stays out of scope./plan instead. If something agreed in the conversation is
visibly missing, list it and ask whether to implement it first or finish
without it. Otherwise do not stop.Judge the task's size first.
With --plan-only, continue to Step 2 for any task size: the user explicitly
requested a plan artifact. Note scope concerns in the plan rather than exiting
or switching workflows.
longshot instead, and stop.A plan already in the conversation? When the argument is blank and the conversation already holds a concrete plan for the task — files and ordered steps, not just an idea — ask one line before planning: "There's a plan above. Use it, or plan from scratch?" Wait for the answer.
Settle open intent first, only when it is warranted. Run one short blind-spots
round only when the task leaves open what the user wants and the conversation and
repo do not settle it. That covers what a term refers to, which behaviour they expect,
or what is in scope, wherever different reasonable readings would produce different
plans. Invoke it as an embedded call, limited to intent and scope, at most one round,
and have it return a brief rather than hand off. Wait for the answers, then plan from
that brief. Technical choices that have a defensible recommendation are not a reason
to run it. They go into the plan as open questions for the gate. Most tasks skip this
step. On the in-session path, run it after exploring and before drafting. On the
dispatch path, run it before dispatching and include the brief in the prompt.
Plan in this session when it runs on Opus or a stronger model. Explore read-only — read, search and read-only shell only, no edits and no mutating commands — then draft the skeleton below yourself, under the same directives the subagent brief lists. Do not dispatch.
Otherwise dispatch one subagent via the Agent tool:
subagent_type: Plan — read-only by construction (no Edit/Write/NotebookEdit).model: opus.effort: xhigh.The Plan agent starts fresh (it is not a fork),
so brief it fully. Its prompt MUST contain:
Required plan skeleton (the agent returns exactly this):
## Approach
2–3 sentences. Name approach A (recommended) vs B in one line, with why.
Add "Close call" if A and B both meet the requirements and either differ in
something expensive to reverse (data model, external interface, new dependency,
architecture) or cannot be called with confidence.
## Files to touch
- path/to/file — what changes and why
## Ordered steps
1. …
## Risks / edge-cases
- …
## Assumptions & open questions
- Assumption: …
- Open question: … (blocking? y/n)
--review)Invoke the review-plan skill (via the Skill tool) against the plan in current
context. Fold its findings into the plan — apply clear improvements directly, and
surface unresolved disagreements as open questions for the gate.
--plan-only)Write the final plan to the path selected above. Make it self-contained: include the task statement, relevant requirements from the conversation, and the full plan skeleton. Include readiness, QA, review, verification, documentation, and commit steps from Step 4 as proposed future work, honoring the user's limits. Keep unresolved questions in the file and mark which ones block implementation.
Exploration and optional review remain read-only; the plan file and its parent directory are the only writes authorized by this mode. Verify the saved file, then return its path with a brief summary and any blocking questions. Do not print the full plan inline, request implementation approval, or continue to Steps 4–9. A later request to implement the saved plan is a separate instruction.
Start checking prerequisites as soon as the task and its acceptance criteria identify them. Use the project's documented setup and exercise each required dependency from the session, checkout, or target that will use it. Use the smallest real operation that proves it works. If the final path needs code or a checkout that will exist only after approval, use the current baseline or a representative smoke test to prove the prerequisites. Record how to repeat the check in the final setup.
Keep setup reversible and within the task's authorized scope. Preserve tracked files and Git state unless the user has authorized a specific setup change. Save implementation edits and work briefs for after the go-ahead.
Fix recoverable setup failures and repeat the affected checks. If a required prerequisite remains blocked, report the failed check, what's needed, and any workable alternative. Ask for implementation approval once the agreed plan's required checks pass. Carry the setup details into implementation and QA. Refresh checks affected by a plan change or expired resource before proceeding, and release claims and stop temporary services when the run no longer needs them.
Print the plan and readiness results inline, with the Assumptions & open questions
called out so the user can resolve them. If the Approach is marked "Close call", add
one line offering to run brainstorm on that fork before going ahead. Run it only on
the user's yes, in its embedded mode, then revise the plan around the chosen approach
and present it again. Include QA, one final multi-agent code review,
fixes, conditional post-review QA, verification, documentation updates, and the final commit in the
plan; the go-ahead covers these finishing steps too, including staging and committing the
task's work on the current branch. Honor any explicit limit the user gives, such as "don't
commit".
Hard gate: wait for an explicit go-ahead ("go", "yes", "proceed") before beginning implementation. If the user revises the plan, repeat any affected readiness checks before presenting it again.
Once the user approves, implement the plan directly in the main session (auto mode), incorporating any answers they gave to the open questions. Do not enter plan mode and do not re-dispatch implementation to a subagent — the main session does the implementation and fixes. The QA and review steps below may dispatch their own workers according to those skills.
Run qa --fix against the completed feature and its affected interfaces. Supply the
approved requirements and acceptance criteria. Fix confirmed defects and retest the
failing paths and affected neighbors before moving on. Follow the QA skill's
coverage and evidence requirements; automated checks alone do not replace runtime
QA when consumer behavior changed.
Run code-review --multi --fix --re over the complete task diff, including new files and any
changes already committed during the task. Give it an explicit scope so unrelated
work in the checkout stays outside the review. This is mandatory, even without
--review; do not substitute --quick. Run one full code review only. --fix
fixes every finding, including lower-severity ones, without the fix prompt, and
--re then reviews only what the fixes changed, once, and fixes what that finds.
Check the Not fixed list it ends with: each declined finding needs a concrete
reason (incorrect, inapplicable, or a decision for the user); do not silently defer
valid findings. Run the project's formatter and relevant checks after fixes. Resolve all valid findings and check failures.
A genuine blocker must be reported explicitly; do not describe blocked work as
complete.
Run a second qa --fix only if the changes since the first QA are substantial:
changes to behavior, control flow, state, data handling, interfaces, or integrations
that could invalidate the earlier QA evidence. Judge by impact, not line count.
Scope this pass to affected scenarios and their neighbors, fixing and retesting
confirmed defects. Formatting, comments, naming-only cleanup, and documentation
edits do not trigger another QA pass. State whether repeat QA was needed and why.
Run doc --update scoped to the completed task. Update the canonical docs for the
final behavior, interfaces, usage, and constraints; use doc --generate where new
behavior needs documentation that does not exist. Carry durable design decisions
from the plan into the appropriate docs. Do not create a separate plan archive.
Check the updated examples and links, and run any required documentation checks. If documentation work exposes a code defect, return to the fix and verification steps before finishing, applying the same substantial-change rule for repeat QA without another code review.
Invoke the commit skill with no argument, limited to the task's changes: code,
tests, and docs land together in the fewest self-contained commits, and other
sessions' work in the checkout stays out. The go-ahead already authorized this; do
not ask again. Do not commit while a check fails or a blocker remains — leave the
work uncommitted and say why in the report.
With --complete, then squash if needed. When Step 0 recorded a base commit,
the ad-hoc work left commits of its own, so invoke squash-commits <base> to fold
them and the new ones into the fewest self-contained commits. Squash only when
every commit in <base>..HEAD is the task's and none is on a remote; otherwise
leave history alone and put the proposed before/after commit list under
Blockers. Keep the pre-squash tip for the report. Without a base commit there
is nothing to squash.
Then report, in this order:
git reset --soft <tip>.Do not stop after implementation with an offer to run review, update docs, or commit later, and do not open the report with a bare "Implemented." that hides the finishing steps.
User: "Plan adding a --json flag to export."
Actions: the task and repo settle what is wanted, so skip blind-spots → the session (or, below Opus, one read-only subagent) drafts the approach → run a baseline export smoke test → present the plan including
readiness, QA, review, and docs → wait for approval → implement in the main session →
qa --fix → one code-review --multi --fix --re (fixes findings, re-reviews the fixes) → verify → repeat QA only
if the fixes substantially changed code → update usage docs and examples → commit
→ report changes, QA, each review finding's resolution, checks, docs, and commits.
User: "/plan make the command bar configurable like the other components"
Actions: exploring shows that "command bar" could mean the palette or the toolbar,
and that "configurable" could cover appearance or behaviour → one embedded
blind-spots round on what is meant and what is in scope → draft the plan from the
answers, with the font-type choice left as an open question for the gate.
User, after discussing and making a change without the skill: "/plan --complete"
Actions: reconstruct requirements and scope from the conversation → state them
→ qa --fix → one code-review --multi --fix --re →
verify → update docs → commit → squash-commits <base> if the ad-hoc work had
already committed → report.
commit skill's troubleshooting rather than bypassing the hook.Plan agent has no Edit/Write/NotebookEdit tools, so it
cannot modify files — but it retains Bash, so "no mutating commands" is an
instruction, not a hard block. In-session planning has no tool restriction at all,
so the read-only rule there rests on the instruction alone; the Step 4 gate is what
stops implementation from starting early.--review runs the full review-plan fan-out (including a second-opinion codex
agent and a research-tech agent); it costs more, which is why it is opt-in.What SKILL.md sets; muted values are Claude Code's defaults
xhighOther plugins' skills for the same job
npx claudepluginhub nielsmadan/skills --plugin nlsmdn65 skills in this plugin
/blind-spotsSurface consequential decisions a plan, design, or research brief left silently assumed, by interviewing the user in dependency order. Use when the user says "blind spots", "grill me", "stress-test this plan", "poke holes in this", "what am I missing", "interrogate this design", "what haven't I decided", or needs a loose idea or research brief clarified before work begins. Do NOT use for a clear factual lookup, to explain a previous reply in more detail (use `huh`), to generate ideas when it is unclear what to build (use `ideation`), or to review an already-written plan with agents (use `review-plan`)./brainstormWork out how to solve a problem the user can already name — interview them with `blind-spots` to understand it, generate structurally different approaches, validate each with an independent critic, then present the survivors with trade-offs and a recommendation. Use when the user says "brainstorm", "brainstorm approaches", "how should we solve/approach/tackle X", "what are our options", "compare approaches", "think this through with me", or wants solutions weighed before committing. Works on any topic, with codebase recon when a repo is involved; `--debate` adds external advisors for high-stakes calls. Do NOT use when stuck on what to build or what the problem is (use `ideation`), to probe an already-chosen plan (use `blind-spots`), or to pick a library or service (use `evaluate-tech`)./check-agent-logsSearch past Claude Code, Codex, Cursor CLI, Devin CLI, Droid, and Pi session logs to recover context from earlier work across the current project and sibling checkouts. Use when a bug, topic, or decision was handled in a previous session but its agent or checkout is unknown; when the user says "we fixed/discussed this before", "find the session where", "recover prior context", "check agent logs", "check Claude projects", "search past sessions/transcripts", or "which checkout was that in". Do not use for aggregate failure-pattern analysis; use review-logs for that./codebase-reviewReview a whole codebase aspect by aspect, with aspects fitted to the project type (mobile, desktop, web frontend, static site, CLI, backend, library) — docs truth-check, architecture, tests, security, the type's foundations, feature deep dives, consistency, roadmap — writing a doc per aspect and a verified findings ledger that doubles as the TODO. Plans first (recon, `blind-spots`, `review-plan`, plan approval), then walks the plan with the user aspect by aspect — agents review and verify in the background, the user confirms rulings and decides judgment calls one at a time. `--auto` runs independently after the gate, with decision waves at the end. `--fix` hands settled findings through `crew` to worker sessions, integrated locally, never pushed. Use for "codebase review", "review the whole codebase", "onboard me to this repo", "deep dive this app", "audit the code base", "review and fix everything". Not for a diff or PR (code-review), a CLI release pass (release-review), or building a feature (longshot)./codebase-review-typescriptSupply TypeScript and JavaScript structural evidence to codebase-review using dependency-cruiser, ESLint complexity, and Git churn. Use for whole-codebase import-cycle and complexity-hotspot investigation, or when discovered as a project-local codebase-review extension. Does not replace review-typescript's type-design checks or review a diff./code-guideCoach the user through writing a feature themselves, one small step at a time, the way an experienced developer would build it. Each step comes with the code to type and a checkpoint that proves it works, such as logging the endpoint's response shape before typing it, or rendering a hardcoded value before wiring the real one. After each step the agent reads the user's diff and verifies it. The happy path comes first and edge cases come last. Use when the user says "code-guide", "guide me to write", "help me write this myself", "I want to code it myself", "coach me through implementing", "walk me through building this feature", "don't write it for me", or wants to learn by typing the code. Do NOT use for console or dashboard setup (use guide), explaining existing code (use code-tour), or when the agent should implement the change itself (use plan or longshot).