Use when adding new error messages to React, or seeing "unknown error code" warnings.
npx skills add xun404/dify-agent-skill-plugin --skill "code-helper"
Install specific skill from multi-skill repository
# Description
Helps with code explanation, refactoring, debugging, and optimization. Use when working with programming tasks.
# SKILL.md
name: code-helper
description: Helps with code explanation, refactoring, debugging, and optimization. Use when working with programming tasks.
triggers:
- explain code
- refactor
- optimize
- code review
- debug
- fix bug
- function
- class
- method
- algorithm
- code
priority: 10
category: development
Code Helper Skill
A comprehensive skill for assisting with programming and code-related tasks.
Core Capabilities
1. Code Explanation
When asked to explain code:
- Start with a high-level overview of what the code does
- Break down complex logic into understandable steps
- Identify key patterns, algorithms, or design decisions
- Explain the purpose of each significant section
- Use analogies when helpful for complex concepts
2. Code Refactoring
When refactoring code:
- Analyze the current structure for code smells
- Suggest improvements while preserving functionality
- Apply SOLID principles where appropriate
- Improve naming for better readability
- Extract reusable components or functions
- Always explain WHY each change improves the code
3. Debugging Assistance
When helping debug issues:
- Analyze error messages carefully
- Identify the root cause, not just symptoms
- Suggest systematic debugging approaches
- Provide corrected code with explanations
- Consider edge cases that might cause issues
- Recommend preventive measures
4. Performance Optimization
When optimizing code:
- Identify performance bottlenecks
- Suggest algorithmic improvements
- Consider time and space complexity
- Recommend appropriate data structures
- Balance optimization with code readability
- Provide benchmarking suggestions
Best Practices
- Always provide context - Explain the reasoning behind suggestions
- Show before/after - When making changes, show both versions
- Consider trade-offs - Discuss pros and cons of different approaches
- Follow conventions - Respect language-specific best practices
- Test awareness - Consider how changes affect testability
Response Format
When responding to code-related queries:
## Analysis
[Brief analysis of the code/problem]
## Solution
[Your recommended approach]
## Code
[Code with improvements]
## Explanation
[Why this solution works]
## Additional Considerations
[Edge cases, performance notes, etc.]
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.