Trail markers for AI-collaborative codebases.
Opinionated documentation convention + CLI that scaffolds the structure, generates per-vendor AI rule files (Claude, Cursor, Codex, Gemini), and lints the result.
CLI
Four commands cover the full lifecycle of AI-ready documentation.
Interactive scaffold wizard.
Single source of truth.
Type-safe doc creation.
11 enforced rules.
Comparison
No other tool combines convention + enforcement + AI rule generation in one place.
| Feature | Beacon (this) | Diátaxis framework | adr-tools ADRs only | Hand-written CLAUDE.md | Docusaurus docs site |
|---|---|---|---|---|---|
| Opinionated structure | |||||
| Convention enforcement (linter) | |||||
| AI rule files generation | |||||
| Multi-vendor support (Claude/Cursor/Codex/Gemini) | |||||
| Per-vendor format (.md / .mdc / .cursorrules) | |||||
| Auto-sync (single source of truth) | |||||
| Per-doc-type naming convention | |||||
| Status via folder (not filename) | |||||
| ADR auto-numbering | |||||
| Date-prefixed evaluations | |||||
| Configurable add-ons (compliance, business, modules…) | |||||
| CI-ready out of the box | |||||
| Zero config required (sensible defaults) |
Yes Partial No
Architecture
Edit the source once. Beacon regenerates every vendor-specific file automatically.
Edit the convention once. beacon sync regenerates everything.
beacon lint --strict catches drift in CI.
Output
beacon initA complete, navigable docs structure plus AI rule files — ready in under 30 seconds.
File tree
├── CLAUDE.md ← generated ├── AGENTS.md ← generated ├── GEMINI.md ← generated ├── .cursorrules ← generated ├── .cursor/rules/beacon.mdc ← generated ├── package.json ← gets docs:lint └── docs/ ├── README.md ← master index ├── _meta/ │ ├── convention.md ← you edit this │ └── beacon.config.json ├── reference/ ├── architecture/ ├── adr/ ├── plans/ │ └── _archive/ ├── backlog/ └── evaluations/
Generated CLAUDE.md (preview)
# Documentation Convention ## Universal rules 1. One doc = one category. Never duplicate. 2. Status via folder, never filename. Closed plan → _archive/, not *_DONE.md 3. kebab-case for all filenames. 4. README required in every category folder. 5. ADRs are append-only. Supersede with a new ADR. 6. Evaluations are immutable snapshots. 7. Plans archive to _archive/ when done. 8. Generated AI files must match convention.md. Run beacon sync after editing the convention. 9. Don't create folders outside the convention. ## Where does X go? | How is X done technically? | reference/ | | How is the system structured? | architecture/ | | Why was X decided? | adr/ | | What is being built right now? | plans/ | | What's on the future backlog? | backlog/ | ...
Init wizard
The wizard reads your package.json and suggests the right categories automatically.
Frontend or fullstack web application.
API, microservice, or server-side application.
SDK, npm package, or shared module.
Command-line tool or developer utility.
iOS, Android, or cross-platform mobile app.
Multi-package or multi-app workspace.
Pick exactly what you need. Fully manual.
CI / CD
Beacon's linter exits with code 1 on errors, making it a first-class CI gate. Add the workflow once and let it catch drift automatically.
--strict escalates warnings to errors in CI--json for structured output in toolingname: Beacon docs lint on: pull_request: paths: ["docs/**", "CLAUDE.md", "AGENTS.md", "GEMINI.md", ".cursorrules", ".cursor/**"] push: branches: [main] jobs: beacon-lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: { node-version: 20 } - run: npx beacon-docs lint --strict
One command. Complete docs structure. AI rules for every agent.