LLM prompt optimization and design patterns. Use for crafting effective prompts, chain-of-thought, and AI integration.
Scanned 2/12/2026
Install via CLI
openskills install lovedragonball/power-ranger-toolkit---
name: prompt-engineering
description: LLM prompt optimization and design patterns. Use for crafting effective prompts, chain-of-thought, and AI integration.
---
# 🎯 Prompt Engineering Skill
## Prompt Patterns
### Zero-Shot
```
Translate the following text to Thai: "Hello, how are you?"
```
### Few-Shot
```
Examples:
Input: "Good morning" → Output: "สวัสดีตอนเช้า"
Input: "Thank you" → Output: "ขอบคุณ"
Input: "Goodbye" → Output: ?
```
### Chain-of-Thought (CoT)
```
Let's solve this step by step:
1. First, identify the problem
2. Break down the components
3. Apply relevant formula
4. Calculate the answer
5. Verify the result
```
---
## Prompting Best Practices
### Structure
```markdown
# Role
You are an expert Python developer.
# Context
We are building a REST API using FastAPI.
# Task
Create a user registration endpoint.
# Requirements
- Validate email format
- Hash password with bcrypt
- Return JWT token
# Output Format
Return complete, working code with comments.
```
### Be Specific ✅
```
❌ "Write code for a button"
✅ "Create a React button component that:
- Has primary and secondary variants
- Accepts onClick handler
- Shows loading spinner when isLoading is true
- Uses Tailwind CSS for styling"
```
---
## Advanced Techniques
### Self-Consistency
```
Generate 3 different solutions, then pick the best one.
```
### Tree-of-Thought
```
Consider multiple approaches:
Approach A: [describe]
Approach B: [describe]
Approach C: [describe]
Compare and select optimal solution.
```
### RAG Pattern
```
Context: [Retrieved documents]
Question: [User query]
Answer based ONLY on the context provided.
```
---
## Temperature Guide
| Temperature | Use Case |
|-------------|----------|
| 0.0 - 0.3 | Factual, code generation |
| 0.4 - 0.7 | Balanced creativity |
| 0.8 - 1.0 | Creative writing |
---
## Checklist
- [ ] Define clear role/persona
- [ ] Provide sufficient context
- [ ] Be specific about output format
- [ ] Use examples when helpful
- [ ] Iterate and refine prompts
No comments yet. Be the first to comment!
Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content scripts, background scripts, or i18n updates.
SEO optimization with keyword analysis, readability assessment, technical validation, content quality. Use for search rankings, blog posts, content audits, or encountering keyword density, readability scores, meta tags, schema markup errors.
Python backend development expertise for FastAPI, security patterns, database operations, Upstash integrations, and code quality. Use when: (1) Building REST APIs with FastAPI, (2) Implementing JWT/OAuth2 authentication, (3) Setting up SQLAlchemy/async databases, (4) Integrating Redis/Upstash caching, (5) Refactoring AI-generated Python code (deslopification), (6) Designing API patterns, or (7) Optimizing backend performance.
Drive the full internationalization journey for a project — detect the stack, recommend a library, set up the chosen library, wrap existing strings, and optionally connect a translation platform. Use when the user asks to add or configure i18n, internationalization, localization, multi-language support, or translations — including when they explicitly mention LinguiJS, Lingui, next-intl, "wrap strings", "find hardcoded text", "make my app translatable", or "set up translations". Triggers on g...
PTES-aligned adversarial security audit for backend, frontend, and mobile applications. Produces a CVSS-scored Hacker Report with verified PoCs and phased remediation.