Help us improve
Share bugs, ideas, or general feedback.
From claude-forge
Saves or restores git working directory checkpoints capturing staged/unstaged changes and untracked files. Supports list, diff, delete subcommands with optional --tag.
npx claudepluginhub sangrokjung/claude-forge --plugin claude-forgeHow this command is triggered — by the user, by Claude, or both
Slash command
/claude-forge:checkpoint save|restore|list|diff|delete ["이름"] [--tag 태그]This command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
# /checkpoint - 작업 상태 저장/복원 (v6) --- ## 0단계: 파라미터 파싱 | 서브커맨드 | 설명 | 필수 인자 | |-----------|------|----------| | `save` | 현재 상태 저장 | "이름" | | `restore` | 저장된 상태 복원 | "이름" | | `list` | 저장된 체크포인트 목록 | 없음 | | `diff` | 체크포인트 간 차이 비교 | "이름" | | `delete` | 체크포인트 삭제 | "이름" | 옵션: - `--tag 태그`: 체크포인트에 태그 부착 (예: `--tag stable`, `--tag pre-refactor`) --- ## 1단계: 저장소 경로 체크포인트 저장 위치: 저장소 디렉토리가 없으면 생성한다: --- ## 2단계: save 서브커맨드 ### 2-1. 현재 상태 수집 ### 2-2. untracked 파일 복사 untracked 파일이 있으면 복사본을 저장한다: ### 2-3. 메타데이터 생성 v6_metadata 필드 설명: - `security_status`: 마지막 보안 검사 결과 (pass/fail/unkn...
/checkpointCreates, verifies, or lists named checkpoints to track progress across workflow stages. Also supports clearing old checkpoints.
/restore-vigilRestores files from a saved checkpoint: lists available without name argument, previews diff, then restores specified checkpoint.
/checkpointSaves a Markdown checkpoint capturing session progress, git state, open questions, and prioritized next steps to .claude/checkpoints/<timestamp>.md. Updates CLAUDE.md and commits changes.
/checkpointCreates git-based checkpoints with stashes/commits and logs them for workflows. Verifies by comparing file changes, tests passed/failed, coverage, build status. Also lists and clears.
/checkpointManages project checkpoints: verifies code and tests, commits via git with Conventional Commits, updates progress.md docs, suggests /clear. Supports save, restore, list, --archive.
/pm-checkpointSaves, lists, or restores project state checkpoints—snapshots of tasks.json and progress stats—with diff preview and confirmation on restore.
Share bugs, ideas, or general feedback.
| 서브커맨드 | 설명 | 필수 인자 |
|---|---|---|
save | 현재 상태 저장 | "이름" |
restore | 저장된 상태 복원 | "이름" |
list | 저장된 체크포인트 목록 | 없음 |
diff | 체크포인트 간 차이 비교 | "이름" |
delete | 체크포인트 삭제 | "이름" |
옵션:
--tag 태그: 체크포인트에 태그 부착 (예: --tag stable, --tag pre-refactor)체크포인트 저장 위치:
.claude/checkpoints/
{name}/
metadata.json
staged.patch # staged 변경사항
unstaged.patch # unstaged 변경사항
untracked/ # untracked 파일 복사본
저장소 디렉토리가 없으면 생성한다:
mkdir -p .claude/checkpoints
# 현재 브랜치
git branch --show-current
# 현재 커밋
git rev-parse --short HEAD
# staged 변경사항
git diff --cached > .claude/checkpoints/{name}/staged.patch
# unstaged 변경사항
git diff > .claude/checkpoints/{name}/unstaged.patch
# 변경 통계
git diff --stat HEAD
# untracked 파일 목록
git ls-files --others --exclude-standard
untracked 파일이 있으면 복사본을 저장한다:
mkdir -p .claude/checkpoints/{name}/untracked
# 각 untracked 파일을 디렉토리 구조 유지하며 복사
{
"name": "기능완료",
"timestamp": "2026-02-07T15:30:00Z",
"branch": "feature/auth",
"commit": "abc1234",
"files": [
"src/auth/login.ts",
"src/auth/register.ts"
],
"stats": {
"additions": 45,
"deletions": 12,
"files_changed": 3,
"untracked_count": 1
},
"tags": ["stable"],
"auto": false,
"v6_metadata": {
"security_status": "pass"
}
}
v6_metadata 필드 설명:
security_status: 마지막 보안 검사 결과 (pass/fail/unknown)다음 상황에서 자동으로 체크포인트를 생성한다:
/commit-push-pr 실행 전/handoff-verify 검증 3회 실패 시자동 체크포인트의 auto 필드는 true로 설정한다.
이름 형식: auto-{YYYYMMDD-HHmmss}
ls .claude/checkpoints/{name}/metadata.json
복원 전 현재 상태를 pre-restore-{timestamp} 이름으로 자동 저장한다.
# staged 변경사항 복원
git apply .claude/checkpoints/{name}/staged.patch
git add -A
# unstaged 변경사항 복원
git apply .claude/checkpoints/{name}/unstaged.patch
# untracked 파일 복원
cp -r .claude/checkpoints/{name}/untracked/* ./ 2>/dev/null
복원 후 파일 상태를 확인하고 메타데이터와 대조한다.
모든 체크포인트를 시간순으로 나열한다.
각 체크포인트의 metadata.json을 읽어 요약 정보를 표시한다.
지정된 체크포인트와 현재 상태의 차이를 보여준다.
# 체크포인트 커밋과 현재 커밋 비교
git diff {checkpoint_commit}..HEAD --stat
지정된 체크포인트 디렉토리를 삭제한다.
rm -rf .claude/checkpoints/{name}
삭제 전 체크포인트 내용을 표시하고 확인한다.
════════════════════════════════════════════════════════════════
Checkpoint v6 - Save
════════════════════════════════════════════════════════════════
이름: 기능완료
브랜치: feature/auth
커밋: abc1234
변경: +45 -12 (3 files)
태그: stable
경로: .claude/checkpoints/기능완료/
════════════════════════════════════════════════════════════════
════════════════════════════════════════════════════════════════
Checkpoint v6 - Restore
════════════════════════════════════════════════════════════════
복원: 기능완료 (2026-02-07 15:30)
백업: pre-restore-20260207-160000
복원된 파일: 3개
상태: 정상
════════════════════════════════════════════════════════════════
════════════════════════════════════════════════════════════════
Checkpoint v6 - List
════════════════════════════════════════════════════════════════
총 3개 체크포인트
[1] 기능완료 | feature/auth | +45 -12 | stable | 02-07 15:30
[2] pre-refactor | main | +120 -8 | - | 02-07 14:00
[3] auto-20260207 | feature/auth | +10 -3 | auto | 02-07 13:00
복원: /checkpoint restore "이름"
비교: /checkpoint diff "이름"
삭제: /checkpoint delete "이름"
════════════════════════════════════════════════════════════════