# Patterns

> Apply Morgan's shared TypeScript, Effect, RPC, runtime architecture, testing, naming, and code-shape conventions, including YAGNI and coordination-cost checks. Use when implementing or reviewing code in repositories whose guidance names $patterns, or when the user asks to follow or inspect the shared patterns.

- Skill: `morgs32/patterns` (Agent Skill, multi-file: 124 files)
- Install (CLI): `npx skillmds@latest add morgs32/patterns`
- Raw SKILL.md: https://api.skillmd.com/api/skills/morgs32/patterns/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: morgs32 (https://skillmd.com/u/morgs32)
- Updated: 2026-09-10
- Page: https://skillmd.com/skills/morgs32/patterns

---


# 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

1. Read the repository's `AGENTS.md` and any project-local pattern index it
   names before choosing a shared pattern.
2. Search [the pattern index](references/patterns/index.md) 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.
3. Apply the demonstrated invariant to the current code. The code in each
   pattern shows the preferred shape; `@bad` tags identify rejected shapes.
4. 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.

