Prompt Refiner
When to Use
Invoke this skill when you have a task that:
- •Requires a specific persona or expertise
- •Involves procedural steps
- •Needs structured output
- •Benefits from explicit examples
Refinement Process
1. Analyze the Draft Prompt
Review for:
- • Clear role/persona definition
- • Step-by-step breakdown (if procedural)
- • Output format specification
- • Concrete examples
2. Apply GPT-Specific Patterns
Role framing: Start with "You are a [specific role] working on [specific context]..."
Numbered procedures: Break complex tasks into numbered steps that build on each other.
Output specification: Be explicit: "Return as JSON", "Format as markdown with headers", etc.
Chain of thought: For reasoning tasks, add: "Think through this step by step."
3. Structure the Prompt
Effective order:
- •Role definition (who/what)
- •Context (background info)
- •Task (what to do)
- •Steps (how to do it, if procedural)
- •Output format (what to return)
- •Examples (optional clarification)
4. Output the Refined Prompt
Present with:
- •Clear role statement
- •Numbered steps where applicable
- •Explicit output requirements
Example Transformation
Before: "Review this code for security issues"
After:
code
You are a senior security engineer conducting a security audit of a Node.js payment processing service. Context: This service handles credit card transactions and communicates with Stripe's API. It runs in AWS ECS. Task: Review the code in src/payments/ for security vulnerabilities. Steps: 1. Check for proper input validation on all endpoints 2. Verify secrets are not hardcoded or logged 3. Review authentication and authorization logic 4. Check for SQL injection and XSS vulnerabilities 5. Verify proper error handling that doesn't leak sensitive info Output format: Return a security report in markdown with: * **Critical**: Issues that must be fixed before deployment * **High**: Significant risks that should be addressed soon * **Medium**: Improvements to consider * **Recommendations**: General security enhancements For each issue, include: * File and line number * Description of the vulnerability * Recommended fix with code example