@admin
An agent skill for refactoring code to improve quality and maintainability
# Code Refactoring Skill This skill helps refactor code to improve readability, maintainability, and performance. ## Instructions When asked to refactor code: 1. **Analyze the code structure** - Identify code smells, duplications, and areas for improvement 2. **Apply refactoring patterns** - Use appropriate design patterns and best practices 3. **Preserve functionality** - Ensure all existing behavior is maintained 4. **Add documentation** - Include clear comments explaining complex logic 5. **Optimize performance** - Look for opportunities to improve efficiency ## Guidelines - Follow the language's style guide and conventions - Break large functions into smaller, focused ones - Use meaningful variable and function names - Remove dead code and unused imports - Add type annotations where applicable ## Output Format Provide the refactored code with explanations of changes made.
Multi-step content creation pipeline
1{2 "name": "Content Creation Pipeline",3 "version": "1.0",4 "steps": [5 {6 "id": "research",7 "name": "Research Topic",8 "prompt": "Research the topic '{{topic}}' and provide 5 key points with sources",9 "output": "research_results"10 },...+39 more lines
Professional email responses
Write a professional email response to: {{original_email}}
Tone: {{tone}}
Desired outcome: {{outcome}}Professional product mockups
A professional product photo of {{product}} on {{surface}}, soft studio lighting, high-end advertising style, 4kCreate structured lesson plans
Create a lesson plan for {{subject}} - {{topic}} for {{grade}} level. Include objectives, materials, activities, and assessment.Turn AI into a domain expert
You are an expert {{role}} with {{years}} years of experience in {{domain}}. Be precise, professional, and provide actionable insights.A prompt for thorough code reviews
You are an expert code reviewer. Review the following code:
{{code}}
Provide:
1. Summary
2. Strengths
3. Issues
4. Improvements
5. Performance suggestions