getspur/spurcode/plan-task-discipline

Claude Code and agent skill by getspur/spurcode

Trust tier 3
  • community
Source check pending

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-discipline

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

dot
digraph plan_task_lifecycle {
rankdir=TB;
Pending [shape=box];
Dispatched [shape=box];
InProgress [shape=box];
Completed [shape=box];
Approved [shape=box];
Rejected [shape=box];
Pending -> Dispatched [label="brain dispatches"];
Dispatched -> InProgress [label="worker starts"];
InProgress -> Completed [label="worker finishes"];
Completed -> Approved [label="brain approves"];
Completed -> Rejected [label="brain rejects"];
Rejected -> Dispatched [label="retry"];
}
Status Semantics
StatusMeaningWho controls
PendingTask exists but not yet dispatchedOrchestrator (deps not satisfied)
DispatchedDelegation request sent to orchestratorOrchestrator
InProgressWorker active in worktreeOrchestrator / worker
CompletedWorker finished, awaiting reviewWorker / orchestrator
ApprovedBrain approved, task doneBrain
RejectedBrain rejected, task revertedBrain

Critical: The orchestrator advances Pending → Dispatched → InProgress → Completed. The brain advances Completed → Approved/Rejected.

For Brain Agents: Dispatch Rules

Before Dispatching a Plan Task
  1. Verify all depends_on tasks are Approved.
  2. If a dependency is Rejected, do NOT dispatch downstream tasks. Re-plan first.
  3. Verify the task's beads issue has spur:plan-id:<id> and spur:plan-task-id:<task_id>.
During Plan Execution
  1. Poll get_plan_status OR listen for PlanCompleted / PlanReadyToMerge events (when INV-7 is fixed).
  2. Do not manually dispatch plan tasks that the orchestrator should auto-dispatch.
  3. 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
  1. Confirm your task status is Dispatched or InProgress.
  2. If status is Pending, do NOT start. The orchestrator will dispatch when ready.
  3. Check depends_on issues. If any are not Approved, signal blocked and stop.
  4. Check for spur:superseded-by:<child-id> label. If present, this task is cancelled. Stop.
During Work
  1. Modify ONLY files within your task scope.
  2. If you need to touch a file assigned to another task, signal scope_drift immediately.
  3. Do NOT refactor "while you're here" in unrelated modules.
  4. Do NOT change interfaces that other plan tasks depend on without explicit brain approval.
After Completing
  1. Ensure your work is committed in the worktree.
  2. Do NOT merge to main or close the issue. The brain reviews and the orchestrator records.
  3. 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

HazardPrevention
Two workers edit same fileEach worker's scope is defined by their task. Signal scope_drift if collision unavoidable.
Worker B depends on Worker A's outputEnforced by DAG. Orchestrator dispatches B only after A is Approved.
Worker changes interface Worker C usesForbidden without brain approval. Signal risk if discovered.
Brain dispatches task before deps readyBrain should verify, but orchestrator also enforces.

Terminal Plan States

A plan reaches terminal state when:

  • All tasks are Approved → success, emit PlanReadyToMerge
  • Any task is Rejected and max_review_retries exhausted → failure
  • All reachable tasks are terminal and unreachable tasks remain Pending → partial success

Brain action on terminal state:

  1. Review all Approved tasks.
  2. Merge approved work.
  3. Explicitly close beads epic with update_issue(status: "closed").
  4. 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 Approved but you're starting anyway → STOP. Signal blocked.
  • Task has spur:superseded-by label 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/getspur/spurcode/plan-task-discipline/badge)](https://verified-skill.com/skills/getspur/spurcode/plan-task-discipline)

Something wrong with this skill or its page? Tell us.