agentleFS
aneja5aneja5/forge-skills/skills/planning-and-task-breakdown/SKILL.md

planning-and-task-breakdown

Skill3 starsChanged 7 months agoMITView on GitHub

Use when .forge/prd.md and .forge/architecture.md exist and the work needs to be decomposed before implementation, when sizing tasks for a sprint, when mapping dependencies between modules, or when a critical path needs to be identified before parallel work begins.

47 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use constraint-driven-development, deprecation-and-migration and 9 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.
  • vinvcnSkill

    constraint-driven-development

    把一个项目的质量线确立为书面契约,并阻止 agent 悄悄降低它。通过访谈确定用户在意哪些维度,当用户心里没有数字时提供合理的默认阈值,把一切记录进 CONSTRAINTS.md,并盯住 diff 中质量线被削弱的迹象——新增的 @ts-ignore 或 eslint-disable 抑制注释、被跳过或删除的测试、被剥掉的断言、未实现的 stub、被调低的阈值。当没有任何质量线被写下来时使用;当用户说 "set up constraints" 或 "define our standards" 时;当用户希望把他们在意的维度——无障碍性、Web 性能、覆盖率——设置成被强制执行的约束时;当 agent 为了变绿不断静默检查或跳过测试时;当你需要一个覆盖率或性能阈值却不知道该选什么数字时;或者当 agent 写下的代码超出任何人会读的体量时。

    Also in 4 projects that use this

  • az9713Skill

    deprecation-and-migration

    Manages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when deciding whether to maintain or sunset existing code.

    Also in 19 projects that use this

  • galandoSkill

    source-driven-development

    Version-aware, source-driven development — fetch official docs before writing framework code

    Also in 19 projects that use this

  • az9713Skill

    code-simplification

    Simplifies code for clarity. Use when refactoring code for clarity without changing behavior. Use when code works but is harder to read, maintain, or extend than it should be. Use when reviewing code that has accumulated unnecessary complexity.

    Also in 23 projects that use this

  • borhen68Skill

    observability-and-instrumentation

    Instruments code so production behavior is visible and diagnosable. Use when adding logging, metrics, tracing, or alerting. Use when shipping any feature that runs in production and you need evidence it works. Use when production issues are reported but you can't tell what happened from the available data.

    Also in 8 projects that use this

  • mycelium-hqSkill

    doubt-driven-development

    Use when correctness matters more than speed: about to commit non-trivial code, make an architectural call under uncertainty, work in unfamiliar code, or assert what the compiler cannot check (''this is safe'', ''thread-safe'', ''this scales'', ''matches the spec''). Strongest on high-stakes surfaces (production deploys, security-sensitive logic, data migrations, irreversible operations) and when the user asks to sanity-check, red-team, double-check, or get a second opinion on a decision.

    Also in 12 projects that use this

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 5 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 45 edited versions we read keep these.

  • 5

    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. Very specific:

    Read .forge/prd.md, .forge/architecture.md, and .forge/contracts/ to produce .forge/tasks.yaml — a sized, dependency-ordered list of tasks …

    line 10
  2. Distinctive:

    No acceptance criteria per task (untestable)

    line 37
  3. Distinctive:

    No dependency graph (implementation order unknown)

    line 38
  4. Distinctive:

    All tasks marked "no dependencies" (integration is being deferred)

    line 41
  5. Very specific:

    Read .forge/prd.md for requirements.

    line 47
  6. Distinctive:

    Prefer many thin tasks over few thick ones

    line 56
  7. Distinctive:

    Before declaring done, emit one of:

    line 171

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

Planning and Task Breakdown

Overview

Read .forge/prd.md, .forge/architecture.md, and .forge/contracts/ to produce .forge/tasks.yaml — a sized, dependency-ordered list of tasks where each task is a thin vertical slice through all layers. Output feeds incremental-implementation.

When to Use

  • .forge/prd.md and .forge/architecture.md both exist
  • Ready to break work into implementable tasks before coding starts
  • Need to identify dependencies and parallelize work

When NOT to Use

  • Architecture doesn't exist yet — run architecture-and-contracts first
  • PRD is not complete — gaps produce tasks with unknown scope
  • Single-module change with no integration — implement directly with tdd

Common Rationalizations

ThoughtReality
"I can keep the task list in my head"Tasks in your head have no acceptance criteria
"We'll figure out dependencies as we go"Undiscovered dependencies stall work mid-implementation
"All tasks are the same size"They never are — sizing forces honest scope assessment
"Vertical slicing is overkill here"Horizontal slicing (all API, then all UI) delays feedback until integration
"Tasks can reference file paths"File paths rot — describe behaviors and module names

Red Flags

  • Tasks that touch more than 3 modules (not a vertical slice — split it)
  • No acceptance criteria per task (untestable)
  • No dependency graph (implementation order unknown)
  • Task descriptions name files/functions instead of behaviors
  • XL tasks with no breakdown path (too much unknown — spike first)
  • All tasks marked "no dependencies" (integration is being deferred)

Core Process

Step 1: Read the artifacts

Read .forge/prd.md for requirements. Read .forge/architecture.md for components. Read all files in .forge/contracts/ for module interfaces.

Step 2: Identify vertical slices

Each task must be a tracer bullet: a thin but complete path through ALL layers. Not "implement the API" — that's horizontal. Instead: "user can submit a form and see a success message" — that's a vertical slice cutting through UI, API, and storage.

Rules:

  • Completed task is demoable or verifiable on its own
  • Each slice covers one user story or one acceptance criterion
  • Prefer many thin tasks over few thick ones
  • Tasks must reference contract names, not file paths

Step 3: Size each task

