agentleFS
chrisduvillardchrisduvillard/codex-engineering-skills/skills/deep-plan/SKILL.md

deep-plan

Skill1 starsChanged 3 months agoMITView on GitHub

Investigate a repository and turn a broad or uncertain engineering request into a risk-ordered, executable plan with self-contained prompts and exact verification. Not for a small, fully specified edit.

9 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 6 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 9 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not implement product code while planning.

    line 13
  2. Distinctive:

    Read repository instructions, architecture, tests, schemas, CI, and neighboring conventions first.

    line 15
  3. Distinctive:

    Do not manufacture phases or cleanup work.

    line 18
  4. Distinctive:

    add characterization or contract tests around the changing boundary.

    line 45
  5. Distinctive:

    verify focused behavior and adjacent regressions.

    line 47
  6. Distinctive:

    update documentation, migration, rollout, and rollback surfaces.

    line 49
  7. Very specific:

    Every implementation prompt includes one observable concern, exact path authority, requirements, revision, examples to imitate, [read-only] …

    line 58
  8. Very specific:

    Use a collision-resistant UTC run ID.

    line 76

“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “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 Plan

Turn uncertain engineering work into a plan a fresh agent can execute without silently expanding scope. Investigate first, order by risk, and preserve one coordinator-owned progress record.

Operating contract

  • Do not implement product code while planning.
  • Source files remain unchanged. Planning may write only the namespaced artifacts below.
  • Read repository instructions, architecture, tests, schemas, CI, and neighboring conventions first.
  • Preserve dirty work. Never stash, reset, clean, stage, or absorb unrelated changes.
  • Separate repository facts, user decisions, assumptions, inferences, and open questions.
  • Do not manufacture phases or cleanup work.

Execution profiles

Choose by consequence and uncertainty, not line count alone.

  • Fast: one low-risk concern with an obvious contract. Return one prompt and verification inline.
  • Standard: several coupled files or one material boundary. Create two to four phases.
  • Deep: authentication, money, migrations, destructive operations, concurrency, public contracts, infrastructure, or interacting systems. Add explicit decisions, characterization, independent verification, and rollback gates.

Escalate a small high-risk change. Do not inflate a large mechanical change.

Investigate and frame

Establish repository root, revision, branch, dirty state, applicable instructions, intended observable outcome, acceptance sources, entry points, affected components and contracts, existing partial solutions, project-native checks, and material ambiguity. Discover repository facts yourself. Ask only for a user decision that can materially change the plan.

Build the risk-ordered plan

Order work as applicable:

  1. baseline and reproduce current behavior;
  2. settle product, compatibility, data, security, and operational decisions;
  3. add characterization or contract tests around the changing boundary;
  4. implement the smallest coherent root-cause slice;
  5. verify focused behavior and adjacent regressions;
  6. independently challenge material-risk work;
  7. update documentation, migration, rollout, and rollback surfaces;
  8. perform optional cleanup last.

Each phase states its goal, ordering reason, preconditions, dependencies, allowed and forbidden paths, self-contained prompts, exact checks and expected results, recovery, user decisions, and stopping conditions.

Prompt contract

Every implementation prompt includes one observable concern, exact path authority, requirements, revision, examples to imitate, [read-only] or [writes code], edge and failure behavior, focused and broader checks, evidence to capture, rollback, zero-caller proof before deletion, and a stop rule when the premise or authority fails. Split by independent reviewability, verification, and reversibility, not a universal line-count limit.

Namespaced artifacts

Standard and Deep plans create:

.agents/runs/deep-plan/<run-id>/
├── PLAN.md
├── progress.jsonl
├── evidence.json
└── prompts/

Use a collision-resistant UTC run ID. Never overwrite a previous run or root-level PLAN.md. Only the coordinator updates PLAN.md and appends canonical progress.jsonl events. Parallel workers return structured events or write agent-specific files; they never append concurrently to one shared file.

A progress event records timestamp, phase, status, bounded summary, exact checks, contradictions, and the next safe action.

Close

End with the recommended first phase, credible failure modes, weakest evidence, excluded adjacent work, user-owned decisions, completion and abort criteria, and the exact artifact path. The plan does not authorize implementation, publication, deployment, destructive actions, or external messages.

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.