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.

55 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use send-user-message, tinyagi-admin and 10 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.
  • Maliot100XSkill

    send-user-message

    Send a proactive message to a paired user via their channel (Discord, Telegram, or WhatsApp). Use when the agent needs to notify, alert, or send an unsolicited message to a user — especially during heartbeat invocations, scheduled tasks, or when the agent wants to reach out without a prior user message in the current conversation. Triggers: 'send message to user', 'notify user', 'alert user', 'message the user on discord/telegram/whatsapp', or any need to proactively communicate with a paired sender.

    Also in 4 projects that use this

  • jlia0Skill

    tinyagi-admin

    Manage and operate the TinyAGI system itself — agents, teams, settings, queue, tasks, daemon lifecycle, and source code. Use when the agent needs to: list/add/remove/update agents or teams, check queue status, view logs, start/stop/restart TinyAGI, change settings (provider, model, channels), send messages to the queue, manage tasks, retry dead-letter messages, view recent responses, modify TinyAGI source code or configuration, or perform any administrative operation on the TinyAGI platform. Triggers: 'manage tinyagi', 'add an agent', 'remove a team', 'check queue', 'view logs', 'restart tinyagi', 'change provider', 'update settings', 'create a task', 'modify tinyagi code'.

    Also in 3 projects that use this

  • ArvorCoSkill

    constitution

    Create or update the project constitution - personalized governance and coding principles. Use when starting a project or updating project standards. Triggers on: create constitution, update principles, set project rules.

    Also in 4 projects that use this

  • 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 7 projects that use this

  • anyprotoSkill

    skills-manager

    Context-aware routing to skills and hooks management. Use when troubleshooting skill activation, fine-tuning keywords, or managing the automated documentation system.

    Also in 3 projects that use this

  • GoogleSkill

    quality

    Evaluates whether a GitHub issue is spam, empty, needs more information, or is OK to proceed.

    Also in 3 projects that use this

  • +1 more from ArvorCo

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 48 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 48 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.