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