jhlee0409/all-for-claudecode/auto
Claude Code and agent skill by jhlee0409/all-for-claudecode
- community
Checking that the SKILL.md file is still in the repository.
Full auto pipeline — run spec-to-clean cycle automatically for new features
Install
npx vskill@latest install jhlee0409/all-for-claudecode/autoSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as jhlee0409/all-for-claudecode/auto.
/afc:auto — Full Auto Pipeline
Runs clarify? → spec → plan → implement → review → clean fully automatically from a single feature description.Tasks are generated automatically at implement start (no separate tasks phase).Critic Loop runs at each phase (unified safety cap: 5). Convergence terminates early when quality is sufficient.Pre-implementation gates (clarify, TDD pre-gen, blast-radius) run conditionally.Skill Advisor: 5 checkpoints (A–E) at phase boundaries; max 5 auxiliary invocations per pipeline. Seeskills/auto/skill-advisor.mdfor details.
Arguments
$ARGUMENTS— (required) Feature description in natural language
Project Config (auto-loaded)
!cat .claude/afc.config.md 2>/dev/null || echo "[CONFIG NOT FOUND] .claude/afc.config.md not found. Create it with /afc:init."
Config Load
Always read .claude/afc.config.md first. Values referenced as {config.*}:
{config.ci}— full CI command{config.gate}— phase gate command{config.test}— test command{config.architecture}— architecture rules{config.code_style}— code style rules
If config missing: ask user to run /afc:init. If declined → abort.
Critic Loop Rules
Always read${CLAUDE_SKILL_DIR}/../../docs/critic-loop-rules.mdbefore running any Critic pass. Core: minimum 1 concern per criterion + mandatory Adversarial failure scenario each pass + quantitative evidence required. "PASS" as a single word is prohibited. On ESCALATE: pause and present options via AskUserQuestion even in auto mode.
Execution Steps
Phase 0: Preparation
- If
$ARGUMENTSis empty → print "Please enter a feature description." and abort - Check current branch →
BRANCH_NAME. Determine feature name (2-3 keywords, kebab-case). - Preflight Check:
``bash "${CLAUDE_SKILL_DIR}/../../scripts/afc-preflight-check.sh" `` Exit 1 → abort. Warnings (exit 0) → print and continue.
- Activate Pipeline Flag:
``bash "${CLAUDE_SKILL_DIR}/../../scripts/afc-pipeline-manage.sh" start {feature} ` Creates afc/pre-auto` safety snapshot, activates Stop Gate Hook, starts change tracking.
- Create
.claude/afc/specs/{feature}/→ record as `PIPELINE_ARTIFACT_DIR` - Initialize Skill Advisor:
ADVISOR_COUNT = 0,ADVISOR_TRANSFORM_USED = false
``bash afc_state_write "advisorCount" "0" afc_state_write "advisorTransformUsed" "false" ``
- Start notification:
`` Auto pipeline started: {feature} ├─ Clarify? → 1/5 Spec → 2/5 Plan → 3/5 Implement → 4/5 Review → 5/5 Clean └─ Running fully automatically (tasks auto-generated, pre-implementation gates conditional) ``
Phase 0.3: Request Triage
- Necessity: Explore codebase for existing implementations. If feature substantially exists → ask: "(1) Enhance existing (2) Replace entirely (3) Abort". Abort → release pipeline flag and end.
- Scope: If
$ARGUMENTSimplies 10+ files or multiple unrelated concerns → warn and ask: "(1) Proceed (2) Reduce scope (3) Abort". - Proportionality: If trivially small (single file, single-line, config edit) → suggest fast-path skip.
Phase 0.8: Size-Based Fast-Path Detection (conditional)
ALL 3 criteria must be met to trigger fast-path:
| Criterion | Check | |
|---|---|---|
| Trivial scope | Explicitly mentions 1-2 specific files or a single-line fix | |
| No script impact | Does not reference .sh scripts, hooks, or pipeline logic | |
| Low ambiguity | Clarify gate score < 2 |
If ALL 3 met (fast-path):
- Print:
⚡ Fast path detected — skipping spec/plan phases - Implement the change directly (no tasks.md, no plan.md)
- Run
{config.ci}— on fail or if > 2 files modified: rollback (git reset --hard afc/pre-auto) and restart with full pipeline - ```bash
"${CLAUDE_SKILL_DIR}/../../scripts/afc-pipeline-manage.sh" phase fast-path "${CLAUDE_SKILL_DIR}/../../scripts/afc-pipeline-manage.sh" ci-pass ```
- Run mini-review (single Critic pass). Then run Phase 5 Clean logic.
- Final output:
`` Fast path complete: {feature} ├─ Mode: ⚡ Fast path (spec/plan skipped) ├─ Changed files: {N} ├─ CI: ✓ └─ Review: mini-review passed ``
If ANY criterion fails: proceed to Phase 0.5 (full pipeline).
Phase 0.5: Auto-Clarify Gate (conditional)
"${CLAUDE_SKILL_DIR}/../../scripts/afc-pipeline-manage.sh" phase clarify
Score $ARGUMENTS on 5 ambiguity signals (vague scope, missing quantifiers, undefined entities, unclear boundaries, multiple interpretations). If score >= 3: generate at most 3 questions via AskUserQuestion. Apply answers to refine $ARGUMENTS. In full-auto mode: auto-resolve with best-guess, tag [AUTO-RESOLVED: clarify].
If score < 3: skip silently.
Skill Advisor Checkpoint A (Pre-Spec)
Evaluate BEFORE Phase 1. Seeskills/auto/skill-advisor.md#checkpoint-a--pre-specfor full evaluation prompts, invocation patterns, and state management. Budget: max 2 skills, max 1 Transform. Skip ifADVISOR_COUNT >= 5.
Signals: A1 (idea-level request → ideate Transform), A2 (domain expertise needed → consult({domain}) Enrich).
After advisor skill completes, append result summary to context.md:
Phase 1: Spec (1/5)
"${CLAUDE_SKILL_DIR}/../../scripts/afc-pipeline-manage.sh" phase spec
Execute /afc:spec logic inline:
- Explore codebase (Glob, Grep) by
{config.architecture}layer - Research Gate (conditional): scan
$ARGUMENTSfor external library/API references not in codebase. If found: WebSearch (or Context7) for latest stable version, key constraints. Tag researched items[RESEARCHED]. Skip if all internal. - Create
.claude/afc/specs/{feature}/spec.md [NEEDS CLARIFICATION]items: research first, then auto-resolve remaining as[AUTO-RESOLVED]- Retrospective check: load most recent 10
.claude/afc/memory/retrospectives/files (if exist) — flag[AUTO-RESOLVED]patterns that previously went wrong - Critic Loop until convergence (safety cap: 5, follow
docs/critic-loop-rules.md):
- COMPLETENESS: every User Story has acceptance scenarios?
- MEASURABILITY: criteria measurable, quantitative evidence for numerical targets?
- INDEPENDENCE: no implementation details (code, library names) in spec?
- EDGE_CASES: at least 2 identified?
- TESTABILITY: every System Requirement follows EARS pattern? Each has mapped TC (
→ TC: should_...)? - Verdicts: follow
docs/critic-loop-rules.md
- Progress:
✓ 1/5 Spec complete (US: {N}, FR: {N}, researched: {N}, Critic: converged ({N} passes, {M} fixes, {E} escalations))
Skill Advisor Checkpoint B (Post-Spec)
Evaluate AFTER Phase 1, BEFORE Phase 2. Seeskills/auto/skill-advisor.md#checkpoint-b--post-specfor full invocation patterns. Budget: max 2 skills. Skip ifADVISOR_COUNT >= 5.
Signals: B1 (sensitive data/trust boundary → security Enrich), B2 (cross-architectural boundary → architect Enrich). If both >= 3: launch parallel. Security/architecture conflicts → ESCALATE.
After advisor skill completes, append result summary to context.md:
Phase 2: Plan (2/5)
"${CLAUDE_SKILL_DIR}/../../scripts/afc-pipeline-manage.sh" phase plan
Execute /afc:plan logic inline:
- Load spec.md
- Research (ReWOO pattern, if needed): extract technical uncertainties. Plan → Execute parallel Tasks → Solve. Record to
.claude/afc/specs/{feature}/research.md. 1-2 topics → resolve directly. - Memory loading (skip if absent):
- Quality history: most recent 10 files from
.claude/afc/memory/quality-history/— trend summary - Decisions: most recent 30 from
.claude/afc/memory/decisions/— conflict check - Reviews: most recent 15 from
.claude/afc/memory/reviews/— recurring finding patterns
- Create
.claude/afc/specs/{feature}/plan.md. Include structure-analysis-based estimates for numerical targets. - Critic Loop until convergence (safety cap: 5, follow
docs/critic-loop-rules.md):
- COMPLETENESS, FEASIBILITY, ARCHITECTURE, CROSS_CONSISTENCY, RISK, PRINCIPLES
- CROSS_CONSISTENCY (check all 5): entity coverage, NFR traceability, terminology consistency, constraint propagation, acceptance anchor alignment
- RISK: enumerate at least 3
{config.ci}failure scenarios; check each risk pattern from Project Context - ARCHITECTURE: describe import paths for moved/created files, pre-validate against
{config.architecture}rules - Each pass must explicitly note what was missed in the previous pass
- Persist research to
.claude/afc/memory/research/{feature}.md - ADR recording: invoke
afc-architectagent to record architectural decisions. If conflicts found → ESCALATE - Session context — write
.claude/afc/specs/{feature}/context.md:
```markdown # Session Context: {feature} ## Goal
- Original request: $ARGUMENTS
- Current objective: Implement {feature}
## Acceptance Criteria (from spec.md) {copy ALL FR-, NFR-, SC-* items and GWT acceptance scenarios verbatim} ## Key Decisions
- {what}: {rationale}
## Discoveries
- {file path}: {finding}
```
- Progress:
✓ 2/5 Plan complete (Critic: converged ({N} passes, {M} fixes, {E} escalations), files: {N}, ADR: {N} recorded, Implementation Context: {W} words)
Skill Advisor Checkpoint C (Post-Plan)
Evaluate AFTER Phase 2, BEFORE Phase 3. Seeskills/auto/skill-advisor.md#checkpoint-c--post-planfor full invocation patterns. Budget: max 2 skills. Skip ifADVISOR_COUNT >= 5.
Signals: C1 (high interconnection risk → dependency analysis Observe), C2 (unresolved domain uncertainties → consult({domain}) Enrich).
After advisor skill completes, append result summary to context.md:
Phase 3: Implement (3/5)
"${CLAUDE_SKILL_DIR}/../../scripts/afc-pipeline-manage.sh" phase implement
Context optimization: If extensive exploration occurred in previous phases, consider /rewind → Summarize from here to compact investigation-heavy sections while preserving plan/spec context intact.
Session context reload: read .claude/afc/specs/{feature}/context.md. If complexity-analysis.md exists, read it and flag high-risk files for extra verification.
Follow all orchestration rules in skills/implement/SKILL.md (mode selection, batch/swarm, failure recovery).
Step 3.1: Task Generation + Validation
Generate tasks.md from plan.md File Change Map. Required format:
Principles: 1 task = 1 file, same file = sequential, different files = [P] candidate. Append Coverage Mapping (every FR-/NFR- mapped to at least one task).
Check retrospective for past [P] conflict patterns. Run DAG and parallel overlap validation scripts — no critic loop, script-based only. Fix conflicts before proceeding.
Progress: ├─ Tasks generated: {N} ({P} parallelizable), Coverage: FR {M}%, NFR {K}%
Step 3.2: TDD Pre-Generation (conditional)
Trigger: tasks.md contains at least 1 task targeting a .sh file in scripts/.
Verify skeletons are parseable: {config.test} should show Pending examples. Create tests-pre.md listing expectations per task. Progress: ├─ TDD pre-gen: {N} skeletons generated
Step 3.3: Blast Radius Analysis (conditional)
Trigger: plan.md File Change Map lists >= 3 files.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/auto/SKILL.md
Popularity
- Repository stars
- 7
- 7-day trend score
- 10
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jhlee0409/all-for-claudecode/auto)