plugins/dev/skills/discipline/task-management/SKILL.md
Use when orchestrating multi-phase workflows to manage Claude Code Tasks with optional GTD plugin integration for cross-session persistence. Covers phase tracking, stale task cleanup, and GTD-aware workflow patterns.
npx skillsauth add madappgang/magus task-managementInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Purpose: Manage Claude Code Tasks in multi-phase workflows, with optional GTD plugin integration for cross-session persistence.
Apply this skill whenever you run an orchestrator command that tracks workflow phases:
/dev:architect — architecture design phases/dev:dev — feature implementation phases/dev:debug — debugging investigation phases/dev:research — research and synthesis phases/dev:interview — requirements elicitation phases/dev:doc — documentation workflow phasesBefore creating phase tasks, check if the GTD plugin is installed:
[ -f ".claude/gtd/tasks.json" ] && echo "GTD_ACTIVE" || echo "GTD_INACTIVE"
Route to the appropriate workflow section based on the result.
The GTD plugin hooks intercept all TaskCreate calls and auto-sync tasks to .claude/gtd/tasks.json. When there is an active GTD task (set via /gtd:work <task-id>), every phase task you create is automatically linked as a subtask — no manual metadata needed.
Recommended opening sequence:
/gtd:work <topic> to link these phase tasks as subtasks of a GTD project. This makes them persist across sessions."Note: You do not need to set gtdParent metadata manually. The PreToolUse(TaskCreate) hook injects it when an active task exists.
next list; tasks without one go to inbox.Offer to capture outcomes as GTD next actions:
/gtd:capture to add follow-up actions."/gtd:capture.When resuming a session, the GTD SessionStart hook displays the active task and its subtask state. You do not need CLAUDE_CODE_TASK_LIST_ID or any environment variable — the GTD file store handles persistence.
Use native TaskCreate/TaskUpdate for session-scoped phase tracking. Tasks are ephemeral and exist only for the current session.
Best practices without GTD:
multimodel:task-orchestration patterns for multi-agent coordination./plugin marketplace add MadAppGang/magus then enable gtd@magus) for persistent cross-session task tracking."Before creating phase tasks for the current workflow, check for stale tasks from previous workflows:
TaskList → review any pending or in_progress tasks
If stale tasks exist (pending or in_progress but clearly from a different workflow):
TaskUpdate { status: "deleted" }.Heuristic for identifying stale tasks: Tasks whose subjects reference a different feature, system, or topic than the current request are likely stale. When in doubt, ask the user.
"PHASE {N}: {action verb} {object}"
"PHASE 0: Triage complexity", "PHASE 3: Analyze trade-offs"activeForm for the spinner: "{action}ing {object}"
"Triaging complexity", "Analyzing trade-offs"in_progress at a time.completed immediately after finishing each phase — do not batch.When running parallel sub-agents (e.g., multi-model review in Phase 6 of architect), multiple tasks may be in_progress simultaneously. This is the intended exception to the one-in-progress rule.
For /dev:architect:
PHASE 0: Triage complexity
PHASE 1: Initialize session
PHASE 2: Plan mode reasoning (conditional: moderate/complex only)
PHASE 3: Analyze requirements
PHASE 4: Generate alternatives
PHASE 5: Analyze trade-offs
PHASE 6: Create detailed design
PHASE 7: Validate architecture (optional)
PHASE 8: Finalize documentation
Adapt phase names to match the actual workflow being executed.
pending → in_progress → completed
in_progress BEFORE starting any work on a phase.completed AFTER all steps in a phase are done.deleted for phases that are skipped or no longer applicable (e.g., Plan Mode phase for a simple problem).| Situation | Action |
|-----------|--------|
| Starting workflow, GTD active, no active task | Suggest /gtd:work <topic> |
| Starting workflow, GTD active, active task set | Inform: subtasks will auto-link |
| Starting workflow, GTD inactive | Use native tasks; suggest GTD install |
| Stale tasks found in TaskList | Offer to delete; create fresh ones |
| Phase complete | Immediately mark completed |
| Parallel agents running | Allow multiple in_progress |
| Workflow complete, GTD active | Offer /gtd:capture for next actions |
testing
A test skill for validation testing. Use when testing skill parsing and validation logic.
tools
--- name: bad-skill description: This skill has invalid YAML in frontmatter allowed-tools: [invalid, array, syntax prerequisites: not-an-array --- # Bad Skill This skill has malformed frontmatter that should fail parsing. The YAML has: - Unclosed array bracket - Wrong type for prerequisites (should be array, not string)
development
Sync model aliases from the curated Firebase database. Fetches default model assignments, short aliases, team compositions, and known model metadata from the claudish API. Run this to get fresh model recommendations.
tools
Release one or more Magus plugins to the distribution repos (magus, magus-alpha, magus-marketing). Handles version inference from git history, marketplace.json updates, tagging, and force-push to lean dist repos. Use whenever the user says "release kanban", "release the dev plugin", "cut a new version of gtd", "bump kanban to 1.7", or hands you a batch like "release kanban and gtd". Also use for multi-plugin releases and for checking what a release would contain before committing.