← ClaudeAtlas

prompt-engineeringlisted

Use this skill when you writing commands, hooks, skills for Agent, or prompts for sub agents or any other LLM interaction, including optimizing prompts, improving LLM outputs, or designing production prompt templates.
chenwei791129/agent-skills · ★ 0 · AI & Automation · score 56
Install: claude install-skill chenwei791129/agent-skills
# Prompt Engineering Patterns Advanced prompt engineering techniques to maximize LLM performance, reliability, and controllability. ## Core Capabilities ### 1. Few-Shot Learning Teach the model by showing examples instead of explaining rules. Include 2-5 input-output pairs that demonstrate the desired behavior. Use when you need consistent formatting, specific reasoning patterns, or handling of edge cases. More examples improve accuracy but consume tokens—balance based on task complexity. **Example:** ```markdown Extract key information from support tickets: Input: "My login doesn't work and I keep getting error 403" Output: {"issue": "authentication", "error_code": "403", "priority": "high"} Input: "Feature request: add dark mode to settings" Output: {"issue": "feature_request", "error_code": null, "priority": "low"} Now process: "Can't upload files larger than 10MB, getting timeout" ``` ### 2. Chain-of-Thought Prompting Request step-by-step reasoning before the final answer. Add "Let's think step by step" (zero-shot) or include example reasoning traces (few-shot). Use for complex problems requiring multi-step logic, mathematical reasoning, or when you need to verify the model's thought process. Improves accuracy on analytical tasks by 30-50%. **Example:** ```markdown Analyze this bug report and determine root cause. Think step by step: 1. What is the expected behavior? 2. What is the actual behavior? 3. What changed recently that could cause this? 4. What comp