llm-patterns
AI-first application patterns, LLM testing, prompt management
npx skills add majiayu000/claude-skill-registry --skill llm-patterns-alinaqi-claude-bootstrap-3 --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# LLM Patterns Skill *Load with: base.md + [language].md* 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 ``` project/ ├── src/ │ ├── core/ │ │ ├── prompts/ # Prompt templates │ │ │ ├── classify.ts │ │ │ └── extract.ts │ │ ├── llm/ # LLM client and utilities │ │ │ ├── client.ts # LLM client wrapper │ │ │ ├── schemas.ts # Response schemas (Zod) │ │ │ └── index.ts │ │ └── services/ # Business logic using LLM │ ├── infra/ │ └── ... ├── tests/ │ ├── unit/ │ ├── integration/ │ └── llm/ # LLM-specific tests │ ├── fixtures/ # Saved responses for deterministic tests │ ├── evals/ # Evaluation test suites │ └── mocks/ # Mock LLM responses └── _project_specs/ └── prompts/ # Prompt specifications ``` --- ## LLM Clien
- Core Principle
- Project Structure
- LLM Client Pattern
- Typed LLM Wrapper
- Structured Outputs
- Prompt Patterns
- Template Functions
- Prompt Versioning
- Testing LLM Calls
- 1. Unit Tests with Mocks (Fast, Deterministic)
- 2. Fixture Tests (Deterministic, Tests Parsing)
- 3. Evaluation Tests (Slow, Run in CI nightly)
- GitHub Actions for LLM Tests
- Cost & Performance Tracking
What does the llm-patterns skill do?
AI-first application patterns, LLM testing, prompt management
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill llm-patterns-alinaqi-claude-bootstrap-3 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
