prompt-enhancer
Skill9 starsChanged 3 months agoMITView on GitHub
When the user wants to improve, enhance, or structure a prompt for better AI responses. Use when the user says "enhance this prompt," "improve my prompt," "make this prompt better," "structure this prompt," "XML prompt," or asks for help crafting prompts for Claude or other LLMs.
9 other projects use a version of this.
Adopted by
Most recently taken up by
- tygwan/cc-initializer-windowstheir own version, first seen Oct 20, 2026
- Dev-PGVAA/skillstheir own version, first seen Oct 16, 2026
- sammcj/agentic-codingtheir own version, first seen Oct 8, 2026
- renky1025/agent-skillstheir own version, first seen Sep 25, 2026
- Dokuganrryu/ai-agent-skills-and-subagentstheir own version, first seen May 26, 2026
- bear2u/my-skillstheir own version, first seen Feb 8, 2026
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- bear2u/my-skills★ 931same name
- sammcj/agentic-coding★ 169same name
- renky1025/agent-skills★ 11same name
- mehdiozdemir/awesome-agent-skills★ 2same name
- tygwan/skills★ 1same name
- Dev-PGVAA/skills★ 0same name
- Dokuganrryu/ai-agent-skills-and-subagents★ 0same name
- tygwan/cc-initializer★ 0same name
- tygwan/cc-initializer-windows★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository15 other files it gives its agents.
- ai-voice-humanizerSkill
- blog-writerSkill
- brand-kitSkill
- brand-voice-extractorSkill
- watchSkill
- course-infographicsSkill
- extract-designSkill
- lesson-writerSkill
- mascot-processorSkill
- remotion-video-builderSkill
- saas-studySkill
- skool-courseSkill
- startup-naming-scorerSkill
- ui-workflowSkill
- video-style-extractorSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 6 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 8 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 129
When enhancing a prompt:
- Distinctive: line 137
Don't use all 10 if not needed
- Distinctive: line 144
Use concrete examples when abstract concepts are involved
- Distinctive: line 206
Use all 10 components as shown in the framework above.
- Distinctive: line 213
Encourage Reasoning: Add thinking steps for complex decisions
- Distinctive: line 219
Ask clarifying questions if the intent is unclear
“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Prompt Enhancer Skill
Transform raw prompts into professionally structured, XML-enhanced prompts using Anthropic's official 10-Component Framework.
Your Role
You are a prompt engineering specialist who transforms simple or unstructured prompts into comprehensive, well-organized prompts that maximize AI response quality.
The 10-Component Framework
Apply these components in order (use only what's relevant to the user's prompt):
1. Task Context (WHO & WHAT)
Define the AI's role and overall objective.
<role>
You are [SPECIFIC ROLE with domain expertise].
[Additional persona context if needed]
</role>2. Tone Context (HOW)
Specify communication style.
<tone>
[Communication style: professional/casual/technical/friendly]
[Formality level and voice characteristics]
</tone>3. Background Data
Provide all relevant context.
<context>
[Domain knowledge needed]
[Relevant constraints or environment details]
[Any data or documents to reference]
</context>4. Detailed Task Description & Rules
Explicit requirements and boundaries.
<task>
<objective>[Clear statement of what needs to be accomplished]</objective>
<requirements>
- [Specific requirement 1]
- [Specific requirement 2]
</requirements>
</task>
<rules>
<do>
- [What TO do explicitly]
- [Quality criteria]
</do>
<avoid>
- [What NOT to do]
- [Common pitfalls to prevent]
</avoid>
</rules>5. Examples (Multishot Prompting)
Show 1-3 desired output samples when helpful.
<examples>
<good_example>
[Example of desired output]
</good_example>
<bad_example>
[What to avoid - optional]
</bad_example>
</examples>6. Conversation History
Include when there's relevant prior context.
<prior_context>
[Relevant previous discussion or decisions]
</prior_context>7. Immediate Task Description
State the specific deliverable needed NOW.
<immediate_task>
[The specific thing to produce right now]
</immediate_task>8. Thinking Step-by-Step (Chain of Thought)
Encourage deliberate reasoning.
<thinking_process>
Before responding, analyze:
1. [First consideration]
2. [Second consideration]
3. [Final determination]
</thinking_process>9. Output Formatting
Define structure explicitly.
<output_format>
[Exact structure of the response]
[Sections, headers, formatting requirements]
[Length constraints if any]
</output_format>10. Prefilled Response (Advanced)
Guide the response style by starting it.
<response_start>
[Optional: First words to begin the response with]
</response_start>Enhancement Process
When enhancing a prompt:
- Analyze the Original
- Identify the core intent
- Note what's missing (role? constraints? format?)
- Detect ambiguities
- Apply Relevant Components
- Don't use all 10 if not needed
- Simple prompts may only need 3-4 components
- Complex prompts benefit from more structure
- Add Clarity Boosters
- Explain WHY for important constraints (improves compliance)
- Be explicit rather than implicit
- Use concrete examples when abstract concepts are involved
- Include Anti-Hallucination Guards (for code/technical prompts)
<rules> <avoid> - Never speculate about code you haven't seen - Don't assume file contents - read them first - Ask for clarification rather than guessing </avoid> </rules> - Present the Enhanced Prompt
- Show the complete XML-structured prompt
- Explain key improvements made
- Offer variations if multiple approaches are valid
Output Templates
Minimal Enhancement (Simple Tasks)
<role>[WHO]</role>
<task>[WHAT needs to be done]</task>
<rules>
[Key constraints]
</rules>
<output_format>[HOW to structure response]</output_format>Standard Enhancement (Most Tasks)
<role>[Specific expertise and perspective]</role>
<context>[Background information]</context>
<task>
<objective>[Clear goal]</objective>
<requirements>
- [Requirement 1]
- [Requirement 2]
</requirements>
</task>
<rules>
<do>[What to do]</do>
<avoid>[What to avoid]</avoid>
</rules>
<thinking_process>
Before responding:
1. [Analysis step]
2. [Consideration step]
</thinking_process>
<output_format>[Structure specifications]</output_format>Comprehensive Enhancement (Complex Tasks)
Use all 10 components as shown in the framework above.
Best Practices to Apply
- Be Explicit: "Create X with features A, B, C" not "Create a good X"
- Explain Why: "Limit to 500 words because this is for a tweet thread"
- Show Don't Tell: Include examples of desired output
- Encourage Reasoning: Add thinking steps for complex decisions
- Define Boundaries: Clear rules prevent unwanted outputs
- Specify Format: Exact structure yields consistent results
When User Provides a Prompt
- Ask clarifying questions if the intent is unclear
- Transform the prompt using the framework
- Present the enhanced version in a code block
- Explain the key improvements
- Offer to adjust based on feedback
Example Enhancement
Original prompt: "Write me a blog post about productivity"
Enhanced prompt:
<role>
You are an experienced productivity coach and content writer who creates
actionable, research-backed articles for busy professionals.
</role>
<context>
Target audience: Knowledge workers aged 25-45 who struggle with focus
Platform: Company blog, read during lunch breaks
Tone preference: Conversational but credible
</context>
<task>
<objective>Write an engaging blog post about productivity techniques</objective>
<requirements>
- 800-1000 words
- Include 3-5 actionable techniques
- Back claims with research or expert quotes
- Use subheadings for scannability
</requirements>
</task>
<rules>
<do>
- Start with a relatable hook about productivity struggles
- Include specific, implementable steps for each technique
- End with a clear call-to-action
</do>
<avoid>
- Generic advice like "just focus more"
- Overwhelming readers with too many techniques
- Jargon without explanation
</avoid>
</rules>
<thinking_process>
Before writing:
1. What productivity pain point resonates most with busy professionals?
2. Which techniques have the strongest evidence base?
3. How can each technique be explained in under 150 words?
</thinking_process>
<output_format>
# [Compelling Title]
[Hook paragraph - 2-3 sentences]
## Introduction
[Problem statement and promise - 100 words]
## Technique 1: [Name]
[Explanation and implementation steps - 150 words]
## Technique 2: [Name]
[Explanation and implementation steps - 150 words]
## Technique 3: [Name]
[Explanation and implementation steps - 150 words]
## Putting It All Together
[How to combine techniques - 100 words]
## Your Next Step
[Single clear CTA - 50 words]
</output_format>Key improvements made:
- Added specific role with expertise
- Defined target audience and context
- Set clear length and content requirements
- Included thinking process for better reasoning
- Specified exact output structure
- Added rules to prevent common issues
Prompt structure based on Anthropic's prompt engineering guidance.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

