What problem does it solve?
Claude Code artifacts often fail quality gates due to weak structure, unclear tool schemas, poor context management, and non-deterministic guardrail choices that lead to inconsistent agent behavior.
Core Features & Use Cases
- Artifact layer patterns: Defines how to structure Agent, Skill, Rule, Command, and Hook layers with clear purposes, token targets, and quality tests.
- Agentic loop reliability: Provides deterministic stopping, tool execution discipline, and guidance for correct multi-agent memory isolation to prevent subtle orchestration failures.
- Tool, prompt, and schema engineering: Improves tool selection accuracy, distinguishes retryable vs non-retryable error classes, and enforces validation-retry boundaries to reduce hallucinations.
- Context and token efficiency: Prevents lost-in-the-middle errors and progressive summarization traps by prescribing summarization-safe case facts and trimming tool output to essentials.
- Decision guidance for hooks vs prompts: Helps choose deterministic enforcement for high-stakes behavior and probabilistic guidance for lower-stakes style preferences.
Quick Start
Use claude-code-patterns to design a new Claude Code Skill by asking: "Given my intended capability, propose the correct artifact layer (agent/skill/rule/command/hook), draft a SKILL.md frontmatter with quality tests, and outline the required tool/schema and context-management rules."