Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/aegntic-spec-lock
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend, writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/spec-lock
What's inside
- Skill name
spec-lock- Description
- Bi-directional code and documentation synchronizer. Use when editing code that affects specifications, API contracts, or documentation. Prevents documentation rot by maintaining sync between implementation and docs. Automatically detects drift and suggests updates.
- License
- MIT
- Instructions
- 242 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Spec-Lock: Documentation Synchronization
## Overview
Spec-Lock prevents documentation rot by maintaining bi-directional sync between code and specifications. It treats documentation as executable code that must stay synchronized with implementation.
## The Problem It Solves
**Documentation Rot**: In agentic workflows, code evolves faster than docs. Users hate writing documentation, and agents frequently ignore old instructions.
**Spec-Lock Solution**: Automatic synchronization that detects drift and keeps context perfectly synced with reality.
## How It Works
### 1. Post-Edit Analysis (PostToolUse Hook)
Every time a file is edited:
- Analyzes semantic intent of the change
- Compares against CLAUDE.md and SPEC.md
- Detects drift between code and docs
### 2. Conflict Detection
Two scenarios trigger sync:
**Scenario A: Code Drift**
- Code violates the spec (e.g., wrong auth method)
- Plugin asks: "Revert code or update spec?"
**Scenario B: Spec Evolution**
- Code introduces new logic not in spec
- Plugin asks: "Update SPEC.md to match code?"
### 3. Auto-Update
Uses headless Claude to:
- Generate documentation patches
- Update dependent docs automatically
- Maintain knowledge graph of dependencies
## When to Use
Activate Spec-Lock when:
- Changing API endpoints or parameters
- Modifying authentication flows
- Updating database schemas
- Changing configuration values
- Implementing new features
- Refactoring existing code
## Usage
### Automatic Mode
With PostToolUse hooks:
```json
{
"hooks": {
"PostToolUse": [
{
"matcher": "Edit(*)|Write(*)",
"command": "python3 /a0/usr/plugins/spec-lock/spec-lock.py --check"
}
]
}
}
```
### Manual Commands
```bash
# Check a file for drift
python3 /a0/usr/plugins/spec-lock/spec-lock.py --check <file>
# Register a new dependency
python3 /a0/usr/plugins/spec-lock/spec-lock.py --register <code> <spec> [priority]
# Show sync status
python3 /a0/usr/plugins/spec-lock/spec-lock.py --status
# Force full sync
python3 /a0/usr/plugins/spec-lock/spec-lock.py --sync
```
## Configuration
### Priority Rules
Create `/a0/usr/plugins/spec-lock/spec-priorities.yaml`:
```yaml
files:
"src/auth/**":
spec_source: "AUTH_SPEC.md"
priority: code # Code wins (security)
"docs/api/**":
spec_source: "API_SPEC.md"
priority: spec # Spec wins (contracts)
"src/models/**":
spec_source: "DATA_MODEL.md"
priority: ask # Always ask user
```
**Priority Options:**
- `code`: Implementation is source of truth
- `spec`: Documentation is source of truth
- `ask`: Prompt user for decision
## Drift Detection
Spec-Lock detects these drift types:
### Function Signature Mismatch
```javascript
// Code has:
function createUser(name, email, role)
// Spec says:
function createUser(name, email)
// DRIFT: 'role' parameter not documented
```
### API Endpoint ChangesFrom aegntic/cldcde, MIT.
More from aegntic/cldcde
- 0.544score
council
aegntic
Run a 5-adviser council to stress-test any decision.
SkillCFreshness: C★ 12Claude Code +9 - 0.484score
ae-proof-agent
aegntic
Diligence-grade product and technical analysis for the ae.ltd proof-agent concept, including comparison against Cursor and Omnara, MVP and production…
SkillDFreshness: D★ 12Claude Code +9 - 0.484score
ae-ltd-skill-builder
aegntic
Create new Claude Code Skills with proper YAML frontmatter, progressive disclosure structure, and complete directory organization.
SkillDFreshness: D★ 12Claude Code +9 - 0.479score
ae-ltd-visual-regression-forge
aegntic
Use when UI changes must be proven safe across breakpoints using baseline and diff workflows.
SkillDFreshness: D★ 12Claude Code +9 - 0.479score
compound-engineering
aegntic
Orchestration layer that coordinates Debt-Sentinel, Red Team Tribunal, and Spec-Lock into unified workflows.
SkillDFreshness: D★ 12Claude Code +9 - 0.479score
debt-sentinel
aegntic
Architectural pattern enforcer that prevents technical debt.
SkillDFreshness: D★ 12Claude Code +9 - 0.479score
ae-ltd-claude-template-switchboard
aegntic
Use when creating or upgrading CLAUDE.md instructions and selecting the right template baseline for repo size, architecture, and team constraints.
SkillDFreshness: D★ 12Claude Code +9 - 0.479score
ae-ltd-worktree-mesh
aegntic
Use when parallel branches are needed for feature work, hotfixes, or review fixes using git worktrees with minimal context switching.
SkillDFreshness: D★ 12Claude Code +9 - 0.479score
ae-ltd-mutation-gate
aegntic
Use when unit tests look green but confidence is low and mutation testing is needed to expose weak assertions.
SkillDFreshness: D★ 12Claude Code +9 - 0.479score
red-team-tribunal
aegntic
Multi-agent adversarial verification system.
SkillDFreshness: D★ 12Claude Code +9 - 0.479score
ae-ltd-context7-radar
aegntic
Use when coding decisions depend on current library/framework APIs and you need version-accurate docs before implementation.
SkillDFreshness: D★ 12Claude Code +9 - 0.479score
ae-ltd-mcp-foundry
aegntic
Use when scaffolding or extending MCP servers, adding tools/resources/prompts, or hardening MCP tool schemas and handlers.
SkillDFreshness: D★ 12Claude Code +9
Signals
- Stars
- 12
- Forks
- 3
- Open issues
- 0
- Last commit (this folder)
- Feb 13, 2026 (8 months ago)
- Last release
- Aug 13, 2025 (1 year ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/aegntic/cldcde
- Website
- cldcde.cc
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from aegntic
- 0.544score
council
aegntic
Run a 5-adviser council to stress-test any decision.
SkillCFreshness: C★ 12Claude Code +9 - 0.484score
ae-ltd-skill-builder
aegntic
Create new Claude Code Skills with proper YAML frontmatter, progressive disclosure structure, and complete directory organization.
SkillDFreshness: D★ 12Claude Code +9 - 0.484score
ae-proof-agent
aegntic
Diligence-grade product and technical analysis for the ae.ltd proof-agent concept, including comparison against Cursor and Omnara, MVP and production…
SkillDFreshness: D★ 12Claude Code +9 - 0.479score
compound-engineering
aegntic
Orchestration layer that coordinates Debt-Sentinel, Red Team Tribunal, and Spec-Lock into unified workflows.
SkillDFreshness: D★ 12Claude Code +9 - 0.479score
ae-ltd-worktree-mesh
aegntic
Use when parallel branches are needed for feature work, hotfixes, or review fixes using git worktrees with minimal context switching.
SkillDFreshness: D★ 12Claude Code +9 - 0.479score
ae-ltd-claude-template-switchboard
aegntic
Use when creating or upgrading CLAUDE.md instructions and selecting the right template baseline for repo size, architecture, and team constraints.
SkillDFreshness: D★ 12Claude Code +9
Cite this page
spec-lock skill. Agent Mart. https://agentmart.dev/skills/aegntic-spec-lock (last updated 2026-10-24)