Purpose
This skill transforms raw, unstructured user prompts into highly optimized prompts using established prompting frameworks. It analyzes user intent, identifies task complexity, and intelligently selects the most appropriate framework(s) to maximize Claude/ChatGPT output quality.
The skill operates in "magic mode" - it works silently behind the scenes, only interacting with users when clarification is critically needed. Users receive polished, ready-to-use prompts without technical explanations or framework jargon.
This is a universal skill that works in any terminal context, not limited to Obsidian vaults or specific project structures.
When to Use
Invoke this skill when:
- User provides a vague or generic prompt (e.g., "help me code Python")
- User has a complex idea but struggles to articulate it clearly
- User's prompt lacks structure, context, or specific requirements
- Task requires step-by-step reasoning (debugging, analysis, design)
- User needs a prompt for a specific AI task but doesn't know prompting frameworks
- User wants to improve an existing prompt's effectiveness
- User asks variations of "how do I ask AI to..." or "create a prompt for..."
Workflow
Step 1: Analyze Intent
Objective: Understand what the user truly wants to accomplish.
Actions:
- Read the raw prompt provided by the user
- Detect task characteristics:
- Type: coding, writing, analysis, design, learning, planning, decision-making, creative, etc.
- Complexity: simple (one-step), moderate (multi-step), complex (requires reasoning/design)
- Clarity: clear intention vs. ambiguous/vague
- Domain: technical, business, creative, academic, personal, etc.
- Identify implicit requirements:
- Does user need examples?
- Is output format specified?
- Are there constraints (time, resources, scope)?
- Is this exploratory or execution-focused?
Detection Patterns:
- Simple tasks: Short prompts (<50 chars), single verb, no context
- Complex tasks: Long prompts (>200 chars), multiple requirements, conditional logic
- Ambiguous tasks: Generic verbs ("help", "improve"), missing object/context
- Structured tasks: Mentions steps, phases, deliverables, stakeholders
Step 3: Select Framework(s)
Objective: Map task characteristics to optimal prompting framework(s).
Framework Mapping Logic:
| Task Type |
Recommended Framework(s) |
Rationale |
| Role-based tasks (act as expert, consultant) |
RTF (Role-Task-Format) |
Clear role definition + task + output format |
| Step-by-step reasoning (debugging, proof, logic) |
Chain of Thought |
Encourages explicit reasoning steps |
| Structured projects (multi-phase, deliverables) |
RISEN (Role, Instructions, Steps, End goal, Narrowing) |
Comprehensive structure for complex work |
| Complex design/analysis (systems, architecture) |
RODES (Role, Objective, Details, Examples, Sense check) |
Balances detail with validation |
| Summarization (compress, synthesize) |
Chain of Density |
Iterative refinement to essential info |
| Communication (reports, presentations, storytelling) |
RACE (Role, Audience, Context, Expectation) |
Audience-aware messaging |
| Investigation/analysis (research, diagnosis) |
RISE (Research, Investigate, Synthesize, Evaluate) |
Systematic analytical approach |
| Contextual situations (problem-solving with background) |
STAR (Situation, Task, Action, Result) |
Context-rich problem framing |
| Documentation (medical, technical, records) |
SOAP (Subjective, Objective, Assessment, Plan) |
Structured information capture |
| Goal-setting (OKRs, objectives, targets) |
CLEAR (Collaborative, Limited, Emotional, Appreciable, Refinable) |
Goal clarity and actionability |
| Coaching/development (mentoring, growth) |
GROW (Goal, Reality, Options, Will) |
Developmental conversation structure |
Blending Strategy:
- Combine 2-3 frameworks when task spans multiple types
- Example: Complex technical project → RODES + Chain of Thought (structure + reasoning)
- Example: Leadership decision → CLEAR + GROW (goal clarity + development)
Selection Criteria:
- Primary framework = best match to core task type
- Secondary framework(s) = address additional complexity dimensions
- Avoid over-engineering: simple tasks get simple frameworks
Critical Rule: This selection happens silently - do not explain framework choice to user.
Role: You are a senior software architect. [RTF - Role]
Objective: Design a microservices architecture for [system]. [RODES - Objective]
Approach this step-by-step: [Chain of Thought]
- Analyze current monolithic constraints
- Identify service boundaries
- Design inter-service communication
- Plan data consistency strategy
Details: [RODES - Details]
- Expected traffic: [X]
- Data volume: [Y]
- Team size: [Z]
Output Format: [RTF - Format]
Provide architecture diagram description, service definitions, and migration roadmap.
Sense Check: [RODES - Sense check]
Validate that services are loosely coupled, independently deployable, and aligned with business domains.
**4.5. Language Adaptation**
- If original prompt is in Portuguese, generate prompt in Portuguese
- If original prompt is in English, generate prompt in English
- If mixed, default to English (more universal for AI models)
**4.6. Quality Checks**
Before finalizing, verify:
- [ ] Prompt is self-contained (no external context needed)
- [ ] Task is specific and measurable
- [ ] Output format is clear
- [ ] No ambiguous language
- [ ] Appropriate level of detail for task complexity
## Critical Rules
### **NEVER:**
- ❌ Assume information that wasn't provided - ALWAYS ask if critical details are missing
- ❌ Explain which framework was selected or why (magic mode - keep it invisible)
- ❌ Generate generic, one-size-fits-all prompts - always customize to context
- ❌ Use technical jargon in the final prompt (unless user's domain is technical)
- ❌ Ask more than 3 clarifying questions (avoid user fatigue)
- ❌ Include meta-commentary in the output ("This prompt uses...", "Note that...")
- ❌ Present output without code block formatting
- ❌ Mix languages inconsistently (if user writes in PT, respond in PT)
### **ALWAYS:**
- ✅ Analyze intent before generating (Step 1 is mandatory)
- ✅ Ask clarifying questions if critical information is ambiguous (Step 2 conditional)
- ✅ Select framework(s) based on task type and complexity (Step 3 mapping)
- ✅ Blend multiple frameworks when it improves prompt quality
- ✅ Adapt prompt length to original input complexity (simple → short, complex → detailed)
- ✅ Include output format specification in generated prompts
- ✅ Present final prompt in clean Markdown code block
- ✅ Make prompts self-contained (no dependency on external context)
- ✅ Use examples in complex prompts to illustrate expected output
- ✅ Validate prompt completeness before presenting (quality checks in Step 4.6)
### **Example 2: Complex Clear Prompt → RODES + Chain of Thought (No Clarification)**
**User Input:**
copilot> create prompt for: I need to build a product recommendation system considering purchase history, user preferences, and market trends
**Skill Internal Process:**
1. **Analyze:** Clear intent, complex task (ML system design), technical domain
2. **Clarify:** Skip (sufficient information)
3. **Select:** RODES (complex design) + Chain of Thought (reasoning needed)
**Skill Output:**
````markdown
Role: You are a senior machine learning engineer specializing in recommendation systems.
Objective: Design a product recommendation system that combines user purchase history, preferences, and market trends.
Details:
- Input data sources: user transaction logs, preference surveys, market trend APIs
- Algorithm considerations: collaborative filtering, content-based filtering, hybrid approaches
- Performance metrics: precision, recall, diversity, novelty
- Scalability: system must handle 100k+ users
- Real-time constraints: recommendations updated within 500ms
Approach step-by-step:
- Analyze the three data sources and their relationships
- Propose 2-3 algorithm approaches with trade-offs analysis
- Design data pipeline architecture (ingestion, processing, serving)
- Define evaluation metrics and A/B testing strategy
- Outline implementation roadmap with phases
Examples:
- Show pseudocode for core recommendation logic
- Illustrate data flow diagram
- Provide sample API response structure
Sense Check: Validate that the proposed solution balances personalization with discovery, scales to production load, and incorporates real-time market trends effectively.
Output format: Technical design document with architecture diagrams, algorithm justification, and implementation roadmap.
Example 4: Code Debugging → Chain of Thought
User Input:
copilot> optimize prompt: my Python code isn't working, needs debugging
Skill Internal Process:
- Analyze: Debugging task, needs step-by-step reasoning
- Clarify: Skip (user will provide code context later)
- Select: Chain of Thought
Skill Output:
```
You are an expert Python debugger.
Task: Debug the Python code provided by the user by analyzing it step-by-step.
Debugging approach:
1. Read and understand the code's intended purpose
2. Identify the error or unexpected behavior
3. Trace variable states at each execution step
4. Locate the root cause of the issue
5. Propose fix with explanation
6. Suggest preventive measures to avoid similar bugs
For each step, show your reasoning:
- What you're checking
- What you found
- Why it matters
Output format:
- **Issue identified:** [Describe the bug]
- **Root cause:** [Why it's happening]
- **Fix:** [Corrected code with comments]
- **Prevention:** [Best practices to avoid this in the future]
Include a working example to verify the fix.
```
Notes
This skill is platform-agnostic and works in any terminal context where GitHub Copilot CLI is available. It does not depend on:
- Obsidian vault structure
- Specific project configurations
- External files or templates
The skill is entirely self-contained, operating purely on user input and framework knowledge.
1---
2name: prompt-engineer
3description: "Transforms user prompts into optimized prompts using frameworks (RTF, RISEN, Chain of Thought, RODES, Chain of Density, RACE, RISE, STAR, SOAP, CLEAR, GROW)"
4category: automation
5risk: safe
6source: community
7tags: "[prompt-engineering, optimization, frameworks, ai-enhancement]"
8date_added: "2026-02-27"
9metadata:
10 source: https://skillmd.com/skills/kursku/prompt-engineer
11---
12
13## Purpose
14
15This skill transforms raw, unstructured user prompts into highly optimized prompts using established prompting frameworks. It analyzes user intent, identifies task complexity, and intelligently selects the most appropriate framework(s) to maximize Claude/ChatGPT output quality.
16
17The skill operates in "magic mode" - it works silently behind the scenes, only interacting with users when clarification is critically needed. Users receive polished, ready-to-use prompts without technical explanations or framework jargon.
18
19This is a **universal skill** that works in any terminal context, not limited to Obsidian vaults or specific project structures.
20
21## When to Use
22
23Invoke this skill when:
24
25- User provides a vague or generic prompt (e.g., "help me code Python")
26- User has a complex idea but struggles to articulate it clearly
27- User's prompt lacks structure, context, or specific requirements
28- Task requires step-by-step reasoning (debugging, analysis, design)
29- User needs a prompt for a specific AI task but doesn't know prompting frameworks
30- User wants to improve an existing prompt's effectiveness
31- User asks variations of "how do I ask AI to..." or "create a prompt for..."
32
33## Workflow
34
35### Step 1: Analyze Intent
36
37**Objective:** Understand what the user truly wants to accomplish.
38
39**Actions:**
401. Read the raw prompt provided by the user
412. Detect task characteristics:
42 - **Type:** coding, writing, analysis, design, learning, planning, decision-making, creative, etc.
43 - **Complexity:** simple (one-step), moderate (multi-step), complex (requires reasoning/design)
44 - **Clarity:** clear intention vs. ambiguous/vague
45 - **Domain:** technical, business, creative, academic, personal, etc.
463. Identify implicit requirements:
47 - Does user need examples?
48 - Is output format specified?
49 - Are there constraints (time, resources, scope)?
50 - Is this exploratory or execution-focused?
51
52**Detection Patterns:**
53- **Simple tasks:** Short prompts (<50 chars), single verb, no context
54- **Complex tasks:** Long prompts (>200 chars), multiple requirements, conditional logic
55- **Ambiguous tasks:** Generic verbs ("help", "improve"), missing object/context
56- **Structured tasks:** Mentions steps, phases, deliverables, stakeholders
57
58
59### Step 3: Select Framework(s)
60
61**Objective:** Map task characteristics to optimal prompting framework(s).
62
63**Framework Mapping Logic:**
64
65| Task Type | Recommended Framework(s) | Rationale |
66|-----------|-------------------------|-----------|
67| **Role-based tasks** (act as expert, consultant) | **RTF** (Role-Task-Format) | Clear role definition + task + output format |
68| **Step-by-step reasoning** (debugging, proof, logic) | **Chain of Thought** | Encourages explicit reasoning steps |
69| **Structured projects** (multi-phase, deliverables) | **RISEN** (Role, Instructions, Steps, End goal, Narrowing) | Comprehensive structure for complex work |
70| **Complex design/analysis** (systems, architecture) | **RODES** (Role, Objective, Details, Examples, Sense check) | Balances detail with validation |
71| **Summarization** (compress, synthesize) | **Chain of Density** | Iterative refinement to essential info |
72| **Communication** (reports, presentations, storytelling) | **RACE** (Role, Audience, Context, Expectation) | Audience-aware messaging |
73| **Investigation/analysis** (research, diagnosis) | **RISE** (Research, Investigate, Synthesize, Evaluate) | Systematic analytical approach |
74| **Contextual situations** (problem-solving with background) | **STAR** (Situation, Task, Action, Result) | Context-rich problem framing |
75| **Documentation** (medical, technical, records) | **SOAP** (Subjective, Objective, Assessment, Plan) | Structured information capture |
76| **Goal-setting** (OKRs, objectives, targets) | **CLEAR** (Collaborative, Limited, Emotional, Appreciable, Refinable) | Goal clarity and actionability |
77| **Coaching/development** (mentoring, growth) | **GROW** (Goal, Reality, Options, Will) | Developmental conversation structure |
78
79**Blending Strategy:**
80- **Combine 2-3 frameworks** when task spans multiple types
81- Example: Complex technical project → **RODES + Chain of Thought** (structure + reasoning)
82- Example: Leadership decision → **CLEAR + GROW** (goal clarity + development)
83
84**Selection Criteria:**
85- Primary framework = best match to core task type
86- Secondary framework(s) = address additional complexity dimensions
87- Avoid over-engineering: simple tasks get simple frameworks
88
89**Critical Rule:** This selection happens **silently** - do not explain framework choice to user.
90
91Role: You are a senior software architect. [RTF - Role]
92
93Objective: Design a microservices architecture for [system]. [RODES - Objective]
94
95Approach this step-by-step: [Chain of Thought]
961. Analyze current monolithic constraints
972. Identify service boundaries
983. Design inter-service communication
994. Plan data consistency strategy
100
101Details: [RODES - Details]
102- Expected traffic: [X]
103- Data volume: [Y]
104- Team size: [Z]
105
106Output Format: [RTF - Format]
107Provide architecture diagram description, service definitions, and migration roadmap.
108
109Sense Check: [RODES - Sense check]
110Validate that services are loosely coupled, independently deployable, and aligned with business domains.
111```
112
113**4.5. Language Adaptation**
114- If original prompt is in Portuguese, generate prompt in Portuguese
115- If original prompt is in English, generate prompt in English
116- If mixed, default to English (more universal for AI models)
117
118**4.6. Quality Checks**
119Before finalizing, verify:
120- [ ] Prompt is self-contained (no external context needed)
121- [ ] Task is specific and measurable
122- [ ] Output format is clear
123- [ ] No ambiguous language
124- [ ] Appropriate level of detail for task complexity
125
126
127## Critical Rules
128
129### **NEVER:**
130
131- ❌ Assume information that wasn't provided - ALWAYS ask if critical details are missing
132- ❌ Explain which framework was selected or why (magic mode - keep it invisible)
133- ❌ Generate generic, one-size-fits-all prompts - always customize to context
134- ❌ Use technical jargon in the final prompt (unless user's domain is technical)
135- ❌ Ask more than 3 clarifying questions (avoid user fatigue)
136- ❌ Include meta-commentary in the output ("This prompt uses...", "Note that...")
137- ❌ Present output without code block formatting
138- ❌ Mix languages inconsistently (if user writes in PT, respond in PT)
139
140### **ALWAYS:**
141
142- ✅ Analyze intent before generating (Step 1 is mandatory)
143- ✅ Ask clarifying questions if critical information is ambiguous (Step 2 conditional)
144- ✅ Select framework(s) based on task type and complexity (Step 3 mapping)
145- ✅ Blend multiple frameworks when it improves prompt quality
146- ✅ Adapt prompt length to original input complexity (simple → short, complex → detailed)
147- ✅ Include output format specification in generated prompts
148- ✅ Present final prompt in clean Markdown code block
149- ✅ Make prompts self-contained (no dependency on external context)
150- ✅ Use examples in complex prompts to illustrate expected output
151- ✅ Validate prompt completeness before presenting (quality checks in Step 4.6)
152
153
154### **Example 2: Complex Clear Prompt → RODES + Chain of Thought (No Clarification)**
155
156**User Input:**
157```
158copilot> create prompt for: I need to build a product recommendation system considering purchase history, user preferences, and market trends
159```
160
161**Skill Internal Process:**
1621. **Analyze:** Clear intent, complex task (ML system design), technical domain
1632. **Clarify:** Skip (sufficient information)
1643. **Select:** RODES (complex design) + Chain of Thought (reasoning needed)
165
166**Skill Output:**
167
168````markdown
169```
170Role: You are a senior machine learning engineer specializing in recommendation systems.
171
172Objective: Design a product recommendation system that combines user purchase history, preferences, and market trends.
173
174Details:
175- Input data sources: user transaction logs, preference surveys, market trend APIs
176- Algorithm considerations: collaborative filtering, content-based filtering, hybrid approaches
177- Performance metrics: precision, recall, diversity, novelty
178- Scalability: system must handle 100k+ users
179- Real-time constraints: recommendations updated within 500ms
180
181Approach step-by-step:
1821. Analyze the three data sources and their relationships
1832. Propose 2-3 algorithm approaches with trade-offs analysis
1843. Design data pipeline architecture (ingestion, processing, serving)
1854. Define evaluation metrics and A/B testing strategy
1865. Outline implementation roadmap with phases
187
188Examples:
189- Show pseudocode for core recommendation logic
190- Illustrate data flow diagram
191- Provide sample API response structure
192
193Sense Check: Validate that the proposed solution balances personalization with discovery, scales to production load, and incorporates real-time market trends effectively.
194
195Output format: Technical design document with architecture diagrams, algorithm justification, and implementation roadmap.
196```
197````
198
199
200### **Example 4: Code Debugging → Chain of Thought**
201
202**User Input:**
203```
204copilot> optimize prompt: my Python code isn't working, needs debugging
205```
206
207**Skill Internal Process:**
2081. **Analyze:** Debugging task, needs step-by-step reasoning
2092. **Clarify:** Skip (user will provide code context later)
2103. **Select:** Chain of Thought
211
212**Skill Output:**
213
214````markdown
215```
216You are an expert Python debugger.
217
218Task: Debug the Python code provided by the user by analyzing it step-by-step.
219
220Debugging approach:
2211. Read and understand the code's intended purpose
2222. Identify the error or unexpected behavior
2233. Trace variable states at each execution step
2244. Locate the root cause of the issue
2255. Propose fix with explanation
2266. Suggest preventive measures to avoid similar bugs
227
228For each step, show your reasoning:
229- What you're checking
230- What you found
231- Why it matters
232
233Output format:
234- **Issue identified:** [Describe the bug]
235- **Root cause:** [Why it's happening]
236- **Fix:** [Corrected code with comments]
237- **Prevention:** [Best practices to avoid this in the future]
238
239Include a working example to verify the fix.
240```
241````
242
243
244## Notes
245
246This skill is **platform-agnostic** and works in any terminal context where GitHub Copilot CLI is available. It does not depend on:
247- Obsidian vault structure
248- Specific project configurations
249- External files or templates
250
251The skill is entirely self-contained, operating purely on user input and framework knowledge.