How this skill is triggered — by the user, by Claude, or both
Slash command
/workflow-automation:auto-implementThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
---
You are planning a feature, implementing it, and shipping it — all in one flow. This skill is the single entry point for the complete pipeline.
It handles all scenarios:
This skill delegates to feature-plan, implement, and ship,
which handle their own state tracking via .workflow-state.json. The
mode field is set to "auto-implement".
On startup: Check for .workflow-state.json. If found with
mode: "auto-implement":
pr_number is set, check the PR status. If merged, clear it
and continue. If open, verify monitor-pr is active (re-create the
cron if the session died).Plan is DONE, find the next
TODO or IN_PROGRESS phase and resume the loop.Plan is TODO or IN_PROGRESS, resume planning.Print "Resuming auto-implement from {stage}" and continue — do not re-confirm.
Auto-implement is a long-running autonomous workflow. Before starting, capture key information and establish a clear starting point.
Skip this step when resuming from .workflow-state.json — resumed
runs already start with the necessary context.
Follow the pre-flight protocol in
../../shared-references/autonomous-permissions.md. Only proceed to
Step 1 when all test commands pass without prompts.
Check for an existing plan:
plan-*.md (exclude *-done.md) in the dev docs plans/
subfolder and project root.Plan marked DONE, skip to Step 2.Plan as TODO or IN_PROGRESS, resume
planning from where it left off.Spec-only plan (Spec is DONE but Plan is TODO): The plan file
has a completed Spec section (from /feature-spec) but no implementation
phases yet. Ask the user:
"This plan has a spec but no implementation phases yet. How would you like to proceed?"
- Plan and auto-implement — Create phased implementation plan, then immediately implement and ship all phases
- Plan only — Create the implementation plan for review; I'll implement later with
/auto-implement
If the user selects option 1: run the feature-plan skill to add implementation phases, then proceed directly to Step 2 (no stop).
If the user selects option 2: run the feature-plan skill to add
implementation phases, then stop after presenting the plan for approval.
The user can invoke /auto-implement again later to pick up from
Step 2.
Key difference from standalone /feature-plan: When proceeding to
auto-implement (option 1, or when this skill created the plan from
scratch), after the user approves the plan do NOT stop and suggest next
steps. Instead, proceed directly to Step 2.
Before proceeding to implementation, verify:
Plan row is marked DONETODOIf the plan was not approved (user asked for changes), loop back to Step 1 to revise. Do not proceed to implementation with an unapproved plan.
Identify all phases marked TODO. Print the progress dashboard
(see ../../shared-references/autonomous-reporting.md) and a summary:
"Starting autonomous run: {N} phases remaining. Will only stop for
blockers." Then begin immediately — do not ask for confirmation.
Default: batch all phases into one PR. Most plan phases are
tightly coupled and per-phase PRs create unnecessary overhead.
Implement all remaining TODO phases sequentially in a single
feature branch, then ship once.
Exception: split mid-batch when a phase turns out to be large after implementation (100+ non-trivial lines in its diff, excluding tests, config, and imports). The decision is made after each phase's implementation, not before. If a phase exceeds the threshold:
git pull origin <main-branch>.TODO phase, in order:
a. Implement the phase using the implement skill
(Steps 1–7; Step 8 is skipped — auto-implement handles
sequencing). The implement skill detects mode: "auto-implement"
and skips all confirmation prompts. If implementation fails
or is blocked, stop the loop and inform the user — later phases
may depend on this one.
b. Gate check after implementation:
IMPLEMENTED → continue to next phase.IMPLEMENTED_WITH_CONCERNS → log concerns in the plan's Notes
and continue.BLOCKED, NEEDS_INPUT, or incomplete → stop the loop and
inform the user.
c. Update the progress dashboard.code-simplifier:code-simplifier) and review
(via feature-dev:code-reviewer for spec compliance against the
full plan, then parallel pr-review-toolkit:code-reviewer,
pr-review-toolkit:silent-failure-hunter, and
pr-review-toolkit:pr-test-analyzer for code quality) on the
combined diff of all phases. Spec compliance checks all phases
against the full plan, not per-phase. Do NOT ship code that has
not been through both simplify and review.
Judge whether each finding is justified before acting:
IMPLEMENTED_WITH_CONCERNS in the plan and surface
the findings. This is a hard stop even in autonomous mode —
combined-gate blockers indicate cross-phase issues that per-phase
reviews missed. Do not proceed to ship. Present the unresolved
findings and ask the user for guidance.gh pr view <pr> --json state --jq '.state'.
CLOSED: alert the user and stop.MERGED: mark all batched phases as MERGED
and proceed to Completion.When a phase exceeds the size threshold after implementation:
git pull origin <main-branch>.git pull origin <main-branch>, then resume batching for remaining
phases (create a new feature branch, continue the loop).After the last phase is shipped and merged, proceed to Completion.
When all phases are MERGED:
Final sync: git pull origin <main-branch> to ensure local
main matches the remote after all merges.
Print the final progress dashboard (all phases showing MERGED).
Update the plan:
Ship as MERGED in the plan's status table.plan-<name>.md →
plan-<name>-done.md (use git mv if the file is tracked,
otherwise plain mv). Skip if the file is already named
*-done.md (monitor-pr may have renamed it first).git add <plan-file-done-path> && git commit -m "mark plan complete" && git push origin <main-branch>Clean up remote branches: Delete any feature branches created during this run that still exist on origin:
git fetch --prune origin
Then for each branch created during the run that still exists
remotely: git push origin --delete <branch>. Also delete
corresponding local branches with git branch -d <branch> (use
-D as fallback — safe because the PRs were merged).
Write deferred items: Collect all deferred suggestions and
follow-up items from reviews across all phases. Add each to the
project's dev docs TODO file (see
../../shared-references/todo-convention.md) with the originating
phase as source. If no items were deferred, skip this step.
Congratulate the user — the feature is complete.
Print the workflow friction log (see
../../shared-references/autonomous-reporting.md).
/auto-implement again — it reads the state file and plan
status table to determine what's next./feature-spec before /auto-implement.Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub matthiaskloft/claude-skills --plugin workflow-automation