Codetospec — AI skill for Claude Code
Turn a legacy codebase into a verifiable, versionable knowledge graph of its business rules — LLM map/reduce inside deterministic verifiers, language-agnostic via tree-sitter.
How to install Codetospec
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open edouard-claude/codetospec and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Codetospec does
Turn a legacy codebase into a verifiable, versionable knowledge graph of its business rules — LLM map/reduce inside deterministic verifiers, language-agnostic via tree-sitter.
Alternatives in AI
- Repomix — 📦 Repomix is a powerful tool that packs your entire repository into a single, AI-friendly file 22.7k ★
- Jcodemunch MCP — Cut AI token costs 95%+ on code exploration 2.6k ★
- Internal Safety Collapse — We built an adversarial codespace setup 1.2k ★
README
codetospec
Turn a legacy codebase into a versionable, verifiable knowledge graph of its business rules.
codetospec old-legacy-app → ./spec-graph deepseek-chat · 8 workers
RULES TO REVIEW 214 proven · 278/312 checked ELAPSED
34 6m12s
■ extract → ■ map → ■ reduce → ■ check → ▢ render
╭─────────────────────────────────────────────────────────────────────────────────────╮
│ RULES PER DOMAIN +14 more · 252 total │
│ billing ███████████████████████████████████████████████░░░ 38 │
│ shipping ████████████████████████████████░░░░░░░░░░░░░░░░░░ 26 │
│ inventory █████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░ 20 │
│ auth ███████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 15 │
╰─────────────────────────────────────────────────────────────────────────────────────╯
╭─────────────────────────────────────────────────────────────────────────────────────╮
│ LATEST VERDICTS 214 proven (48 repaired) · 32 partial · 34 to review │
│ ✓ rule.billing.prorata-refund │
│ ✓ rule.shipping.freight-surcharge-tiers │
│ ≈ rule.auth.session-idle-timeout │
│ ✗ rule.inventory.backorder-threshold │
╰─────────────────────────────────────────────────────────────────────────────────────╯
tokens map 1.1M+322k · reduce 189k+88k · total 1.6M+450k 6m12s [q] quit
`codetospec` reads a source repository and produces a markdown graph: domain, entity, endpoint and rule nodes (requirements written in the EARS format), linked by typed edges in YAML frontmatter. The ou
Related Skills
Reporecall
Local codebase memory for Claude Code. Tree-sitter AST indexing (22 languages), hybrid keyword + vector search
Living Codebase Cartographer
Offline codebase cartographer: language-agnostic repo maps, dependency/call graphs, blast-radius impact analys
Ast Outline
ast-outline lets AI coding agents pull exactly the code context they need — a repo skeleton, a file outline, o
Rpg Explainer
CLI tool to analyze IBM RPG programs using Tree-sitter and Claude LLM
MCP Server Code Extractor
🎯 Precise code extraction for AI assistants - MCP server using tree-sitter to extract functions, classes & sn
Fast File Search
Ultra-fast file search toolkit for AI agents, Neovim, and code editors. MCP server for Claude Code/Cursor/Code
Related Agents
Topology Mapper
Topology Manager and Legacy Scaffolder. Use this agent to maintain the topology_map inside docs/active_state.j
Openkan
Project planning, task structure, goals, prioritization, and delivery management through the OpenKan CLI. Use
Gsd Codebase Mapper
Explores codebase and writes structured analysis documents. Spawned by map-codebase with a focus area (tech, a