docs-and-scripts
Conventions for blaze's documents, scripts and agent-facing interfaces: docs/ front matter (current, plan, record, superseded) and `tools/docs.py`, scripts that take one typed JSON value, and no MCP. Load before writing or editing a doc under docs/, writing or changing a script, or designing an interface agents call.
Install
Copy this folder into your Claude Code project (needs Node.js):
npx degit indexable-inc/blaze/.agents/skills/docs-and-scripts .claude/skills/docs-and-scriptsOr install it for every project:
npx degit indexable-inc/blaze/.agents/skills/docs-and-scripts ~/.claude/skills/docs-and-scriptsFile content
Made by its original authors and shared under Apache-2.0. We show it unchanged, with credit and a link to the source. Source ↗
--- name: docs-and-scripts description: "Conventions for blaze's documents, scripts and agent-facing interfaces: docs/ front matter (current, plan, record, superseded) and `tools/docs.py`, scripts that take one typed JSON value, and no MCP. Load before writing or editing a doc under docs/, writing or changing a script, or designing an interface agents call." --- # Docs, scripts and agent interfaces <!-- Generated by `bun tools/agents/rules.ts --write` from tools/agents/rules.ts, down to the end marker; edit the rules there. AGENTS.md carries each rule as one line. --> ## no-mcp (rule 33) No MCP. Agent-facing interfaces are a Unix socket or HTTP with one versioned schema in deterministic CBOR; the CLI is a client of the same API. See [docs/roadmap.md#8-the-agent-api](../../../docs/roadmap.md#8-the-agent-api). ## docs-say-what-they-are (rule 41) Every doc under `docs/` has front matter: `current` (kept true), `plan`, `record` (dated history) or `superseded` (naming its replacement). Trust current docs; read plans and records as of their date. A change that makes a current doc untrue fixes it or marks it superseded in the same change; `python3 tools/docs.py check` holds them to the tree. See [docs/contributing.md#documents](../../../docs/contributing.md#documents). ## scripts-take-typed-input (rule 42) A script takes one JSON value (a file path, `-` or inline), parsed into a frozen dataclass that refuses unknown fields, not a set of flags or hidden environment variables. An existing script moves to this when next changed. <!-- End of the generated rules. Hand-written notes follow. --> ## Checking docs `python3 tools/docs.py check` holds every doc's links, and a current doc's anchors, repository paths in backticks and `BLAZE_*` settings, against the tree; `python3 tools/docs.py write` regenerates the index, docs/README.md. The front-matter fields are in `tools/docs.py`'s docstring.