Eko Documentation

Documentation for developers building and maintaining Eko v2.

Quick Navigation:

Documentation Workflow

Creating Documents

bun run docs:new --scope <scope> --title "Title"
bun run docs:new --list-scopes  # Show available scopes

CI Validation

CommandPurposeCI Behavior
docs:lintValidates front-matterErrors block build
docs:staleness --prDetects stale docsWarnings only (PR summary)

Document Classes

CONTRACT (scopes: architecture, product, specification, policy):

  • Defines system behavior; must stay in sync with code
  • Required fields: related_code, version
  • Recommended: changelog
  • Violations: errors on new/modified docs, warnings on existing

GUIDE (scopes: dev, operations, reference, design, assessment):

  • Explains how to use the system
  • All fields optional (warnings only)

Code Binding Policy

  • Primary source: Front-matter related_code field
  • Secondary source: docs-code-mapping.yml (additive only)
  • Mapping file may ADD paths but must NOT remove front-matter paths
  • Use front-matter when doc author owns the mapping
  • Use mapping file for central/cross-cutting mappings

Documentation Structure

Product

Product documentation for the Eko v2 fact engine.

Architecture

Technical design and decision records.

Design System

Design system tokens and component guidelines. Wireframes and token extraction are in progress — see docs/projects/design-system/ for current status.

Development

Guides for developers working on Eko.

Runbooks

Operational procedures for production systems.

Policies

Legal and compliance documentation.

Rules

Central index for all rules, conventions, and standards.

Reports

Summary reports and documentation health.

Proposals

Design proposals for features, functionality improvements, and fixes before implementation.

Changelog

Detailed changelog entries for releases, auto-generated from git commits.

bun run changelog:generate              # Generate unreleased changelog
bun run changelog:generate --update-root  # Also update root CHANGELOG.md

Repository-Level Docs

These files live at the repo root:

Agent System

Claude Code agents are documented in .claude/agents/README.md — the authoritative source for agent ownership, routing, and capabilities.