deep-planner
Skill1 starsChanged 6 months agoMITView on GitHub
Shen-Hua deep planning workflow for complex tasks before implementation. Use before large edits, refactors, architecture changes, public API changes, cross-module work, risky migrations, unclear requirements, or when the user asks Codex to investigate first, produce a deep plan, identify risks, or plan a long-running implementation.
In this repository9 other files it gives its agents.
- templates/AGENTS.mdAGENTS.md
- handoff-writerSkill
- persistent-memorySkill
- project-commanderSkill
- runtime-operatorSkill
- self-reviewerSkill
- shen-huaSkill
- subagent-orchestratorSkill
- verification-loopSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Use this skill when:
- Distinctive: line 20
Do not use this skill when:
- Very specific: line 27
Read .agent/ memory first.
- Very specific: line 28
If the project root contains .codegraph/ and CodeGraph MCP/CLI is available, use CodeGraph first for symbols, call chains, impact scope, …
- Distinctive: line 29
If CodeGraph is missing, stale, incomplete, or not relevant, inspect concrete files with fast local search and targeted reads.
- Distinctive: line 30
Do not initialize CodeGraph unless the user explicitly asks.
- Very specific: line 63
Use $persistent-memory first if .agent/ is missing or malformed.
- Very specific: line 65
Use $subagent-orchestrator only if independent research/work streams are allowed and useful.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Deep Planner
Deep Planner turns a complex objective into a grounded execution plan before edits begin. It prioritizes current project evidence over assumptions.
Trigger Conditions
Use this skill when:
- The task affects multiple files, modules, packages, or APIs.
- The work could break user workflows, data, public contracts, or build/test infrastructure.
- The user asks for deep planning, investigation, architecture, impact analysis, or risk analysis.
$project-commanderclassifies the task as complex.
Do Not Trigger
Do not use this skill when:
- The user explicitly asks for a quick direct change and the blast radius is tiny.
- The task is purely explanatory and does not depend on project structure.
- A current plan already exists in
.agent/PLAN.mdand the user asks only to execute the next listed task.
Investigation Rules
- Read
.agent/memory first. - If the project root contains
.codegraph/and CodeGraph MCP/CLI is available, use CodeGraph first for symbols, call chains, impact scope, and architecture relationships. - If CodeGraph is missing, stale, incomplete, or not relevant, inspect concrete files with fast local search and targeted reads.
- Do not initialize CodeGraph unless the user explicitly asks.
- Confirm current file contents before editing files that may have changed recently.
Planning Workflow
- Define the objective, non-goals, and success criteria.
- Map relevant files, modules, commands, entry points, and data flows.
- Identify risk categories:
- behavior changes
- compatibility/API changes
- data migration or persistence
- security/privacy
- performance
- test coverage
- deployment/runtime assumptions
- Break the work into phases with a verification gate after each meaningful phase.
- Mark the first concrete implementation step.
- Record assumptions and questions. Ask the user only when a reasonable assumption would be risky.
Required .agent/ Updates
Always update:
.agent/PLAN.md: phases, success criteria, verification gates..agent/TASKS.md: tasks derived from the plan..agent/LOG.md: investigation summary and files/tools inspected..agent/HANDOFF.md: the current plan and first next action.
Update when relevant:
.agent/DECISIONS.md: accepted architecture choices or rejected alternatives..agent/PROJECT_BRIEF.md: newly discovered constraints or project conventions.
Other Skills
- Use
$persistent-memoryfirst if.agent/is missing or malformed. - Return control to
$project-commanderafter producing the plan. - Use
$subagent-orchestratoronly if independent research/work streams are allowed and useful.
Subagents
Subagents are optional. Use explorer/architect/reviewer agents only when the user or runtime policy permits delegation. Otherwise, perform role passes locally and log that no real subagents were launched.
Verification Commands
Deep planning itself does not require build/test commands unless the investigation needs a baseline. If a baseline is useful, run cheap read-only checks such as package script discovery, existing test command discovery, or current failing test reproduction.
Output Format
DEEP PLAN
Objective:
Non-goals:
Evidence inspected:
Relevant files/symbols:
Risks:
Phases:
Verification gates:
First implementation step:
Open questions:Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

