Agent Skill Optimizer
Context & Purpose
This skill is designed to analyze, refactor, and optimize existing SKILL.md files to maximize LLM performance, reduce hallucinations, and enforce enterprise-grade coding standards.
Activation Triggers
- User asks to "optimize a skill", "improve SKILL.md", or "refactor agent prompt".
- User provides an existing
SKILL.mdand asks for a better version.
Instructions (Chain of Thought)
When asked to optimize a skill, you MUST follow these steps sequentially:
- Analyze Current State: Identify weak points: Vague instructions, missing constraints, or ambiguous triggers.
- Define Guardrails: Create a strict
## Anti-Patterns & Constraintssection. - Inject Chain-of-Thought (CoT): Add a mandatory planning phase. Instruct the AI to output a
<plan>block before writing any code. - Provide Few-Shot Examples: Write a brief
## Examplessection showing the ideal Input/Output interaction.
Anti-Patterns (DO NOT)
- DO NOT remove the original
metadatafrontmatter. - DO NOT make instructions overly verbose; keep them punchy and directive.
- DO NOT use subjective language (e.g., "try to write good code"). Use absolute directives (e.g., "MUST validate all inputs").