From specialist-agent
Manages Git checkpoints via tags: create before risky refactors or multi-step work, restore for rollbacks, list, and clean. Uses Bash for safe Git operations.
npx claudepluginhub herbertjulio/specialist-agent --plugin specialist-agentThis skill is limited to using the following tools:
Create, restore, list, or clean git checkpoints.
Safely rolls back to previous git checkpoints using octo-checkpoint-* tags: lists them, previews changes, requires explicit confirmation, preserves .octo/LESSONS.md. Use when changes fail.
Creates shadow git checkpoints of working directories for rollback in build, quality-gate, and debugging pipelines without modifying project git history.
Manages Gemini CLI checkpointing with git snapshots, /restore for listing and restoring states, rollback, and config for experimental workflows.
Share bugs, ideas, or general feedback.
Create, restore, list, or clean git checkpoints.
Command: $ARGUMENTS
/checkpoint create feature-auth
Workflow:
git add -A
git commit -m "checkpoint: [name]"
git tag checkpoint/[name]
Output:
──── Checkpoint Created ────
Name: checkpoint/feature-auth
Commit: abc1234
Files: 5 changed
Time: 2024-01-15 14:30:22
/checkpoint restore-point
Creates a timestamp-based restore point before major operations.
git tag restore-point/$(date +%Y%m%d-%H%M%S)
Output:
──── Restore Point Created ────
Tag: restore-point/20240115-143022
Use to rollback entire session if needed.
/checkpoint list
git tag -l "checkpoint/*" | sort -V
git tag -l "restore-point/*" | sort
Output:
──── Checkpoints ────
Checkpoints:
checkpoint/task-1 (2024-01-15 14:20)
checkpoint/task-2 (2024-01-15 14:25)
checkpoint/feature-auth (2024-01-15 14:30)
Restore Points:
restore-point/20240115-141500
restore-point/20240115-143022
/checkpoint restore feature-auth
Warning: This will discard uncommitted changes!
# Confirm with user first
git reset --hard checkpoint/[name]
Output:
──── Checkpoint Restored ────
Restored to: checkpoint/feature-auth
Commit: abc1234
Current state matches checkpoint.
/checkpoint rollback 20240115-143022
Rollback to a restore point (undoes all work since).
git reset --hard restore-point/[timestamp]
/checkpoint clean
Remove all checkpoint tags (keeps restore points).
git tag -l "checkpoint/*" | xargs -n 1 git tag -d
Output:
──── Checkpoints Cleaned ────
Removed: 5 checkpoint tags
Kept: 2 restore points
/checkpoint clean-all
Remove ALL checkpoints and restore points.
git tag -l "checkpoint/*" | xargs -n 1 git tag -d
git tag -l "restore-point/*" | xargs -n 1 git tag -d
If no argument provided:
/checkpoint
Creates a timestamped checkpoint:
checkpoint/auto-20240115-143022
/checkpoint restore-point
# Make risky changes
# If it fails:
/checkpoint rollback [timestamp]
/checkpoint create step-1
# Work on step 2
/checkpoint create step-2
# If step 2 is wrong:
/checkpoint restore step-1
/checkpoint clean # Remove task checkpoints
# Keep restore points for safety
──── /checkpoint ────
Operation: [create|restore|list|clean]
[Operation details]
| Excuse | Reality |
|---|---|
| "I don't need a checkpoint, it's a small change" | Small changes break things too. A checkpoint takes 2 seconds, a rollback without one takes hours. |
| "Git history is enough" | Checkpoints are labeled save points - faster than hunting through git reflog. |
| "I'll just undo if something goes wrong" | You can't undo what you can't identify. Checkpoints mark the exact safe state. |