# AI Patterns

> Design patterns, refactoring techniques and code smells, written for AI coding agents. Every page is available as Markdown at `<url>.md`, through the MCP server, and as installable skills.

- MCP endpoint (Streamable HTTP, OAuth): https://aipatterns.dev/mcp - clients open a sign-in on first connect
- Skills: `npx skills add https://aipatterns.dev`
- Full text for LLMs: https://aipatterns.dev/llms-full.txt

## Sections

- [Design patterns](https://aipatterns.dev/design-patterns.md): the 22 classic patterns plus original categories - resilience (timeout, circuit breaker, retry, exponential backoff, fallback, rate limiting), data (cache-aside, transactional outbox, saga, idempotent consumer, cqrs) and architecture (strangler fig, backends for frontends) - each with "do not use it when" guidance.
- [Refactoring techniques](https://aipatterns.dev/refactoring/techniques.md): small, behavior-preserving transformations.
- [Code smells](https://aipatterns.dev/refactoring/smells.md): symptoms, and which technique treats each one.
- [Guides](https://aipatterns.dev/guides.md): concepts, and how to choose a pattern.
- [For agents](https://aipatterns.dev/agents.md): MCP setup and usage rules.
- [Skills](https://aipatterns.dev/skills.md): installable skill packs.
- [Benchmark](https://aipatterns.dev/benchmark.md): agents with and without the MCP server, and the method.
