Skills Optimization Pro
Paste the following prompt into your AI chat to install this skill:
Please install @user_b91ca78d/skills-optimization-pro according to https://skillhub.cn/install/skillhub.md.
About this skill
Problem to Solve
As Agent Skills accumulate, common failures are not only bad wording. Missing frontmatter fields, over-broad triggers, vague steps, absent exception paths, broken references, and version mismatches with CHANGELOG can make skills undiscoverable, unstable, or hard to maintain. These issues are scattered across formatting, prompt structure, dependency declarations, and validation, making manual review expensive and lacking a shared scoring or rollback baseline.
How It Works
The skill runs a diagnose → route → optimize → validate → record loop. L1 fixes frontmatter and formatting; L2 applies pattern matching, scoring, and edits to one skill; L3 can scan many skills and produce a comparison report. Diagnosis classifies the skill type and selects patterns such as Tool Wrapper, Generator, Reviewer, Inversion, or Pipeline, then scans anti-patterns AP-2 through AP-13, including Vague Instruction, Missing Fallback, Zombie Reference, and Silent Failure.
Before and after changes, it runs Trigger Test, Understanding Test, Execution Test, and Regression Test, and requires version updates, CHANGELOG entries, and results.tsv records. Constraints include preserving core functionality, avoiding new dependencies, changing one dimension per round, keeping SKILL.md under 150% of its original size, and maintaining rollback through backups and git revert. It is better understood as an evaluation and rewriting workflow for skill repositories rather than a business-logic generator.
Fit and Limits
It is useful for governing prompt quality, format consistency, dependency declarations, and validation records in existing Skills. It is not intended to create the core capability of a new skill, nor to batch-modify environments without backups, user confirmation, or CHANGELOG support. If a skill’s functional definition is unclear, clarify the business objective before entering this workflow.
Use Cases
- When maintaining many Agent Skills, batch-scan vague triggers and broken references, then produce fix recommendations.
- Before optimizing one skill, compare scores and run Trigger, Understanding, Execution, and Regression tests.
- When fixing formatting and frontmatter, run L1 Quick Fix and keep CHANGELOG plus results.tsv records.
- When reviewing a skills repository, run L3 evaluation and output dimension scores, anti-patterns, and version changes.
Best For
- Engineers maintaining Agent Skills repositories who want consistent formatting, anti-pattern fixes, and changelogs.
- Technical leads reviewing skills before release who need scores, test evidence, and rollback basis.
- Prompt engineers batch-governing prompts who need to find vague triggers and ambiguous instructions.
- Platform engineers building AI Agent toolchains who want auditable, regression-tested skill changes.
Related Skills
Turn vague requests into structured prompts with role, task, context, and constraints, outputting only usable prompts without executing the task.
A skill for game NPC and enemy AI that separates decision, steering, and pathfinding, covering FSMs, behavior trees, A*, path caching, and pitfalls.
Provides multi-turn emotional companion chat through a third-party Agent API and supports continuing sessions via session_id.
Analyzes web form structure in a headed browser, fills choice-based answers, verifies them against a docx file, and leaves personal fields for manual input.