agentleFS
MaxwellCalkinMaxwellCalkin/Autobot/.claude/skills/task-decomposition/SKILL.md

task-decomposition

Skill0 starsChanged 10 months agoMITView on GitHub

Strategies for breaking large tasks into context-window-sized subtasks

20 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use post-deploy-qa, pre-deploy-qa and 8 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.
  • madeincartelSkill

    post-deploy-qa

    Post-deploy verification: execute AVP from tech-spec on live environment, verify all acceptance criteria (user-spec + tech-spec), pick up deferred criteria from pre-deploy QA report. Uses MCP tools (Telegram MCP, Playwright, curl, bash).

    Also in 3 projects that use this

  • madeincartelSkill

    pre-deploy-qa

    Pre-deploy acceptance testing methodology: run test suite (unit/integration/E2E), verify acceptance criteria from user-spec and tech-spec. Does not require live environment.

    Also in 3 projects that use this

  • MicrosoftSkill

    deploy-pipeline

    Triggers a Power Platform Pipeline deployment run for a Power Pages solution. Selects a target stage, validates the package, optionally configures deployment settings (environment variables, connection references), then deploys and polls for completion. Use when asked to: "deploy pipeline", "run pipeline", "trigger deployment", "deploy to staging", "deploy to production", "run power platform pipeline", "deploy solution via pipeline", "promote solution", "push to staging", "push to production".

    Also in 3 projects that use this

  • nilecuiSkill

    documentation-writing

    Writing clear, discoverable software documentation following the Eight Rules and Diataxis framework. Use when creating README files, API docs, tutorials, how-to guides, or any project documentation. Automatically enforces docs/ location, linking requirements, and runnable examples.

    Also in 3 projects that use this

  • GitHubSkill

    project-planning

    USE FOR: planning and updating work on a GitHub Projects board — reading fields and views, adding issues or pull requests as items, setting status and iteration, and posting a status update. NOT FOR: triaging a repository issue backlog, or preparing a release.

    Also in 3 projects that use this

  • +5 more from madeincartel

The file

Files
SKILL.md

Task Decomposition Patterns

The Context Window Rule

Each subtask must be completable within a single Claude Code context window:

  • Maximum ~100k tokens of reading/exploration
  • Maximum ~50 files modified
  • Aim for 15-60 minutes of focused work

Decomposition Strategies

By Layer (Horizontal)

Split by architectural layer - good for full-stack features:

  1. Data Layer - Database/model changes, migrations
  2. Business Logic - Service layer, domain logic
  3. API Layer - Endpoints, validation, serialization
  4. UI Layer - Components, state management
  5. Integration - End-to-end testing, wiring

By Feature (Vertical)

Split by user-facing capability - good for isolated features:

  1. Core MVP - Minimal working version
  2. Edge Cases - Boundary conditions, error states
  3. Polish - UX improvements, loading states
  4. Documentation - User-facing docs, inline comments

By Risk Level

Split by risk - good for refactoring:

  1. Foundation - Low-risk infrastructure changes
  2. Core Changes - Medium-risk feature code
  3. Integration Points - High-risk connection points
  4. Verification - Testing and cleanup

By Dependency

Order subtasks so each can be completed independently:

  1. Types and interfaces first
  2. Utilities before features
  3. Data models before business logic
  4. Backend before frontend
  5. Unit tests before integration tests

Sizing Heuristics

Too Small (Combine these)

  • Changing a single constant
  • Adding one import
  • Fixing a typo
  • Single-line changes

Just Right

  • Adding a function with tests (small)
  • Creating a component with tests (medium)
  • Implementing an API endpoint (medium)
  • Refactoring a module (medium-large)

Too Large (Break these down)

  • "Implement authentication" - break into providers, session, UI
  • "Add database support" - break into schema, migrations, queries
  • "Create admin panel" - break into CRUD operations

Dependency Ordering

[Types/Interfaces]
       │
       ▼
  [Utilities]
       │
       ▼
  [Data Layer]
       │
       ▼
[Business Logic]
       │
       ▼
   [API Layer]
       │
       ▼
   [UI Layer]
       │
       ▼
 [Integration]

Subtask Template

{
  "id": "st-001",
  "title": "Verb + Object (e.g., 'Add user model')",
  "description": "What to implement and why",
  "files": ["src/models/user.ts", "src/models/user.test.ts"],
  "tests": [
    "User model validates email format",
    "User model hashes password on creation"
  ],
  "acceptance_criteria": [
    "User model defined with id, email, passwordHash fields",
    "Validation rejects invalid email formats",
    "Password is never stored in plain text",
    "Unit tests pass"
  ],
  "dependencies": [],
  "complexity": "small"
}

Red Flags

Watch for these signs a task needs more decomposition:

  • Description says "and" multiple times
  • Files list has more than 10 items
  • Acceptance criteria has more than 5 items
  • Dependencies list is complex
  • You can't explain it in one sentence

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.