prompt-engineering-patterns
Master advanced prompt engineering techniques to maximize LLM performance, reliability, and controllability.
Skill by eroslifestyle
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/eroslifestyle-prompt-engineering-patterns-da6851
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: ml, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/prompt-engineering-patterns
What's inside
- Skill name
prompt-engineering-patterns- Description
- Master advanced prompt engineering techniques to maximize LLM performance, reliability, and controllability. Use for pre-processing user requests, expanding vague prompts, and optimizing for orchestrator execution.
- License
- MIT
- Instructions
- 457 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Prompt Engineering Patterns V1.0
> **Purpose:** Pre-process and optimize user requests before orchestrator execution.
> **Trigger:** Vague, ambiguous, or incomplete requests that need expansion.
---
## WHEN TO USE THIS SKILL
- Designing complex prompts for production LLM applications
- Optimizing prompt performance and consistency
- Implementing structured reasoning patterns (chain-of-thought, tree-of-thought)
- Building few-shot learning systems with dynamic example selection
- Creating reusable prompt templates with variable interpolation
- Debugging and refining prompts that produce inconsistent outputs
- Implementing system prompts for specialized AI assistants
- Using structured outputs (JSON mode) for reliable parsing
- **Pre-processing vague user requests for orchestrator**
---
## PRE-PROCESSING MODE
When invoked by the orchestrator for request optimization:
### STEP 1: ANALYZE REQUEST COMPLEXITY
| Criteria | Simple (Skip) | Complex (Process) |
|----------|---------------|-------------------|
| Word count | > 15 words | < 10 words |
| Specificity | Has file paths, technical details | Vague terms only |
| Ambiguity | Clear intent | "fix", "improve", "optimize" |
| Scope | Single task | Multiple tasks ("and", "also") |
### STEP 2: IDENTIFY TASK TYPE
```markdown
| Type | Keywords | Routing |
|------|----------|---------|
| BUG_FIX | fix, error, bug, broken, crash | Coder → Tester |
| FEATURE | add, create, implement, new | Architect → Coder |
| REFACTOR | refactor, clean, restructure | Languages Refactor L2 |
| ANALYSIS | analyze, review, check, audit | Analyzer |
| DEBUG | debug, investigate, why | Tester Expert |
| TEST | test, coverage, pytest | Test Unit L2 |
| SECURITY | security, vulnerability, auth | Security Expert |
| PERFORMANCE | optimize, faster, slow | Architect Expert |
| INTEGRATION | integrate, connect, API | Integration Expert |
```
### STEP 3: EXPAND VAGUE REQUESTS
```markdown
| Vague Term | Expansion |
|------------|-----------|
| "fix" | Identify root cause → Implement fix → Add tests → Verify |
| "improve" | Analyze current → Identify improvements → Prioritize → Implement |
| "optimize" | Profile → Find bottleneck → Optimize → Benchmark |
| "make better" | Define metrics → Identify issues → Implement → Measure |
| "clean up" | Identify smells → Apply clean code → Document |
```
### STEP 4: OUTPUT OPTIMIZED REQUEST
```markdown
## OPTIMIZED REQUEST
### Original
[Original user request verbatim]
### Task Type
[BUG_FIX | FEATURE | REFACTOR | ANALYSIS | DEBUG | TEST | SECURITY | PERFORMANCE | INTEGRATION]
### Expanded Request
[Detailed, specific request with all necessary information]
### Suggested Approach
1. [First step]
2. [Second step]
...
### Files Likely Involved
- [file path 1]
- [file path 2]
### Success Criteria
- [Criterion 1]
- [Criterion 2]
```
---
## CORE CAPABILITIES
### 1. Few-Shot Learning
- Example selection strategies (semantic similarity, diversity sampling)
- Balancing example count with context window constraints
- Constructing effective demonstrations with input-output pairs
- Dynamic example retrieval from knowledge bases
### 2. Chain-of-Thought Prompting
- Step-by-step reasoning elicitation
- Zero-shot CoT with "Let's think step by step"
- Few-shot CoT with reasoning traces
- Self-consistency techniques (sampling multiple reasoning paths)
### 3. Structured Outputs
- JSON mode for reliable parsing
- Pydantic schema enforcement
- Type-safe response handling
- Error handling for malformed outputs
### 4. Prompt Optimization
- Iterative refinement workflows
- A/B testing prompt variationsFrom eroslifestyle/Claude-Orchestrator-Plugin, MIT.
More from eroslifestyle/Claude-Orchestrator-Plugin
- 0.432score
learn
eroslifestyle
Capture a learning pattern from the current session with confidence scoring.
SkillDFreshness: D★ 1Claude Code +9 - 0.432score
evolve
eroslifestyle
Aggregate high-confidence instincts into reusable skills.
SkillDFreshness: D★ 1Claude Code +9 - 0.432score
debugging
eroslifestyle
When to use this skill for systematic debugging including root cause analysis, error tracing, performance profiling, and memory leak detection
SkillDFreshness: D★ 1Claude Code +9 - 0.431score
code-review
eroslifestyle
When to use this skill for automated code quality analysis and review
SkillDFreshness: D★ 1Claude Code +9 - 0.431score
git-workflow
eroslifestyle
When to use this skill for advanced Git operations and workflow management
SkillDFreshness: D★ 1Claude Code +9 - 0.429score
plan
eroslifestyle
Decompose a feature request into a detailed implementation plan with task breakdown, dependencies, and risk assessment.
SkillDFreshness: D★ 1Claude Code - 0.429score
go-patterns
eroslifestyle
Go best practices, idioms, and patterns.
SkillDFreshness: D★ 1Claude Code +9 - 0.429score
python-patterns
eroslifestyle
Python best practices, idioms, and patterns.
SkillDFreshness: D★ 1Claude Code +9 - 0.426score
cleanup
eroslifestyle
Run session cleanup - delete temp files, NUL files, orphan artifacts
SkillDFreshness: D★ 1Claude Code +9 - 0.426score
build-fix
eroslifestyle
Diagnose and fix build errors automatically.
SkillDFreshness: D★ 1Claude Code - 0.426score
checkpoint
eroslifestyle
Save a named checkpoint of current session progress.
SkillDFreshness: D★ 1Claude Code +9 - 0.426score
metrics
eroslifestyle
Display detailed session metrics and agent performance.
SkillDFreshness: D★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Mar 3, 2026 (7 months ago)
- Last release
- Mar 3, 2026 (7 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.252score
prompt-engineering-patterns
eroslifestyle
Master advanced prompt engineering techniques to maximize LLM performance, reliability, and controllability.
SkillDFreshness: D★ 1Claude Code +9 - 0.252score
prompt-engineering-patterns
eroslifestyle
Master advanced prompt engineering techniques to maximize LLM performance, reliability, and controllability.
SkillDFreshness: D★ 1Claude Code +9
More from eroslifestyle
- 0.432score
evolve
eroslifestyle
Aggregate high-confidence instincts into reusable skills.
SkillDFreshness: D★ 1Claude Code +9 - 0.432score
debugging
eroslifestyle
When to use this skill for systematic debugging including root cause analysis, error tracing, performance profiling, and memory leak detection
SkillDFreshness: D★ 1Claude Code +9 - 0.432score
learn
eroslifestyle
Capture a learning pattern from the current session with confidence scoring.
SkillDFreshness: D★ 1Claude Code +9 - 0.431score
git-workflow
eroslifestyle
When to use this skill for advanced Git operations and workflow management
SkillDFreshness: D★ 1Claude Code +9 - 0.431score
code-review
eroslifestyle
When to use this skill for automated code quality analysis and review
SkillDFreshness: D★ 1Claude Code +9 - 0.429score
python-patterns
eroslifestyle
Python best practices, idioms, and patterns.
SkillDFreshness: D★ 1Claude Code +9
Cite this page
prompt-engineering-patterns skill. Agent Mart. https://agentmart.dev/skills/eroslifestyle-prompt-engineering-patterns-da6851 (last updated 2026-10-24)