getspur/spurcode/plan-task-discipline
Claude Code and agent skill by getspur/spurcode
- community
Checking that the SKILL.md file is still in the repository.
Use when working within a submitted plan — enforces DAG order, dependency awareness, task isolation, and the lifecycle that keeps parallel workers from colliding.
Install
npx vskill@latest install getspur/spurcode/plan-task-disciplineSKILL.md
The same SKILL.md was published earlier as getspur/spurcode/plan-task-discipline.
Plan Task Discipline
Overview
A plan is a DAG of tasks backed by beads issues. Violating DAG order causes parallel workers to collide. Modifying files outside your task poisons other workers' context. Ignoring dependency status wastes compute on tasks that cannot complete.
Core principle: Stay in your lane. Respect the DAG. Update beads at boundaries.
Plan Task Lifecycle
Status Semantics
| Status | Meaning | Who controls | |
|---|---|---|---|
Pending | Task exists but not yet dispatched | Orchestrator (deps not satisfied) | |
Dispatched | Delegation request sent to orchestrator | Orchestrator | |
InProgress | Worker active in worktree | Orchestrator / worker | |
Completed | Worker finished, awaiting review | Worker / orchestrator | |
Approved | Brain approved, task done | Brain | |
Rejected | Brain rejected, task reverted | Brain |
Critical: The orchestrator advances Pending → Dispatched → InProgress → Completed. The brain advances Completed → Approved/Rejected.
For Brain Agents: Dispatch Rules
Before Dispatching a Plan Task
- Verify all
depends_ontasks areApproved. - If a dependency is
Rejected, do NOT dispatch downstream tasks. Re-plan first. - Verify the task's beads issue has
spur:plan-id:<id>andspur:plan-task-id:<task_id>.
During Plan Execution
- Poll
get_plan_statusOR listen forPlanCompleted/PlanReadyToMergeevents (when INV-7 is fixed). - Do not manually dispatch plan tasks that the orchestrator should auto-dispatch.
- If a worker signals
scope_drift, STOP the plan. Re-evaluate the DAG. The original task decomposition may be invalid.
For Worker Agents: Task Boundaries
Before Starting
- Confirm your task status is
DispatchedorInProgress. - If status is
Pending, do NOT start. The orchestrator will dispatch when ready. - Check
depends_onissues. If any are notApproved, signalblockedand stop. - Check for
spur:superseded-by:<child-id>label. If present, this task is cancelled. Stop.
During Work
- Modify ONLY files within your task scope.
- If you need to touch a file assigned to another task, signal
scope_driftimmediately. - Do NOT refactor "while you're here" in unrelated modules.
- Do NOT change interfaces that other plan tasks depend on without explicit brain approval.
After Completing
- Ensure your work is committed in the worktree.
- Do NOT merge to main or close the issue. The brain reviews and the orchestrator records.
- If the orchestrator hasn't marked the task
Completed, verify your output was captured.
Dependency Rewriting
When a plan is submitted, depends_on references are rewritten from task IDs to beads issue IDs via build_epic_subgraph.
Brain responsibility: Use task IDs in the plan spec. The system maps them. Worker responsibility: Verify dependencies by beads issue ID, not task ID.
Parallel Execution Safety
| Hazard | Prevention | |
|---|---|---|
| Two workers edit same file | Each worker's scope is defined by their task. Signal scope_drift if collision unavoidable. | |
| Worker B depends on Worker A's output | Enforced by DAG. Orchestrator dispatches B only after A is Approved. | |
| Worker changes interface Worker C uses | Forbidden without brain approval. Signal risk if discovered. | |
| Brain dispatches task before deps ready | Brain should verify, but orchestrator also enforces. |
Terminal Plan States
A plan reaches terminal state when:
- All tasks are
Approved→ success, emitPlanReadyToMerge - Any task is
Rejectedandmax_review_retriesexhausted → failure - All reachable tasks are terminal and unreachable tasks remain
Pending→ partial success
Brain action on terminal state:
- Review all
Approvedtasks. - Merge approved work.
- Explicitly close beads epic with
update_issue(status: "closed"). - Re-plan rejected tasks as new epics if needed.
Red Flags — STOP
- Worker starts before status is
Dispatched→ STOP. Wait for orchestrator. - About to modify a file in another task's scope → STOP. Signal scope_drift.
- Dependency is not
Approvedbut you're starting anyway → STOP. Signal blocked. - Task has
spur:superseded-bylabel but you're working on it → STOP. Task is cancelled. - Plan has circular dependencies → STOP. Re-plan before submission.
Cross-References
- spur-way — beads-first invariant
- beads-lifecycle — Issue status semantics and transitions
- worker-signals — How to communicate blockers and scope drift
- brain-delegation — Dispatch decisions and delegation_plan structure
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingcrates/spur-cli/assets/skills/plan-task-discipline/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/getspur/spurcode/plan-task-discipline)