autoworker
Auto-loop execution workflow with quality gates. Use when starting any non-trivial implementation task. Provides automatic task decomposition, code…
Update subtask with fixes or new steps. Two trigger modes: (A) Auto-called by autoworker:gate-check on FAIL — reads FAIL info, adds supplementary steps. (B) User calls with a finding/bug during testing — diagnoses, fixes, updates subtask. Both modes end by invoking
$ npx -y skills add phj128/autoworker --skill subtask-update --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/subtask-updateContext preview
The summary Claude sees to decide when to auto-load this skill.
Update subtask with fixes or new steps. Two trigger modes: (A) Auto-called by autoworker:gate-check on FAIL — reads FAIL info, adds supplementary steps. (B) User calls with a finding/bug during testing — diagnoses, fixes, updates subtask. Both modes end by invoking
name: subtask-update description: | Update subtask with fixes or new steps. Two trigger modes: (A) Auto-called by autoworker:gate-check on FAIL — reads FAIL info, adds supplementary steps. (B) User calls with a finding/bug during testing — diagnoses, fixes, updates subtask. Both modes end by invoking autoworker:dispatch to re-enter the loop.
**Two trigger modes**:
Both modes ultimately return to the `autoworker:dispatch` loop.
Has user-provided argument? ├─ Yes → Mode B (user feedback) └─ No → Mode A (gate-check FAIL)
---
Extract from conversation context the autoworker:gate-check FAIL output:
For each failed item, design specific supplementary steps:
---
Extract the problem found by user from the argument. Examples:
Glob `subtask_*.md` (exclude subtask_template.md) →
0 found → stop, prompt to create subtask
1 found → use directly (backward compatible)
multiple → grep `status:` to filter:
- Files without status field treated as active (backward compatible)
- Exactly 1 active → use it
- 0 active → list all files + status, prompt user to choose
- >1 active → report anomaly
→ Read → extract:
- Current Phase/Step progress
- Which tests have passed
- Related reference file list**Follow Debug methodology** (2 failures → diagnose, don't retry):
1. **Make assumptions explicit**: "I assume the root cause is [X], because [evidence]" 2. **Read related code**: Based on subtask reference files + user description, locate likely problematic files 3. **Minimum observable unit**: Screenshots, logs, scripts, etc. — narrow down to specific code line 4. **Confirm root cause before acting**
Based on diagnosis results, design specific fix steps:
---
Edit subtask.md:
**Append new Phase in "Plan" section**:
### Phase N+1: <source label> Source label format: - Mode A: `Supplementary verification (gate-check FAIL fix)` - Mode B: `Bug fix (user feedback: <problem summary>)` - [ ] <specific step 1> - [ ] <specific step 2>
**Append corresponding verification items in "Verification Plan" section** (if existing items don't cover the new changes):
### Supplementary Verification - <specific verification command> → <expected result>
**Append new changed files to "Verification Coverage Table"** (if modifying files outside the original plan).
**Append to "Progress Log" section**:
- <date>: <source> — <specific content>
**After updating subtask, immediately invoke `autoworker:dispatch`. 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…