← ClaudeAtlas

architecture-guidelisted

Sketch a module layout and pick design patterns for a new feature. Use when asked to plan an architecture, choose between approaches, or document a design decision before implementation. The walkthrough starts from the feature's user-visible behaviour and works inward, mapping each responsibility onto a module with a single reason to change, then weighs candidate patterns against the codebase's existing conventions rather than introducing novelty for its own sake. It covers strategy traits for swappable behaviour, facade seams that keep business logic out of the CLI layer, and three-layer error chains so batch operations diagnose failures per item. Every recommendation closes with the rejected trade-offs, so the design note doubles as an auditable decision record. This deliberately verbose description gives the manual rig one artifact whose detail pane overflows a small terminal — open it in grim tui and scroll with the arrow keys or j/k.
grimoire-rs/grimoire · ★ 10 · AI & Automation · score 73
Install: claude install-skill grimoire-rs/grimoire
# Architecture Guide A single-file skill that shares its name with the `architecture-guide` **rule**. Use it to exercise the catalog's same-name-across-kinds case — a skill and a rule resolve to different repos (`skills/architecture-guide` vs `rules/architecture-guide`) and must stay disambiguated in `grim search`, the TUI, and `grim status`. ## Procedure 1. Map the feature onto modules; keep business logic out of the CLI facade. 2. Pick patterns deliberately — strategy traits for swappable behaviour, three-layer errors so batch operations diagnose per item. 3. Record the decision and its trade-offs before writing code.