skill-optimizer

Optimize token usage in SKILL.md frontmatter and content.

19|3|Updated Jan 7, 2026
One-click install
npx skills add https://github.com/miles990/claude-domain-skills --skill skill-optimizer-miles990
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: skill-optimizer
Source: https://github.com/miles990/claude-domain-skills/tree/main/methodology/skill-optimizer/skills/skill-optimizer
Command: npx skills add https://github.com/miles990/claude-domain-skills --skill skill-optimizer-miles990

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill reduces unnecessary token usage during skill optimization while preserving core functionality.

Core Features & Use Cases

  • Layered loading: core functionality while deferring extended content until needed.
  • External references: move large templates and examples to extended content to maintain lean core SKILL.md.
  • Automated auditing: analyze and audit skills across a repository to improve consistency and efficiency.

Quick Start

對指定的 skill 路徑執行分析、優化,或對整個倉庫執行審計。

Frequently Asked Questions about skill-optimizer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I reduce token usage in SKILL.md documentation while preserving functionality?

To reduce token usage in SKILL.md, apply layered loading by keeping core sections concise and moving extended content to external references. This optimization shrinks prompt size while preserving the skill's core functionality.

What is the best way to audit skill repositories for consistency and token efficiency?

Auditing skill repositories for consistency requires analyzing SKILL.md frontmatter and content across the entire repository. This automated process identifies unnecessary token usage and optimizes prompts for efficiency.

Does skill optimization require a specific SKILL.md frontmatter structure?

Yes, skill optimization requires a well-formed SKILL.md with frontmatter containing name, description, triggers, and keywords. A concise core section is also needed, with optional extended content linked via external references or assets.

How do I move large templates and examples out of SKILL.md?

To move large templates and examples out of SKILL.md, use external references. Relocating these assets maintains a lean core SKILL.md file, deferring extended content loading until it is actually needed.

When should I avoid layered loading for skill development?

Avoid layered loading when a SKILL.md lacks well-formed frontmatter with triggers and keywords. Without a concise core section to anchor the skill, deferring extended content to external references may break core functionality.