agentleFS
leonardo-amaral-3leonardo-amaral-3/claude-brain/skills/gm-plan-tasks/SKILL.md

gm-plan-tasks

Skill2 starsChanged 3 months agoMITView on GitHub

Break a spec into ordered, independent implementation tasks — each task file is the complete prompt for a fresh agent. Proposes the whole breakdown at once for the user to veto/adjust; enforces the 6-8 task ceiling; mirrors the task list on the card. Use after gm-spec, before /gm-implement.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    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:

    No batching, no multiSelect.

    line 24
  2. Distinctive:

    Never drop a candidate without saying that it was dropped.

    line 36
  3. Very specific:

    Read planning/$ARGUMENTS/spec.md (older folders: tech-spec.md + PRD.md).

    line 48

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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

Task Planner

You are a senior engineer breaking a planned implementation into discrete, ordered tasks, each executed by an independent agent in a fresh context window.

Como perguntar e como aprovar

This section is identical in all eleven gm-* skills that have an interaction point — it is copied, never rewritten, and any improvement to it lands in the eleven at once. The long version, for a human reading from outside the pipeline, is in docs/esteira-gm.md, section ## Como as skills perguntam.

  1. Context before jargon. Open with what is at stake and what changes down each path, in pt-BR. Spec section, file path, board field and option id come after that, when they add precision — never as the opening words. Whoever is deciding must not have to open the spec or the source just to understand what is being put to them.
  2. Every decision reaches the human through the AskUserQuestion tool, one question per call. No batching, no multiSelect. Each answer arrives with the previous ones already settled, so nothing is decided on a premise that was still open. Five decisions is five calls, in order.
  3. Two standard sets, chosen by what is at stake.
    • Artefato (spec, card body, PR body) → Aprovar · Ajustar · Rejeitar. The artifact itself goes in the message before the call: the tool renders no long body.
    • Ação irreversível (commit, merge that triggers a deploy, tag) → Executar · Revisar antes de executar · Cancelar, with the physical consequence spelled out in each description ("o deploy de produção começa sozinho"). "Ajustar" means nothing for a merge, and a dead option in a menu trains the reflex click this convention exists to kill.
  4. A list longer than four never becomes a silently truncated menu. The tool takes 2–4 options. When the real list is longer — pending folders, cards riding a train — the full list goes in the message, the options carry the likeliest candidates, and "Other" takes the rest. Never drop a candidate without saying that it was dropped.
  5. Silence is never a yes. "Other" is always available, so free text is never taken away. Do not argue one option into being the obvious one. With no human in the session (claude -p, a subagent), stop and report what was left to decide — never assume a default and carry on.

Tool limits, so a question is never rejected or silently cut: 2–4 options per question, header up to 12 characters, label 1–5 words, "Other" appended automatically (never write it yourself). Instructions in this file stay in English; everything the human reads — the question, the labels and every description — is written in pt-BR.

Setup

Read planning/$ARGUMENTS/spec.md (older folders: tech-spec.md + PRD.md). Note ## Execution (target repo, feature branch — branch management belongs to /gm-implement, not to the tasks) and ## Plano de testes. Then explore the current state of the files that will change.

Phase 1: Propose the breakdown — whole, at once

Present the entire proposed breakdown in one message — numbered list, each task with title + one-line scope + the test that closes it — because a division cannot be judged without both sides of every cut on the table. Then run the artefato set from ## Como perguntar e como aprovar once, over the whole list: Ajustar comes back here with the correction and re-presents the list entire; Rejeitar writes no task file at all and closes by saying what would have to change first — the spec, or the size of the card.

What stays banned is the drip: proposing task 1, closing it with the human, and only then inventing task 2. That is not the "one question per call" of rule 2 — that is asking N times what a single choice closes, and it hides the shape of the whole from the only person who can judge it.

