| name | code-review-gate |
| description | gstack /review 패턴 — 프로덕션 버그 사전 차단을 위한 구조화된 코드 리뷰 게이트 |
| metadata | {"bashPattern":["review","리뷰","코드리뷰","code.review"],"filePattern":["**/*.py","**/*.js","**/*.ts","**/*.dart"],"priority":9} |
Code Review Gate (gstack /review inspired)
개요
gstack의 /review 스킬을 칸반보드에 적용. 머지 전 프로덕션 버그를 사전 차단하는 구조화된 리뷰 게이트.
리뷰 체크리스트
1. 보안 (Security)
2. 로직 (Logic)
3. 성능 (Performance)
4. 코드 품질 (Quality)
리뷰 프로세스
- 변경 분석:
git diff 또는 아티팩트 검토
- 체크리스트 실행: 위 4개 카테고리 순차 검토
- 게이트 판정:
- Score 8-10: Passed (바로 머지 가능)
- Score 5-7: Conditional (경미한 수정 후 머지)
- Score 1-4: Failed (재작업 필요)
- 피드백 등록:
kanban_sprint_gate로 결과 기록
- SSE 알림: 팀에 리뷰 결과 브로드캐스트
MCP 연동
kanban_sprint_gate(sprint_id, gate_type="review", status="Passed", score=8, findings="보안 검토 통과, 로직 검증 완료")
칸반 연동 (필수)
이 스킬 실행 시 반드시 칸반보드에 기록한다.
실행 전:
curl -X POST http://localhost:5555/api/teams/{team_id}/tickets -H "Content-Type: application/json" -d '{"title":"스킬 실행: code-review-gate","priority":"medium"}'
curl -X PUT http://localhost:5555/api/tickets/{ticket_id}/claim -H "Content-Type: application/json" -d '{"member_id":"agent-xxx"}'
curl -X PUT http://localhost:5555/api/tickets/{ticket_id}/progress -H "Content-Type: application/json" -d '{"note":"스킬 실행 시작"}'
실행 후:
curl -X POST http://localhost:5555/api/tickets/{ticket_id}/artifacts -H "Content-Type: application/json" -d '{"creator_member_id":"agent-xxx","title":"결과","content":"...","artifact_type":"result"}'
curl -X PUT http://localhost:5555/api/tickets/{ticket_id}/status -H "Content-Type: application/json" -d '{"status":"Review"}'