Submit

Speclock

@sgroy10

AI Constraint Engine that enforces CLAUDE.md, .cursorrules, and AGENTS.md rules. 51 MCP tools, 991 tests.
Overview

What is SpecLock?

SpecLock makes your AI rule files enforceable — not just suggestions.

One command reads your existing CLAUDE.md, .cursorrules, or AGENTS.md and turns constraints into laws:

npx speclock protect

What it catches

  • "Clean up old patient data" → blocked as deletion
  • "Temporarily disable audit logging" → temporal evasion caught
  • "Migrate from PostgreSQL to MongoDB" → tech switch detected
  • "Update the UI and also drop the users table" → hidden compound violation

Features

  • 51 MCP tools (patch review, drift detection, coverage audit, Guardian Mode)
  • Semantic conflict detection — understands intent, not keywords
  • Pre-commit hooks block violating commits
  • Works with Claude Code, Cursor, Windsurf, Copilot, Gemini, Aider
  • 991 tests, 0 false positives
  • MIT licensed

GitHub: https://github.com/sgroy10/speclock npm: speclock

Server Config

{
  "mcpServers": {
    "speclock": {
      "command": "npx",
      "args": [
        "-y",
        "speclock",
        "serve"
      ]
    }
  }
}
© 2025 MCP.so. All rights reserved.

Build with ShipAny.