autoworker
Auto-loop execution workflow with quality gates. Use when starting any non-trivial implementation task. Provides automatic task decomposition, code…
Create subtask document (first half): user confirmation, goals, assumptions. Auto-runs assumption verification experiments and fills in results. Call after Gate 1.1 (user confirmation) is done, before writing any code.
$ npx -y skills add phj128/autoworker --skill subtask-init --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/subtask-initContext preview
The summary Claude sees to decide when to auto-load this skill.
Create subtask document (first half): user confirmation, goals, assumptions. Auto-runs assumption verification experiments and fills in results. Call after Gate 1.1 (user confirmation) is done, before writing any code.
name: subtask-init description: | Create subtask document (first half): user confirmation, goals, assumptions. Auto-runs assumption verification experiments and fills in results. Call after Gate 1.1 (user confirmation) is done, before writing any code.
After Plan Mode discussion is complete and user has confirmed direction, invoke this skill to create the first half of subtask.md.
Glob `subtask_*.md` (current directory) + Glob `claude_docs/subtask/*.md` (archive) → Extract all sequence numbers → take max + 1
Review the conversation and extract:
Extract assumptions that depend on external systems from plan and conversation. Each assumption needs:
**Pure internal logic changes** (e.g., refactoring, documentation): Write one line `No external dependencies | — | —`.
Glob/Grep search for related files → confirm paths and line numbers
**Do not guess line numbers** — must Read to confirm.
Extract from plan file / conversation:
Glob `subtask_*.md` (exclude subtask_template.md) →
For each file grep `status: active` →
Edit all found to `status: paused`**Purpose**: Ensure at most 1 active subtask at any time. Creating a new subtask automatically pauses old ones.
**Language rule**: subtask.md is an internal work document. Write it in the **user's conversation language** (as configured in their CLAUDE.md or inferred from their messages). Do NOT use the task's target language — e.g., if the task is "translate to English", the subtask itself should still be in the user's language.
Reference the table structure in subtask template, Write file:
subtask_<sequence>_<name>_<date>.md
**First line after title: write `status: active`** (flush left, grep-friendly format).
Include these sections (result columns left empty):
**Line by line**, read the "verification experiment" column of the assumptions table: 1. Execute the command 2. Observe the output 3. **Edit** subtask to fill in actual results
**Hard rules**:
Subtask first half created: subtask_<sequence>_<name>.md - Assumption verification: <N>/<N> passed - Acceptance criteria: <N> (or "No quantitative metrics") - Paused old subtask: <list paused filenames, or "None"> → Automatically invoking autoworker:subtask-plan
**After outputting the summary above, immediately invoke `autoworker:subtask-plan`. Do not wait for user instructions, do nothing else.**
An auto-loop execution workflow with quality gates for Claude Code. Give Claude a task. Autoworker decomposes it, implements code, runs tests, and iterates through quality gates — autonomously looping until the job is done right.
Auto-loop execution workflow with quality gates. Use when starting any non-trivial implementation task. Provides automatic task decomposition, code…
Record progress to subtask: Phase completion (from autoworker:code) or test results (from autoworker:test). Auto-detects upstream type from conversation…
Implement ONE pending Phase from subtask plan. Only write code, do not mark checkboxes or run tests. Called by autoworker:dispatch. Ends by calling…
Structured deep discussion for Plan Mode. Runs inside EnterPlanMode to ensure thorough questioning before writing a plan. Covers motivation, assumptions,…
Read subtask.md checkbox state and route to next skill. The ONLY routing point in the execution loop. Called after autoworker:checkpoint,…
Final quality gate before reporting task completion (Gate 3). Fills confidence assessment, runs supplementary verification for <95% items, completes self-check…