Skip to content
alinaqi avatar

Llm Patterns

AI-first application patterns covering typed LLM clients, prompt versioning, and three-tier LLM testing strategies.

CCM score
54 of 100
skills.sh installs
266
GitHub stars
712
last updated
Jun 3, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers typed LLM client wrappers, Zod-validated structured outputs, versioned prompt templates, and cost and latency tracking
  • Includes testing layers for mocked unit tests, saved-response fixture tests, and nightly evaluation suites with accuracy thresholds
  • Enforces schema validation on every LLM response and keeps live LLM calls out of standard CI runs
  • Designed for TypeScript projects where LLMs handle classification, extraction, and generation as core application logic

Install

$ npx -y skills add alinaqi/maggy --skill llm-patterns -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

LLM Patterns Skill

For AI-first applications where LLMs handle logical operations.


Core Principle

LLM for logic, code for plumbing.

Use LLMs for:

  • Classification, extraction, summarization
  • Decision-making with natural language reasoning
  • Content generation and transformation
  • Complex conditional logic that would be brittle in code

Use traditional code for:

  • Data validation (Zod/Pydantic)
  • API routing and HTTP handling
  • Database operations
  • Authentication/authorization
  • Orchestration and error handling

Project Structure

Details

Repository
github.com/alinaqi/maggy
Categories
AI Agents & LLM Apps, Testing & QA
First seen
Jun 3, 2026

Questions

What does the llm-patterns skill do?

The llm-patterns skill guides building AI-first applications where LLMs handle core logic such as classification, extraction and generation. It shows how llm-patterns separates LLM logic from plumbing, with typed LLM wrappers, Zod schemas, prompt templates and versioning. It also covers testing LLM calls with mocks, fixtures and evaluation suites.

How do I install the llm-patterns skill?

Run npx -y skills add alinaqi/maggy --skill llm-patterns -y in your project to install it. Once installed, the llm-patterns skill lets your agent follow its project structure, client, prompt and testing patterns when building LLM features.

Which skills lead the AI Agents & LLM Apps category with llm-patterns?

The llm-patterns skill sits in the AI Agents & LLM Apps category on Claude Marketplaces. Other skills there include microsoft-foundry, azure-ai and several google-agents-cli skills. llm-patterns sets itself apart by focusing on LLM-driven application logic with prompt versioning and LLM-specific testing.

What does llm-patterns need to run its LLM tests?

The llm-patterns skill's example CI workflow passes an ANTHROPIC_API_KEY secret and sets RUN_LLM_EVALS to true for evaluation runs. Unit and fixture tests run with mocks and saved responses, so they do not need a live key.

More from alinaqi/maggy

All 54

Similar to Llm Patterns

More AI Agents & LLM Apps