checkpoint-guardian
Skill7 starsChanged 43 days agoMITView on GitHub
Automatic risk assessment before every critical action in agentic workflows. Detects irreversible operations (file deletion, database writes, deployments, payments), classifies risk level, and requires confirmation before proceeding. Triggers on destructive keywords like deploy, delete, send, publish, update database, process payment.
In this repository83 other files it gives its agents.
- AGENTS.mdAGENTS.md
- accessibility-enforcerSkill
- access-policy-designerSkill
- adaptive-guardSkill
- agent-reviewerSkill
- anti-ai-slop-designSkill
- api-mock-designerSkill
- api-observability-plannerSkill
- app-store-reviewerSkill
- ask-first-act-laterSkill
- assumption-checkerSkill
- auth-flow-designerSkill
- b2b-founder-roadmapSkill
- brand-name-labSkill
- breaking-change-detectorSkill
- changelog-generatorSkill
- claude-style-codingSkill
- claw-integration-designSkill
- context-compressorSkill
- contract-first-designerSkill
- coolify-orchestratorSkill
- crash-analystSkill
- data-lineage-tracerSkill
- data-maskerSkill
- deep-link-architectSkill
- design-intelligenceSkill
- design-md-enforcerSkill
- ecosystem-apiSkill
- ecosystem-databaseSkill
- ecosystem-mobileSkill
- ecosystem-orchestrationSkill
- ecosystem-productSkill
- ecosystem-reasoningSkill
- ecosystem-securitySkill
- ecosystem-webSkill
- error-recoverySkill
- fth-design-crafterSkill
- geo-auditorSkill
- geo-optimizerSkill
- index-advisorSkill
- jev-orchestratorSkill
- mastermind-loggerSkill
- memory-ledgerSkill
- migration-strategistSkill
- mobile-perf-auditorSkill
- mobile-security-auditorSkill
- multi-brain-debateSkill
- multi-brain-expertsSkill
- multi-brain-scoreSkill
- multi-brainSkill
- offline-sync-designerSkill
- onboarding-designerSkill
- output-criticSkill
- parallel-plannerSkill
- pgbouncer-architectSkill
- plan-hardenerSkill
- plan-implement-verify-recoverSkill
- proje-analizcisiSkill
- project-analyzerSkill
- project-focus-firstSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 7 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Stop before every critical action, assess the risk level, and require confirmation when needed.
- Distinctive: line 31
Read-only API calls (GET)
- Distinctive: line 35
Behavior: No checkpoint shown. Log the action silently for audit trail.
- Very specific: line 49
Use templates/checkpoint-medium.md.tmpl for the output format.
- Distinctive: line 63
Behavior: Stop completely. Show detailed checkpoint with impact assessment, reversibility status, and safer alternatives.
- Distinctive: line 78
No rollback path: no backup, no soft-delete
- Distinctive: line 91
Do not execute the action
- Distinctive: line 93
Wait for the user to set a new direction
- Very specific: line 130
Use templates/checkpoint-high.md.tmpl for HIGH RISK checkpoint format.
- Very specific: line 131
Use templates/checkpoint-medium.md.tmpl for MEDIUM RISK checkpoint format.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Checkpoint Guardian Protocol
Stop before every critical action, assess the risk level, and require confirmation when needed. Goal: catch irreversible mistakes before they happen.
Workflow
1. Detect critical action in the current step
2. Classify risk level (LOW / MEDIUM / HIGH)
3. Apply checkpoint behavior based on level
4. Log the checkpoint decision
5. Show audit trail at end of taskRisk Levels
LOW RISK — Pass Silently
Reversible, limited side effects, common operations:
- Reading files, listing directories
- Creating new files (without overwriting)
- Read-only API calls (GET)
- Writing to console/logs
- Creating temporary files
Behavior: No checkpoint shown. Log the action silently for audit trail.
MEDIUM RISK — Brief Confirmation
Reversible but requiring attention:
- Overwriting an existing file (backup possible)
- Inserting new database records (not update/delete)
- POST request to external service (read-purpose)
- Deploying to test/staging environment
Behavior: Show a brief checkpoint and ask for confirmation before proceeding.
Use templates/checkpoint-medium.md.tmpl for the output format.
HIGH RISK — Full Confirmation Required
Irreversible or wide-impact operations:
- Deleting files or directories
- Updating or deleting database records
- Payment or money transfer
- Deploying to production
- Bulk operations (50+ records, multiple services)
- Operations involving credentials or secrets
Behavior: Stop completely. Show detailed checkpoint with impact assessment, reversibility status, and safer alternatives. Do not proceed without explicit "yes" or "proceed" from the user.
Use templates/checkpoint-high.md.tmpl for the output format.
Risk Classification
See references/RISK_MATRIX.md for the complete risk classification table and escalation rules.
Escalation Rules
Any of these conditions bumps risk one level up:
- Bulk operation: 50+ records or files
- Production environment: tagged
prod,production,live - No rollback path: no backup, no soft-delete
- Sensitive data: PII, payment info, credentials
- Chain reaction: this step triggers other critical steps
After Checkpoint Resolution
User approves:
- Execute the action
- Report result briefly:
Completed: [what was done]
User rejects:
- Do not execute the action
- Suggest alternatives: safer path, partial operation, dry-run
- Wait for the user to set a new direction
Audit Trail
Log every checkpoint decision throughout the task:
[CHECKPOINT LOG]
Step : [step number or sequence]
Action : [summary]
Risk : LOW / MEDIUM / HIGH
Decision : Passed silently / Approved / RejectedAt the end of every task, show the complete checkpoint log summary to the user. This is mandatory — never skip the audit trail.
Guardrails
- Never skip HIGH RISK checkpoints — no exceptions, even if the user previously said "approve all."
- When in doubt, escalate — if risk level is ambiguous, choose the higher level.
- Always suggest alternatives for HIGH RISK actions — give the user a safer path.
- Audit trail is mandatory — even LOW RISK actions must be logged silently.
- Respect explicit user intent — if the user clearly states "I know the risks, proceed," honor it for that specific action only (not blanket approval).
- This skill applies to every agent action — it is not opt-in per step.
Examples
See references/EXAMPLES.md for worked examples across all risk levels.
Templates
- Use
templates/checkpoint-high.md.tmplfor HIGH RISK checkpoint format. - Use
templates/checkpoint-medium.md.tmplfor MEDIUM RISK checkpoint format.
🔗 Next Steps & Handoffs
<!-- BEGIN GENERATED: handoffs (generated from the ecosystem workflow map by build_ecosystems.py — do not edit by hand) -->Ecosystem: @ecosystem-orchestration — Agent Orchestration.
Workflows:
- Repository Change Flow (
orch-code-change, step 3 of 3): last step → once it passes, complete the workflow and report the outcome. - Database Evolution Flow (
db-evolution, step 3 of 3, via@ecosystem-database): last step → once it passes, complete the workflow and report the outcome. - Production Release Flow (
mobile-release, step 3 of 3, via@ecosystem-mobile): last step → once it passes, complete the workflow and report the outcome. - Deploy & Verify Flow (
web-deploy, step 1 of 3, via@ecosystem-web): next →@coolify-orchestrator. - Skill Audit & Trust Flow (
sec-skill-audit, step 2 of 2, via@ecosystem-security): last step → once it passes, complete the workflow and report the outcome.
Handoff contract: pass results to the next skill through an inline Handoff block in your reply with the fields skill, workflow, created_at, inputs, summary, and next (the handoff contract of @ecosystem-orchestration). If a next skill is not installed, continue with its step from the ecosystem map, or install it with npx skills add fatih-developer/fth-skills --skill <name> after the user agrees.
<!-- END GENERATED: handoffs -->Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

