anarch-model-context
/anarch-model-context
Load a Go module's declared architecture into the working context before a coding task. Use at the start of a session in a repository with an anarch.json, when the user says "follow the architecture" or "load the model", or before adding a package, an import between subsystems, or a dependency. Makes the agent place code in the right subsystem and keep the declared rules.
- Author
- StevenACoffman ↗
- Repository
- anarch-lint ↗
- Licence
- MIT
- Last repository change
- 12.11.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 12.11.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Load a Go module's declared architecture into the working context before a coding task. Use at the start of a session in a repository with an anarch.json, when the user says "follow the architecture" or "load the model", or before adding a package, an import between subsystems, or a dependency. Makes the agent place code in the right subsystem and keep the declared rules.
Triggers from the description
Original author description
Load a Go module's declared architecture into the working context before a coding task. Use at the start of a session in a repository with an anarch.json, when the user says "follow the architecture" or "load the model", or before adding a package, an import between subsystems, or a dependency. Makes the agent place code in the right subsystem and keep the declared rules.
How it works
- What to Load
- How to Apply It While Coding
SKILL.md preview
--- name: anarch-model-context description: > Load a Go module's declared architecture into the working context before a coding task. Use at the start of a session in a repository with an anarch.json, when the user says "follow the architecture" or "load the model", or before adding a package, an import between subsystems, or a dependency. Makes the agent place code in the right subsystem and keep the declared rules. --- # Loading the Architecture as Context `anarch.json` declares the architecture a Go module should keep, and `anarch-lint check` fails a change that breaks it. Reading the model before writing code means you place new code in the right subsystem, import only through declared interfaces, and do not add a regression that check will reject. ## What to Load 1. **Prefer the rendering, `anarch.md`, beside `anarch.json`.** It has the subsystems with their interfaces, the layer order, a diagram of the measured dependencies, the forbidden imports and isolations, and the fitness rules with their reasons. 2. **Check it is current:** `anarch-lint render --check` exits 3 when it is stale; then run `anarch-lint render` to regenerate it. Without anarch-lint installed, read `anarch.json` directly and say the rendering may be stale. 3. **Load the domain models it lists,** the `*.modelith.yaml` files of the fitness `domains` rules: their entity and enum names are the names the code should use. 4. **Read it in full before writing code.** Note for the task at hand: - the subsystem the change belongs to, and that subsystem's interface; - the layers it may import, and the imports and calls the rules forbid; - the reason of every rule the change comes near. ## How to Apply It While Coding - **Put new packages where a subsystem's patterns claim them.** A package no subsystem claims is a finding when `requireAssigned` is set. - **Import another subsystem only through its interface packages.** - **Treat a rule's reason as a constraint on the design,** not as a lint to silence. If the task seems to need breaking a rule, stop and say so: the model may be wrong, and changing it is the user's decision, made with the `anarch-model-author` skill. - **Before finishing, run `anarch-lint check`.** A new error finding or a metric regression is a design problem to fix, not a baseline to refresh.
Versions
The database has no other skills named anarch-model-context.
Database snapshot: 13.11.2026 · package version 6fdf6af8e58c (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 90anarch-model-author
Build or update an anarch-lint architecture model (anarch.json) by conversation. Use when the user wants to declare or change subsystems, interfaces, layers, forbidden imports, isolations, fitness rules or connascence limits for a Go module, or asks to "set up anarch-lint".… - 90how
Use for \"how does X work\", code walkthroughs before changing something, and placement / ownership / layering questions (\"where should this live\", \"which package owns this\", \"is this the right layer\"). Explains subsystem architecture, runtime flow, onboarding mental… - 100knx-xml-context
Context loader for KNX XML development. Use when user says "knx context", "load knx", "knx validation", "knx xml rules", or starts working on KNX XML/knxprod files. - 100prime
Load ADR and spec context into the session for architecture-aware responses. Use when the user says "prime context", "load architecture", starts a new session, or wants Claude to know about existing decisions. - 100how
Use for \"how does X work\", code walkthroughs before changing something, and placement / ownership / layering questions (\"where should this live\", \"which package owns this\", \"is this the right layer\"). Explains subsystem architecture, runtime flow, onboarding mental… - 100how
Use for \"how does X work\", code walkthroughs before changing something, and placement / ownership / layering questions (\"where should this live\", \"which package owns this\", \"is this the right layer\"). Explains subsystem architecture, runtime flow, onboarding mental…