# Project: {프로젝트명} ## Repository Role - This repository is a Codex-first Harness Engineering template. - Persistent repository instructions live in this `AGENTS.md`. - Reusable repo-scoped workflows live in `.agents/skills/`. - Project-scoped custom agents live in `.codex/agents/`. - Experimental hooks live in `.codex/hooks.json`. ## 기술 스택 - {프레임워크 (예: Next.js 15)} - {언어 (예: TypeScript strict mode)} - {스타일링 (예: Tailwind CSS)} ## 아키텍처 규칙 - CRITICAL: {절대 지켜야 할 규칙 1 (예: 모든 API 로직은 app/api/ 라우트 핸들러에서만 처리)} - CRITICAL: {절대 지켜야 할 규칙 2 (예: 클라이언트 컴포넌트에서 직접 외부 API를 호출하지 말 것)} - {일반 규칙 (예: 컴포넌트는 components/ 폴더에, 타입은 types/ 폴더에 분리)} ## Harness Workflow - 먼저 `docs/PRD.md`, `docs/ARCHITECTURE.md`, `docs/ADR.md`, `docs/UI_GUIDE.md`를 읽고 기획/설계 의도를 파악할 것 - 단계별 실행 계획이 필요하면 repo skill `harness-workflow`를 사용해 `phases/` 아래 파일을 설계할 것 - 변경사항 리뷰가 필요하면 repo skill `harness-review` 또는 Codex의 `/review`를 사용할 것 - `phases/{phase}/index.json`은 phase 진행 상태의 단일 진실 공급원으로 취급할 것 - 각 `stepN.md`는 독립된 Codex 세션에서도 실행 가능하도록 자기완결적으로 작성할 것 ## 개발 프로세스 - CRITICAL: 새 기능 구현 시 반드시 테스트를 먼저 작성하고, 테스트가 통과하는 구현을 작성할 것 (TDD) - 커밋 메시지는 conventional commits 형식을 따를 것 (`feat:`, `fix:`, `docs:`, `refactor:`) - `scripts/execute.py`는 step 완료 후 코드/메타데이터 커밋을 정리하므로, step 프롬프트 안에서 별도 커밋을 만들 필요는 없음 ## 검증 - 기본 검증 스크립트는 `python scripts/validate_workspace.py` - Node 프로젝트면 `package.json`의 `lint`, `build`, `test` 스크립트를 자동 탐지해 순서대로 실행 - 다른 스택이면 `HARNESS_VALIDATION_COMMANDS` 환경 변수에 줄바꿈 기준으로 검증 커맨드를 지정 ## 명령어 - `python scripts/execute.py `: Codex 기반 phase 순차 실행 - `python scripts/execute.py --push`: phase 완료 후 브랜치 push - `python scripts/validate_workspace.py`: 저장소 검증