skills/deepen-plan/SKILL.md
Stress-test an existing implementation plan and selectively strengthen weak sections with targeted research. Use when a plan needs more confidence around decisions, sequencing, system-wide impact, risks, or verification. Best for Standard or Deep plans, or high-risk topics such as auth, payments, migrations, external APIs, and security. For structural or clarity improvements, prefer document-review instead.
npx skillsauth add marcusrbrown/systematic deepen-planInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Note: The current year is 2026. Use this when searching for recent documentation and best practices.
ce:plan does the first planning pass. deepen-plan is a second-pass confidence check.
Use this skill when the plan already exists and the question is not "Is this document clear?" but rather "Is this plan grounded enough for the complexity and risk involved?"
This skill does not turn plans into implementation scripts. It identifies weak sections, runs targeted research only for those sections, and strengthens the plan in place.
document-review and deepen-plan are different:
document-review skill when the document needs clarity, simplification, completeness, or scope controldeepen-plan when the document is structurally sound but still needs stronger rationale, sequencing, risk treatment, or system-wide thinkingUse the platform's question tool when available. When asking the user a question, prefer the platform's blocking question tool if one exists (question in OpenCode, request_user_input in Codex, ask_user in Gemini). Otherwise, present numbered options in chat and wait for the user's reply before proceeding.
Ask one question at a time. Prefer a concise single-select choice when natural options exist.
<plan_path> #$ARGUMENTS </plan_path>
If the plan path above is empty:
docs/plans/ for recent filesDo not proceed until you have a valid plan file path.
Context & Research, Sources & References, and its origin document when present.ce:brainstorm.Read the plan file completely.
If the plan frontmatter includes an origin: path:
Determine the plan depth from the document:
Also build a risk profile. Treat these as high-risk signals:
Use this default:
If the plan already appears sufficiently grounded:
/ce:work or the document-review skillce:plan StructureMap the plan into the current template. Look for these sections, or their nearest equivalents:
OverviewProblem FrameRequirements TraceScope BoundariesContext & ResearchKey Technical DecisionsOpen QuestionsHigh-Level Technical Design (optional overview — pseudo-code, DSL grammar, mermaid diagram, or data flow)Implementation Units (may include per-unit Technical design subsections)System-Wide ImpactRisks & DependenciesDocumentation / Operational NotesSources & ReferencesAlternative Approaches Considered, Success Metrics, Phased Delivery, Risk Analysis & Mitigation, and Operational / Rollout NotesIf the plan was written manually or uses different headings:
Also collect:
deepened: date if presentUse a checklist-first, risk-weighted scoring pass.
For each section, compute:
Key Technical Decisions, Implementation Units, System-Wide Impact, Risks & Dependencies, or Open Questions in Standard or Deep plansTreat a section as a candidate if:
Choose only the top 2-5 sections by score. If the user explicitly asked to deepen a lightweight plan, cap at 1-2 sections unless the topic is high-risk.
Example:
Key Technical Decisions section with 1 checklist trigger and the critical-section bonus scores 2 points and is a candidateRisks & Dependencies section with 1 checklist trigger in a high-risk migration plan also becomes a candidate because the risk bonus appliesIf the plan already has a deepened: date:
Use these triggers.
Requirements Trace
Context & Research / Sources & References
Key Technical Decisions
Open Questions
High-Level Technical Design (when present)
High-Level Technical Design (when absent) (Standard or Deep plans only)
Implementation Units
System-Wide Impact
Risks & Dependencies / Documentation / Operational Notes
Use the plan's own Context & Research and Sources & References as evidence. If those sections cite a pattern, learning, or risk that never affects decisions, implementation units, or verification, treat that as a confidence gap.
For each selected section, choose the smallest useful agent set. Do not run every agent. Use at most 1-3 agents per section and usually no more than 8 agents total.
Use fully-qualified agent names inside Task calls.
Requirements Trace / Open Questions classification
systematic:workflow:spec-flow-analyzer for missing user flows, edge cases, and handoff gapssystematic:research:repo-research-analyst (Scope: architecture, patterns) for repo-grounded patterns, conventions, and implementation reality checksContext & Research / Sources & References gaps
systematic:research:learnings-researcher for institutional knowledge and past solved problemssystematic:research:framework-docs-researcher for official framework or library behaviorsystematic:research:best-practices-researcher for current external patterns and industry guidancesystematic:research:git-history-analyzer only when historical rationale or prior art is materially missingKey Technical Decisions
systematic:review:architecture-strategist for design integrity, boundaries, and architectural tradeoffssystematic:research:framework-docs-researcher or systematic:research:best-practices-researcher when the decision needs external grounding beyond repo evidenceHigh-Level Technical Design
systematic:review:architecture-strategist for validating that the technical design accurately represents the intended approach and identifying gapssystematic:research:repo-research-analyst (Scope: architecture, patterns) for grounding the technical design in existing repo patterns and conventionssystematic:research:best-practices-researcher when the technical design involves a DSL, API surface, or pattern that benefits from external validationImplementation Units / Verification
systematic:research:repo-research-analyst (Scope: patterns) for concrete file targets, patterns to follow, and repo-specific sequencing cluessystematic:review:pattern-recognition-specialist for consistency, duplication risks, and alignment with existing patternssystematic:workflow:spec-flow-analyzer when sequencing depends on user flow or handoff completenessSystem-Wide Impact
systematic:review:architecture-strategist for cross-boundary effects, interface surfaces, and architectural knock-on impactsystematic:review:performance-oracle for scalability, latency, throughput, and resource-risk analysissystematic:review:security-sentinel for auth, validation, exploit surfaces, and security boundary reviewsystematic:review:data-integrity-guardian for migrations, persistent state safety, consistency, and data lifecycle risksRisks & Dependencies / Operational Notes
systematic:review:security-sentinel for security, auth, privacy, and exploit risksystematic:review:data-integrity-guardian for persistent data safety, constraints, and transaction boundariessystematic:review:data-migration-expert for migration realism, backfills, and production data transformation risksystematic:review:deployment-verification-agent for rollout checklists, rollback planning, and launch verificationsystematic:review:performance-oracle for capacity, latency, and scaling concernsFor each selected section, pass:
Scope: architecture, patterns.) when the agent supports scoped invocationInstruct the agent to return:
Use the lightest mode that will work:
Signals that justify artifact-backed mode:
If artifact-backed mode is not clearly warranted, stay in direct mode.
Launch the selected agents in parallel using the execution mode chosen in Step 3.3. If the current platform does not support parallel dispatch, run them sequentially instead.
Prefer local repo and institutional evidence first. Use external research only when the gap cannot be closed responsibly from repo context or already-cited sources.
If a selected section can be improved by reading the origin document more carefully, do that before dispatching external agents.
Have each selected agent return its findings directly to the parent.
Keep the return payload focused:
If a direct-mode agent starts producing bulky or repetitive output, stop and switch the remaining research to artifact-backed mode instead of letting the parent context bloat.
Use a per-run scratch directory under .context/systematic/deepen-plan/, for example .context/systematic/deepen-plan/<run-id>/ or .context/systematic/deepen-plan/<plan-filename-stem>/.
Use the scratch directory only for the current deepening pass.
For each selected agent:
Prefer a compact markdown artifact unless machine-readable structure is clearly useful. Each artifact should contain:
Artifact rules:
Before synthesis:
If agent outputs conflict:
Strengthen only the selected sections. Keep the plan coherent and preserve its overall structure.
If artifact-backed mode was used:
Allowed changes:
Resolved During Planning and Deferred to Implementation when evidence supports the changedeepened: YYYY-MM-DD in frontmatter when the plan was substantively improvedDo not:
Research Insights subsections everywhereIf research reveals a product-level ambiguity that should change behavior or scope:
Open Questionsce:brainstorm if the gap is truly product-definingBefore writing:
Update the plan file in place by default.
If the user explicitly requests a separate file, append -deepened before .md, for example:
docs/plans/2026-03-15-001-feat-example-plan-deepened.mdIf artifact-backed mode was used and the user did not ask to inspect the scratch files:
If substantive changes were made, present next steps using the platform's blocking question tool when available (see Interaction Method). Otherwise, present numbered options in chat and wait for the user's reply before proceeding.
Question: "Plan deepened at [plan_path]. What would you like to do next?"
Options:
document-review skill - Improve the updated plan through structured document reviewce:work skill - Begin implementing the planBased on selection:
document-review skill -> Load the document-review skill with the plan pathce:work skill -> Call the ce:work skill with the plan pathIf no substantive changes were warranted:
document-review skill or /ce:work as the next step insteadNEVER CODE! Research, challenge, and strengthen the plan.
testing
Use when creating new skills, editing existing skills, or verifying skills work before deployment
development
Generate or regenerate ONBOARDING.md to help new contributors understand a codebase. Use when the user asks to 'create onboarding docs', 'generate ONBOARDING.md', 'document this project for new developers', 'write onboarding documentation', 'vonboard', 'vonboarding', 'prepare this repo for a new contributor', 'refresh the onboarding doc', or 'update ONBOARDING.md'. Also use when someone needs to onboard a new team member and wants a written artifact, or when a codebase lacks onboarding documentation and the user wants to generate one.
tools
Optimize Claude Code permissions by finding safe Bash commands from session history and auto-applying them to settings.json. Can run from any coding agent but targets Claude Code specifically. Use when experiencing permission fatigue, too many permission prompts, wanting to optimize permissions, or needing to set up allowlists. Triggers on "optimize permissions", "reduce permission prompts", "allowlist commands", "too many permission prompts", "permission fatigue", "permission setup", or complaints about clicking approve too often.
development
Use when reviewing pending todos for approval, prioritizing code review findings, or interactively categorizing work items