skillcreatorai/ai-agent-skills
Overview
This skill explains building applications with large language models, covering prompt engineering, RAG patterns, API integration, streaming, and error handling. It focuses on practical patterns for chatbots, retrieval-augmented features, and safe, cost-aware LLM integration. The content is implementation-oriented and geared for production use.
How this skill works
It describes structured prompt patterns (system/user, few-shot, chain-of-thought) and shows how to call LLM APIs, handle streaming, and implement retries and backoff. For RAG, it covers embedding, vector search, document chunking, and storing embeddings for similarity search. It also outlines operational practices like token management, caching, evaluation, logging, and privacy safeguards.
When to use it
- Building chatbots or conversational agents
- Adding knowledge-grounded answers via retrieval-augmented generation
- Automating tasks that require natural language understanding or generation
- Prototyping and productionizing LLM features with attention to costs and latency
- Integrating streaming responses for improved user experience
Best practices
- Use structured system and user prompts and limit response length to control tokens
- Cache embeddings and frequent query results to reduce cost and latency
- Chunk large documents with overlap to preserve context for RAG searches
- Implement retries with exponential backoff and sensible fallbacks for transient errors
- Validate and sanitize LLM outputs; never trust generated PII without checks
- Log prompts, responses, and metrics for evaluation and safe rollout
Example use cases
- Customer support chatbot that answers only from product docs via RAG
- Sentiment or intent classification using few-shot prompts for edge cases
- Knowledge base Q&A with document chunking and vector search
- Live streaming assistant that progressively renders generated content to users
- Automated report generation combining retrieved facts and structured prompts
FAQ
Use RAG: retrieve relevant documents and include only sourced context in the prompt. Enforce guardrails in the system prompt to say "I don’t know" when evidence is lacking and validate outputs against source metadata.
When should I stream responses versus return full completions?
Stream when latency and UX matter (chat, typing effect, long outputs). Use full completions for short synchronous calls or when you need the entire output for post-processing.
10 skills
This skill helps you build AI-powered applications by guiding prompt engineering, RAG patterns, and LLM integrations for chatbots and automation.
This skill generates tailored cover letters and job applications from your CV and preferred voice, matching tone and achievements.
This skill helps you create, update, and manage Jira issues via natural language, streamlining logging bugs, tasks, and backlog work.
This skill automates QA regression testing with reusable Playwright-based test suites for login, dashboard checks, and user workflows.
This skill helps you build modern Python projects with FastAPI, asyncio, and type hints, enforcing production-grade structure and best practices.
This skill assists with TypeScript configuration, type patterns, modern JavaScript, React and Node.js patterns to speed full-stack development.
This skill helps you generate consistent code documentation resources including READMEs, API docs, inline comments, and architecture guides for your codebase.
This skill helps you design and implement cross-platform mobile apps using Expo Router, NativeWind, and React Native styling best practices.
This skill helps deploy applications to Vercel using edge functions, serverless, and ISR to optimize performance and scalability.
This skill automates thorough code reviews for pull requests, improving security, performance, and quality across changes.