skill-optimizer-yashu
Original:🇨🇳 Chinese
Translated
8 scriptsChecked / no sensitive code detected
Analyze and optimize document quality issues of other Skills, including checks on frontmatter format, progressive disclosure structure, file reference integrity, AI-friendliness, etc. When to use: When users say "optimize this skill", "check skill quality", "review skill", "there's something wrong with the skill", "help me look at this skill", "diagnose the skill"
10installs
Added on
NPX Install
npx skill4agent add steelan9199/wechat-publisher skill-optimizer-yashuTags
Translated version includes tags in frontmatterSKILL.md Content (Chinese)
View Translation Comparison →Skill Optimizer
AI Calling Specification: This Skill is designed exclusively for AI. Human users only need to describe their requirements in natural language, and the AI will automatically complete analysis and optimization.
How to Use This Skill
Trigger Conditions
| User Input Examples | AI Execution |
|---|---|
| "check / diagnose / review / look at / analyze / evaluate xxx skill" | Run analyze.py for quality analysis |
| "optimize / improve / fix / upgrade / refactor xxx skill" | Run optimize.py to generate optimized documents |
Default Behavior: If the user's intent is unclear, prioritize executing analyze.py (analysis scenarios account for 90%).
Execution Steps
| Scenario | Step | AI Action | Specific Command |
|---|---|---|---|
| Analysis | 1 | Run analysis script | |
| Analysis | 2 | Parse output results | Extract the number of errors/warnings/suggestions/hints and detailed problem lists |
| Analysis | 3 | Output analysis report | Display results to users according to the [Analysis Result Template] |
| Optimization | 1 | Run optimization script | |
| Optimization | 2 | Confirm optimization completion | Check if the output file exists |
| Optimization | 3 | Output optimization summary | Display an overview of optimized content and file path to users |
Output Templates
Analysis Result Template:
==================================================
Analysis Result: {Level}
==================================================
Errors: {N} | Warnings: {N} | Suggestions: {N} | Hints: {N}
Issues Found:
- {Type}: {Issue Description}
- {Type}: {Issue Description}Optimization Result Template:
✅ Optimization Completed!
📄 Optimized document saved to: {File Path}
Optimization Overview:
- {Optimization Item 1}
- {Optimization Item 2}
- {Optimization Item 3}Inspection Dimensions
- Frontmatter Format - Check fields such as name, description, metadata
- Progressive Disclosure Structure - Check document length and content organization
- File Reference Integrity - Check if referenced files exist
- AI-friendliness - Check whether AI can accurately understand and execute
- Completeness of Usage Instructions - Check if there are clear usage instructions
- Token Efficiency - Check the way information is organized
For detailed inspection standards, refer to Check Specification.
Rating Standards
| Level | Conditions | Explanation |
|---|---|---|
| Needs Fix | Errors exist | Critical issues that must be fixed, affecting normal use of the skill |
| Good | No errors, with warnings | Minor issues that need attention but do not affect usage |
| Excellent | No errors/warnings, with suggestions | Optimization suggestions to further improve quality |
| Very Good | No errors/warnings/suggestions, with hints | Minor hints, overall quality is high |
| Perfect | No issues at all | Fully compliant with specifications, no problems |
Error Handling
| Error Scenario | Handling Method |
|---|---|
| Skill does not exist | Prompt that the specified skill folder cannot be found |
| Invalid path | Prompt for invalid folder path |
| SKILL.md missing | Mark as error, prompt for missing main document |
Resources
- analyze.py - Main script for analyzing skill quality
- optimize.py - Generate optimized SKILL.md based on analysis results
- Check Specification - Detailed inspection standards and specification descriptions