Skip to content
Automation
Skill

/subtask-update

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

From plugin
autoworker
1811 skills1 command

Claude Code

$ npx -y skills add phj128/autoworker --skill subtask-update --agent claude-code

SKILL.md

subtask-update.SKILL.md
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.

autoworker:subtask-update — Supplement/Correct Subtask Plan

**Two trigger modes**:

  • **Mode A**: Automatically called after `autoworker:gate-check` FAIL (no arguments)
  • **Mode B**: User calls manually with a finding/bug description

Both modes ultimately return to the `autoworker:dispatch` loop.

Mode Determination

Has user-provided argument?
  ├─ Yes → Mode B (user feedback)
  └─ No  → Mode A (gate-check FAIL)

---

Mode A: Auto-Called After gate-check FAIL

A1. Read gate-check FAIL Information

Extract from conversation context the autoworker:gate-check FAIL output:

  • Which self-check items didn't pass
  • Which change points have confidence < 95%
  • What's specifically missing (untested tests, unverified links, uncovered files, etc.)

A2. Design Supplementary Steps

For each failed item, design specific supplementary steps:

  • What code/scripts to write (e.g., test scripts, verification scripts)
  • What operations to execute (e.g., restart service, run end-to-end test)
  • What the expected result is

A3. Update subtask → jump to "Common Steps: Update subtask + Chain"

---

Mode B: User Feedback Trigger

B1. Understand User Feedback

Extract the problem found by user from the argument. Examples:

  • "Tags have no spaces between them" → tag input has a bug in the publish feature
  • "deleteNote click does nothing" → DOM selector may have broken
  • "Received note list format is wrong" → tool return format issue

B2. Read Current Subtask + Locate Context

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

B3. Diagnose the Problem

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

B4. Design Fix Steps

Based on diagnosis results, design specific fix steps:

  • Which functions in which files need modification
  • What the modification logic is
  • How to verify the fix works

B5. Update subtask → jump to "Common Steps: Update subtask + Chain"

---

Common Steps: Update Subtask + Chain

C1. Update Subtask

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>

C2. Chain: Immediately Invoke autoworker:dispatch

**After updating subtask, immediately invoke `autoworker:dispatch`. Do not wait for user instructions, do nothing else.**

Important Notes

  • **Supplementary steps must be specific and executable**: Cannot write "add tests" — must write "write script to verify deleteNote function complete flow"
  • **Don't repeat already-passed steps**: Only supplement missing parts
  • **Mode B must diagnose before acting**: User says "tags have no spaces" — cannot guess the cause and change code directly, must first use logs/screenshots to confirm
  • **Mode B fixes must update coverage table**: Out-of-plan file changes also need verification coverage
  • **Chaining is mandatory**: Must invoke autoworker:dispatch after completion
Read more
@phj128
Ships withautoworker

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.

Stars on GitHub

Momentum

stars in total
18
Star history of phj128/autoworker on GitHub, a chart by star-history.com

Other skills on autoworker.

autoworker

autoworker

Auto-loop execution workflow with quality gates. Use when starting any non-trivial implementation task. Provides automatic task…

@phj128@phj128Install Skill
checkpoint

checkpoint

Record progress to subtask: Phase completion (from autoworker:code) or test results (from autoworker:test). Auto-detects upstream…

@phj128@phj128Install Skill
code

code

Implement ONE pending Phase from subtask plan. Only write code, do not mark checkboxes or run tests. Called by…

@phj128@phj128Install Skill
deep-plan

deep-plan

Structured deep discussion for Plan Mode. Runs inside EnterPlanMode to ensure thorough questioning before writing a plan. Covers…

@phj128@phj128Install Skill
dispatch

dispatch

Read subtask.md checkbox state and route to next skill. The ONLY routing point in the execution loop. Called after…

@phj128@phj128Install Skill
gate-check

gate-check

Final quality gate before reporting task completion (Gate 3). Fills confidence assessment, runs supplementary verification for…

@phj128@phj128Install Skill

More skills from other plugins.

agent-builder

agent-builder

Load immediately after an Agent intent, before the first agent_builder_* call. Governs how you create, configure, test, and…

n8n2w209k
@n8n-io@n8n-ioInstall Skill
browser-use

browser-use

Direct browser control via CDP for web interaction: automation, scraping, testing, screenshots, and site/app work. Also covers…

@browser-use@browser-useInstall Skill
add-anydoc

add-anydoc

Add local office-document-to-Markdown conversion to NanoClaw agent containers with the pinned Firecrawl AnyDoc CLI. Use when…

@nanocoai@nanocoaiInstall Skill

Questions about subtask-update.

Which coding agents can use subtask-update?
subtask-update installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.