Docs & Quickstart
Install, reverse-engineer, and maintain your spec layer
Repofence is a local-first SDD CLI. It creates and maintains living specs from your repository so modern AI coding environments work with explicit boundaries instead of implicit assumptions.
Step 1
Build and link the CLI
npm install npm run build npm link
Step 2
Initialize spec files
repofence init cursor
Step 3
Reverse-engineer your codebase
repofence reverse
What gets generated
/spec/SYSTEM_OVERVIEW.md/spec/CORE_FLOWS.md/spec/BOUNDARIES.md/spec/AI_RULES.md/spec/IDE_CURSOR.md(editor guide from the selected init pack)
These files are reviewable, versioned in git, and updateable as your system evolves.
Typical workflow
- Run
repofence init cursorin your repository root. - Run
repofence reverseto auto-populate detected context. - Fill UNKNOWN sections and refine generated content.
- Use AI rules/specs inside your coding environment.
- Refresh specs whenever architecture or flows change.
FAQ
Do you upload my repository code?
No. Repofence runs locally and does not upload your repository code.
Which files are created?
Repofence creates and updates the /spec layer, including SYSTEM_OVERVIEW, CORE_FLOWS, BOUNDARIES, AI_RULES, and an IDE guide.
What does early access mean?
We are in Early Access. Join the waitlist to receive token and setup instructions by email as rollout progresses.
Early access is currently rolling out. Join the waitlist to receive onboarding instructions and token updates.
Join Early Access