# Prompt Engineering

> Prompt Engineering SKILL

- Skill: `majiayu000/prompt-engineering-24` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add majiayu000/prompt-engineering-24`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/prompt-engineering-24/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/majiayu000/prompt-engineering-24

---


# Prompt Engineering SKILL

## RAG Prompt Template

```python
template = """
Use the following context to answer the question.
If you don't know, say "I don't know based on the provided context."

Context:
{context}

Question: {question}

Answer:
"""
```

## Few-Shot Template

```python
template = """
Context: {context}

Examples:
Q: What is X?
A: X is...

Q: {question}
A:
"""
```

