prompt-engineering
Comprehensive prompting techniques including chain-of-thought, few-shot, zero-shot, system prompts, persona design, and evaluation patterns
Best use case
prompt-engineering is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Comprehensive prompting techniques including chain-of-thought, few-shot, zero-shot, system prompts, persona design, and evaluation patterns
Teams using prompt-engineering should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/prompt-engineering/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How prompt-engineering Compares
| Feature / Agent | prompt-engineering | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Comprehensive prompting techniques including chain-of-thought, few-shot, zero-shot, system prompts, persona design, and evaluation patterns
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Prompt Engineering
## Quick Start
```python
import openai
client = openai.OpenAI()
# Basic prompt
response = client.chat.completions.create(
model="gpt-4",
messages=[
{"role": "system", "content": "You are an expert engineer."},
{"role": "user", "content": "Explain mooring systems."}
]
)
print(response.choices[0].message.content)
```
## When to Use This Skill
**USE when:**
- Designing prompts from scratch for any use case
- Learning core principles applicable across all LLMs
- Need portable patterns not tied to specific frameworks
- Building simple LLM integrations without heavy dependencies
- Optimizing existing prompts for better results
- Creating reusable prompt templates for teams
- Debugging underperforming LLM applications
- Teaching prompt engineering to others
**DON'T USE when:**
- Need framework-specific features (use LangChain/DSPy)
- Require programmatic optimization (use DSPy)
- Building production RAG systems (use LangChain)
- Need conversation memory management (use frameworks)
## Prerequisites
```bash
# OpenAI
pip install openai>=1.0.0
export OPENAI_API_KEY="sk-..."
# Anthropic
pip install anthropic>=0.5.0
export ANTHROPIC_API_KEY="sk-ant-..."
# Azure OpenAI
pip install openai>=1.0.0
export AZURE_OPENAI_ENDPOINT="https://..."
export AZURE_OPENAI_KEY="..."
# Optional: For testing prompts
pip install pytest promptfoo
```
## Resources
- **OpenAI Prompt Engineering Guide**: https://platform.openai.com/docs/guides/prompt-engineering
- **Anthropic Prompt Engineering**: https://docs.anthropic.com/Codex/docs/prompt-engineering
- **Prompt Engineering Guide**: https://www.promptingguide.ai/
- **Learn Prompting**: https://learnprompting.org/
---
## Version History
- **1.0.0** (2026-01-17): Initial release with comprehensive prompting patterns
## Sub-Skills
- [1. Zero-Shot Prompting (+1)](1-zero-shot-prompting/SKILL.md)
- [3. Chain-of-Thought Prompting](3-chain-of-thought-prompting/SKILL.md)
- [1. Be Specific and Clear (+1)](1-be-specific-and-clear/SKILL.md)
- [Inconsistent Outputs (+2)](inconsistent-outputs/SKILL.md)
## Sub-Skills
- [Anatomy of a Prompt (+1)](anatomy-of-a-prompt/SKILL.md)
- [Understanding](understanding/SKILL.md)
- [Approach](approach/SKILL.md)
- [Calculation](calculation/SKILL.md)
- [Verification](verification/SKILL.md)
- [4. System Prompt Design](4-system-prompt-design/SKILL.md)
- [Expertise](expertise/SKILL.md)
- [Communication Style](communication-style/SKILL.md)
- [Constraints](constraints/SKILL.md)
- [Your Task](your-task/SKILL.md)
- [Response Format](response-format/SKILL.md)
- [Guidelines](guidelines/SKILL.md)
- [Your Task](your-task/SKILL.md)
- [Response Format](response-format/SKILL.md)
- [5. Persona Design](5-persona-design/SKILL.md)
- [Background](background/SKILL.md)
- [Notable Experience](notable-experience/SKILL.md)
- [Communication Style](communication-style/SKILL.md)
- [Approach](approach/SKILL.md)
- [Communication Adaptation](communication-adaptation/SKILL.md)
- [6. Structured Output (+2)](6-structured-output/SKILL.md)
- [Example 1: Multi-Stage Document Processor (+1)](example-1-multi-stage-document-processor/SKILL.md)
- [Summary](summary/SKILL.md)
- [Findings](findings/SKILL.md)
- [Recommendations](recommendations/SKILL.md)
- [OpenAI Integration (+1)](openai-integration/SKILL.md)
- [Input](input/SKILL.md)
- [Task](task/SKILL.md)
- [Output Format](output-format/SKILL.md)
- [3. Provide Context (+1)](3-provide-context/SKILL.md)Related Skills
plan-review-prompt-refresh-after-plan-edits
Refresh reviewer prompt files from the latest on-disk plan before every adversarial re-review. Prevents Codex/Gemini from critiquing stale plan text after local edits.
label-driven-prompt-generation-architecture
Pattern for building automation scripts that classify GitHub issues into prompt templates using label-based routing and extract contextual data for batch processing
agent-team-prompt-generation
Create self-contained execution prompts that define multi-role workflows for Codex sessions without external dependencies
live-state-aware-overnight-implementation-prompts
Design overnight implementation prompts that begin with a live repo/CI precheck so workers continue from partial progress instead of replaying stale handoffs.
single-terminal-gh-issue-prompts
Generate live issue-specific Codex prompts for a single terminal, with repo-aware path contracts and plan-gate safety checks.
provider-review-prompt-path-guard
Prevent adversarial review dispatch failures caused by sandbox/tmp path mismatches and provider CLI working-directory drift when launching Codex or Gemini with prompt files.
plan-resubmit-wave-prompts
Run a planning-only multi-terminal wave to harden blocked `status:plan-review` issues for fresh adversarial re-review, with zero implementation work and explicit path ownership.
overnight-parallel-agent-prompts
Design self-contained prompts for 3-5 terminals to run overnight without supervision. Ensures zero git contention, provider-optimal allocation, and a clear morning deliverable summary.
adversarial-review-prompt-refresh-guard
Prevent stale plan/code review prompts from being sent to Codex/Gemini after the underlying artifact changed.
absolute-path-review-prompt-dispatch
Prevent adversarial review dispatch failures caused by relative prompt paths, superseded background sessions, and stale completion notices when launching Codex/Gemini review jobs.
engineering-solver-domain-recon
Deep reconnaissance of an engineering solver domain (OrcaWave, OrcaFlex, CalculiX, OpenFOAM, etc.) across a multi-repo ecosystem — map infrastructure, issues, skills, data artifacts, machine constraints, and solver queue state before planning work.
marine-offshore-engineering
Marine and offshore engineering fundamentals for platform design, subsea systems, and regulatory compliance