checkpoint
Save current progress to a checkpoint file. Use before context-heavy operations or as regular backup.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Save current progress to a checkpoint file. Use before context-heavy operations or as regular backup.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Generate customized .claude/ harness framework with Fusion Architecture (GAN-inspired + Domain Specialists). TRIGGER when user wants to set up AI-assisted development structure, create a new project harness, add structure to existing projects, or mentions 'harness', 'scaffold', 'framework setup'. Supports all domains through template + dynamic generation.
Negotiates 'done' criteria between Generator, Evaluator, and architect-lead before implementation begins. Converts subjective goals into testable, gradable criteria with clear domain responsibilities.
Guided database migration workflow — from schema design to rollback documentation.
Production incident response workflow — triage, root cause analysis, and resolution.
Track, categorize, and prioritize technical debt across the codebase.
Save current progress with structured handoff artifact. Enables context reset for long-running tasks and session recovery.
| name | checkpoint |
| description | Save current progress to a checkpoint file. Use before context-heavy operations or as regular backup. |
| user-invocable | true |
You are saving session progress to a checkpoint file. This enables resumption after context compaction, session end, or context reset.
Checkpoints provide:
Automatic Triggers:
Manual Triggers:
/checkpoint/checkpoint [message]
|
+--[1] Gather session state
| - Current task
| - Files modified
| - Decisions made
| - Open questions
|
+--[2] Write checkpoint file
| - .claude/checkpoint.md
| - Timestamp
| - Full context dump
|
+--[3] Confirm save
- Show summary
- Offer to continue or exit
# Checkpoint: [timestamp]
## Session Info
- Started: [session start time]
- Saved: [checkpoint timestamp]
- Duration: [elapsed time]
## Current Task
[Description of active task]
## Work Completed
### Done
- [item 1]
- [item 2]
### In Progress
- [item 3] - [status/notes]
### Blocked
- [item 4] - [blocker description]
## Files Modified
| File | Status | Changes |
|------|--------|---------|
| path/to/file.py | modified | [summary] |
| path/to/other.py | created | [summary] |
## Key Decisions
1. [Decision] - [rationale]
2. [Decision] - [rationale]
## Open Questions
- [question 1] - [context/impact]
- [question 2] - [context/impact]
## Next Steps
1. [immediate next action]
2. [following action]
3. [future consideration]
## Commands to Resume
```bash
# To resume this checkpoint:
/resume [checkpoint-id]
# Or run:
/start
[Recent conversation summary - key points only]
## Implementation Steps
### Step 1: Collect Context
### Step 2: Generate Checkpoint
### Step 3: Confirm
CHECKPOINT SAVED
ID: checkpoint-[timestamp] File: .claude/checkpoint.md
Summary:
Options:
## Checkpoint Management
### Checkpoint Rotation
Keep last N checkpoints (configurable, default 5):
.claude/ checkpoints/ checkpoint-2024-01-15-001.md checkpoint-2024-01-15-002.md checkpoint-2024-01-15-003.md (newest)
### Checkpoint Cleanup
- Auto-delete checkpoints older than 7 days
- Keep named checkpoints indefinitely
- Archive checkpoints when handoff created
## Integration with Context Reset
Before context reset, checkpoint automatically:
## Usage
/checkpoint # Save with auto-message /checkpoint "pre-refactor" # Save with description /checkpoint --named "v1" # Save named checkpoint /checkpoint --list # List all checkpoints
## Output
CHECKPOINT CREATED
ID: cp-2024-01-15-143052 File: .claude/checkpoints/cp-2024-01-15-143052.md
Task: Implementing user authentication Progress: 60% complete Files: 4 modified, 2 created
Resume with: /resume cp-2024-01-15-143052
## Error Handling
CHECKPOINT FAILED
Error: [error description] Recovery: [suggested fix]
Partial save available at: .claude/checkpoint-partial.md Manual intervention may be needed.
## Integration Points
- **With /start**: Loads checkpoints on session start
- **With /resume**: Loads specific checkpoint by ID
- **With pre-compact hook**: Called automatically before context compaction
- **With session-stop hook**: Saves final checkpoint on session end