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
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: not checked yet.
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
- 686 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- body: 686 lines (spec recommends under 500)
Files (1)
- SKILL.md
SKILL.md (first lines)
# Prompt Engineering Patterns V2.0
> **Purpose:** Pre-process and optimize user requests before orchestrator execution.
> **Trigger:** Vague, ambiguous, or incomplete requests that need expansion.
---
## CONTEXT-FIRST PRINCIPLE
**CRITICAL:** Always structure expanded requests with context BEFORE the specific query.
### Why Context First?
1. LLMs process information sequentially - context primes the model
2. Reduces hallucinations by establishing ground truth first
3. Improves relevance by setting domain boundaries
### Context-First Template
```markdown
## CONTEXT (Establish Ground Truth)
[Background information, current state, constraints, why this matters]
## GOAL (What Success Looks Like)
[Specific outcome, measurable criteria]
## CONSTRAINTS (Boundaries)
[What must be preserved, limitations, requirements]
## REQUEST (Specific Action)
[The actual task to perform]
```
### WRONG vs RIGHT
**WRONG (Query First):**
```markdown
Fix the authentication bug. We're using JWT tokens with 24h expiry
and the issue is users are getting logged out after 5 minutes.
```
**RIGHT (Context First):**
```markdown
## Context
We use JWT authentication with 24-hour token expiry. Sessions are
stored in Redis with user ID mapping. Recent logs show users being
logged out after approximately 5 minutes of activity.
## Goal
Users should remain logged in for the full 24-hour token duration.
## Constraints
- Cannot change token expiry time (security policy)
- Must maintain Redis session storage
- No breaking changes to existing API
## Request
Investigate why sessions expire early and implement a fix that
preserves the 24-hour session duration.
```
---
## 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 (XML STRUCTURE)From eroslifestyle/Claude-Orchestrator-AI-Evolution, MIT.
More from eroslifestyle/Claude-Orchestrator-AI-Evolution
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Mar 7, 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.429score
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
prompt-engineering-patterns
eroslifestyle
Master advanced prompt engineering techniques to maximize LLM performance, reliability, and controllability.
SkillDFreshness: D★ 1Claude Code +9
Cite this page
prompt-engineering-patterns skill. Agent Mart. https://agentmart.dev/skills/eroslifestyle-prompt-engineering-patterns (last updated 2026-10-24)