AI Agent Hub
Back to skills
Skills Optimization Pro icon

Skills Optimization Pro

AI Agent Updated 2026.08.29

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.