agentleFS
iromeoiromeo/.claude/skills/plan/SKILL.md

plan

Skill0 starsChanged 9 months agoMITView on GitHub

Task planning and PRD generation. Auto-invoke when the user describes a new task, feature request, bug to fix (multi-file), refactoring need, or says "plan", "let's build", "I need", "implement", "create a PRD". Do NOT invoke for simple questions, conversations, or single-line fixes.

179 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use heartmula, minecraft-modpack-server and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • braxtonROSE4Skill

    heartmula

    Set up and run HeartMuLa, the open-source music generation model family (Suno-like). Generates full songs from lyrics + tags with multilingual support.

    Also in 8 projects that use this

  • braxtonROSE4Skill

    minecraft-modpack-server

    Set up a modded Minecraft server from a CurseForge/Modrinth server pack zip. Covers NeoForge/Forge install, Java version, JVM tuning, firewall, LAN config, backups, and launch scripts.

    Also in 4 projects that use this

  • kevinnftSkill

    touchdesigner-mcp

    Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.

    Also in 6 projects that use this

  • diego-tobalinaSkill

    build-fix

    Fix build and compilation errors systematically. Run when build fails.

    Also in 7 projects that use this

  • kevinnftSkill

    debugging-hermes-tui-commands

    Debug Hermes TUI slash commands: Python, gateway, Ink UI.

    Also in 3 projects that use this

  • sahinSkill

    execute

    Also in 18 projects that use this

  • +5 more from braxtonROSE4
  • +1 more from kevinnft

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 3 are distinctive, and 6 are very specific to this project.

  • 0

    Common

    Most of the 158 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    PRD+Sprint: All 6 questions (full framework in ~/.claude/skills/plan/correctness-discovery.md) c.

    line 25
  2. Distinctive:

    Must score 11+ out of 14 to proceed.

    line 36
  3. Very specific:

    After writing spec.md, extract each sprint into its own file.

    line 41
  4. Very specific:

    Create sprints/NN-title.md using the sprint spec template (~/.claude/skills/plan/sprint-spec-template.md)

    line 45
  5. Very specific:

    Validate no file conflicts: if two sprints in the same batch both list a file under files_to_modify or files_to_create, they CANNOT be …

    line 52
  6. Distinctive:

    If validation fails: restructure batches to make conflicting sprints sequential

    line 82
  7. Very specific:

    After extracting sprint specs, identify every concept that is defined in one bounded context and consumed by others.

    line 86
  8. Distinctive:

    Dependency direction: If A depends on B, B owns the contract.

    line 102
  9. Very specific:

    After all artifacts are written (spec.md, sprint specs, progress.json, INVARIANTS.md), tag the current state as a Build Candidate — a …

    line 109

“Common” is measured: kept by at least 6 in 10 of the 158 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

Plan: Task Classification and PRD Generation

