docs: CLAUDE.md + 슬래시 커맨드 + 워크플로우 가이드 추가

Claude Code 협업 효율화를 위한 문서 체계 구축:
- CLAUDE.md: 서비스 맵·코드 규칙·배포 정보 (매 세션 자동 로드)
- 슬래시 커맨드 5개: deploy, check-deploy, cache-bust, add-page, add-api
- WORKFLOW-GUIDE.md: Plan 모드·서브에이전트·검증 루프 활용 가이드

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Hyungi Ahn
2026-03-16 15:13:49 +09:00
parent c2e8b58849
commit ec59efcdb6
7 changed files with 259 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
전제조건: Tailscale SSH 키 인증 (hyungi@100.71.132.52) 설정 완료
서비스명: $ARGUMENTS
배포 실행 절차:
1. `git status`로 커밋 안 된 변경사항 확인 → 있으면 사용자에게 경고하고 계속할지 확인
2. `git push` 실행
3. SSH로 NAS에서 배포:
```
ssh hyungi@100.71.132.52 "cd /volume1/docker/tk-factory-services && git pull && export PATH=\$PATH:/volume2/@appstore/ContainerManager/usr/bin && docker compose up -d --build $ARGUMENTS"
```
4. 30초 대기 후 health check:
- API 서비스면: `curl -s http://100.71.132.52:<포트>/api/health` 또는 `/health`
- Web 서비스면: `curl -s -o /dev/null -w '%{http_code}' http://100.71.132.52:<포트>/`
5. 결과 보고 (성공/실패, 걸린 시간)
서비스별 포트 매핑:
- system1-api: 30005, system1-web: 30080
- system2-api: 30105, system2-web: 30180
- system3-api: 30200, system3-web: 30280
- tkuser-api: 30300, tkuser-web: 30380
- tkpurchase-api: 30400, tkpurchase-web: 30480
- tksafety-api: 30500, tksafety-web: 30580
- tksupport-api: 30600, tksupport-web: 30680
- tkeg-api: 30700, tkeg-web: 30780
- gateway: 30000, sso-auth: 30050