maat
llms.txt4 starsChanged 5 months agoApache-2.0View on GitHub
A documentation-as-code framework that keeps a repository's docs, its cross-agent instruction files, and its source code in lockstep — maintainable by AI agents, human developers, and CI alike. This file indexes the project's documentation for AI agents and tools. Each link points to a Markdown document; agents should read the ones relevant to the task before making changes.
- Pipes a download into a shell
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/maat.mdcCursor rule
- maat-retrospectSkill
The file
Files
# Ma'at > A documentation-as-code framework that keeps a repository's docs, its cross-agent instruction files, and its source code in lockstep — maintainable by AI agents, human developers, and CI alike. This file indexes the project's documentation for AI agents and tools. Each link points to a Markdown document; agents should read the ones relevant to the task before making changes. ## Architecture — how the system is built - [Check engine module](docs/architecture/modules/check.md): The validation rules behind `maat check` — the CI gate. - [Contracts update module](docs/architecture/modules/contracts-update.md): How maat contracts update fetches provider manifests and writes the lockfile — the only networked code in Ma'at. - [Model & generators module](docs/architecture/modules/model-generate.md): Scanning the docs tree into a model and rendering derived artifacts from it. - [Terminal presentation module](docs/architecture/modules/presentation.md): TTY/color detection, Lip Gloss styling, and the Huh init wizard layered on top of the plain-text output every command already produces. - [Init & scaffold module](docs/architecture/modules/scaffold.md): What maat init stamps into a repository, where the embedded templates live, and how version-dependent values get into them. - [YAML & front-matter module](docs/architecture/modules/yaml-frontmatter.md): The parsing layer — a hand-rolled YAML subset and Markdown front-matter reading. - [Architecture Overview](docs/architecture/overview.md): How Ma'at is built — the CLI pipeline, the docs model, and the generate/validate split. ## Decisions — why it is built that way (ADRs) - [0001 Record architecture decisions](docs/decisions/0001-record-architecture-decisions.md): We will use Architecture Decision Records to document significant choices. - [0002 Zero runtime dependencies](docs/decisions/0002-zero-dependencies.md): Superseded by ADR 0005. The zero-runtime-dependency goal is preserved by the Go static binary; the stdlib-only-Python mechanism is retired. - [0003 AGENTS.md as source of truth with generated adapters](docs/decisions/0003-agents-md-source-of-truth.md): One canonical instruction file (AGENTS.md); every other agent's file is generated from it and verified in CI. - [0004 Detect staleness via related_code timestamps](docs/decisions/0004-related-code-staleness.md): Superseded by ADR 0012. Staleness now uses git history; the mtime comparison remains only as the fallback for non-git directories. - [0005 Rewrite the CLI in Go, distribute a single static binary](docs/decisions/0005-go-rewrite.md): The CLI is rewritten in Go and shipped as one static binary; the Python reference is retired. Supersedes 0002. - [0006 Distribution and version pinning](docs/decisions/0006-distribution-and-versioning.md): Ma'at is adopted through a CI gate as the authority, a universal curl|sh installer plus published Action/reusable workflow, and an in-config maat_version constraint the released binary self-enforces. - [0007 Agent skills as managed artifacts](docs/decisions/0007-agent-skills-as-managed-artifacts.md): Ma'at ships agent skills as version-stamped copies under .maat/skills/, generated from templates embedded in the binary, kept fresh by sync/check, and discovered through AGENTS.md with optional vendor fan-out. - [0008 Brownfield adoption and BYO-agent retrospection](docs/decisions/0008-brownfield-adoption-byo-agent.md): Adopting Ma'at in an existing repository is non-destructive by default; deriving documentation from an established codebase is delegated to the user's own AI agent via a shipped retrospect skill, with the CLI providing only deterministic facts. - [0009 Maintenance contract as a managed block in the instruction file](docs/decisions/0009-contract-as-managed-block.md): The documentation update protocol, front-matter schema, and skills index are framework invariants, so they are rendered into the managed maat:begin/end block spliced into the instruction file — not hand-written scaffold prose — so a brownfield AGENTS.md that init preserved still gains the contract non-destructively. - [0010 Hand-copy templates live under .maat/, not the repo root](docs/decisions/0010-templates-under-dot-maat.md): init no longer scaffolds a root-level templates/ folder; the redundant ADR copy is dropped in favor of the existing docs/decisions/_template.md, and the module doc template moves to .maat/templates/_module.md, matching the leading-underscore naming already used for the ADR template. - [0011 Build-time Go dependencies are permitted; runtime dependencies are not](docs/decisions/0011-build-time-go-dependencies.md): Go module dependencies that compile statically into the binary (no external runtime process, no network call, no subprocess) are permitted going forward. The Charm libraries (Lip Gloss, Huh, and Bubble Tea transitively via Huh) are the first exercise of this policy, used for terminal styling and an interactive `init` wizard. - [0012 Detect staleness from git history](docs/decisions/0012-git-aware-staleness.md): Staleness compares commit order (and uncommitted changes) via git when available; filesystem mtimes remain only as the fallback for plain directories. - [0013 Typed contract edges in front matter and a generated manifest](docs/decisions/0013-contract-edges-and-manifest.md): Docs declare the contracts they describe (provides) and depend on (consumes); sync generates a machine-readable manifest at .maat/manifest.json; check validates edges within the repo. Groundwork for cross-repo checks. - [0014 Resolve cross-repo contracts through a committed lockfile](docs/decisions/0014-cross-repo-contracts-via-lockfile.md): An explicit, opt-in command fetches the manifests of the repositories a repo consumes into a committed lockfile; check validates cross-repo refs against that lockfile offline, so sync and check stay deterministic. - [Architecture Decision Records](docs/decisions/README.md): Index of ADRs — the append-only log of why the system is the way it is. ## Guides — how to work on it - [Adopting Ma'at in a repository](docs/guides/deployment.md): How to add Ma'at to an existing project and wire it into CI. - [Development guide](docs/guides/development.md): How to set up, run, and contribute to Ma'at locally. - [Testing guide](docs/guides/testing.md): How to run and write Ma'at's tests, and what CI enforces. - [Troubleshooting](docs/guides/troubleshooting.md): Common maat check failures and how to resolve them. - [When to use Ma'at](docs/guides/use-cases.md): The problems Ma'at solves, phrased as the questions people ask, with the feature that answers each one. ## Reference — factual surface (config, env, API) - [CLI reference](docs/reference/cli.md): Every maat command, flag, and exit code. - [Configuration reference](docs/reference/configuration.md): Every .maat.yml key, its default, and its effect. - [Contracts lockfile reference](docs/reference/contracts-lock.md): The format of .maat/contracts.lock.json, the committed snapshot of the contracts a repository consumes from other repositories, and how check uses it. - [Environment variables](docs/reference/environment.md): Environment variables Ma'at reads. - [Front-matter reference](docs/reference/frontmatter.md): The YAML front-matter schema every doc in docs/ carries. - [Contract manifest reference](docs/reference/manifest.md): The format of .maat/manifest.json, the generated index of a repository's contract edges. ## Meta — conventions and glossary - [Documentation conventions](docs/meta/conventions.md): The rules this documentation set follows so it stays consistent. - [Glossary](docs/meta/glossary.md): Definitions of Ma'at's domain terms. - [Maintaining the documentation](docs/meta/maintenance.md): How the docs stay in sync with the code — the lifecycle and tooling. ## Contracts - Provides `check-action` (github-action): [Adopting Ma'at in a repository](docs/guides/deployment.md) - Provides `check-workflow` (github-workflow): [Adopting Ma'at in a repository](docs/guides/deployment.md) - Provides `contracts-lockfile-format` (schema, 1.0.0): [Contracts lockfile reference](docs/reference/contracts-lock.md) - Provides `maat-cli` (cli): [CLI reference](docs/reference/cli.md) - Provides `manifest-format` (schema, 1.0.0): [Contract manifest reference](docs/reference/manifest.md) ## Entry points - [Ma'at Documentation](docs/index.md): Entry point and map for the Ma'at documentation set.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

