Maintain agent skills by pruning tokens and improving documentation structure.

Install

mkdir -p .claude/skills/skill-optimize && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/16974" && unzip -o skill.zip -d .claude/skills/skill-optimize && rm skill.zip

Installs to .claude/skills/skill-optimize

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

[Skill Management] Optimize an existing agent skill
51 charsno explicit “when” trigger
Intermediate

Key capabilities

  • →Analyze skill structure and line count
  • →Reduce SKILL.md size
  • →Move details to reference files
  • →Improve clarity of skill instructions
  • →Validate skill functionality after optimization

How it works

The skill analyzes the structure and content of an existing skill, then optimizes it by reducing the SKILL.md file size, moving details to reference files, and improving clarity, followed by validation.

Inputs & outputs

You give it
An existing skill in the .claude/skills/${SKILL} directory
You get back
An optimized skill with reduced SKILL.md size and improved clarity

When to use skill-optimize

  • →Refactoring skill documentation
  • →Token count optimization
  • →Updating skill instructions

About skill-optimize

Analyzes skill files to improve efficiency. It enforces strict token limits and clarity standards while automating the optimization workflow.

[Skill Management] Optimize an existing agent skill

Limitations

  • →SKILL.md target: under 100 lines with progressive disclosure
  • →Reference files also under 100 lines each

How it compares

This skill automates the process of refining skill documentation for token efficiency and clarity, which differs from manual editing and review.

Compared to similar skills

skill-optimize side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
skill-optimize (this skill)06moNo flagsIntermediate
prompt-optimize131yNo flagsAdvanced
ai-cost-optimizer98moCautionIntermediate
self-improving-agent124moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

prompt-optimize

YYH211

Expert prompt engineering skill that transforms Claude into "Alpha-Prompt" - a master prompt engineer who collaboratively crafts high-quality prompts through flexible dialogue. Activates when user asks to "optimize prompt", "improve system instruction", "enhance AI instruction", or mentions prompt engineering tasks.

13113

ai-cost-optimizer

ScientiaCapital

Save 40-70% on AI costs with intelligent multi-LLM routing. Automatically selects the optimal model based on task complexity across 40+ models from 8 providers.

990

self-improving-agent

alirezarezvani

Curate Claude Code's auto-memory into durable project knowledge. Analyze MEMORY.md for patterns, promote proven learnings to CLAUDE.md and .claude/rules/, extract recurring solutions into reusable skills. Use when: (1) reviewing what Claude has learned about your project, (2) graduating a pattern from notes to enforced rules, (3) turning a debugging solution into a skill, (4) checking memory health and capacity.

128

ccs-delegation

kaitranntt

Auto-activate CCS CLI delegation for deterministic tasks. Parses user input, auto-selects optimal profile (glm/kimi/custom) from ~/.ccs/config.json, enhances prompts with context, executes via `ccs {profile} -p "task"` or `ccs {profile}:continue`, and reports results. Triggers on "use ccs [task]" patterns, typo/test/refactor keywords. Excludes complex architecture, security-critical code, performance optimization, breaking changes.

210

skill-from-notebook

GBSOSS

Extract methodologies from documents or examples to create executable skills

28

prompt-factory

alirezarezvani

World-class prompt powerhouse that generates production-ready mega-prompts for any role, industry, and task through intelligent 7-question flow, 69 comprehensive presets across 15 professional domains (technical, business, creative, legal, finance, HR, design, customer, executive, manufacturing, R&D, regulatory, specialized-technical, research, creative-media), multiple output formats (XML/Claude/ChatGPT/Gemini), quality validation gates, and contextual best practices from OpenAI/Anthropic/Google. Supports both core and advanced modes with testing scenarios and prompt variations.

45

Search skills

Search the agent skills registry