Help us improve
Share bugs, ideas, or general feedback.
From ccpp
Runs Ralph Loop autonomous dev loop: reads PRD/checklist, implements/tests/commits one item per session via Stop Hook, auto-branches/ignores state. Trigger: autodev, ralph loop for overnight progress.
npx claudepluginhub jh941213/my-cc-harness --plugin ccppHow this skill is triggered — by the user, by Claude, or both
Slash command
/ccpp:autodevThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Stop Hook 기반 자율 개발 루프. PRD/체크리스트의 항목을 하나씩 완료하고 자동 커밋한다.
Runs autonomous AI coding loop with ralph-starter: checks project state, implements tasks from specs/GitHub/Linear/Notion/Figma issues, iterates code writing/validation/commits.
Executes autonomous development loops picking one task per iteration, implementing, verifying, and committing in fresh context windows with task tracking.
Automates iterative coding task execution with fresh-context sub-agents, PRD.md/PROGRESS.md tracking, and git commits until completion.
Share bugs, ideas, or general feedback.
Stop Hook 기반 자율 개발 루프. PRD/체크리스트의 항목을 하나씩 완료하고 자동 커밋한다. 밤새 돌려놓으면 출근 시 PR이 올라와 있다.
세션 시작 → PRD 읽기 → 다음 항목 처리 → 커밋 → 세션 종료
↓
Stop Hook 감지
↓
완료? → Yes → 종료
↓ No
inject_prompt → 새 세션 시작
↓
PRD 읽기 → ...
사용자에게 확인 (빠진 것만 질문):
goal: "무엇을 달성할 것인가" # 예: "PRD.md의 모든 항목 완료"
prd: "PRD 또는 체크리스트 파일 경로" # 예: "PRD.md" 또는 "tasks/todo.md"
scope: ["수정 가능한 파일 패턴"] # 예: ["src/**", "tests/**"]
verify: "검증 명령어" # 예: "npm test" (자동 감지 가능)
max_iterations: 100 # 최대 반복 수 (기본 100)
completion_promise: "DONE" # 완료 시그널 (기본 "DONE")
mode: "continue" # continue | reset (기본 continue)
사용자가 verify를 안 줬으면:
package.json → npm test 또는 vitest runpyproject.toml → pytestMakefile → make testecho "no verify command"# 1. autodev 브랜치 생성
git checkout -b autodev/$(date +%Y%m%d-%H%M)
# 2. .ralph-loop/ 상태 디렉토리 생성
mkdir -p .ralph-loop
# 3. 상태 파일 초기화
cat > .ralph-loop/state.json << 'STATE'
{
"active": true,
"iteration": 0,
"max_iterations": {max_iterations},
"prompt": "{goal}",
"completion_promise": "{completion_promise}",
"prd_path": "{prd}",
"verify_command": "{verify}",
"started_at": "{ISO시간}",
"status": "running"
}
STATE
# 4. .gitignore에 .ralph-loop/ 추가
echo ".ralph-loop/" >> .gitignore
# 5. 베이스라인 검증
{verify} 2>&1 | tee .ralph-loop/baseline.log
각 세션(반복)에서 수행하는 절차:
1. READ PRD
- {prd} 파일을 읽는다
- 미완료 항목([ ]) 중 첫 번째를 선택
2. PLAN
- 선택한 항목을 구현하기 위한 최소 변경 계획
- scope 내 파일만 수정 가능
3. IMPLEMENT
- 계획대로 코드 수정
- scope 밖 파일 절대 수정 금지
4. VERIFY
- {verify} 실행
- 실패 시 build-fix 1회 시도
- 2회 실패 시 변경 롤백 (git checkout -- .)
5. COMMIT
- 성공 시:
git add -A
git commit -m "[autodev] {항목 요약}"
- PRD에서 해당 항목을 [x]로 체크
6. CHECK COMPLETION
- PRD에 미완료 항목이 남아있는가?
- Yes → 세션 자연 종료 (Stop Hook이 다음 반복 시작)
- No → 모든 항목 완료!
<promise>{completion_promise}</promise> 출력
→ Stop Hook이 감지하고 루프 종료
루프 종료 시 (완료 또는 max_iterations 도달):
# AutoDev 완료 보고서
## 요약
- 총 반복: {N}회
- 완료 항목: {K}/{total}
- 베이스라인 → 최종: 검증 통과
- 상태: {completed | max_iterations_reached}
## 완료된 항목
| # | 항목 | 커밋 |
|---|------|------|
| 1 | API 엔드포인트 구현 | abc1234 |
| 2 | 인증 추가 | def5678 |
## 미완료 항목 (있으면)
- [ ] 항목 N: 이유
## 브랜치
autodev/{tag} — main 머지 준비 완료
~/.claude/hooks/ralph-loop.sh가 세션 종료 시 실행:
.ralph-loop/state.json의 active가 true이면 다음 반복 시작<promise>DONE</promise> 감지 시 루프 종료iteration >= max_iterations 시 루프 종료active: false이면 아무 동작 없음# 루프 중지
python3 -c "import json; s=json.load(open('.ralph-loop/state.json')); s['active']=False; json.dump(s,open('.ralph-loop/state.json','w'))"
# 상태 확인
cat .ralph-loop/state.json
# 루프 재개
python3 -c "import json; s=json.load(open('.ralph-loop/state.json')); s['active']=True; json.dump(s,open('.ralph-loop/state.json','w'))"
| 상황 | 사용 스킬 |
|---|---|
| 빌드 실패 시 복구 | build-fix |
| 커밋 후 코드 정리 | simplify |
| 테스트 기반 구현 | tdd |
| 항목 구현 계획 | plan |
| 최종 검증 | verify |