Check planned AI coding actions and patches against explicit project constraints through SpecLock MCP tools. Use before editing protected areas, changing architecture, running destructive commands, or committing changes in projects with CLAUDE.md, AGENTS.md, .cursorrules, or active SpecLock locks.
Scanned 8/30/2026
Install to Claude Code
npx -y skills add sgroy10/speclock --skill speclock-guardrails --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Speclock Guardrails?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/sgroy10-speclock-guardrails)More formats (shields.io, HTML) on the badges page.
---
name: speclock-guardrails
description: Check planned AI coding actions and patches against explicit project constraints through SpecLock MCP tools. Use before editing protected areas, changing architecture, running destructive commands, or committing changes in projects with CLAUDE.md, AGENTS.md, .cursorrules, or active SpecLock locks.
---
# SpecLock Guardrails
Use SpecLock as an action-verification layer. It complements memory, skills, reviews, and tests; it does not prove factual correctness or eliminate hallucinations.
## Workflow
1. Read the project briefing and active SpecLock constraints before changing files.
2. Check the intended action, affected files, and commands for conflicts.
3. Stop on a blocking violation. Proceed only when an authorized user explicitly identifies the constraint to amend or override; do not infer override permission from a conflicting implementation request.
4. Check the resulting patch or diff before presenting or committing it.
5. Record material constraint decisions when the project uses SpecLock decision history.
6. Preserve Git or CI enforcement as the universal fallback when the client cannot intercept actions natively.
## Boundaries
- Treat MCP-only integrations as assisted verification, not guaranteed interception.
- Never claim that SpecLock makes generated code correct or hallucination-free.
- Do not weaken or delete locks without explicit authorization.
- Do not send private project data to a remote service without consent.
## Decision output
Report `ALLOW`, `WARN`, or `BLOCK`, followed by the relevant constraint, planned action, affected files or commands, reason, and safest next step. Direct contradiction with an active constraint is `BLOCK`; ask for clarification when a semantic match is uncertain.
Is this your skill, or is something wrong with this listing? . Author removals are honored within 72 hours.
No comments yet. Be the first to comment!