Skip to content
Back to skills

Speclock Guardrails

ASecurity

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.

  • 25 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added August 30, 2026
ai-agentsrailsgit

Works with

  • cursor
  • cli
  • mcp

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned August 30, 2026

npx -y skills add sgroy10/speclock --skill speclock-guardrails --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Speclock Guardrails?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Speclock Guardrails
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sgroy10-speclock-guardrails/badge)](https://www.skillsdirectory.com/skills/sgroy10-speclock-guardrails)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Files in this skill

  • SKILL.md1.7 KB
  • agents/openai.yaml406 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.