skills/avad-autoplan/SKILL.md
Auto-review pipeline — reads the full CEO, design, and eng review skills from disk and runs them sequentially with auto-decisions using 6 decision principles. Surfaces taste decisions (close approaches, borderline scope) at a final approval gate. One command, fully reviewed plan out. Use when asked to "auto review", "autoplan", "run all reviews", "review this plan automatically", or "make the decisions for me". Proactively suggest when the user has a plan file and wants to run the full review gauntlet without answering 15-30 intermediate questions.
npx skillsauth add agwacom/avadbot avad-autoplanInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
One command. Rough plan in, fully reviewed plan out.
/avad-autoplan reads the full CEO, design, and eng review skill files from disk and follows them at full depth — same rigor, same sections, same methodology as running each skill manually. The only difference: intermediate AskUserQuestion calls are auto-decided using the 6 principles below. Taste decisions (where reasonable people could disagree) are surfaced at a final approval gate.
These rules auto-answer every intermediate question:
Conflict resolution (context-dependent tiebreakers):
Every auto-decision is classified:
Mechanical — one clearly right answer. Auto-decide silently. Examples: run evals (always yes), reduce scope on a complete plan (always no).
Taste — reasonable people could disagree. Auto-decide with recommendation, but surface at the final gate. Two natural sources:
Auto-decide replaces the USER'S judgment with the 6 principles. It does NOT replace the ANALYSIS. Every section in the loaded skill files must still be executed at the same depth as the interactive version. The only thing that changes is who answers the AskUserQuestion: you do, using the 6 principles, instead of the user.
You MUST still:
You MUST NOT:
"No issues found" is a valid output for a section — but only after doing the analysis. State what you examined and why nothing was flagged (1-2 sentences minimum). "Skipped" is never valid for a non-skip-listed section.
Before doing anything, save the plan file's current state to an external file:
SLUG=$(git remote get-url origin 2>/dev/null | sed 's|.*[:/]\([^/]*/[^/]*\)\.git$|\1|;s|.*[:/]\([^/]*/[^/]*\)$|\1|' | tr '/' '-')
mkdir -p ~/.avadbot/projects/$SLUG
BRANCH=$(git rev-parse --abbrev-ref HEAD 2>/dev/null | tr '/' '-')
DATETIME=$(date +%Y%m%d-%H%M%S)
echo "RESTORE_PATH=$HOME/.avadbot/projects/$SLUG/${BRANCH}-autoplan-restore-${DATETIME}.md"
Write the plan file's full contents to the restore path with this header:
# /avad-autoplan Restore Point
Captured: [timestamp] | Branch: [branch] | Commit: [short hash]
## Re-run Instructions
1. Copy "Original Plan State" below back to your plan file
2. Invoke /avad-autoplan
## Original Plan State
[verbatim plan file contents]
Then prepend a one-line HTML comment to the plan file:
<!-- /avad-autoplan restore point: [RESTORE_PATH] -->
ls -t ~/.avadbot/projects/$SLUG/*-design-*.md 2>/dev/null | head -1Read each file using the Read tool. Before reading each sibling skill file, verify it exists. If a skill file is missing, skip that review phase and note it in the log.
CEO review skill:
${CLAUDE_SKILL_DIR}/../avad-plan-ceo-review/SKILL.mdDesign review skill (only if UI scope detected):
${CLAUDE_SKILL_DIR}/../avad-plan-design-review/SKILL.mdEng review skill:
${CLAUDE_SKILL_DIR}/../avad-plan-eng-review/SKILL.mdSection skip list — when following a loaded skill file, SKIP these sections (they are already handled by /avad-autoplan):
Follow ONLY the review-specific methodology, sections, and required outputs.
Output: "Here's what I'm working with: [plan summary]. UI scope: [yes/no]. Loaded review skills from disk. Starting full review pipeline with auto-decisions."
Follow avad-plan-ceo-review/SKILL.md — all sections, full depth. Override: every AskUserQuestion → auto-decide using the 6 principles.
Override rules:
Required execution checklist (CEO):
Step 0 (0A-0F) — run each sub-step and produce:
Sections 1-10 — for EACH section, run the evaluation criteria from the loaded skill file:
Mandatory outputs from Phase 1:
Follow avad-plan-design-review/SKILL.md — all 7 dimensions, full depth. Override: every AskUserQuestion → auto-decide using the 6 principles.
Override rules:
Follow avad-plan-eng-review/SKILL.md — all sections, full depth. Override: every AskUserQuestion → auto-decide using the 6 principles.
Override rules:
~/.avadbot/projects/$SLUG/{user}-{branch}-test-plan-{datetime}.mdRequired execution checklist (Eng):
Step 0 (Scope Challenge): Read actual code referenced by the plan. Map each sub-problem to existing code. Run the complexity check. Produce concrete findings.
Section 1 (Architecture): Produce ASCII dependency graph showing new components and their relationships to existing ones. Evaluate coupling, scaling, security.
Section 2 (Code Quality): Identify DRY violations, naming issues, complexity. Reference specific files and patterns. Auto-decide each finding.
Section 3 (Test Review) — NEVER SKIP OR COMPRESS. This section requires reading actual code, not summarizing from memory.
Section 4 (Performance): Evaluate N+1 queries, memory, caching, slow paths.
Mandatory outputs from Phase 3:
After each auto-decision, append a row to the plan file using Edit:
<!-- AUTONOMOUS DECISION LOG -->
## Decision Audit Trail
| # | Phase | Decision | Principle | Rationale | Rejected |
|---|-------|----------|-----------|-----------|----------|
Write one row per decision incrementally (via Edit). This keeps the audit on disk, not accumulated in conversation context.
Before presenting the Final Approval Gate, verify that required outputs were actually produced. Check the plan file and conversation for each item.
Phase 1 (CEO) outputs:
Phase 2 (Design) outputs — only if UI scope detected:
Phase 3 (Eng) outputs:
Audit trail:
If ANY checkbox above is missing, go back and produce the missing output. Max 2 attempts — if still missing after retrying twice, proceed to the gate with a warning noting which items are incomplete. Do not loop indefinitely.
STOP here and present the final state to the user.
Present as a message, then use AskUserQuestion:
## /avad-autoplan Review Complete
### Plan Summary
[1-3 sentence summary]
### Decisions Made: [N] total ([M] auto-decided, [K] choices for you)
### Your Choices (taste decisions)
[For each taste decision:]
**Choice [N]: [title]** (from [phase])
I recommend [X] — [principle]. But [Y] is also viable:
[1-sentence downstream impact if you pick Y]
### Auto-Decided: [M] decisions [see Decision Audit Trail in plan file]
### Review Scores
- CEO: [summary]
- Design: [summary or "skipped, no UI scope"]
- Eng: [summary]
### Deferred to TODOS.md
[Items auto-deferred with reasons]
Cognitive load management:
AskUserQuestion options:
Option handling:
On approval, write review log entries so /avad-ship's dashboard recognizes them:
SLUG=$(git remote get-url origin 2>/dev/null | sed 's|.*[:/]\([^/]*/[^/]*\)\.git$|\1|;s|.*[:/]\([^/]*/[^/]*\)$|\1|' | tr '/' '-')
BRANCH=$(git rev-parse --abbrev-ref HEAD 2>/dev/null | tr '/' '-')
COMMIT=$(git rev-parse --short HEAD 2>/dev/null)
TIMESTAMP=$(date -u +%Y-%m-%dT%H:%M:%SZ)
mkdir -p ~/.avadbot/projects/$SLUG
echo '{"skill":"avad-plan-ceo-review","timestamp":"'"$TIMESTAMP"'","status":"clean","unresolved":0,"critical_gaps":0,"mode":"SELECTIVE_EXPANSION","via":"avad-autoplan","commit":"'"$COMMIT"'"}' >> ~/.avadbot/projects/$SLUG/$BRANCH-reviews.jsonl
echo '{"skill":"avad-plan-eng-review","timestamp":"'"$TIMESTAMP"'","status":"clean","unresolved":0,"critical_gaps":0,"issues_found":0,"mode":"FULL_REVIEW","via":"avad-autoplan","commit":"'"$COMMIT"'"}' >> ~/.avadbot/projects/$SLUG/$BRANCH-reviews.jsonl
If Phase 2 ran (UI scope):
echo '{"skill":"avad-plan-design-review","timestamp":"'"$TIMESTAMP"'","status":"clean","unresolved":0,"via":"avad-autoplan","commit":"'"$COMMIT"'"}' >> ~/.avadbot/projects/$SLUG/$BRANCH-reviews.jsonl
Replace field values with actual counts from the review.
Suggest next step: /avad-ship when ready to create the PR.
data-ai
Clear the freeze boundary set by /avad-freeze, allowing edits to all directories again. Use when you want to widen edit scope without ending the session. Use when asked to "unfreeze", "unlock edits", "remove freeze", or "allow all edits".
testing
Ship workflow: validate branch state, sync with target branch, run tests, pre-landing review, push, and create PR. Project-aware — reads target branch, test commands, and review checklist from docs/GIT_WORKFLOW.md.
development
Pre-landing code review. Analyzes diff for structural issues using a project-specific checklist. Two modes: local (review current branch) or PR (review and comment on a GitHub PR by number). Proactively suggest when the user is about to merge or land code changes.
development
Weekly engineering retrospective. Analyzes commit history, work patterns, and code quality metrics with persistent history and trend tracking. Team-aware: breaks down per-person contributions with praise and growth areas.