SizeLOC estimateDescription
XS< 20Config change, single function, text update
S20–100Single module change with tests
M100–300One vertical slice through 2-3 modules
L300–600Multi-slice with integration wiring
XL600+Too large — decompose or spike first

Step 4: Map dependencies

For each task, list which other tasks must complete first. Build the dependency graph. Identify the critical path and which tasks can run in parallel.

Step 4b: Tag tasks with shaping skills (optional but recommended)

For each task, decide which other forge-skills shape the implementation and add a skills: field. This is read by incremental-implementation before the first test is written, loading the relevant constraints into context at the moment they're needed.

Common patterns:

  • UI work touching components → include design-system, accessibility
  • Interaction shape decisions (modal vs sheet, expand vs nav) → include interaction-patterns
  • New REST endpoints → include api-design
  • Migrations or schema changes → include database-design
  • Tasks producing observability or alerts → include observability
  • Tasks with non-trivial error paths → include error-handling-and-resilience

Omit the field if the task is pure plumbing with no domain-shaping skill applicable. Leaving it blank is fine — incremental-implementation treats skills: as optional and backward compatible.

Step 5: Quiz the user

Present the breakdown. For each task: title, size, dependencies, acceptance criteria. Ask: granularity right? Dependencies correct? Any tasks to merge or split?

Iterate until approved.

Step 6: Write .forge/tasks.yaml

Prepend a forge:meta header (generated_by: planning-and-task-breakdown, generated_at: <ISO 8601 UTC with Z>, depends_on: [.forge/prd.md, .forge/architecture.md, .forge/contracts/*] — paths only, never hashes, generated_from: {.forge/prd.md: <hash>, .forge/architecture.md: <hash>, .forge/contracts/<each-resolved>.md: <hash>} — each upstream's content_hash AT generation time, content_hash: <sha256 first 8 over THIS file's body, excluding the forge:meta block>) — comment-style for YAML (# forge:meta ...).

Co-output rule: tasks.yaml and tasks-summary.md are co-generated in this single skill run. Both files MUST carry the same depends_on AND same generated_from set ([.forge/prd.md, .forge/architecture.md, .forge/contracts/*]). Do NOT write tasks-summary.md with depends_on: [.forge/tasks.yaml] — that creates a silent staleness bug where a PRD edit flips tasks.yaml stale but leaves tasks-summary.md UP_TO_DATE. See forge-dependency-graph: co-output rule.

# forge:meta
#   generated_by: planning-and-task-breakdown
#   generated_at: 2026-05-13T12:00:00Z
#   depends_on: [.forge/prd.md, .forge/architecture.md, .forge/contracts/*]
#   generated_from:
#     .forge/prd.md: <prd.md's content_hash at this moment>
#     .forge/architecture.md: <architecture.md's content_hash at this moment>
#     .forge/contracts/auth-service.md: <hash>   # one entry per resolved glob match
#   content_hash: <first 8 chars of sha256 over THIS file's body>

tasks:
  - id: T001
    title: "User can submit registration form"
    size: M
    phase: 1
    depends_on: []
    contracts: [UserService, SessionService]
    skills: [api-design, design-system, accessibility]   # optional — read by /build before first test
    acceptance_criteria:
      - Given valid email+password, form submission creates a user and redirects to dashboard
      - Given duplicate email, submission returns inline validation error
      - Given network failure, form shows retry option without data loss
    verification:
      - Unit tests for UserService.create() covering success and duplicate cases
      - Integration test: POST /register with valid payload returns 201 + session cookie
      - E2E: form submission with valid data lands on dashboard
    files_likely_affected:
      - UserService (new)
      - registration route handler (new)
      - registration form component (new)
    status: pending          # pending | in_progress | done | split | blocked
    started_at: null
    completed_at: null
    commit: null
    notes: []

  - id: T002
    title: "..."
    depends_on: [T001]
    status: pending
    ...

Step 7: Write .forge/tasks-summary.md

Produce a human-readable summary alongside the YAML. Prepend its own forge:meta header with the same depends_on set as tasks.yaml ([.forge/prd.md, .forge/architecture.md, .forge/contracts/*]) — see the co-output rule above. Use <!-- forge:meta ... --> (Markdown, not YAML comment form).

Contents:

  • Day-by-day ship view: which tasks ship on which days (estimated)
  • Critical path: the longest dependency chain — this sets the minimum timeline
  • Risk days: days with the highest-complexity tasks or most integration points
  • Parallel work opportunities: tasks that can run simultaneously with different engineers
  • Buffer recommendations: where to add slack based on task size and uncertainty

Verification

  • .forge/tasks-summary.md written with ship view and critical path
  • All user stories from PRD covered by at least one task
  • No task touches more than 3 modules
  • Every task has at least 2 acceptance criteria
  • Every task has a verification step (what proves it's done)
  • Every task has lifecycle fields initialized: status: pending, started_at: null, completed_at: null, commit: null, notes: []
  • UI tasks tagged with design-system + accessibility; endpoint tasks tagged with api-design; schema tasks tagged with database-design
  • Dependency graph has no cycles
  • No XL tasks without a spike or decomposition plan
  • Task descriptions use module/contract names, not file paths
  • .forge/tasks.yaml written and parseable
  • User approved the breakdown before writing the file

Fit-Check

Before declaring done, emit one of:

  • A short list of specific fit issues observed (e.g., "Plan produced 4 tasks for what is genuinely a 2-hour single-file change — task overhead exceeds the work; recommend incremental-implementation directly" / "skills: tags don't apply — this is a backend-only project with no design-system or accessibility concerns").
  • The explicit line: "No fit issues observed for this use case."

Silence is not allowed. See docs/skill-anatomy.md#fit-check.

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.