Specs and rules

2 min·Assumes: nothing

Two folders steer the repo: specs/ says how Markless behaves, and .ruler/ is the source of every agent's instructions.

specs/framework-design.md
specs/framework/03-state-graph.md
.ruler/AGENTS.md
AGENTS.md
CLAUDE.md

specs/ holds the behavior contract, one file per area. .ruler/AGENTS.md is the source; AGENTS.md and CLAUDE.md are written from it.

Two folders, two plain rules

Step through them:

specs/
  • framework-design.md
  • framework/07-diagnostics.md
  • router/

# State Graph

Author-facing graph state semantics, async derivation, shared state, …

pull request #490

packages/web/src/fns/shared-start.ts

specs/framework/03-state-graph.md

markless/

.ruler/AGENTS.md

↓ pnpm rules

AGENTS.md

<!-- Source: .ruler/AGENTS.md -->

+ my own rule

CLAUDE.md

<!-- Source: .ruler/AGENTS.md -->

agent-files

specs/ says how Markless behaves. Open one to read it.

  • Change how Markless behaves, and change its spec in the same pull request. Start at specs/framework-design.md, the index.
  • specs/framework/08-deferred-decisions.md lists the topics left open on purpose, and specs/framework/archive/ is history, not the contract.
  • Never edit AGENTS.md or CLAUDE.md. Edit .ruler/, run pnpm rules, and commit what it writes. The pre-commit hook checks this too when you stage a .ruler/ file.

A spec edit follows one skill

Follow .ruler/skills/markless-spec-maintenance/spec.md. In short: keep accepted decisions, record open topics as deferred, and write behavior a test can check.

A few rules apply everywhere

  • Run pnpm run typecheck and pnpm ci:local --fast before you call a change done.
  • Write the test first, then make the smallest change.
  • Keep compiler, runtime, serializer and render code free of Node-only APIs.
  • A pull request stays open until every review finding, Macroscope's too, has an answer.

Improve the docs has the rules for this website.