Steps

  1. Classify mode based on scope:
    • Quick Fix: Single-file, < 30 lines, no architectural impact → skip this skill, fix directly (no PRD needed)
    • Standard: Multi-file, clear scope, moderate complexity → Minimal PRD
    • PRD + Sprint: Large feature, multi-component, >1h of work → Full PRD
  2. If Quick Fix: Tell the user this doesn't need a PRD — they can fix directly or use /plan-build-test. Done.
  3. If Standard or PRD+Sprint: a. Run Contract-First Pattern: mirror your understanding back to user, get confirmation before proceeding b. Run Correctness Discovery (scaled by mode — see CLAUDE.md):
    • Standard: Audience + Verification (2 questions)
    • PRD+Sprint: All 6 questions (full framework in ~/.claude/skills/plan/correctness-discovery.md) c. If project has a Context Routing Table in its CLAUDE.md → follow it. Otherwise → search for relevant docs manually d. Create PRD directory at docs/tasks/<area>/<category>/YYYY-MM-DD_HHmm-name/ (create if needed) e. Write PRD as spec.md inside that directory (not as a standalone .md file) f. Fill "Context Loaded" section with what you learned from docs g. Write PRD using appropriate template (read from ~/.claude/skills/plan/prd-template-minimal.md for Standard, ~/.claude/skills/plan/prd-template-full.md for PRD+Sprint) h. Run Spec Self-Evaluator — spawn a separate haiku agent (different context = different perspective) to evaluate the spec:

      Read ~/.claude/docs/evaluation-reference.md for the 14-point Spec Self-Evaluator checklist. Then read the PRD at [spec.md path]. Score each of the 14 criteria as PASS or FAIL with a brief reason. Return: total score, list of failures, and specific suggestions to fix each failure. Must score 11+ out of 14 to proceed. If below 11: revise the PRD to address the failures, then re-evaluate. Using a separate agent prevents the author from grading their own homework.

  4. If PRD+Sprint — Extract Sprint Specs (MANDATORY):

    After writing spec.md, extract each sprint into its own file. This is the critical step that enables context isolation.

    a. Create sprints/ subdirectory inside the PRD directory b. For each sprint in the Sprint Decomposition:

    • Create sprints/NN-title.md using the sprint spec template (~/.claude/skills/plan/sprint-spec-template.md)
    • Copy the sprint's objective, tasks, acceptance criteria, verification into the spec file
    • Determine file boundaries by analyzing the tasks:
      • files_to_create: new files this sprint builds
      • files_to_modify: existing files this sprint can touch
      • files_read_only: files to reference but NOT modify
      • shared_contracts: interfaces/types from the PRD's Shared Contracts section
    • Validate no file conflicts: if two sprints in the same batch both list a file under files_to_modify or files_to_create, they CANNOT be parallel — move one to a later batch
    • Include relevant context from the PRD (design details, API specs) but NOT the entire PRD c. Create progress.json with initial state:
    {
      "prd": "spec.md",
      "created": "[ISO timestamp]",
      "sprints": [
        {
          "id": 1,
          "file": "sprints/01-title.md",
          "title": "[Sprint title]",
          "status": "not_started",
          "depends_on": [],
          "batch": 1,
          "model": "sonnet",
          "branch": null,
          "merged": false
        }
      ]
    }

    d. Validate sprint count: maximum 5 sprints. If >5, the scope is too large — split into separate PRDs by independent deliverable (test: "could these be built by teams who never talk?"). If they share files, keep together and reduce scope.

  5. Sprint file boundary validation rules:
    • A file MUST NOT appear in files_to_create or files_to_modify in two sprints of the same batch
    • A file in files_to_create in Sprint N can appear in files_to_modify in Sprint N+1 (sequential dependency)
    • files_read_only can overlap freely — reading is safe
    • If validation fails: restructure batches to make conflicting sprints sequential
  6. If PRD+Sprint — Create INVARIANTS.md (MANDATORY):

    After extracting sprint specs, identify every concept that is defined in one bounded context and consumed by others. Create INVARIANTS.md in the PRD directory with machine-verifiable contracts for each cross-cutting concept.

    For each shared concept, define:

    • Owner: Which bounded context defines this concept
    • Preconditions: What consumers must satisfy (caller's obligation)
    • Postconditions: What the owner guarantees (provider's guarantee)
    • Invariants: What must always hold across all contexts
    • Verify: Shell command that exits 0 if invariant holds
    • Fix: How to resolve if violated

    Common concepts to register: permission string formats, entity status vocabularies, error code families, event type definitions, routing identifiers, API contract shapes, shared type definitions.

    Dependency direction: If A depends on B, B owns the contract. This prevents consumers from independently inventing expectations about provider behavior.

    Copy the project-level INVARIANTS.md to the project root if one doesn't exist yet.

  7. Tag Build Candidate:

    After all artifacts are written (spec.md, sprint specs, progress.json, INVARIANTS.md), tag the current state as a Build Candidate — a formal gate declaring "this specification is complete enough to build from."

    git add docs/tasks/<area>/<category>/<prd-dir>/
    git commit -m "docs: Build Candidate for <prd-name>"
    git tag "build-candidate/<prd-name>"

    This is analogous to a release candidate, but for the design phase. The tag is the contract: "everything needed to build is specified. Implementation can begin."

  8. Tell the user: "PRD saved at [directory-path]/. Sprint specs extracted to sprints/. INVARIANTS.md created. Build Candidate tagged. Run /plan-build-test to execute, or review and adjust first."
  9. Do NOT execute. This skill produces the plan only.

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.