Architecture for this repository. Replace with your own module map and data flow when adopting.
| Directory / module | Purpose |
|---|---|
AGENTS.md |
Root entrypoint and profile-aware loading order |
docs/ |
Source-of-truth governance docs, workflow rules, templates, and guides |
skills/ |
Reusable execution skills (planning, implementation, validation, recovery, memory) |
rules/global/ |
Cross-project rules layer (security baseline starter included) |
rules/domain/ |
Domain-specific rules layer |
project/project-manifest.md |
Project-local constraints and boundary declarations |
scripts/ |
Documentation and layered-rule lint automation |
.github/workflows/ |
CI execution for governance and agent review checks |
DECISIONS.md / DECISIONS_ARCHIVE.md |
Active and archived architectural/behavioral decisions |
prompt-budget.yml |
Execution mode, budget profile, and role/skill enablement controls |
examples/ |
Reference operating profiles and usage patterns |
Primary flow for repository usage:
- User request enters through agent runtime.
- Agent reads
AGENTS.mdand resolves profile fromprompt-budget.yml. - Agent loads rules from
docs/rules-quickstart.mdordocs/rules-nano.md, then expands intodocs/operating-rules.mdanddocs/agent-playbook.mdwhen profile requires it. - Agent loads applicable
skills/*/SKILL.mdfiles for discovery, triage, implementation, and validation. - Agent performs repository changes and records durable decisions in
DECISIONS.md. - Validation loop executes tests/lint and applies error recovery as needed.
- Governance scripts (
scripts/lint-doc-consistency.sh,scripts/lint-layered-rules.sh) and CI workflows enforce documentation/rule consistency.
docs/operating-rules.md— canonical safety/scope/validation contract.docs/agent-playbook.md— canonical role ownership and routing contract.prompt-budget.yml— runtime control plane contract forexecution_mode,budget.profile, and enabled roles/skills.docs/schemas/handoff-artifact.schema.yaml— structured handoff artifact contract between roles.DECISIONS.mdformat — contradiction-check contract used before planning and implementation.
| Service | Purpose | Notes |
|---|---|---|
| GitHub Actions | Runs governance and review workflows | Triggered by workflow files in .github/workflows/ |
Shell tooling (bash, grep, awk, sed) |
Executes local lint scripts | Required by scripts/lint-*.sh |
Single documentation/governance repository. Primary execution units are:
- Local agent runtime (interactive development sessions)
- CI workflows for governance and consistency checks
- Governance checks are shell-script based; portability to non-POSIX environments relies on CI rather than local parity.
- Trace review uses lightweight YAML heuristics instead of a dedicated schema validator.