This directory explains how Mecatl works inside, for contributors. Start with the
reading map. Contributor and agent instructions live in
AGENTS.md; this page doesn't restate them.
| Audience | Route |
|---|---|
| Contributor / agent | READING.md → foundations (overview → domain model → ports → agent loop) → the chapter for your area |
| Operator | ../README.md → public documentation → run mecated |
| Library consumer | Building on mecatl → engine/session → extension points → engine/COMPATIBILITY.md |
| API client developer | Drive via gRPC / HTTP → contracts/proto/mecatl/v1/ → gRPC reference or HTTP/SSE reference |
Each kind of guidance has one home. Put a fact at the narrowest level that covers it.
| Home | Holds | Loaded |
|---|---|---|
Root AGENTS.md |
Commands, layout, and invariants for the whole repo | Every agent session |
Module AGENTS.md |
Where to change what in that module, its commands and invariants | When an agent works in that directory |
.claude/rules/*.md |
Invariants for a file pattern that spans directories, such as *_test.go |
When an agent reads a matching file |
.claude/skills/ |
Multi-step workflows, such as cutting a release | When invoked |
.claude/agents/ |
Reviewer and helper subagent definitions | When delegated to |
docs/ |
How the system works today, for contributors: intent, boundaries, and invariants | When read |
docs/drafts/ |
Proposals and work records; never current behavior | When read |
docs/examples/ |
Example Mecatl skills to copy or read as reference | When read |
user-docs/ |
How to use Mecatl, published at mecatl.dev | When read |
Every AGENTS.md stays under 200 lines and has a CLAUDE.md symlink beside it; rules
stay at or under 25 lines. task docs checks these limits.
- Reading map: the contributor, operator, and library routes.
- Architecture overview: layers, request flow, code map, and principles.
- Public documentation: user-facing guides and reference.
- Drafts: proposals, not current behavior.