
Speclock guardrails
Check planned AI coding actions and patches against explicit project constraints through SpecLock MCP tools
- Scripts
- None
- Platforms
- Claude Code, Codex, Cursor
- GitHub stars
- 26
- Last commit
- 3 months ago
- License
- MIT
- Listing updated
- today
When your agent uses it
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.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 2 files (2 KB) on GitHub on 17 November 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Install
This skill ships in the speclock plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add sgroy10/speclock
/plugin install speclock@speclock-marketplaceOr copy only this skill to ~/.claude/skills/speclock-guardrails:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/sgroy10/speclock.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/speclock-guardrails &&
cp -R "$tmp/plugins/speclock/skills/speclock-guardrails" ~/.claude/skills/speclock-guardrails &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/speclock-guardrails inside it instead.
Copy the skill folder to ~/.agents/skills/speclock-guardrails to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/sgroy10/speclock.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/speclock-guardrails &&
cp -R "$tmp/plugins/speclock/skills/speclock-guardrails" ~/.agents/skills/speclock-guardrails &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/speclock-guardrails inside it instead.
Copy the skill folder to ~/.cursor/skills/speclock-guardrails to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/sgroy10/speclock.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/speclock-guardrails &&
cp -R "$tmp/plugins/speclock/skills/speclock-guardrails" ~/.cursor/skills/speclock-guardrails &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/speclock-guardrails inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/sgroy10/speclock.git --path plugins/speclock/skills/speclock-guardrailsOr copy the folder to ~/.gemini/skills/speclock-guardrails yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/speclock-guardrails:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/sgroy10/speclock.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/speclock-guardrails &&
cp -R "$tmp/plugins/speclock/skills/speclock-guardrails" ~/.copilot/skills/speclock-guardrails &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/speclock-guardrails inside it instead.
Get the folder:
git clone --depth 1 https://github.com/sgroy10/speclock.gitThen copy speclock/plugins/speclock/skills/speclock-guardrails into your agent's skills folder as speclock-guardrails. Agents that support SKILL.md read one folder per skill.
Speclock guardrails FAQ
How do I install Speclock guardrails in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/speclock-guardrails to use it in all your projects, or to .claude/skills/speclock-guardrails in one project. Or install the speclock plugin, which includes it: /plugin marketplace add sgroy10/speclock, then /plugin install speclock@speclock-marketplace.
Does Speclock guardrails run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Speclock guardrails?
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.
More from sgroy10/speclock

Check planned AI coding actions and patches against explicit project constraints with SpecLock
- Open source
- 26 GitHub stars