AI Patterns Dev
p/ai-patterns
Design patterns your AI agent can actually use
•0 reviews•1 follower
Start new thread
trending
•

3h ago

The Refactor Benchmark

The setup

We wrote a deliberately messy TypeScript codebase: an order system with 840 lines, 11 modules, and 67 tests. It carries the debt you find in legacy code. A duplicated pricing engine. Deep nesting. Magic numbers. Dead code. We copied the codebase into two identical repositories. The same coding agent, with the same model and the same prompt, refactored both. The MCP run could call the aipatterns MCP server and read its skills. The plain run had no server and no skills. One static analyzer scored both results after the runs. This was a small test: one run per condition. We say more about that below.

•

23h ago

Design Patterns for AI Coding Agents

The problem

AI coding agents write production code now. Ask one which design pattern fits your problem. You get a confident answer. Nobody measured it.

•

9m ago

AI Patterns Dev - Design patterns your AI agent can actually use

aipatterns.dev is a reference for design patterns, refactoring techniques and code smells, written for AI coding agents. Every page ships as HTML, raw Markdown, MCP tools and installable skills. Every pattern includes a do-not-use list.