/autoworker:sync-docs [archive|park]from autoworker
Syncs tracking documents (subtask, progress, findings, task_plan, CLAUDE.md) based on current conversation results. Use when finishing a task or reaching a milestone.
Ships in autoworker. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Based on work results and discoveries in the current conversation, update all tracking documents.
Optional argument: $ARGUMENTS
park: Sync + pause current subtask (set status: paused) + clear plan file. For "task still in progress (e.g., training) but need to switch to something else"archive: Sync + archive completed subtask (move to claude_docs/subtask/) + clear plan file. For "task fully complete"Find tracking files and document system in the project root:
Top-level tracking files:
subtask_*.md — current in-progress subtasksprogress.md — progress logfindings.md — core discoveriestask_plan.md — task planningCLAUDE.md — project rules and technical infoREADME.md — project intro (for humans)Progressive disclosure documents:
claude_docs/reference/*.md — detailed documents referenced from CLAUDE.mdCLAUDE.md — index files for each moduleRead each existing file to understand current recorded state.
Review work completed in this conversation, determine updates needed item by item:
| File | Update condition | Update content |
|---|---|---|
subtask_*.md | Steps were completed | Check off [x], record progress, add verification results |
progress.md | Task completed or progressed | Update task item status, add result summary |
findings.md | New conclusions or counter-intuitive behaviors discovered | Add new section or update existing section |
task_plan.md | Task completed/progressed, or plan changed | Read subtask's "task_plan positioning → corresponding Phase" field, locate and check off [x] in task_plan.md with completion timestamp; match by content when no positioning field; update future steps if plan changed |
CLAUDE.md | Reusable patterns or lessons learned discovered | Add to appropriate section (don't duplicate existing content) |
claude_docs/reference/*.md | Findings in this conversation belong to an existing reference topic | Update corresponding reference document |
Subdirectory CLAUDE.md | Changed code structure/files in a module | Update corresponding subdirectory file index |
README.md | Added feature or changed usage/installation | Sync update (user-perceivable changes) |
Dead link check: Scan project CLAUDE.md for all claude_docs/reference/ references, confirm files exist:
New reference identification: If this conversation produced new lessons or technical documentation (> 20 lines) and CLAUDE.md already exceeds 300 lines, suggest writing to claude_docs/reference/<topic>.md and adding a trigger heading in CLAUDE.md, rather than appending directly to CLAUDE.md.
For each file needing update:
Using claude_docs/ progressive disclosure structure, check if this conversation's changes affect subdirectory documents:
Flow:
Glob claude_docs/*/CLAUDE.md → get all subdirectory indexesPause the current active subtask, clean up workspace, facilitate switching to next task. Subtask file stays in workspace (not archived) and can be resumed later.
subtask_*.md → grep status: active → Edit to status: paused**Paused** — <infer reason from conversation, e.g., "waiting for training completion">progress.mdStatus filter:
subtask_*.md (exclude subtask_template.md) → grep status: to filterstatus: completedExecute archive (for each completed subtask):
claude_docs/subtask/CLAUDE.md to find max sequence + 1subtask_<name>.md → claude_docs/subtask/<sequence>_<name>_<date>.mdrm subtask_<name>.md (after archiving, don't keep in workspace — prevents dispatch from selecting it next time)claude_docs/subtask/CLAUDE.md archive list + Phase groupingprogress.md add archive link.claude/plans/*.md, find current project's plan file, clear contents (write empty string). Archiving = task done — stale plan would interfere with next autoworker:deep-plan.Check project-level CLAUDE.md size and structure (if exists):
Size check:
500 lines → bloated, list content that can be migrated
Bloat identification (when > 300 lines):
Scan CLAUDE.md sections, identify migratable content by these rules:
| Pattern | Should migrate to | How to detect |
|---|---|---|
| Experiment logs, hyperparameter comparison tables | progress.md | Contains epoch/loss/reward numeric tables |
| Bug fix history, lessons learned (> 20 lines) | findings.md or claude_docs/reference/ | Detailed content > 20 lines |
| Detailed data pipeline documentation | claude_docs/reference/data_pipeline.md | Data formats, field descriptions, transformation flows |
| Detailed API/config documentation | claude_docs/reference/<topic>.md | Detailed config item lists or code templates |
Output:
After park or archive completes, commit and push all changes to remote.
List all updated files and change highlights:
sync-docs complete:
- subtask_xxx.md: Steps 3-5 checked off, verification results added
- progress.md: Task X marked complete
- CLAUDE.md: Added "YYY" lesson
- [archive] → claude_docs/subtask/40_xxx_20260227.md
- CLAUDE.md health: N lines, healthy / getting large, suggest migrating X sections
status: completed: Only subtasks with completed status (after gate-check PASS) get archivedWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub phj128/autoworker --plugin autoworker11 skills in this plugin
/autoworkerAuto-loop execution workflow with quality gates. Use when starting any non-trivial implementation task. Provides automatic task decomposition, code implementation, testing (L1-L4), and iterative quality gates until completion. Invoke with /autoworker.
/checkpointRecord progress to subtask: Phase completion (from autoworker:code) or test results (from autoworker:test).
Auto-detects upstream type from conversation context. Ends by calling autoworker:dispatch.
/codeImplement ONE pending Phase from subtask plan. Only write code, do not mark checkboxes or run tests.
Called by autoworker:dispatch. Ends by calling autoworker:checkpoint.
/deep-planStructured deep discussion for Plan Mode. Runs inside EnterPlanMode to ensure thorough
questioning before writing a plan. Covers motivation, assumptions, design, acceptance criteria.
Call this immediately after entering Plan Mode for any non-trivial task.
/dispatchRead subtask.md checkbox state and route to next skill. The ONLY routing point in the execution loop.
Called after autoworker:checkpoint, autoworker:gate-check, autoworker:subtask-update, autoworker:subtask-plan, or when resuming after context loss.
When lost, call autoworker:dispatch.
/gate-checkFinal quality gate before reporting task completion (Gate 3).
Fills confidence assessment, runs supplementary verification for <95% items, completes self-check checklist.
Writes PASS/FAIL result to subtask.md, then calls autoworker:dispatch for routing.
Other plugins' skills for the same job