Checkpoint

From qwerfunch/cladding · View interactive version

Checkpoint is an AI agent skill from the GitHub repository qwerfunch/cladding. Record a feature checkpoint event pinning the current git HEAD plus a spec digest, so a later rollback can restore the exact pre-change state. Use before a non-trivial feature implementation, before a refactor that touches many files, or whenever the user wants a known-good safety net the autonomous

How to use this skill

Skill file

Cladding checkpoint

Run clad checkpoint <featureId> from the project root. Iron Law backbone Phase 1 (iron-law.md §2.5) — the verb only stamps the audit-log entry; it never mutates the working tree or invokes git commit. The maintainer keeps the option to freeze the state with a normal git commit on top.

The checkpoint event payload carries:

clad checkpoint F-001
clad checkpoint F-a3f9c2e1

The output is a single Pulse line: ✓ checkpoint · <featureId> head=<sha12> digest=<digest12>. The event lands in .cladding/events.log.jsonl as type: "feature_checkpoint" and can be inspected with clad doctor --json or clad_get_events over MCP.

When to use

Pair with

clad rollback <featureId> — prints the maintainer-runnable git checkout <sha> for the latest checkpoint and stamps a feature_rolled_back event. The pair forms the v0.3.X Iron Law backbone for safe autonomous progress; see skills/rollback/SKILL.md.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.