agentleFS
howar31howar31/magi-workflow/skills/tasks/SKILL.md

tasks

Skill3 starsChanged 7 months agoMITView on GitHub

Decompose a confirmed PLAN.md or SPEC.md into a TASKS.md milestone+checklist file in the same magi/<num>-<name>/ folder. Coordinator-only — does not write production code. Pauses for user confirmation before allowing /magi:go to start.

25 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use specify, clarify and 5 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.
  • ArvorCoSkill

    specify

    Create feature specification from natural language description. Use when starting a new feature or creating a spec. Triggers on: create spec, specify feature, new feature spec.

    Also in 4 projects that use this

  • ArvorCoSkill

    clarify

    Identify and resolve ambiguities in feature specifications. Use when spec has unclear requirements. Triggers on: clarify spec, resolve ambiguities, clarify requirements.

    Also in 3 projects that use this

  • MicrosoftSkill

    bootstrap

    Alias for the /promptkit skill. Use this when the user wants to assemble a task-specific prompt using PromptKit, or says "bootstrap" to start the PromptKit composition engine.

    Also in 3 projects that use this

  • SentrySkill

    spec

    Produce a verified spec — problem, desired outcome, and acceptance criteria — before building. Use when given a GitHub/Linear issue link, when starting from a fuzzy in-conversation idea, or asked to "figure out what to do" / "scope this" / "what should I build" — whenever the *what* isn't yet pinned down. Grills the ambiguities, checks the premise against the code, and produces acceptance criteria you sign off on — then hands to design-first.

    Also in 4 projects that use this

  • Hugging FaceSkill

    implement

    Make tests pass. Invoke after /write-tests produces failing tests.

    Also in 6 projects that use this

  • Microsoft AzureSkill

    reflect

    Learning capture system that extracts HIGH/MED/LOW confidence patterns from conversations to prevent repeating mistakes. Use after user corrections ("no", "wrong"), praise ("perfect", "exactly"), or when discovering edge cases. Complements .squad/agents/{agent}/history.md and .squad/decisions.md.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

11 rules. 0 are common, 3 are distinctive, and 8 are very specific to this project.

  • 0

    Common

    Most of the 24 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 8

    Very specific

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

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

    If $USER_CONFIG is missing, tell the user to run /magi:setup first.

    line 21
  2. Very specific:

    Run scripts/shared/detect-state.sh and check whether tasks is in the disallowed_skills map.

    line 25
  3. Very specific:

    After preflight passes, also surface any staleness warnings relevant to this skill.

    line 41
  4. Very specific:

    If user passed an argument (/magi:tasks 03-profile-page), use it.

    line 53
  5. Very specific:

    Read the existing PLAN.md or SPEC.md in the chosen folder.

    line 57
  6. Distinctive:

    Never assume framework / tool — read TECHSTACK.md.

    line 99
  7. Distinctive:

    If they want changes, iterate until they confirm.

    line 110
  8. Very specific:

    After confirmation, tell the user the next step in their output_language.

    line 114
  9. Very specific:

    If MAGI_PLAN_REVIEW.md is missing for this sprint → suggest /magi:review-plan (optional, can skip to save tokens) or /magi:go directly if …

    line 118
  10. Very specific:

    If MAGI_PLAN_REVIEW.md exists → suggest /magi:go.

    line 121
  11. Distinctive:

    Do not run anything else automatically.

    line 134

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

/magi:tasks — milestone & task decomposition

You are the coordinator (Opus). Convert a confirmed PLAN.md or SPEC.md into a TASKS.md, then stop and wait for user confirmation. You do not write production code in this skill.

0. Preflight

PLUGIN_ROOT="${CLAUDE_PLUGIN_ROOT:-}"
[[ -z "$PLUGIN_ROOT" ]] && PLUGIN_ROOT="$(cd "$(dirname "$BASH_SOURCE[0]")/../.." 2>/dev/null && pwd)"
USER_CONFIG="$HOME/.config/magi-workflow/config.json"

If $USER_CONFIG is missing, tell the user to run /magi:setup first.

0.5. State preflight (auto-refuse if not allowed)

Run scripts/shared/detect-state.sh and check whether tasks is in the disallowed_skills map. If yes, present the reason + suggested next step in the user's output_language and abort.

