edouard-claude

Codetospec — AI skill for Claude Code

AI community

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