Format and rules for the task index docs/tasks.md and one spec per task in docs/tasks/T-NN.md. Each spec states the exact technical work for one owner. Used by the architect only.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Task Breakdown?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/sayeed1999-task-breakdown)
---
name: task-breakdown
description: Format and rules for the task index docs/tasks.md and one spec per task in docs/tasks/T-NN.md. Each spec states the exact technical work for one owner. Used by the architect only.
---
# task-breakdown
Output: `docs/tasks.md` (index and status) and `docs/tasks/T-NN.md` (one spec per task). Used by the architect.
## Files
```
docs/
tasks.md # index: one line per task, the only place for Status
tasks/ # create if missing
T-01.md # one spec per task, never holds Status
T-02.md
```
## Steps
### 1. List the approved requirements
- Only status `APPROVED`. Skip `[DEPRECATED]`.
- Skip R-IDs already covered by a task, unless the requirement changed.
### 2. Create tasks in this order
T-IDs follow this order. The orchestrator runs the lowest ready T-ID, so the order is the run order.
- 1. Database (storage level 4 only): `Foundation + schema and seed`. Owner `database-engineer`. Depends on `-`.
- 2. Backend: `Foundation + core`. Depends on the database foundation task, or `-` without one.
- 3. AI (only if `contracts/ai.md` exists): `Foundation + AI client`. Depends on the backend foundation task.
- 4. Frontend, one per root (`web`, `mobile`): `Foundation + <root>`. Depends on `-`.
- 5. Compose (every target): `Compose`. Owner `devops-engineer`. Depends on every foundation task.
- 6. Feature tasks: backend, AI, and frontend, grouped by R-ID.
- 7. Deploy (target `mvp` or `production`): `Deploy`. Owner `devops-engineer`. Depends on every other task.
### 3. Split feature work by owner
- New tables or columns: one database-engineer task. Every backend or AI task that reads them depends on it.
- Feature with UI and API: one backend task and one frontend task. Neither depends on the other. Both follow the contract.
- AI feature: one ai-engineer task for tools, retriever, prompts, and the exported callable. It depends on the backend foundation task.
- Backend endpoint that calls AI: one backend-engineer task. It depends on the ai-engineer task that exports the callable.
- Requirement with no API: frontend task only. Requirement with no UI: backend task only.
- Web and mobile are separate frontend tasks.
### 4. Size every task
- One owner, one session.
- Backend: one feature folder, at most 5 endpoints.
- Frontend: one route group, at most 3 screens.
- Database: at most 5 tables.
- At most 12 Acceptance lines. Split the task if there are more.
### 5. Write each spec
- Use the Spec format below.
- Reference contract entries, tables, and screens by exact name. Do not copy them.
- Write Acceptance as checks a test can run: input, then exact output.
- Resolve every open question before writing the spec. A spec has no open questions.
### 6. Write the index
- One line per task in the Index format. Status `todo`.
### 7. Check coverage
- Every approved requirement is in at least one task.
- Every endpoint in `contracts/api.md` is in exactly one backend task.
- Every tool in `contracts/ai.md` is in exactly one ai-engineer task.
- Every screen in `design/` is in exactly one frontend task.
- Every entity in `docs/architecture.md` section 5 is in exactly one database-engineer task.
## Format: index `docs/tasks.md`
```
# Tasks
- T-01 Foundation + schema and seed | database-engineer | Depends on: - | todo
- T-02 Foundation + core | backend-engineer | Depends on: T-01 | todo
- T-03 Foundation + web | frontend-engineer | Depends on: - | todo
- T-04 Compose | devops-engineer | Depends on: T-01, T-02, T-03 | todo
- T-05 Products API | backend-engineer | Depends on: T-02 | todo
- T-06 Products screens (web) | frontend-engineer | Depends on: T-03 | todo
- T-07 Deploy | devops-engineer | Depends on: T-01, T-02, T-03, T-04, T-05, T-06 | todo
```
## Format: spec `docs/tasks/T-NN.md`
```
# T-05 Products API
- Owner: backend-engineer
- R-IDs: R-01
- Depends on: T-02
- Stage: MVP
## Goal
Owners can list, add, rename, reprice, and delete products through the API.
## Read
- contracts/api.md: GET /v1/products, POST /v1/products, PATCH /v1/products/{id}, DELETE /v1/products/{id}
- docs/schema.md: products
- docs/architecture.md: section 6 (owner-only writes)
- docs/stories/R-01.md
## Build
- api/products/: router.py, service.py, schemas.py
- Register the router in api/main.py
- Name uniqueness is case-insensitive. Rely on the products_name_lower_key index and map its violation to 409 PRODUCT_NAME_TAKEN.
- Staff role on any write: 403 FORBIDDEN.
## Out of scope
- Stock changes (T-08)
## Acceptance
- POST /v1/products {"name":"Rice 5kg","price_cents":45000} as owner -> 201 with id
- POST /v1/products with an existing name in another case -> 409 PRODUCT_NAME_TAKEN
- POST /v1/products {"price_cents":-1} -> 400 VALIDATION_ERROR
- POST /v1/products as staff -> 403 FORBIDDEN
- Lint and test commands in docs/architecture.md section 4 pass
```
### Spec sections
- Read: the exact contract entries, tables, screens, and sections the owner needs. Nothing else.
- Build: the files or folders to create or change, and every technical rule not already in a contract.
- Out of scope: work a reader may assume belongs here, with the T-ID that owns it.
- Acceptance: runnable checks. The last line is always the lint and test commands (`prototype`: lint only). `prototype`: ask for no test files.
- devops-engineer specs: list the services, ports, env vars, and healthchecks from `docs/architecture.md` section 11 under Read.
- database-engineer specs: list the entities and their R-IDs, the seed mode, and the contract fields each table must serve.
## Status
- Status lives only in `docs/tasks.md`. The spec never holds it.
- `todo`: set by the architect.
- `in-progress`: set by the owner when starting, or when reopening to fix a handoff.
- `blocked`: set by the owner. Add `[H-NNN]` after the title.
- `built`: set by the owner when Acceptance passes.
- `done`: set by qa-tester after the checks for its R-IDs pass.
## MUST
- IDs are `T-` and two digits. Never renumber or reuse.
- Each task has exactly one Owner: database-engineer, backend-engineer, frontend-engineer, ai-engineer, or devops-engineer.
- Append new tasks for later requirements. Add `Update Compose` only when services, ports, or env vars change.
## NEVER
- Reopen a `done` task for a new requirement. Create a new task.
- Write a spec with an open question, "as needed", or "appropriate".
- Assign a task to the architect, product-owner, ui-ux-designer, or qa-tester.
- Put two owners' work in one task.