STATE_JSON=$(bash "$PLUGIN_ROOT/scripts/shared/detect-state.sh")
blocked=$(jq -r '.disallowed_skills["tasks"] // empty' <<<"$STATE_JSON")
if [[ -n "$blocked" ]]; then
  reason=$(jq -r '.disallowed_skills["tasks"].reason' <<<"$STATE_JSON")
  suggest=$(jq -r '.disallowed_skills["tasks"].suggest' <<<"$STATE_JSON")
  echo "Cannot run /magi:tasks: $reason"
  echo "Suggested: $suggest"
  exit 1
fi

After preflight passes, also surface any staleness warnings relevant to this skill. For /magi:tasks, watch for stale_plan_review (the review ran before the latest PLAN edit). If present, ask the user whether to re-run /magi:review-plan first or proceed anyway. Default proceed if the user just hits Enter.

--force skips the entire preflight (advanced/recovery only).

1. Locate the sprint

Find the target magi/<num>-<slug>/ folder:

  1. If user passed an argument (/magi:tasks 03-profile-page), use it.
  2. Otherwise, list magi/*/ folders sorted by <num> desc and ask the user to pick. Default to the most recent.

Read the existing PLAN.md or SPEC.md in the chosen folder. If neither exists, tell the user to run /magi:plan first.

2. Read context

  • magi/PRD.md, magi/TECHSTACK.md (project-level)
  • CLAUDE.md, AGENTS.md (root)
  • The PLAN/SPEC for the current sprint

3. Decompose

Produce milestones + tasks following this shape (in output_language):

# Tasks — <Feature Name>

> Source: PLAN.md | SPEC.md   •   Sprint: magi/<num>-<slug>/

## Milestone 1: <name>
**Goal:** <one-sentence outcome>
**Acceptance:** <how we know it is done>

- [ ] T1.1 — <atomic task, 1–4 hours of work>
- [ ] T1.2 — ...

## Milestone 2: ...

Decomposition rules

  • A milestone ends in something demonstrable (a feature works, a test passes, a script returns expected output). 1–5 milestones per sprint.
  • A task is one focused change. If it cannot be done in 1–4 hours, split.
  • Tasks are written so a TDD-focused subagent can execute them with the context already in PLAN/SPEC + the task line.
  • For parallelisable work within a milestone, mark a 🔀 lane: - [ ] 🔀 [A] T1.1 — ... and - [ ] 🔀 [B] T1.2 — .... Lanes [A] and [B] must touch disjoint files. /magi:go can later dispatch parallel developers for 🔀 lanes.
  • Each task should imply at least one test that proves it. If the test is E2E or browser-based, note the recipe path (e.g. # E2E: cypress/run.sh user-profile.spec.ts).
  • Never assume framework / tool — read TECHSTACK.md.

4. Write the file

sprint_dir="magi/<num>-<slug>"
echo "<task content>" > "$sprint_dir/TASKS.md"

Show the user the resulting TASKS.md and ask them to confirm.

If they want changes, iterate until they confirm.

5. Hand-off

After confirmation, tell the user the next step in their output_language.

Decision:

  • If MAGI_PLAN_REVIEW.md is missing for this sprint → suggest /magi:review-plan (optional, can skip to save tokens) or /magi:go directly if the user trusts the plan.
  • If MAGI_PLAN_REVIEW.md exists → suggest /magi:go.

Example output:

✅ TASKS.md written to magi/03-profile-page/TASKS.md
3 milestones, 8 tasks. Lane parallelism on T2.1+T2.2.

下一步:
  /magi:go            (派工 magi-developer 實作 — 預設自動偵測可平行的 task)
  /magi:review-plan   (optional — 多模型審 plan,省 token 可跳過)

Do not run anything else automatically.

Conventions

  • File name is uppercase: TASKS.md.
  • Task IDs are stable: T<milestone>.<index>. They survive iteration so WORKS.md can reference them.
  • Once /magi:go has started touching a TASKS.md, do not rewrite it destructively in this skill — tell the user to revert + re-decompose, or edit specific tasks manually.

Argument parsing

  • /magi:tasks — most recent sprint
  • /magi:tasks <num>-<slug> — explicit sprint folder
  • /magi:tasks --milestones N — hint at desired milestone count (the coordinator will try to honour but will not split where it makes no sense)

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.