agentleFS
ttokitttokit/claude-skills/skills/skill-optimizer/SKILL.md

skill-optimizer

Skill3 starsChanged 3 days agoMITView on GitHub

Analyzes and optimizes existing skills based on official best practices. Evaluates quality score, proposes structural improvements (Progressive Disclosure), description enhancement, and error handling additions. Use when the user wants an existing skill or SKILL.md reviewed, scored against best practices, or improved.

33 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use linting-neostandard-eslint9, media-ingest and 6 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • mcollinaSkill

    linting-neostandard-eslint9

    Configures ESLint v9 flat config and neostandard for JavaScript and TypeScript projects, including migrating from legacy `.eslintrc*` files or the `standard` package. Use when you need to set up or fix linting with `eslint.config.js` or `eslint.config.mjs`, troubleshoot lint errors, configure neostandard rules, migrate from `.eslintrc` to flat config, or integrate linting into CI pipelines and pre-commit hooks.

    Also in 3 projects that use this

  • mphaxiseSkill

    media-ingest

    GBrain-inspired media ingest for Codex. Use when local PDFs, transcripts, screenshots, or repo notes should become structured brain pages with preserved raw artifacts.

    Also in 3 projects that use this

  • mcollinaSkill

    octocat

    Use this skill whenever the prompt contains any `github.com` URL, even if the user only pastes a link and gives no GitHub-specific keywords. Handles git and GitHub operations using the gh CLI. Triggers include any GitHub link to an issue, pull request, commit, compare page, Actions run, release, discussion, or repository. Covers creating and reviewing PRs, repository security advisories (GHSA), their comments, and fix PRs in their temporary private forks, private vulnerability report discussions, watching CI checks, interactive rebasing, branch cleanup, submodule management, and repository archaeology with git log/blame/bisect.

    Also in 3 projects that use this

  • VercelSkill

    oauth

    Configure OAuth providers (Google, Apple, Microsoft, Facebook, GitHub, etc.) to work with portless local dev URLs. Use when setting up OAuth redirect URIs, fixing "redirect_uri_mismatch" or "invalid redirect" errors, configuring sign-in providers for local development, or when a provider rejects .localhost subdomains. Triggers include "OAuth not working with portless", "redirect URI mismatch", "Google/Apple/Microsoft sign-in fails locally", "configure OAuth for local dev", or any task involving OAuth callback URLs with portless domains.

    Also in 3 projects that use this

  • MicrosoftSkill

    init

    Also in 3 projects that use this

  • SentrySkill

    skill-creator

    Create new agent skills following the Agent Skills specification. Use when asked to "create a skill", "add a new skill", "write a skill", "make a skill", "build a skill", or scaffold a new skill with SKILL.md. Guides through requirements, writing, registration, and verification.

    Also in 3 projects that use this

  • +2 more from mcollina

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 22 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    With argument: Use specified skill path directly.

    line 27
  2. Very specific:

    Read the target SKILL.md

    line 36
  3. Distinctive:

    Output language: Follow detected skill language.

    line 70

“Common” is measured: kept by at least 6 in 10 of the 22 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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:

  1. Scan skills/ directory for SKILL.md files
  2. List found skills with names
  3. Let user select via AskUserQuestion

Phase 2: Analysis

  1. Read the target SKILL.md
  2. Auto-detect language from content (Japanese/English)
  3. Analyze from these perspectives:
CategoryPointsCheck Items
Frontmatter20YAML syntax, name/description required, security constraints
Description25Includes both WHAT and WHEN (the situation or intent), specificity
Structure20Progressive Disclosure, SKILL.md size (under 5000 words)
Content20Error handling, examples, clear instructions
Additional15references/ usage, MCP integration (if applicable)
  1. 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)
  2. 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:

  1. Maintain original style (writing style, terminology, tone)
  2. Output in detected language
  3. Overwrite original directory (git recovery possible)
  4. Display updated score after execution

Edge Cases

CaseResponse
YAML errorPropose fix as "improvement"
Wrong filenamePropose rename as "improvement"
No improvement neededShow score only, report "no issues"
Mixed Japanese/EnglishDetect main language, unify output
Multiple language templatesOptimize each in respective language

Analysis Details

Frontmatter Checks (20 points)

  • --- delimiters present
  • name field exists and is kebab-case
  • description field exists
  • No XML tags (< >)
  • No "claude" or "anthropic" prefix in name
  • Valid YAML syntax

Description Checks (25 points)

  • Includes WHAT (what the skill does)
  • Includes WHEN (the situation or user intent; quoted phrases are optional)
  • Under 1024 characters
  • Not too vague ("Helps with projects" is bad)
  • Mentions relevant file types if applicable

Structure Checks (20 points)

  • SKILL.md under 5000 words
  • Uses Progressive Disclosure (references/ for detailed docs)
  • The key instruction and its reason appear early
  • Uses clear headers; emphasis only on a tested, scoped constraint, with its reason
  • Bullet points and numbered lists for clarity

Content Checks (20 points)

  • Error handling included
  • Examples provided
  • Instructions are specific and actionable
  • References clearly linked
  • No ambiguous language

Additional Checks (15 points)

  • references/ used appropriately for large skills
  • MCP tool names correct (if applicable)
  • Validation steps included (if applicable)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.