Speclock — AI skill for Claude Code
Lock your specs before your agent writes code.
How to install Speclock
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open lvzhiyi/speclock and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Speclock does
Lock your specs before your agent writes code. Hard-enforced AI engineering workflow (Hooks + SQLite + SHA-256 receipts) for Claude Code, Codex & Cursor.
Alternatives in AI
- Engrim — The Universal Cross-Model Episodic Memory Standard 219 ★
- Coffee CLI — A clean AI terminal workspace 180 ★
- Composure — Composure — multi-harness AI engineering tooling: code quality hooks, knowledge graph, persistent memory, skil 72 ★
README
https://github.com/user-attachments/assets/6c399680-073c-4bd3-8bb2-d61fae7f9972
SpecLock
**English** | [简体中文](README.zh-CN.md)
[](LICENSE) [](#architecture) [](#installation) [](docs/development/release-0.22.0.md)
**Lock your specs before your agent writes a single line of code. Hard-enforced AI engineering workflow for Claude Code, Codex, and Cursor.**
**Superpowers teaches AI discipline with prompts. SpecLock enforces it with Hooks + a SQLite state machine + SHA-256 baseline receipts.** Your agent literally *cannot* edit code before reading your required standards in full, *cannot* bypass tier approval, and *cannot* claim tests passed without running real commands against the current workspace snapshot.
Why SpecLock?
Prompt-only skill packs work great on short sessions — until context grows long and the agent silently skips reading your architecture rules, edits code before you approve scope, or claims *"tests pass"* after running nothing.
SpecLock turns engineering discipline into **deterministic, auditable code-level guardrails** with **zero third-party dependencies** (pure Python standard library + SQLite):
- Anti-Skip Baseline Receipts (SHA-256): Before code edits unlock, the agent must read every
baseline.required/baseline.scopeddoc in full; truncated reads (BASELINE_BATCH_LIMIT) or modified files invalidate the receipt automatically. - Human Tiering & Proposal Gate: Every task is explicitly tiered by risk (Light / Standard / Full). Full-tier work (auth, security, migrations, breaking contracts) requires separate proposal & design approval
Related Skills
Nopdocs
The heredoc replacement for LLM agents and coding harnesses: NOPDOC frames (an inert envelope with a mandatory
Colign
Align teams on specs before AI writes code, so you review, plan, and build with less rework
Carja
Carja (jacquard in verlan) — run AI coding agents inside an engineering discipline enforced by code: tests bef
Kanerva
Long-term memory for coding agents: Claude Code, Codex, OpenCode, OpenClaw, Copilot, Cursor and more. Local SQ
Moorai
On-device guardrails for AI coding agents. Hooks check prompts, file reads, shell commands, writes, web fetche
Aedile
Before an AI writes code, it should prove that the code deserves to exist. Engineering intelligence for AI cod
Related Agents
Spec Miner
Extracts behavioral specs from an existing codebase into flat Requirement/Invariant blocks with machine-parsea
Eng Designer
Principal-level UX / solution designer on the eng-team, an engineering team for Claude Code. Produces flows, c
Co Product Manager
Company role — product manager. Writes PRDs, user stories, acceptance criteria and prioritised roadmaps; turns