agentleFS
fengsihao23-engfengsihao23-eng/shen-hua/skills/deep-planner/SKILL.md

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.

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
  1. Distinctive:

    Use this skill when:

    line 12
  2. Distinctive:

    Do not use this skill when:

    line 20
  3. Very specific:

    Read .agent/ memory first.

    line 27
  4. Very specific:

    If the project root contains .codegraph/ and CodeGraph MCP/CLI is available, use CodeGraph first for symbols, call chains, impact scope, …

    line 28
  5. Distinctive:

    If CodeGraph is missing, stale, incomplete, or not relevant, inspect concrete files with fast local search and targeted reads.

    line 29
  6. Distinctive:

    Do not initialize CodeGraph unless the user explicitly asks.

    line 30
  7. Very specific:

    Use $persistent-memory first if .agent/ is missing or malformed.

    line 63
  8. Very specific:

    Use $subagent-orchestrator only if independent research/work streams are allowed and useful.

    line 65

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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-commander classifies 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.md and the user asks only to execute the next listed task.

Investigation Rules

  1. Read .agent/ memory first.
  2. If the project root contains .codegraph/ and CodeGraph MCP/CLI is available, use CodeGraph first for symbols, call chains, impact scope, and architecture relationships.
  3. If CodeGraph is missing, stale, incomplete, or not relevant, inspect concrete files with fast local search and targeted reads.
  4. Do not initialize CodeGraph unless the user explicitly asks.
  5. Confirm current file contents before editing files that may have changed recently.

Planning Workflow

  1. Define the objective, non-goals, and success criteria.
  2. Map relevant files, modules, commands, entry points, and data flows.
  3. Identify risk categories:
    • behavior changes
    • compatibility/API changes
    • data migration or persistence
    • security/privacy
    • performance
    • test coverage
    • deployment/runtime assumptions
  4. Break the work into phases with a verification gate after each meaningful phase.
  5. Mark the first concrete implementation step.
  6. 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-memory first if .agent/ is missing or malformed.
  • Return control to $project-commander after producing the plan.
  • Use $subagent-orchestrator only 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:

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.