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 ★
- Graymatter — 30 sec to give your AI agents persistent memory 460 ★
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
Semble Rs
Fast, AI-agent-native code search in Rust — hybrid BM25 + semantic, Tree-sitter AST chunking, dependency & imp
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
Related Agents
Cypher Author
Writes read-only Cypher for natural-language questions given the live graph schema and few-shot examples; also
Search Reducer
Read-only/advisory REDUCE role for the finite-computation solver layer in lean-proof-agents. Given a formal-co
Openkan
Project planning, task structure, goals, prioritization, and delivery management through the OpenKan CLI. Use