/mthines-agent-skills:autonomous-workflow <task-description> [--no-confirm] [--critical] [--interview|--no-interview]from mthines-agent-skills
Phase-based autonomous feature development (0-7) with isolated worktrees, plan.md gating, and run-checks.mjs sentinel. Invoke directly to run phases; for natural-language requests use the `aw` skill.
Ships in mthines-agent-skills. 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.
Read when SKILL.md points to them.
Phase-based autonomous feature development: each phase has a gate that must pass before the next.
This file is an index; procedures live in rules/*.md and load on demand.
Complexity is the primary signal. File count is the tie-breaker. Walk these
questions in order — the first yes selects Full Mode:
| # | Question | If yes → | If no → |
|---|---|---|---|
| 1 | Is this task architectural / cross-cutting / does it require significant design decisions? | Full | go to next |
| 2 | Does the task involve unfamiliar code or domains the agent hasn't worked in before, or is the cause or location not yet known — an investigation rather than a known edit? | Full | go to next |
| 3 | Is the change touching 4+ files OR 2+ packages? | Full | go to next |
| 4 | Is the change 2–3 files, OR any non-trivial logic change? | Lite | Micro |
| Tier | Files / shape | Artifacts | Planning | Companions |
|---|---|---|---|---|
| Full | complex / 4+ files / unfamiliar / cause or location unknown | Required | aw writes a short plan.md brief, works to its checks, then a fresh-eyes review | required ones; the rest at judgment |
| Lite | 2–3 files, or 1 file carrying non-trivial logic | None | in-conversation brief | per signal |
| Micro | 1 file and purely mechanical (typo, copy, bump, string change) | None | in-conversation brief, no planning | none (docs if drift) |
The walk decides; the table only describes its outcomes. Where the two seem to disagree, the walk wins. Two readings this exists to rule out:
OR is load-bearing. A one-file change with non-trivial logic is
Lite, not Micro — Micro needs both one file and nothing to reason about.
Adding a prop and forwarding it, adding a CLI flag that changes behaviour, or
debouncing an input are all Lite at one file, because each has logic to get wrong.Questions 1–2 ground the decision in complexity rather than raw file count (one large change can exceed four trivial edits in scope); question 3 is the file-count tie-breaker. Phase 0 and Phase 2 stay mandatory in every tier, including Micro.
When in doubt, choose Full. Output mode selection in this exact format:
MODE SELECTION:
- Tier: [Micro | Lite | Full]
- Reasoning: [why]
- Estimated files: [number]
- Complexity: [trivial | simple | moderate | architectural]
- Lessons applied: [N matched, or none]
This block is canonical: the aw dispatcher skill and rules/phase-0-validation.md emit it field-for-field.
| Capability | Status | Check | If missing |
|---|---|---|---|
| GitHub access | Required (the capability, not the binary) | Resolve ACCESS_PATH per github-access.md § Step 0 — never which gh, never gh auth status | Only ACCESS_PATH = none degrades Phases 6–7; name it in Degraded: and never report a GitHub step you could not perform as done |
gw | Recommended | which gw | Fall back to native git worktree (warn once) |
gh is one of two GitHub paths; in cloud sessions it is absent and the mcp__github__* tools both agents carry are the path.
Details: rules/prerequisites.md — read when a prerequisite is missing.
| Phase | Name | Rule file | Gate |
|---|---|---|---|
| 0 | Validation | phase-0-validation.md | User confirmed understanding |
| 1 | Planning | phase-1-planning.md | Six Core headings, one check per AC-{n}, checks.lock sealed — deterministic, no LLM score |
| 2 | Worktree Setup | phase-2-worktree.md | Worktree created, brief + checks.yaml written, /goal line printed |
| 3 | Implementation | phase-3-implementation.md | Code complete, fast checks pass, only File Changes touched |
| 4 | Testing | phase-4-testing.md | Suite green, then run-checks.mjs prints CHECKS M/M PASS |
| 5 | Documentation | phase-5-documentation.md | Docs reflect changes (incl. CLAUDE.md) |
| 6 | PR Creation | phase-6-pr-creation.md | Walkthrough shown, draft PR opened, AW EVIDENCE printed |
| 7 | CI Gate + Optional Cleanup | phase-7-ci-gate.md | CI green or user-approved stop |
Phase 0 and Phase 2 are MANDATORY. All others gate progression to the next.
--no-confirm (or "proceed without confirmation") makes Phase 0 post its summary and proceed without waiting; it never covers a blocking missing-information gap — phase-0-validation.md.
run-checks.mjs sentinel CHECKS M/M PASS (<sha>); check definitions are sealed and executor-immutable, and all-green is necessary, never sufficient./goal line; before the terminal contract print the AW EVIDENCE block — rules/goal-emission.md.Skill("confidence", "analysis"), then one auto-replan or escalation.blocking missing-information gap halts even under --no-confirm.rules/safety-guardrails.md.Full Mode artifacts live in .agent/{branch}/ (add .agent/ to .gitignore):
| File | Generated by | When |
|---|---|---|
plan.md | Skill("aw-create-plan") | Phase 2 and every plan iteration — the brief |
checks.yaml + checks.lock | Skill("aw-create-plan") | With the plan — one check per AC-{n}, sealed; Phase 4's termination condition |
checks.run.log | scripts/run-checks.mjs (teed by the executor) | Every Phase 4 run — ends with the sentinel line |
walkthrough.md | Skill("aw-create-walkthrough") | Phase 6 — the one-page post-hoc review |
Snapshots (plan.v{N}.md) are opt-in via Skill("aw-create-plan", "snapshot").
Artifact details: rules/artifacts-overview.md — read when resuming a run or reading artifacts cold.
Single-pass in the caller's context; no checks.yaml, no confidence(plan).
Lite writes its brief to .agent/{branch}/plan.md inside the worktree Phase 0 creates, so aw-verify and telemetry-verify read stated criteria instead of guessing them from the diff.
Micro keeps its brief in the conversation but writes its criteria to the same file, ## Acceptance Criteria with at least one - [ ] AC-1 — …, because every tier publishes its criteria and their proof on the PR.
---
tier: Lite
turn_cap: 12
---
## Task
Debounce the search box so typing does not fire a request per keystroke.
## Guardrails
- Keep unchanged: the `?q=` URL contract — docs/search.md
## Acceptance Criteria
- [ ] AC-1 [ui:/search] — When the user types "otel" quickly, the system shall send one search request.
- [ ] AC-2 — When the user clears the box, the system shall show the recent-searches list.
- **Before PR**: `pnpm vitest run src/search`
## File Changes
- `src/search/SearchBox.tsx`
Keep it at most 20 lines: tier: Lite frontmatter, Task, Guardrails, AC-{n} outcome criteria (a telemetry: prefix where the change adds a signal), the Before-PR command, and the files.
Never write checks.yaml or checks.lock on Lite: checks.lock is what marks a Full brief.
| Phase | Lite | Micro |
|---|---|---|
| Setup | MODE SELECTION | MODE SELECTION |
| 0 | gw add <branch>, then Skill("interview") inside the new worktree, silent when the request is already clear (--no-interview skips it; fallback: quick clarification) | Quick confirm; with --interview, gw add <branch> first, then the interview inside the worktree |
| 1 | Brief (Task, Guardrails, AC-{n}, Before-PR command, Turn Cap 12, files) seeded from the interview's restatement, non-goals, and success criteria, printed, + /goal line | In-conversation brief (Task, Guardrails, verify command, files), Turn Cap 5, no companions |
| 2 | Write the brief to .agent/{branch}/plan.md inside the worktree, beside the interview's brief.md | gw add <branch> (already done under --interview); write .agent/{branch}/plan.md with at least one AC-{n} |
| 3 | Code, commit; touch only the brief's files | Edit, fast check |
| 4 | Test, fix failures (3-iteration cap); print the verify command with exit=<code>; then Lite verify, on every diff | Fast check; then run each AC's command through aw-verify's checks mode (verify-comment.mjs --checks commands.json --run --base origin/<base>), which records .agent/{branch}/verify/runs.json |
| 4b | Report-only quality pass (rules/quality-pass.md; why: references/quality-pass.md): fit --inventory, plus a fresh-context ux audit when aw-verify ran; writes quality-notes.md and quality-findings.jsonl, never re-enters Phase 3; after the merge, rules/finding-outcomes.md scores each finding by what a human did | — |
| 5 | Skill("docs", "update --auto") | Only on doc drift |
| 6 | Skill("create-pr", "--no-post-review") (its Step 5.5 is the local review; see aw § Review); then publish the criteria and their proof, and gate until verify-comment.mjs --check prints report complete (phase-6-pr-creation.md § Publish the criteria); then the AW EVIDENCE block | Skill("create-pr", "--no-post-review"), publish the criteria and their proof, the same gate, then the AW EVIDENCE block |
| 7 | Watch CI, ci-auto-fix if needed | Watch CI |
Lite proves every change before the PR: a UI change in the browser, the same way Full Step 4.1 does, a change the repo's path rules send to the local stack there too, and any other change by recorded test runs.
Route first, passing --ui-diff from ui-verify's is-ui-diff.mjs (UI_DIFF: yes|no):
node "${AW_VERIFY_DIR:-$HOME/.claude/skills/aw-verify}/scripts/verify-env.mjs" --base origin/<base> --tier lite --ui-diff <yes|no> # last line: VERIFY_RUN: …
It reads the repo's path rules (ui.yml → verify:, aw-verify's rules/config.md) and whether .agents/aw/environments.yml exists; its last line picks the step.
VERIFY_RUN: | Run |
|---|---|
checks before-pr | step 0; on a UI diff, step 3 |
local before-pr | step 1, whether or not the diff has a UI file: the stack, each criterion through the local UI and API, and the telemetry |
local after-pr | step 0 before the PR; after Phase 6 opens it, the after-PR run below with run local <pr-url> |
preview after-pr | step 0 before the PR; after Phase 6 opens it, the after-PR run below: a preview only exists once the PR does |
With no verify: block the line is what Lite did before path rules: local on a UI diff with environments.yml, checks otherwise.
After-PR run. Once create-pr returns the URL, wait for the preview deployment (aw-verify's rules/config.md → environments.preview.url), then Skill("aw-verify", "run preview <pr-url>") (run local <pr-url> for local after-pr); a stale session signs in through the login hook (aw-verify's rules/auth.md).
It replaces the checks-mode aggregate on the PR, so gate on its report: verify-comment.mjs --pr <pr-url> --check --ui --browser (drop --browser for local, and --ui on a diff with no UI file) must print report complete; --ui checks the ui-verify spec block, which create-pr Step 6.4 writes on every UI diff.
A failed criterion or ❌ not verified re-enters Phase 3 under the same turn cap and pushes to the same PR; a preview that never deploys, or LOGIN: failed, goes under Needs you: with the reason, and the PR keeps the checks-mode report.
✗ Wrong — rule says preview after-pr, Lite runs local before the PR and stops
✓ Right — checks mode → create-pr → preview deploys → aw-verify run preview <pr-url> → --check --ui --browser: report complete
✗ Wrong — rule says local, the diff is backend only, Lite runs checks mode because no file is UI
✓ Right — VERIFY_RUN: local before-pr → aw-verify run local → stack up, criteria through the local UI and API, telemetry read
VERIFY_RUN: checks … (and before the PR on … after-pr) → Skill("aw-verify", "run checks --no-push --no-comment") (aw-verify's rules/checks-mode.md): each AC's command before on the base and after on the branch, rendered into .agent/<branch>/verify/.
Continue only after verify-comment.mjs --check --local .agent/<branch>/verify prints local report complete; a failed criterion re-enters Phase 3 under the same turn cap.VERIFY_RUN: local before-pr → Skill("aw-verify", "run local --no-push --no-comment --foreign-stack abort").
It copies the AC-{n} criteria from the Lite plan.md, starts the stack, checks each criterion through the local UI and API (specs through ui-verify for ui: criteria), reads the telemetry, fixes what it finds as separate commits, and leaves its screenshots and recordings where create-pr Step 6.2 picks them up.
Continue only after verify-comment.mjs --check --local .agent/<branch>/verify [--ui] (in aw-verify's scripts/) prints local report complete; pass --ui on a UI diff, so specs.md is checked too.
Any line the gate prints re-enters aw-verify (mark the criteria, re-render report.md, or tag the AC), never Lite step 5.
Copy every Degraded: flag <key> not restored … line aw-verify printed into the run's Degraded: verbatim, and its restore command into Needs you:.ui: criterion, a ❌ not verified verdict, or a telemetry: AC whose receipt is contradicts re-enters Phase 3 under the same turn cap.
Any other telemetry: receipt that is not confirms goes under Degraded:, as Full Step 4.1 leaves it unpassed.VERIFY_RUN: checks before-pr on a UI diff → checks mode as in step 0, each ui: AC no test reaches recorded unsatisfiable (the verdict caps at ⚠️; create-pr Step 6.4 authors the ui-verify spec block, so Phase 6's --check --ui still passes), and, when .agents/aw/environments.yml is missing (run_why names it), verify run: not configured under Degraded: and run /aw-verify setup under Needs you:; never block on setup.verify run: line from Full's AW EVIDENCE block (aw/rules/full-tier.md § Step 4) in Lite's AW EVIDENCE block.✗ Wrong — Lite UI diff, verify configured, PR opened with no browser evidence
✓ Right — aw-verify run local → create-pr attaches its captures → aw-verify report <pr-url> posts the report
The registry — triggers, args, the mandatory companion: <name> — ran | skipped (<reason>) report line, and how to disable a companion — is rules/companion-skills.md; each agent template carries the rows for its phases.
Lessons: the fast tier (loop::aw-lessons on LoreKit) and the slow tier (/create-skill diagnose autonomous-workflow) are in rules/self-improvement-loop.md; the diagnoser reads rules/diagnostic-surface.md.
Fan-out points, each read when it applies:
Explore sub-agents, only for an unfamiliar area: phase-1-planning.md.ci-auto-fix sub-agent per independent failure, cap 2 handoffs per PR: phase-7-ci-gate.md.The skill ships one dispatcher skill and two agents (aw- = autonomous-workflow):
| Unit | Kind | Role | Exit gate |
|---|---|---|---|
aw | skill | Opt-in dispatcher: lessons, tier, routing, /goal line; on Full, the brief + sealed checks.yaml, then the work in this session per aw-executor, then a local review-loop pass | Task routed, exit lesson written |
aw-executor | procedure (and agent) | Full, Phases 3–7 from the brief, applying corrections.md → review, walkthrough, draft PR; aw follows it in-session, /fix-bug through aw's Full tier, and a background or parallel request dispatches it | CHECKS M/M PASS, walkthrough shown, CI gate run |
aw-tester | agent | Phase 4 (UI) spec verification, cold pass only | green or inconclusive before lint/type/test |
Other files: routing.rule.md (auto-trigger rule), specs.md.template, intent-spec.md.template, scripts/run-checks.mjs (the check runner; --self-test proves it).
Related skills: aw-verify (run /aw-verify setup once per project; it writes .agents/aw/, which aw-tester targets come from), aw-tester-chrome (in-session Chrome runner), aw-create-plan, aw-create-walkthrough.
Design rationale: CLAUDE.md and references/anthropic-architecture-research.md.
Install the skill, its companions, and the agents:
git clone https://github.com/mthines/agent-skills.git
cd agent-skills
bash scripts/sync-symlinks.sh --aw
Other install modes and per-companion disabling: README.md.
CLAUDE.md (opens in a new tab)README.md (opens in a new tab)aw/references/dispatcher-rationale.md (opens in a new tab)aw/rules/full-tier.md (opens in a new tab)aw/rules/lessons.md (opens in a new tab)install.sh (opens in a new tab)references/anthropic-architecture-research.md (opens in a new tab)references/autonomous-workflow-complete.md (opens in a new tab)references/cloud-stalling-analysis.md (opens in a new tab)references/error-recovery-scenarios.md (opens in a new tab)references/finding-outcomes.md (opens in a new tab)references/intent-specs-rationale.md (opens in a new tab)references/iterative-refinement.md (opens in a new tab)references/planning-quality-research.md (opens in a new tab)references/quality-pass.md (opens in a new tab)references/routing-rationale.md (opens in a new tab)references/self-improvement-walkthrough.md (opens in a new tab)references/smallest-change.md (opens in a new tab)rules/_template.md (opens in a new tab)rules/artifacts-overview.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (mthines/agent-skills) — no native marketplace selected
npx claudepluginhub p/mthines-mthines-agent-skills54 skills in this plugin
/ai-engineeringReviews and guides LLM/AI application engineering — prompts, caching, RAG, agent loops and tools, resilience, model migration, evals, prompt-injection defence, and observability. Invoke with /ai-engineering for "review my prompt", "set up RAG", or "write evals".
/animationsAuthors performant CSS-first web animations and picks the right feedback for an interaction — transitions, View Transitions, scroll-driven motion, Motion for React, reduced motion, and perceived performance. Triggers on "animate this", "hover effect", "feel faster", "skeleton loader", "/animations".
/animations-nativeAuthors performant React Native / Expo animations and gestures with Reanimated and react-native-gesture-handler on the UI thread; web animations go to `animations`. Triggers on "reanimated", "react native animation", "gesture handler", "swipe gesture", "/animations-native".
/atelierTakes one change from request to merged PR by sequencing existing skills — aw builds the draft PR, prepare gets it green, a deterministic gate allows the squash-merge only when a user-visible diff that needs a rollout ships behind a deployment-verify flag contract, or a small one carries a classed no-flag marker (and, in a repo with a hosted service, every diff carries a contract or an opt-out) — then reads the default-branch pipeline, fixes a red one once, verifies a no-flag change on the deploy with deployment-verify, and says what a human does next. Resumable from a sticky PR comment; invoke with /atelier.
/attach-mediaUploads local screenshots and recordings to GitHub and embeds them in a PR or issue body or comment as inline-rendering user-attachments URLs, via `gh --attach` with a curl fallback; never writes placeholders. Triggers on "attach screenshots to the PR", "upload this recording to the PR", "/attach-media".
/awShips coding work to a tested draft PR from one opt-in entry point: detects the tier, runs Micro/Lite here, and on Full writes a short brief with sealed checks, works to them here, and converges once with a local review loop before the PR; prints a paste-ready /goal. Use when asked to "implement autonomously", "independently", "in isolation", "in a worktree", "end-to-end", "all the way to a PR", "ship this", "land this", "take care of this", "handle this without me", or /aw.
Other plugins' skills for the same job