File contents Skill Optimizer
Analyze and optimize skills based on official Anthropic best practices.
Workflow
Phase 1: Skill Identification
With argument : Use specified skill path directly.
Without argument :
Scan skills/ directory for SKILL.md files
List found skills with names
Let user select via AskUserQuestion
Phase 2: Analysis
Read the target SKILL.md
Auto-detect language from content (Japanese/English)
Analyze from these perspectives:
Category
Points
Check Items
Frontmatter
20
YAML syntax, name/description required, security constraints
Description
25
Trigger phrases, specificity, includes both WHAT and WHEN
Structure
20
Progressive Disclosure, SKILL.md size (under 5000 words)
Content
20
Error handling, examples, clear instructions
Additional
15
references/ usage, MCP integration (if applicable)
Calculate quality score:
A : 90-100 (Almost no issues)
B : 75-89 (Minor improvements available)
C : 60-74 (Improvement recommended)
D : 40-59 (Needs improvement)
F : 0-39 (Fundamental issues)
Organize improvement proposals by category
Reference files for analysis criteria:
./references/yaml-frontmatter.md - YAML spec & constraints
./references/description-writing.md - Description field best practices
./references/progressive-disclosure.md - Structure design guide
./references/patterns.md - Workflow patterns
./references/mcp-integration.md - MCP integration guidance
./references/troubleshooting.md - Common issues & solutions
./references/checklist.md - Quality checklist
Phase 3: User Confirmation
Display analysis results and confirm with AskUserQuestion.
Output language : Follow detected skill language.
## Analysis Result
**Skill**: {skill_name}
**Quality Score**: {score} ({grade})
### Issues Found
#### Frontmatter ({points}/20)
- {issue_1}
- {issue_2}
#### Description ({points}/25)
- {issue_1}
...
### Improvement Proposals
Select categories to apply:
- [ ] Structure improvements (split to references/)
- [ ] Trigger improvements (description field)
- [ ] Error handling additions
- [ ] MCP integration improvements
Phase 4: Execution
For selected categories:
Maintain original style (writing style, terminology, tone)
Output in detected language
Overwrite original directory (git recovery possible)
Display updated score after execution
Edge Cases
Case
Response
YAML error
Propose fix as "improvement"
Wrong filename
Propose rename as "improvement"
No improvement needed
Show score only, report "no issues"
Mixed Japanese/English
Detect main language, unify output
Multiple language templates
Optimize each in respective language
Analysis Details
Frontmatter Checks (20 points)
Description Checks (25 points)
Structure Checks (20 points)
Content Checks (20 points)
Additional Checks (15 points)
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1 --- 2 name: ttokit-claude-skills-skill-optimizer 3 description: Skill Optimizer 4 --- 5 6 # Skill Optimizer 7 8 Analyze and optimize skills based on official Anthropic best practices. 9 10 ## Workflow 11 12 ### Phase 1: Skill Identification 13 14 **With argument**: Use specified skill path directly. 15 16 **Without argument**: 17 1. Scan `skills/` directory for SKILL.md files 18 2. List found skills with names 19 3. Let user select via AskUserQuestion 20 21 ### Phase 2: Analysis 22 23 1. Read the target SKILL.md 24 2. **Auto-detect language** from content (Japanese/English) 25 3. Analyze from these perspectives: 26 27 | Category | Points | Check Items | 28 |----------|--------|-------------| 29 | Frontmatter | 20 | YAML syntax, name/description required, security constraints | 30 | Description | 25 | Trigger phrases, specificity, includes both WHAT and WHEN | 31 | Structure | 20 | Progressive Disclosure, SKILL.md size (under 5000 words) | 32 | Content | 20 | Error handling, examples, clear instructions | 33 | Additional | 15 | references/ usage, MCP integration (if applicable) | 34 35 4. Calculate quality score: 36 - **A**: 90-100 (Almost no issues) 37 - **B**: 75-89 (Minor improvements available) 38 - **C**: 60-74 (Improvement recommended) 39 - **D**: 40-59 (Needs improvement) 40 - **F**: 0-39 (Fundamental issues) 41 42 5. Organize improvement proposals by category 43 44 **Reference files for analysis criteria:** 45 - `./references/yaml-frontmatter.md` - YAML spec & constraints 46 - `./references/description-writing.md` - Description field best practices 47 - `./references/progressive-disclosure.md` - Structure design guide 48 - `./references/patterns.md` - Workflow patterns 49 - `./references/mcp-integration.md` - MCP integration guidance 50 - `./references/troubleshooting.md` - Common issues & solutions 51 - `./references/checklist.md` - Quality checklist 52 53 ### Phase 3: User Confirmation 54 55 Display analysis results and confirm with AskUserQuestion. 56 57 **Output language**: Follow detected skill language. 58 59 ``` 60 ## Analysis Result 61 62 **Skill**: {skill_name} 63 **Quality Score**: {score} ({grade}) 64 65 ### Issues Found 66 67 #### Frontmatter ({points}/20) 68 - {issue_1} 69 - {issue_2} 70 71 #### Description ({points}/25) 72 - {issue_1} 73 74 ... 75 76 ### Improvement Proposals 77 78 Select categories to apply: 79 - [ ] Structure improvements (split to references/) 80 - [ ] Trigger improvements (description field) 81 - [ ] Error handling additions 82 - [ ] MCP integration improvements 83 ``` 84 85 ### Phase 4: Execution 86 87 For selected categories: 88 1. **Maintain original style** (writing style, terminology, tone) 89 2. **Output in detected language** 90 3. **Overwrite original directory** (git recovery possible) 91 4. Display updated score after execution 92 93 ## Edge Cases 94 95 | Case | Response | 96 |------|----------| 97 | YAML error | Propose fix as "improvement" | 98 | Wrong filename | Propose rename as "improvement" | 99 | No improvement needed | Show score only, report "no issues" | 100 | Mixed Japanese/English | Detect main language, unify output | 101 | Multiple language templates | Optimize each in respective language | 102 103 ## Analysis Details 104 105 ### Frontmatter Checks (20 points) 106 107 - [ ] `---` delimiters present 108 - [ ] `name` field exists and is kebab-case 109 - [ ] `description` field exists 110 - [ ] No XML tags (< >) 111 - [ ] No "claude" or "anthropic" prefix in name 112 - [ ] Valid YAML syntax 113 114 ### Description Checks (25 points) 115 116 - [ ] Includes WHAT (what the skill does) 117 - [ ] Includes WHEN (trigger conditions) 118 - [ ] Under 1024 characters 119 - [ ] Contains specific trigger phrases 120 - [ ] Not too vague ("Helps with projects" is bad) 121 - [ ] Mentions relevant file types if applicable 122 123 ### Structure Checks (20 points) 124 125 - [ ] SKILL.md under 5000 words 126 - [ ] Uses Progressive Disclosure (references/ for detailed docs) 127 - [ ] Critical instructions at top 128 - [ ] Uses clear headers (## Important, ## Critical) 129 - [ ] Bullet points and numbered lists for clarity 130 131 ### Content Checks (20 points) 132 133 - [ ] Error handling included 134 - [ ] Examples provided 135 - [ ] Instructions are specific and actionable 136 - [ ] References clearly linked 137 - [ ] No ambiguous language 138 139 ### Additional Checks (15 points) 140 141 - [ ] references/ used appropriately for large skills 142 - [ ] MCP tool names correct (if applicable) 143 - [ ] Validation steps included (if applicable) 144 145 --- 146 > Converted and distributed by [TomeVault](https://tomevault.io/claim/ttokit) — claim your Tome and manage your conversions. 147 <!-- tomevault:4.0:skill_md:2026-04-13 -->
tomevault-io/skills-registry/tree/main/ttokit--claude-skills--skill-optimizer commit b778b95b52
Frequently asked questions How do I install the Ttokit Claude Skills Skill Optimizer skill? Run npx skillmds@latest add tomevault-io/ttokit-claude-skills-skill-optimizer in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the Ttokit Claude Skills Skill Optimizer skill do? Skill Optimizer It is listed under Coding & Dev Tools on SkillMD.
Is Ttokit Claude Skills Skill Optimizer safe to use? This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with Ttokit Claude Skills Skill Optimizer? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is Ttokit Claude Skills Skill Optimizer free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published Ttokit Claude Skills Skill Optimizer? tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.