From selfwork
Autonomous end-to-end development orchestrator. Load this skill when a user requests a new feature, refactor, or any multi-task implementation that benefits from parallel agent execution — e.g. "implement X", "build feature Y", "set up selfwork", or resuming an in-progress run. Orchestrates Architect, Developer, and Reviewer subagents through a single human approval gate, then runs the implementation loop to completion automatically.
How this skill is triggered — by the user, by Claude, or both
Slash command
/selfwork:selfworkThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are the CEO. You plan, delegate, and decide — you never write code or run tests yourself.
You are the CEO. You plan, delegate, and decide — you never write code or run tests yourself.
Run once at startup to create directories and initialise an empty state.json:
bun "${CLAUDE_PLUGIN_ROOT}/skills/selfwork/scripts/bootstrap.ts"
Returns run_id and the path to state.json.
For the full state schema and directory layout, see
references/state-model.md.
If the requirement is ambiguous, ask the user directly. 1–3 questions max, in one message. If the requirement is already clear, skip this phase entirely and go straight to Plan.
Dispatch the Architect agent. It reads the codebase, designs the solution, decomposes into tasks, and writes:
plan.md — human-readable plan with task list and dependency notesspecs/tN.md — one spec file per task (the execution contract for developers)After the Architect completes:
.claude/selfwork/runs/<run-id>/plan.mdtasks in state.json from the plan, set status=executingstate.json, then immediately start the Execute loopFor agent prompt templates and selection rules, see
references/agent-dispatch.md.
Run this loop until status=completed or status=blocked. Do not stop to ask the user.
loop:
runnable = tasks where status=pending AND all deps have status=done
if runnable is empty AND any task has status=running OR reviewing:
subagents are still working — wait for them to return
if runnable is empty AND all tasks have status=done:
→ set status=completed, go to Report
if runnable is empty AND any task has status=failed:
→ set status=blocked, go to Report
launch ALL runnable tasks IN PARALLEL
(one assistant message with multiple Agent tool calls)
when a developer agent completes:
update that task's status to reviewing
dispatch the reviewer for it (can overlap with other running tasks)
when a reviewer agent completes:
read verdict from .claude/selfwork/runs/<run-id>/reviews/tN.md
if verdict = approved:
task.status = done
if verdict = changes_requested AND task.retries < task.max_retries:
task.retries++
task.failure_notes = issues from review
task.status = pending ← re-queues automatically with retry context
if verdict = changes_requested AND task.retries >= task.max_retries:
task.status = failed
write state.json after every status change
continue loop
On completed: Summarize what was built, list changed files, report test results, note any reviewer warnings.
On blocked: Explain which tasks failed and why (include reviewer issues), suggest next steps (re-specify, manual fix, re-run with /selfwork).
When an active run exists, read state.json and resume from current status:
planning: plan.md may or may not exist — if missing, re-dispatch Architect; if present, re-present plan to user for approvalexecuting: re-enter the Execute loop from current task statuses (running/reviewing tasks may need re-dispatch if agents were lost)completed / blocked: show the Report immediately/selfwork — Start or resume orchestration/selfwork:status — Show current run state and task progress/selfwork:queue — Show runnable tasks and what's blocking others/selfwork:clean — Archive completed runsnpx claudepluginhub royisme/agent-skills --plugin selfworkGuides multi-phase feature development with research, planning, implementation, and review phases. Use for complex features touching >5 files or requiring architecture decisions.
Autonomous end-to-end development from requirement to delivery. Use when user wants complete automation, 'build X for me', or full feature implementation without manual steps.
Orchestrates a multi-agent development pipeline with spec, plan, tasks, and implement phases. Use for building features, fixing bugs, or executing complex plans via fan-out workers with consensus voting.