This repository is the organization-wide AGENTS policy source. It stores strict project rules that define architecture policy including:
- technology choices
- code style
- code quality tools
- naming conventions
- directory structure
- code patterns
- custom strict rules
Based on the target project, stack modules are combined into root and nested AGENTS.md files via the appropriate skill when subprojects need more specific policy. It assembles project-specific rules while preserving shared conventions.
Current repository layout:
<repo-root>/
AGENTS.md # repository description (this file)
doc.md # module routing and load conditions
awesome/ # enforced utility/library registry by stack or capability
index.md
<name>.md
shared/ # reusable cross-stack rulesets
<rule-name>.md
skills/ # skills used to integrate with these policies
<skill-name>/
SKILL.md
modules/ # stack-specific guidance
<module-name>/doc.md
examples/ # example files and authoring guidance
pattern-anti-pattern.md
<stack>/
index.md
<example>.md
<subproject>/
AGENTS.md # nested policy for a specific app/service/package
AGENTS.mddocuments this repository only and does not define downstream project rules directly.- Root
AGENTS.mdshould not update itself when new stack or shared rules are added. Keep it universal and focused on repository-level design.
- Routing logic is maintained in
doc.md. doc.mdmust include references to all baseline and stack modules.doc.mdmust provide a canonical table with short stack key, full stack name, module path, andload_when.doc.mdmust instruct agents to always load baseline modules and load project-specific stacks byload_whensignals.doc.mdmust define when to create nestedAGENTS.mdfiles and how parent/child precedence works.doc.mdmust define section semantics:Strict rulesfor technical constraints, andWorking Agreementsfor user-agent interaction protocol.doc.mdmust define how to load and enforceawesome/index.mdand matching awesome files.- Changes to module paths or routing signals must update
doc.mdin the same change. - When adding a new stack, update
doc.mdwith both the short stack key and full stack name. - Root
doc.mdshould contain only routing/composition logic and helpers to assemble targetAGENTS.md.
- Target repositories may contain a root
AGENTS.mdplus nestedAGENTS.mdfiles for subprojects with distinct stack, runtime, or ownership boundaries. - Root
AGENTS.mdshould stay repository-wide; nestedAGENTS.mdfiles should narrow rules for their subtree. - Nested
AGENTS.mdfiles should be created only for meaningful architecture boundaries such as apps, services, or packages with distinct tooling.
- Stack-specific guidance is maintained in
modules/*/doc.md. - Enforced stack or capability libraries/utilities are maintained in
awesome/*. - If equivalent rules are shared by multiple stack modules, extract them to
shared/<rule-name>.md. - Stack modules must link extracted shared rules by relative path (for module files:
[shared/<rule-name>.md](../../shared/<rule-name>.md)). - Keep shared files concrete and tool-focused; stack modules should keep only stack-specific additions.
- Example authoring guidance is maintained in
examples/pattern-anti-pattern.md. - Example files under
examples/must follow that comparison contract. - Stack-specific example indexes such as
examples/<stack>/index.mdshould point to the relevant example files and may reference the shared authoring guide.
- Skills are maintained in
skills/<skill-name>/SKILL.md. - Skills must treat
doc.mdandawesome/index.mdas the source of truth and must not introduce alternate router filenames. - Skills must support root and nested
AGENTS.mdoutput when the repository contains multiple app or service boundaries. - Skills that initialize from scratch or refactor existing repositories must run an architecture interview before selecting modules or refactoring code.
- Skills must wait for explicit
Acceptbefore writingAGENTS.mdor performing architecture-driven refactors. - Skills that mutate an existing codebase must propose a phased plan before editing files.
Rules in this project must be combined so a target agent can merge them into a single AGENTS.md using the contract defined in doc.md.
- MUST ask interview questions when policy intent or requested changes are ambiguous.
- MUST wait for explicit
Acceptbefore finalizing any policy text change. - MUST document user-approved technical exceptions in the relevant
Strict rulessection. - MUST keep
Working Agreementsinteraction-only; technical commands, checks, and invariants MUST be defined inStrict rules.