Agent skill
checkpoint
Meta-cognitive decision support that analyzes current context and surfaces intelligent next-step options to the user. Use this skill when: (1) User explicitly invokes /checkpoint, (2) Significant work has been completed and a checkpoint is valuable, (3) Uncertainty or ambiguity exists about requirements or approach, (4) Task complexity has expanded beyond initial scope, (5) Before finalizing or committing to ensure nothing is missed. This skill pauses execution, assesses the situation holistically, and presents 2-5 contextually-appropriate options via AskUserQuestion, with a recommended option and rationale.
Install this agent skill to your Project
npx add-skill https://github.com/petekp/agent-skills/tree/main/skills/checkpoint
SKILL.md
Checkpoint
Pause, assess, and surface intelligent next-step options to the user.
When to Trigger Proactively
Suggest this skill (without being asked) when detecting:
- Completion signal: A feature, fix, or milestone just finished
- Uncertainty signal: Requirements unclear, multiple valid paths, or low confidence in current direction
- Complexity signal: Scope expanded, unexpected dependencies emerged, or task is taking longer than expected
- Drift signal: Work may have diverged from user's original intent
- Quality signal: Code works but may benefit from review, testing, or refactoring
Workflow
1. Context Assessment
Silently evaluate the current state across these dimensions (do not output this analysis):
- Progress: What has been accomplished? What remains?
- Quality: Is the work solid, or are there rough edges?
- Alignment: Does recent work match what the user actually wants?
- Uncertainty: What assumptions were made? What's unclear?
- Risk: What could go wrong? What hasn't been tested?
- Efficiency: Is there a better path forward?
2. Generate Options
Based on assessment, generate 2-5 contextually-appropriate options. Draw from (but don't limit to) these archetypes:
| Archetype | When Relevant |
|---|---|
| Commit progress | Meaningful progress made, good stopping point |
| Systems audit | Complex changes, potential for bugs or regressions |
| Prioritize/plan | Multiple pending tasks, unclear what matters most |
| Re-evaluate decisions | Low confidence in recent choices, new information available |
| Clarify with user | Assumptions made, requirements ambiguous |
| Test/verify | Code works but edge cases untested |
| Refactor/clean up | Code functional but messy |
| Document | Complex logic that needs explanation |
| Step back | May be overcomplicating or missing simpler solution |
| Continue current path | Clear next step, no reason to pause |
Option generation principles:
- Options should be meaningfully different, not variations of the same thing
- Include at least one "continue forward" option when momentum is valuable
- Include at least one "pause and verify" option when risk is present
- Avoid analysis paralysis - fewer sharp options beat many vague ones
3. Select Recommendation
Choose one option as recommended. The recommendation should reflect:
- What would a thoughtful senior engineer do here?
- What reduces risk of wasted effort or rework?
- What serves the user's underlying goals (not just stated requests)?
4. Present via AskUserQuestion
Use AskUserQuestion with this structure:
Question: "What would you like to do next?"
Header: "Next step" (or contextually appropriate 1-2 words)
Options: [generated options with descriptions]
Option format:
label: Action verb phrase (e.g., "Commit current progress", "Run systems audit")description: 1 sentence explaining what this involves and why it might be valuable
Recommendation:
- Place recommended option FIRST in the list
- Append "(Recommended)" to its label
- Include rationale in the description
Example Output
For a scenario where a feature was just implemented but with some shortcuts:
AskUserQuestion:
question: "Feature implementation complete. What would you like to do next?"
header: "Next step"
options:
- label: "Review and refactor (Recommended)"
description: "Clean up the shortcuts taken during implementation before they become technical debt. The core logic works but could be more maintainable."
- label: "Add test coverage"
description: "Write tests for the new feature to catch edge cases and prevent regressions."
- label: "Commit and move on"
description: "The feature works - commit it and tackle the next task. Can refactor later if needed."
- label: "Walk me through what was built"
description: "Explain the implementation so you can verify it matches your expectations before proceeding."
Anti-Patterns
- Don't overthink: This skill should take seconds, not minutes
- Don't list every possible option: Curate the most valuable 2-5
- Don't recommend "ask user" when the situation is clear: Have a point of view
- Don't trigger too frequently: Reserve for genuine decision points, not every minor step
- Don't explain the assessment process: Just present the options naturally
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
multi-model-meta-analysis
Synthesize outputs from multiple AI models into a comprehensive, verified assessment. Use when: (1) User pastes feedback/analysis from multiple LLMs (Claude, GPT, Gemini, etc.) about code or a project, (2) User wants to consolidate model outputs into a single reliable document, (3) User needs conflicting model claims resolved against actual source code. This skill verifies model claims against the codebase, resolves contradictions with evidence, and produces a more reliable assessment than any single model.
capture-learning
Analyze recent conversation context and capture learnings to project knowledge files (for project-specific insights) or skills/commands/subagents (for cross-project patterns). Use when the user asks to "capture this learning", "update the docs with this", "remember this for next time", "document this issue", "add this to CLAUDE.md", "save this knowledge", or "update project knowledge". Also triggers after resolving build/setup issues, discovering non-obvious patterns, or completing debugging sessions with valuable insights.
optimize-agent-docs
Build a retrieval-optimized knowledge layer over agent documentation in dotfiles (.claude, .codex, .cursor, .aider). Use when asked to "optimize docs", "improve agent knowledge", "make docs more efficient", or when documentation has accumulated and retrieval feels inefficient. Generates a manifest mapping task-contexts to knowledge chunks, optimizes information density, and creates compiled artifacts for efficient agent consumption.
agent-changelog
Compile an agent-optimized changelog by cross-referencing git history with plans and documentation. Use when asked to "update changelog", "compile history", "document project evolution", or proactively after major milestones, architectural changes, or when stale/deprecated information is detected that could confuse coding agents.
literate-guide
Create a narrative guide to a codebase or feature in the style of Knuth's Literate Programming — code and prose interwoven as a single essay, ordered for human understanding rather than compiler needs. Use when the user asks to 'explain this codebase as a story', 'write a literate guide', 'create a narrative walkthrough', 'tell the story of this code', 'Knuth-style documentation', 'weave a guide for this feature', or when they want deep, readable documentation that treats the program as literature. Also trigger when someone wants a document that a thoughtful reader could follow from start to finish and come away understanding both WHAT the code does and WHY every design choice was made.
autonomous-agent-readiness
Assess a codebase's readiness for autonomous agent development and provide tailored recommendations. Use when asked to evaluate how well a project supports unattended agent execution, assess development practices for agent autonomy, audit infrastructure for agent reliability, or improve a codebase for autonomous agent workflows. Triggers on requests like "assess this project for agent readiness", "how autonomous-ready is this codebase", "evaluate agent infrastructure", or "improve development practices for agents".
Didn't find tool you were looking for?