packrat-ai/packrat/deepen-plan-beta
Claude Code and agent skill by packrat-ai/packrat
- community
Checking that the SKILL.md file is still in the repository.
[BETA] 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.
Install
npx vskill@latest install packrat-ai/packrat/deepen-plan-betaSKILL.md
The same SKILL.md was published earlier as packrat-ai/packrat/deepen-plan-beta.
Deepen Plan
Introduction
Note: The current year is 2026. Use this when searching for recent documentation and best practices.
ce:plan-beta does the first planning pass. deepen-plan-beta 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-beta are different:
- Use the
document-reviewskill when the document needs clarity, simplification, completeness, or scope control - Use
deepen-plan-betawhen the document is structurally sound but still needs stronger rationale, sequencing, risk treatment, or system-wide thinking
Interaction Method
Use the platform's question tool when available. When asking the user a question, prefer the platform's blocking question tool if one exists (AskUserQuestion in Claude Code, 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 File
<plan_path> #$ARGUMENTS </plan_path>
If the plan path above is empty:
- Check
docs/plans/for recent files - Ask the user which plan to deepen 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
Do not proceed until you have a valid plan file path.
Core Principles
- Stress-test, do not inflate - Deepening should increase justified confidence, not make the plan longer for its own sake.
- Selective depth only - Focus on the weakest 2-5 sections rather than enriching everything.
- Preserve the planning boundary - No implementation code, no git command choreography, no exact test command recipes.
- Use artifact-contained evidence - Work from the written plan, its
Context & Research,Sources & References, and its origin document when present. - Respect product boundaries - Do not invent new product requirements. If deepening reveals a product-level gap, surface it as an open question or route back to
ce:brainstorm. - Prioritize risk and cross-cutting impact - The more dangerous or interconnected the work, the more valuable another planning pass becomes.
Workflow
Phase 0: Load the Plan and Decide Whether Deepening Is Warranted
0.1 Read the Plan and Supporting Inputs
Read the plan file completely.
If the plan frontmatter includes an origin: path:
- Read the origin document too
- Use it to check whether the plan still reflects the product intent, scope boundaries, and success criteria
0.2 Classify Plan Depth and Topic Risk
Determine the plan depth from the document:
- Lightweight - small, bounded, low ambiguity, usually 2-4 implementation units
- Standard - moderate complexity, some technical decisions, usually 3-6 units
- Deep - cross-cutting, high-risk, or strategically important work, usually 4-8 units or phased delivery
Also build a risk profile. Treat these as high-risk signals:
- Authentication, authorization, or security-sensitive behavior
- Payments, billing, or financial flows
- Data migrations, backfills, or persistent data changes
- External APIs or third-party integrations
- Privacy, compliance, or user data handling
- Cross-interface parity or multi-surface behavior
- Significant rollout, monitoring, or operational concerns
0.3 Decide Whether to Deepen
Use this default:
- Lightweight plans usually do not need deepening unless they are high-risk or the user explicitly requests it
- Standard plans often benefit when one or more important sections still look thin
- Deep or high-risk plans often benefit from a targeted second pass
If the plan already appears sufficiently grounded:
- Say so briefly
- Recommend moving to
/ce:workor thedocument-reviewskill - If the user explicitly asked to deepen anyway, continue with a light pass and deepen at most 1-2 sections
Phase 1: Parse the Current ce:plan-beta Structure
Map 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-unitTechnical designsubsections)System-Wide ImpactRisks & DependenciesDocumentation / Operational NotesSources & References- Optional deep-plan sections such as
Alternative Approaches Considered,Success Metrics,Phased Delivery,Risk Analysis & Mitigation, andOperational / Rollout Notes
If the plan was written manually or uses different headings:
- Map sections by intent rather than exact heading names
- If a section is structurally present but titled differently, treat it as the equivalent section
- If the plan truly lacks a section, decide whether that absence is intentional for the plan depth or a confidence gap worth scoring
Also collect:
- Frontmatter, including existing
deepened:date if present - Number of implementation units
- Which files and test files are named
- Which learnings, patterns, or external references are cited
- Which sections appear omitted because they were unnecessary versus omitted because they are missing
Phase 2: Score Confidence Gaps
Use a checklist-first, risk-weighted scoring pass.
For each section, compute:
- Trigger count - number of checklist problems that apply
- Risk bonus - add 1 if the topic is high-risk and this section is materially relevant to that risk
- Critical-section bonus - add 1 for
Key Technical Decisions,Implementation Units,System-Wide Impact,Risks & Dependencies, orOpen QuestionsinStandardorDeepplans
Treat a section as a candidate if:
- it hits 2+ total points, or
- it hits 1+ point in a high-risk domain and the section is materially important
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:
- A
Key Technical Decisionssection with 1 checklist trigger and the critical-section bonus scores 2 points and is a candidate - A
Risks & Dependenciessection with 1 checklist trigger in a high-risk migration plan also becomes a candidate because the risk bonus applies
If the plan already has a deepened: date:
- Prefer sections that have not yet been substantially strengthened, if their scores are comparable
- Revisit an already-deepened section only when it still scores clearly higher than alternatives or the user explicitly asks for another pass on it
2.1 Section Checklists
Use these triggers.
Requirements Trace
- Requirements are vague or disconnected from implementation units
- Success criteria are missing or not reflected downstream
- Units do not clearly advance the traced requirements
- Origin requirements are not clearly carried forward
Context & Research / Sources & References
- Relevant repo patterns are named but never used in decisions or implementation units
- Cited learnings or references do not materially shape the plan
- High-risk work lacks appropriate external or internal grounding
- Research is generic instead of tied to this repo or this plan
Key Technical Decisions
- A decision is stated without rationale
- Rationale does not explain tradeoffs or rejected alternatives
- The decision does not connect back to scope, requirements, or origin context
- An obvious design fork exists but the plan never addresses why one path won
Open Questions
- Product blockers are hidden as assumptions
- Planning-owned questions are incorrectly deferred to implementation
- Resolved questions have no clear basis in repo context, research, or origin decisions
- Deferred items are too vague to be useful later
High-Level Technical Design (when present)
- The sketch uses the wrong medium for the work (e.g., pseudo-code where a sequence diagram would communicate better)
- The sketch contains implementation code (imports, exact signatures, framework-specific syntax) rather than pseudo-code
- The non-prescriptive framing is missing or weak
- The sketch does not connect to the key technical decisions or implementation units
High-Level Technical Design (when absent) (Standard or Deep plans only)
- The work involves DSL design, API surface design, multi-component integration, complex data flow, or state-heavy lifecycle
- Key technical decisions would be easier to validate with a visual or pseudo-code representation
- The approach section of implementation units is thin and a higher-level technical design would provide context
Implementation Units
- Dependency order is unclear or likely wrong
- File paths or test file paths are missing where they should be explicit
- Units are too large, too vague, or broken into micro-steps
- Approach notes are thin or do not name the pattern to follow
- Test scenarios or verification outcomes are vague
System-Wide Impact
- Affected interfaces, callbacks, middleware, entry points, or parity surfaces are missing
- Failure propagation is underexplored
- State lifecycle, caching, or data integrity risks are absent where relevant
- Integration coverage is weak for cross-layer work
Risks & Dependencies / Documentation / Operational Notes
- Risks are listed without mitigation
- Rollout, monitoring, migration, or support implications are missing when warranted
- External dependency assumptions are weak or unstated
- Security, privacy, performance, or data risks are absent where they obviously apply
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.
Phase 3: Select Targeted Research Agents
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.
3.1 Deterministic Section-to-Agent Mapping
Requirements Trace / Open Questions classification
compound-engineering:workflow:spec-flow-analyzerfor missing user flows, edge cases, and handoff gapscompound-engineering:research:repo-research-analystfor repo-grounded patterns, conventions, and implementation reality checks
Context & Research / Sources & References gaps
compound-engineering:research:learnings-researcherfor institutional knowledge and past solved problemscompound-engineering:research:framework-docs-researcherfor official framework or library behaviorcompound-engineering:research:best-practices-researcherfor current external patterns and industry guidance- Add
compound-engineering:research:git-history-analyzeronly when historical rationale or prior art is materially missing
Key Technical Decisions
compound-engineering:review:architecture-strategistfor design integrity, boundaries, and architectural tradeoffs- Add
compound-engineering:research:framework-docs-researcherorcompound-engineering:research:best-practices-researcherwhen the decision needs external grounding beyond repo evidence
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 91 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/deepen-plan-beta/SKILL.md
Popularity
- Repository stars
- 35
- Repository forks
- 38
- 7-day trend score
- 18
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/packrat-ai/packrat/deepen-plan-beta)