브랜치 변경사항을 분석하여 .claude/specs/ 문서를 자동 업데이트합니다. "스펙 업데이트", "문서 업데이트" 등의 요청 시 사용합니다.
브랜치의 변경사항을 분석하여 .claude/specs/ 폴더의 관련 문서를 업데이트합니다.
다음 순서로 base 브랜치를 확인하세요:
# 1단계: merge 커밋에서 대상 브랜치 추출
git --no-pager log --first-parent --oneline -10 HEAD | grep -m1 "Merge branch" | sed -n "s/.*into \([^']*\)$/origin\/\1/p"
# 2단계: 결과 없으면 reflog에서 브랜치 생성 시점 찾기
CURRENT_BRANCH=$(git --no-pager rev-parse --abbrev-ref HEAD)
CREATION_COMMIT=$(git reflog show $CURRENT_BRANCH | tail -1 | awk '{print $1}')
git --no-pager branch -r --contains $CREATION_COMMIT | grep -v $CURRENT_BRANCH | head -1
# 3단계: 위 방법들로 찾을 수 없으면 origin/main 사용
프로젝트 루트 확인
PROJECT_ROOT=$(git rev-parse --show-toplevel)
SPECS_DIR="$PROJECT_ROOT/.claude/specs"
변경사항 분석
git --no-pager diff <base-branch>...HEAD --name-only
git --no-pager diff <base-branch>...HEAD
관련 스펙 파일 찾기
sup-596 → $SPECS_DIR/sup-596.md)$SPECS_DIR/ 폴더의 관련 파일 확인업데이트 항목 분석
문서 업데이트
# [티켓번호] 기능명
## 개요
- 목적 및 배경
## 구현 내용
- 주요 변경사항
- 추가된 컴포넌트/훅
- 수정된 파일 목록
## BI Events
| 이벤트명 | 설명 | Attributes |
|---------|------|------------|
## 참고사항
- 관련 코드 경로
- 의존성
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer