From auto-complete-loop
Loaded by the full-auto orchestrator at Phase 1 entry via Read.
How this skill is triggered — by the user, by Claude, or both
Slash command
/auto-complete-loop:doc-planningThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Loaded by the full-auto orchestrator at Phase 1 entry via Read.
Loaded by the full-auto orchestrator at Phase 1 entry via Read. No Ralph/progress/promise code — managed by the orchestrator.
shared-rules.md가 이미 로드된 상태projectScope.hasBackend=true인 경우):
docs/logging-standard.md — 없으면 ${CLAUDE_PLUGIN_ROOT}/templates/logging-standard.md를 docs/로 복사 후 문서 목록에 pending으로 추가docs/error-policy.md — 없으면 동일 템플릿 복사 후 pending 등록docs/security-authn-authz.md — 없으면 동일 템플릿 복사 후 pending 등록completed 상태여야 함 (이후 Step 1-9 검증에서 HARD_FAIL)for t in logging-standard error-policy security-authn-authz; do
[[ -f "docs/$t.md" ]] || cp "${CLAUDE_PLUGIN_ROOT}/templates/$t.md" "docs/$t.md"
done
정의 문서에 다음 섹션이 존재하는지 검증:
누락 섹션 감지 시: Claude가 1회 자동 보완 시도. 보완 후 경고 출력: "overview.md에 [섹션명]이 누락되어 자동 보완했습니다. 확인해주세요."
자동 보완은 하드 실패가 아님 — 기존 프로젝트(PM Planning 없이 직접 실행) 호환성 유지.
progress 파일의 phases.phase_1.documents에 문서 목록 등록:
[
{"name": "auth.md", "status": "pending"},
{"name": "user-profile.md", "status": "pending"}
]
선택된 모든 문서에 대해 순차적으로 2자 토론 수행:
문서 시작
currentDocument 설정, 해당 문서 status -> in_progresscodex-cli에게 피드백 요청
codex exec --skip-git-repo-check '## 역할
당신은 기획 문서 품질 검토 전문가입니다.
아래 파일들을 직접 읽고 검토하세요.
## 검토 대상
- 정의 문서 (헌법): [overview.md 경로] — 직접 읽고 핵심 원칙과 Non-Goals를 파악하세요
- 검토할 문서: [문서 경로] — 직접 읽고 정의 문서 기준으로 검토하세요
## 요청
피드백을 Critical/High/Medium/Low 우선순위로 분류해서 제공해주세요.
## E2E 시나리오 관점
SPEC.md 작성 시 핵심 E2E 시나리오 3-5개를 도출하세요.
- 인증 플로우, CRUD 플로우, 네비게이션 플로우 우선
- 각 시나리오에 관련 User Story ID를 매핑
- 여러 문서에 걸치는 크로스커팅 시나리오를 명시적으로 표시
'
Claude Code가 codex 피드백 분석/반론
codex-cli에게 재검토 요청 (이전 토론 요약 포함)
참여 중인 AI 모두 "수정 없음" 합의까지 3-4 반복
round 값 업데이트문서 품질 체크리스트 확인 (합의 전 필수)
합의된 내용으로 최종 문서 확정
확정된 문서 다시 검토
문서 완료 처리
status -> completed, round 삭제/compact 실행 (다음 문서 시작 전 컨텍스트 정리)다음 문서로 자동 진행 (목록 끝까지 반복)
핵심 원칙: 비판적 시각
codex-cli 역할: 객관적 기준 기반 피드백, 우선순위별 분류, 구체적 개선안 Claude Code 역할: codex 피드백 비판적 분석, 실제 필요한 수정만 선별, 최종 문서 수정
AI 제외 규칙:
합의 기준:
5라운드 에스컬레이션: 5라운드 후에도 Critical 피드백이 잔존하는 경우:
공통 기획 규칙은 아래 파일을 Read하여 적용합니다. Read ${CLAUDE_PLUGIN_ROOT}/templates/doc-planning-common.md
기획 수준 원칙(MVP 금지, TDD, E2E), 문서 품질 체크리스트, 검토 기준, 피드백 우선순위 모두 위 템플릿을 따릅니다.
복구로 in_progress 문서부터 재시작:
round 값이 있으면 해당 라운드부터, 없으면 처음부터 토론 시작모든 문서 토론 완료 후:
bash ${CLAUDE_PLUGIN_ROOT}/scripts/shared-gate.sh doc-consistency docs/
스크립트가 발견한 구조적 불일치를 Claude가 수정합니다.
Phase 0의 API/모델/플로우 테이블이 Phase 1에서 충분히 상세화되었는지 검증합니다.
Roundtable Agent를 호출하여 다관점 아키텍처 리뷰를 수행합니다:
roundtable 에이전트 호출라운드테이블 프로세스 (roundtable.md 참조):
블로킹 조건:
결과를 progress 파일에 기록:
_tmp=$(mktemp)
jq '.phases.phase_1.outputs.roundtableArchReview = {
"verdict": "PROCEED|REVISE|ESCALATE",
"criticalCount": N,
"consensusItems": [...],
"unresolvedConflicts": [...]
}' {PROGRESS_FILE} > "$_tmp" && mv "$_tmp" {PROGRESS_FILE}
Claude가 직접 수행하는 검증:
US-F-* (프론트엔드) 또는 US-B-* (백엔드) 형식의 ID가 부여되었는지 확인Phase 1 완료 시 SPEC.md의 핵심 플로우를 기반으로 실행 가능한 검증 스크립트를 생성합니다:
hasBackend=true: tests/api-smoke.sh 생성
$BASE_URL (기본값: http://localhost:3000)hasFrontend=true: tests/ui-smoke.sh 또는 tests/ui-smoke.spec.ts 생성
library/CLI: tests/lib-smoke.sh 생성
US-* ID 필수화 규칙:
Phase 1 완료 직전, Test Strategist Agent를 호출하여 테스트 전략을 수립합니다:
test-strategist 에이전트 호출docs/test-plan.md에 저장모든 문서 토론 완료 및 검증 스크립트 생성 후, Phase 전이 전 최종 검증을 수행합니다:
# SPEC 파일 탐색 (다양한 경로 지원)
spec_file=""
for candidate in "SPEC.md" "docs/SPEC.md" "docs/api-spec.md" "spec.md"; do
[[ -f "$candidate" ]] && { spec_file="$candidate"; break; }
done
if [[ -n "$spec_file" ]]; then
# 스펙 깊이 검증
api_detail=$({ grep -c 'Request\|Response\|필드\|Field\|Body' "$spec_file" 2>/dev/null || true; } | tr -d '[:space:]')
[[ -z "$api_detail" || ! "$api_detail" =~ ^[0-9]+$ ]] && api_detail=0
if [[ $api_detail -lt 3 ]]; then
echo "WARN: $spec_file에 API 상세 부족"
fi
# US-* ID 존재 체크 (US-F-*/US-B-* 형식만 허용)
us_count=$({ grep -coE 'US-(F|B)-[0-9]+' "$spec_file" 2>/dev/null || true; } | tr -d '[:space:]')
[[ -z "$us_count" || ! "$us_count" =~ ^[0-9]+$ ]] && us_count=0
if [[ $us_count -eq 0 ]]; then
echo "WARN: $spec_file에 US-* ID 없음"
fi
else
echo "WARN: SPEC 파일을 찾을 수 없음 (SPEC.md, docs/SPEC.md, docs/api-spec.md, spec.md)"
fi
# 검증 스크립트 존재 체크 (projectScope 기반 — progress 파일에서 로드)
has_backend=$(jq -r '.phases.phase_0.outputs.projectScope.hasBackend // "false"' "$PROGRESS_FILE" 2>/dev/null || echo "false")
has_frontend=$(jq -r '.phases.phase_0.outputs.projectScope.hasFrontend // "false"' "$PROGRESS_FILE" 2>/dev/null || echo "false")
# hasBackend=true → api-smoke.sh 필수
if [[ "$has_backend" == "true" ]] && [[ ! -f tests/api-smoke.sh ]]; then
echo "FAIL: hasBackend=true이지만 tests/api-smoke.sh 미생성"
fi
# hasFrontend=true → ui-smoke.sh 또는 ui-smoke.spec.ts/js 필수
if [[ "$has_frontend" == "true" ]] && [[ ! -f tests/ui-smoke.sh ]] && [[ ! -f tests/ui-smoke.spec.ts ]] && [[ ! -f tests/ui-smoke.spec.js ]]; then
echo "FAIL: hasFrontend=true이지만 tests/ui-smoke.* 미생성"
fi
# library/CLI → lib-smoke.sh
if [[ "$has_backend" != "true" ]] && [[ "$has_frontend" != "true" ]] && [[ ! -f tests/lib-smoke.sh ]]; then
echo "FAIL: 라이브러리/CLI이지만 tests/lib-smoke.sh 미생성"
fi
WARN은 경고만 출력하고 진행, FAIL은 해당 단계를 재수행합니다.
if [[ "$has_backend" == "true" ]]; then
for t in logging-standard error-policy security-authn-authz; do
if [[ ! -f "docs/$t.md" ]]; then
echo "FAIL: docs/$t.md 미생성 (hasBackend=true는 3종 표준 문서 필수)"
fi
done
fi
bash ${CLAUDE_PLUGIN_ROOT}/scripts/shared-gate.sh clarification-gate docs/
모든 문서 completed 시:
all_docs_complete.checked = truenpx claudepluginhub vp-k/auto-complete-loopProvides behavioral guidelines to reduce common LLM coding mistakes, focusing on simplicity, surgical changes, assumption surfacing, and verifiable success criteria.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.