# Prompt Engineering Patterns (agent skill)

> Prompt Engineering Patterns is an agent skill (a SKILL.md file) from wshobson/agents. It should be used when the user asks to "optimize a prompt", "improve prompt performance", "design a prompt template", "write better prompts", "debug… It works with Claude Code, Codex, Cursor, GitHub Copilot and OpenCode and has 41,725 GitHub stars across a repository of 7 listed skills.

This skill should be used when the user asks to "optimize a prompt", "improve prompt performance", "design a prompt template", "write better prompts", "debug prompt issues", "use chain-of-thought", "structured prompting", "few-shot prompting", or wants to apply advanced prompt engineering patterns for production LLM applications. Master advanced prompt engineering techniques to maximize LLM performance, reliability, and controllability.

## Key facts

| Fact | Value |
|---|---|
| Repository | https://github.com/wshobson/agents |
| Skill path | plugins/llm-application-dev/skills/prompt-engineering-patterns/SKILL.md |
| Skill name | prompt-engineering-patterns |
| GitHub stars | 41,725 |
| Installs on skills.sh | 2 |
| License | MIT |
| Skills in repo | 7 |
| Plugin marketplace | claude-code-workflows |
| Official | no |
| Works with | Claude Code, Codex, Cursor, GitHub Copilot, OpenCode |
| Category | Coding |
| Last commit | Oct 17, 2026 |

## When it triggers

- used when the user asks to "optimize a prompt", "improve prompt performance", "design a prompt template", "write better prompts", "debug prompt issues", "use chain-of-thought", "structured prompting", "few-shot prompting", or wants to apply
- "optimize a prompt"
- "improve prompt performance"
- "design a prompt template"
- "write better prompts"
- "debug prompt issues"
- "use chain-of-thought"
- "structured prompting"

## Add this skill

### Claude Code

```sh
/plugin marketplace add wshobson/agents
/plugin install llm-application-dev@claude-code-workflows
```

In the Claude apps, zip the skill folder and upload it under Customize > Skills > + > Upload a skill (code execution must be on).

### ChatGPT / Codex

```sh
git clone --depth 1 https://github.com/wshobson/agents.git
cp -r agents/plugins/llm-application-dev/skills/prompt-engineering-patterns .agents/skills/prompt-engineering-patterns   # repo; ~/.agents/skills for all projects
```

### Cursor

```sh
git clone --depth 1 https://github.com/wshobson/agents.git
cp -r agents/plugins/llm-application-dev/skills/prompt-engineering-patterns .cursor/skills/prompt-engineering-patterns   # project; ~/.cursor/skills for all projects
```

Sources (checked 2026-10-07): https://code.claude.com/docs/en/skills, https://support.claude.com/en/articles/12512180-using-skills-in-claude, https://learn.chatgpt.com/docs/build-skills, https://cursor.com/docs/context/skills

skills.sh listing: https://www.skills.sh/wshobson/agents/prompt-engineering-patterns

---

Canonical page: https://appsgit.com/skills/wshobson-prompt-engineering-patterns
Source: appsgit (https://appsgit.com), the app store for github. Data from the GitHub API, refreshed daily.
Machine access: JSON API https://appsgit.com/api/v1/apps (OpenAPI: https://appsgit.com/openapi.json), MCP server https://mcp.appsgit.com/mcp, full index https://appsgit.com/llms-full.txt.
