Powered by
4M Labs

The AI Cookbook
by 4M Labs

15 production recipes, 17 patterns, 11 agent skills, and 8 architecture patterns for building production AI systems.

Copy. Paste. Ship.

4M Labs AI Cookbook

Recipes

Step-by-step instructions for building AI features, from RAG pipelines to agent workflows and prompt chains.

Browse Recipes

Patterns

Reusable architectural patterns for LLM applications, including agentic loops, tool use, and multi-agent systems.

Copy Patterns

Architecture

Foundational LLM architectures from transformers and MoE to attention mechanisms and KV-cache optimization.

Browse Architecture

Agent Skills

Pre-built agent skills and OpenCode capabilities that extend your AI systems with new behaviors.

Download Skills