Patterns
Use this skill as the shared baseline. Repository instructions and versioned project-local patterns are the profile for that repository and override this skill when they are more specific.
Apply the guidance
- Read the repository's
AGENTS.mdand any project-local pattern index it names before choosing a shared pattern. - Search the pattern index for task keywords. Read only the matching pattern files and any directly linked reference. When either the task or the change being implemented or reviewed proposes a new capability, guarantee, abstraction, compatibility path, or cross-owner coordination mechanism, read the indexed YAGNI and coordination-cost pattern before implementation or review.
- Apply the demonstrated invariant to the current code. The code in each
pattern shows the preferred shape;
@badtags identify rejected shapes. - Keep the change scoped. Do not mechanically rewrite unrelated code merely because another pattern exists.
When no indexed pattern matches, follow the repository and user instructions; do not infer a universal rule from one example.
Source boundary
This skill applies published guidance; it does not update its own source. To
change shared patterns or any skill in morgs32/llm-wiki, use that repository's
repo-local $update-morgs32-llm-wiki workflow.
Never edit ~/.agents/skills/patterns or another installed copy directly.
Installed copies are generated output.