sgroy10/speclock

AI Constraint Engine by Sandeep Roy — stops AI from breaking what you locked. 100/100 on Claude's adversarial test suite. 42 MCP tools. Works with Bolt.new, Lovable, Claude Code, Cursor. Free & open source.

45
/ 100
Emerging

AI coding assistants are smart, but they often "forget" your critical architectural rules and make unwanted changes to your codebase. SpecLock helps developers ensure their AI tools respect core project rules by defining what the AI can and cannot modify. It takes plain language instructions and then blocks the AI if it attempts to violate these pre-set constraints, helping maintain code integrity across development sessions and teams.

Available on npm.

Use this if your AI coding assistant frequently introduces unwanted changes or ignores your established architectural boundaries, especially in sensitive areas like authentication, databases, or payment processing.

Not ideal if you're comfortable with your AI having complete autonomy over your codebase and don't need strict enforcement of architectural constraints.

AI-assisted development software architecture code integrity developer tools security compliance
Maintenance 10 / 25
Adoption 6 / 25
Maturity 20 / 25
Community 9 / 25

How are scores calculated?

Stars

17

Forks

2

Language

JavaScript

License

MIT

Last pushed

Mar 10, 2026

Commits (30d)

0

Dependencies

3

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/mcp/sgroy10/speclock"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.