agentleFS
karim-bhalwanikarim-bhalwani/agent-skills-collection/skills/llm-app-patterns/SKILL.md

llm-app-patterns

Skill0 starsChanged 10 months agoMITView on GitHub

Production LLM application patterns, architectures, and best practices. Covers RAG pipelines, agent architectures, prompt engineering, LLMOps, and production deployment patterns.

8 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    RAG Pipelines: - Document ingestion, chunking, embedding, retrieval, generation

    line 40
  2. Distinctive:

    Document ingestion and preprocessing

    line 58

“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

LLM Application Patterns

Expert in production LLM application patterns and architectures.

When to Use This Skill

Use when:

  • Building production RAG (Retrieval-Augmented Generation) pipelines
  • Implementing AI agents with tool use and multi-step reasoning
  • Designing prompt engineering strategies and template systems
  • Setting up LLMOps: monitoring, logging, tracing, and evaluation
  • Deploying LLM applications with caching, rate limiting, and fallbacks
  • Choosing between different agent architectures (ReAct, function calling, plan-execute, multi-agent)
  • Optimizing retrieval: chunking strategies, vector databases, hybrid search
  • Building production-ready systems: cost optimization, reliability, observability

Core Capabilities

This skill provides production-proven patterns for:

  1. RAG Pipelines - Document ingestion, chunking, embedding, retrieval, generation
  2. Agent Architectures - ReAct, function calling, plan-execute, multi-agent collaboration
  3. Prompt Engineering - Templates, versioning, A/B testing, chaining
  4. LLMOps & Monitoring - Metrics, logging, tracing, evaluation frameworks
  5. Production Patterns - Caching, rate limiting, retry logic, fallbacks

Pattern References

For detailed implementation guidance, see:

RAG Pipelines

Use when: Building search-augmented LLM applications

Covers:

  • Document ingestion and preprocessing
  • Chunking strategies (fixed, semantic, sliding window)
  • Vector database selection and configuration
  • Retrieval patterns (dense, sparse, hybrid, multi-vector)
  • Generation with retrieved context

Agent Architectures

Use when: Building agents that use tools or multi-step reasoning

Covers:

  • ReAct pattern (Reasoning + Acting)
  • Function calling for structured tool use
  • Plan-and-execute for complex tasks
  • Multi-agent collaboration patterns
  • Architecture decision matrix

Prompt Engineering

Use when: Creating reusable prompt systems

Covers:

  • Prompt templates with variables
  • Versioning and A/B testing
  • Prompt chaining for multi-step workflows
  • Few-shot learning patterns
  • Best practices for prompt structure

LLMOps & Observability

Use when: Setting up monitoring and evaluation

Covers:

  • Key metrics to track (performance, quality, cost, reliability)
  • Logging and distributed tracing
  • Evaluation frameworks and benchmarking
  • Caching strategies for cost reduction
  • Rate limiting and retry patterns
  • Fallback strategies for reliability

Quick Decision Guide

GoalReference
Answer questions from your docsRAG Pipelines
Build tool-using agentAgent Architectures
Create reusable promptsPrompt Engineering
Monitor production systemLLMOps & Observability

Dependencies

  • architect - For overall system design and architecture decisions
  • data-modeler - For data schema design in RAG pipelines
  • ops-manager - For production deployment and operations

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.