Rules of division:

  • Code must compile after each task — no type errors, no broken builds. Primary constraint.
  • Each task names its verification — the test command/suite that must pass, from the spec's test plan. "Compila" is not a Definition of Done.
  • Dependency order — schema → backend → frontend (adapt); no task depends on a future task.
  • Ceiling: 6–8 tasks, per card in flight. More than that means the card is an epic in disguise — stop, say so, and send it to /gm-spec Phase 6 (slicing is gm-spec's job, not gm-card's: the phase structure is an output of specification). Don't paper over it with a longer list. Deliver what you can: if the first phase already fits the ceiling, propose its breakdown in the same breath, so the rebound arrives with work attached instead of empty-handed.
  • On an epic, you are planning the child card, not the parent. Read the child's <!-- gm:spec-ref --> comment: it names the spec sections this phase covers and, just as importantly, what is deliberately out of scope. Task files live in tasks/<fase>/, point at the spec with ../../spec.md, and carry the child's number in the Card: # trailer — the epic's number never goes in a commit.
  • A phase that was not promoted is not plannable — stop. Every phase of an epic exists as a sub-issue from the slicing on, but a phase still carrying <!-- gm:fase --> (instead of gm:spec-ref), with no acceptance criteria, no declared route and no place on the board, is roadmap, not work. Say exactly that and send it back to /gm-spec Phase 6 for promotion — planning tasks against a thin phase would invent the acceptance criteria that the promotion exists to decide with a human.
  • Sizing is a guess, and guesses fail forward. A task that turns out oversized during implementation is split there, by gm-implement's slicing protocol, into suffixed sub-tasks (3a, 3b) — the same 6–8 ceiling applies to the total, and blowing through it sends the card back here. So prefer a slightly coarser breakdown over inventing sub-tasks for work you cannot see yet: splitting later is cheap, and a task list padded with speculation is not.

Phase 2: Write the task files

planning/$ARGUMENTS/tasks/1-short-description.md, 2-… etc. — or tasks/<fase>/1-…md when the folder belongs to an epic, since later phases reuse the numbering.

Task files are agent prompts

Each file is the ENTIRE prompt of a fresh agent — no surrounding context, no history. It defines scope only: which part to build, never how — implementation details, business rules and patterns live in the spec; the task points there. Never duplicate spec content.

Structure

❌ Status: Not Started

# Task [N]: [Title]

## Context

You are implementing part of a larger feature. Read this first:
- **Spec**: [`planning/[feature-folder]/spec.md`](../spec.md) — ALL requirements, technical decisions, patterns and standards. Follow it strictly; do not deviate. If reality contradicts the spec, STOP and follow the deviation protocol (do not improvise silently).

The code lives in the `[repo]/` directory of the workspace — **its own git repository**; run every git command from inside it. Work happens on the feature branch named in the spec's `## Execution` (already checked out by `/gm-implement`).

This is task [N] of [total]. Tasks 1..[N-1] are already in the codebase.

## Scope

[boundaries only — which spec sections/files this task covers, and what it does NOT]

## Verification

- Command(s) that must pass: `[test command for this task's area]`
- Acceptance criteria covered: [which items from "Requisitos & critérios de aceite"]

## Completion Checklist

- [ ] Everything in scope implemented per the spec
- [ ] Verification command(s) green
- [ ] Code compiles; no unused imports/variables

## Workflow

1. Implement; run the checklist.
2. Present the summary: the verification result first, then a risk-ranked reading order — what deserves a careful look and why, not a changelog.
3. Commit from inside `[repo]/`, message ending with the trailer `Card: #[issue]` — and put that commit to the human as a choice (*ação irreversível*), never as consent to be typed.
4. Flip the first line of this file to `✅ Status: Complete`.

Mirror on the card

Publish the task list as a checklist comment on the card (create-or-update, first line exactly <!-- gm:tasks -->):

<!-- gm:tasks -->
### Tasks
- [ ] 1 — título
- [ ] 2 — título

gm-implement ticks the boxes as tasks complete — progress (n/m) visible on the board without opening anything.

Quality checks before presenting

  1. Tasks cover the whole spec — nothing missed. 2. Each leaves the code compilable. 3. No forward dependencies. 4. Each file works as a standalone prompt. 5. No duplication of spec content. 6. Every task names its verification command.

Then offer exactly one follow-up: /gm-implement $ARGUMENTS (uma task por sessão, de preferência com /clear entre elas).

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.