lvzhiyi

Speclock — AI skill for Claude Code

AI community

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: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE) [![Python 3.9+ stdlib only](https://img.shields.io/badge/Dependencies-Python%203.9%2B%20stdlib%20only-brightgreen.svg)](#architecture) [![Hosts: Claude Code | Codex | Cursor](https://img.shields.io/badge/Hosts-Claude%20Code%20%7C%20Codex%20%7C%20Cursor-purple.svg)](#installation) [![Release](https://img.shields.io/badge/workflow--core-v0.22.0-orange.svg)](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.scoped doc 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