Agent skill
skill-optimize
[Skill Management] Optimize an existing agent skill
Install this agent skill to your Project
npx add-skill https://github.com/duc01226/EasyPlatform/tree/main/.claude/skills/skill-optimize
SKILL.md
[IMPORTANT] Use
TaskCreateto break ALL work into small tasks BEFORE starting — including tasks for each file read. This prevents context loss from long files. For simple tasks, AI MUST ask user whether to skip.
Quick Summary
Goal: Optimize an existing skill for token efficiency, clarity, and effectiveness.
Workflow:
- Analyze — Review skill structure, line count, progressive disclosure
- Optimize — Reduce SKILL.md size, move details to references, improve clarity
- Validate — Verify skill still works correctly after optimization
Key Rules:
- Delegates to
skill-creatorfor optimization patterns - SKILL.md target: under 100 lines with progressive disclosure
- Reference files also under 100 lines each
Be skeptical. Apply critical thinking, sequential thinking. Every claim needs traced proof, confidence percentages (Idea should be more than 80%).
Think harder.
Use skill-creator and claude-code skills.
Use docs-seeker skills to search for documentation if needed.
Arguments
SKILL: $1 (default: *)
PROMPT: $2 (default: empty)
Your mission
Optimize an existing skill in .claude/skills/${SKILL} directory.
Mode detection:
- If arguments contain "auto" or "trust me": Skip plan approval, implement directly.
- Otherwise: Propose plan first, ask user to review before implementing.
Additional instructions
$PROMPT
Output Requirements
An output implementation plan must also follow the progressive disclosure structure:
- Always keep in mind that
SKILL.mdand reference files should be token consumption efficient, so that progressive disclosure can be leveraged at best. SKILL.mdis always short and concise, straight to the point, treat it as a quick reference guide.- Create a directory using naming pattern from
## Namingsection. - Save the overview access point at
plan.md, keep it generic, under 80 lines, and list each phase with status/progress and links. - For each phase, add
phase-XX-phase-name.mdfiles containing sections (Context links, Overview with date/priority/statuses, Key Insights, Requirements, Architecture, Related code files, Implementation Steps, Todo list, Success Criteria, Risk Assessment, Security Considerations, Next steps).
IMPORTANT:
- Skills are not documentation, they are practical instructions for Claude Code to use the tools, packages, plugins or APIs to achieve the tasks.
- Each skill teaches Claude how to perform a specific development task, not what a tool does.
- Claude Code can activate multiple skills automatically to achieve the user's request.
Closing Reminders
- MUST break work into small todo tasks using
TaskCreateBEFORE starting - MUST search codebase for 3+ similar patterns before creating new code
- MUST cite
file:lineevidence for every claim (confidence >80% to act) - MUST add a final review todo task to verify work quality
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
fix-parallel
[Implementation] Analyze & fix issues with parallel fullstack-developer agents
ask
[Utilities] Answer technical and architectural questions.
claude-code
[Utilities] Claude Code CLI setup, configuration, troubleshooting, and feature guidance. Triggers on claude code setup, hook not firing, MCP connection, context limit, skill creation, slash command setup.
workflow-deployment
[Workflow] Trigger Deployment & Infrastructure workflow — CI/CD pipelines, Docker, Kubernetes setup and deployment.
workflow-idea-to-pbi
[Workflow] Trigger Idea to PBI workflow — po/ba workflow: capture idea, refine to pbi, create stories, prioritize.
easy-claude-help
[Utilities] Configuration guide for the easy-claude framework — explain settings, guide users through configuring .ck.json.
Didn't find tool you were looking for?