1주차 - 동작하는 OS 뼈대 - #46
Open
ssamzag wants to merge 4 commits into
Open
Conversation
added 4 commits
July 8, 2026 20:05
- OS.md 추가 (헌법 H1~H6, 3단계 파이프라인 정의) - CLAUDE.md에 OS.md 준수 지시 및 회고 로그 섹션 추가 - .claude/skills: m-brainstorm, m-spec, m-plan, m-build, m-retrospect, m-status - .claude/agents: spec-writer, conflict-analyzer, test-writer, implementer, verifier - .claude/hooks: session-guard, test-guard, commit-guard, skill-stat - .github, specs/, src/ 초기 디렉토리 추가 - README.md 제거
002-spec 사이클: 고정 상품 10개 카탈로그 조회, 장바구니 항목별 소계, 합계에 대한 할인율 계산(applyDiscount)을 추가한다. Cart는 catalog를 선택적 협력 객체로 받아 001-spec 하위호환을 유지한다.
…efactor) 파이프라인 외부에서도 독립적으로 사용 가능한 범용 TDD 에이전트 세트. H1(러너 출력 전문), H2(컨텍스트 격리), H3(테스트 read-only) 헌법 준수.
- /m-build 를 GREEN→REFACTOR(tdd-refactor)→verifier 감사 흐름으로 확장, RED→GREEN→REFACTOR 완성 - /m-tdd 스킬 추가 (파이프라인 밖 경량 TDD 진입점) - §4 서브에이전트를 정식 파이프라인 6개 + m-tdd 전용 3개로 구분 등록 - 헌법 변경 없음 (REFACTOR는 H1·H3·H5로 커버)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
1. 소개
SDD(스펙 주도) + TDD(테스트 주도) 기반의 3단계 사람–AI 협업 파이프라인.
전체 사이클을 돌려보는 게 목적이며 고도화시 단계는 늘어날 예정입니다. 각 사이클은 요구 한 줄 → 커밋으로 끝나며, 사람이 개입하는 지점은 3회입니다.
2. 헌법 (위반 판정 가능한 규칙)
AI가 절대 어길 수 없는 규칙. 위반이 필요하면 멈추고 사람에게 보고합니다.
src/test/**는 read-only (훅으로 강제). 테스트가 틀렸으면 수정 말고 이의 제기/m-retrospect를 기다리지 않고 그 자리에서 CLAUDE.md에 기록3. 3단계 파이프라인
/m-specspecs/NNN-spec.md(Q&A + Given/When/Then + 충돌 분석)/m-planspecs/NNN-plan.md(인터페이스 + 대응표) + 실패하는 테스트/m-buildBUILD 내부 루프: ① GREEN(구현→러너 즉시 실행, 3회 연속 실패 시 에스컬레이션) → ② REFACTOR(선택, 동작 불변) → ③ verifier 감사(실행 테스트 수 = 대응표 수,
src/test/**diff 없음, 러너 전문 첨부).4. 스킬 (Skills) —
.claude/skills/tdd에 위임5. 에이전트 (Agents) —
.claude/agents/정식 파이프라인 (§3):
specs/전체 대비 충돌·중복·영향 분석 (spec-writer와 분리 컨텍스트)/m-tdd경량 진입점 전용 (파이프라인 밖):6. 훅 (Hooks) —
.claude/hooks/헌법을 코드로 강제하는 장치.
settings.local.json에 트리거가 등록되어 있다.src/test/**쓰기 차단git commit차단 ② conventional 형식 아니면 차단.claude/skill-stats.log에 기록 (과제용 통계).claude/phase파일이 상태 스위치다./m-build진입 시build로 설정되고, 커밋 또는 에스컬레이션 시 해제된다. 비어 있으면 test-guard·commit-guard는 차단하지 않는다.한눈에 보는 흐름
리뷰 요청이 좀 늦었습니다. 잘 부탁드립니다.
지금은 OS를 안 쓰고 각각 요청하는 게 더 결과물이 더 좋네요. :(
계속해서 연구해 보겠습니다!