This file adapts the repository's engine-agnostic project contracts for AI
coding agents, architecture assistants, and documentation generators. It should
stay small. Do not duplicate general project rules here when they can live in
general-semantic-contracts.md.
Apply instructions in this order:
- User instruction.
- Relevant
skills/**/SKILL.md. - This
AGENTS.mdadapter. general-semantic-contracts.md.
More specific instructions may narrow or override more general instructions. They should not silently contradict them; call out unclear conflicts before making architecture changes.
Read and apply general-semantic-contracts.md before creating or changing
architecture content. It defines the engine-agnostic project contract for
arc42, Docs-as-Code, metadata, traceability, quality, risks, SDLC work, and
writing style.
Use repository source files as the source of truth. Conversational context, inferred relations, generated prose, and AI output are advisory until reviewed and committed.
When this repository is used as a toolkit dependency from another software project, automated agents should treat this repository as the canonical source for architecture documentation conventions, templates, skills, metamodel schemas, validators, and generator behavior.
Target projects may contain their own AGENTS.md. In that case, apply the
target project's local instructions first, then use this toolkit to fill in
architecture-knowledge-toolkit-specific conventions.
Do not copy all toolkit rules into global agent installations. Global agent instructions should only tell agents how to discover and apply this toolkit.
- Prefer small, reviewable changes.
- Preserve stable IDs once assigned.
- Mark AI-created or AI-modified architecture content as draft or proposed unless human acceptance is already recorded in the repository.
- Identify assumptions, unknowns, and required human decisions.
- Keep generated content separate from reviewed source content where practical.
- For generated or AI-updated links, prefer the explicit AsciiDoc anchor already
present in the source file. Do not derive xrefs from artifact-id-prefixed file
names such as
doc-09000-architecture-decisions.adoc; the chapter anchor isarchitecture-decisions. - Do not add engine-specific assumptions to engine-independent contracts or skills.
- Put Codex-specific, Vibe-specific, or other runtime integration under
adapters/. - Put GitHub Copilot-specific repository instructions in
.github/only as an entry point that points back toadapters/github-copilot/and the engine-independent skills. For pull request reviews, useskills/pr-review/SKILL.md.