/ Diretório / Playground / skill-optimizer
● Comunidade hqhq1025 ⚡ Instantâneo

skill-optimizer

por hqhq1025 · hqhq1025/skill-optimizer

Audit a single SKILL.md using real session data plus static analysis — tells you exactly what to change.

skill-optimizer looks at a SKILL.md through two lenses: (1) session logs — did it activate when expected, was the output useful — and (2) static analysis — is the frontmatter clean, is the description properly intent-scoped, are examples calibrated. It outputs concrete edits you can apply. Pairs well with SkillCompass (which does bundle-level ranking).

Por que usar

Principais recursos

Demo ao vivo

Como fica na prática

skill-optimizer-skill.replay ▶ pronto
0/0

Instalar

Escolha seu cliente

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "skill-optimizer-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/hqhq1025/skill-optimizer",
        "~/.claude/skills/skill-optimizer"
      ],
      "_inferred": true
    }
  }
}

Abra Claude Desktop → Settings → Developer → Edit Config. Reinicie após salvar.

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "skill-optimizer-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/hqhq1025/skill-optimizer",
        "~/.claude/skills/skill-optimizer"
      ],
      "_inferred": true
    }
  }
}

Cursor usa o mesmo esquema mcpServers que o Claude Desktop. Config de projeto vence a global.

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "skill-optimizer-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/hqhq1025/skill-optimizer",
        "~/.claude/skills/skill-optimizer"
      ],
      "_inferred": true
    }
  }
}

Clique no ícone MCP Servers na barra lateral do Cline, depois "Edit Configuration".

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "skill-optimizer-skill": {
      "command": "git",
      "args": [
        "clone",
        "https://github.com/hqhq1025/skill-optimizer",
        "~/.claude/skills/skill-optimizer"
      ],
      "_inferred": true
    }
  }
}

Mesmo formato do Claude Desktop. Reinicie o Windsurf para aplicar.

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "skill-optimizer-skill",
      "command": "git",
      "args": [
        "clone",
        "https://github.com/hqhq1025/skill-optimizer",
        "~/.claude/skills/skill-optimizer"
      ]
    }
  ]
}

O Continue usa um array de objetos de servidor em vez de um map.

~/.config/zed/settings.json
{
  "context_servers": {
    "skill-optimizer-skill": {
      "command": {
        "path": "git",
        "args": [
          "clone",
          "https://github.com/hqhq1025/skill-optimizer",
          "~/.claude/skills/skill-optimizer"
        ]
      }
    }
  }
}

Adicione em context_servers. Zed recarrega automaticamente ao salvar.

claude mcp add skill-optimizer-skill -- git clone https://github.com/hqhq1025/skill-optimizer ~/.claude/skills/skill-optimizer

Uma linha só. Verifique com claude mcp list. Remova com claude mcp remove.

Casos de uso

Usos do mundo real: skill-optimizer

How to diagnose and fix one underperforming skill

👤 Skill authors iterating on a specific skill ⏱ ~30 min intermediate

Quando usar: You notice one skill never activates, or activates wrongly.

Pré-requisitos
  • Session logs or transcripts — Claude Code stores traces locally; skill-optimizer reads them
  • Skill cloned — git clone https://github.com/hqhq1025/skill-optimizer ~/.claude/skills/skill-optimizer
Fluxo
  1. Point it at the skill
    Analyze ~/.claude/skills/my-skill/SKILL.md using my last 2 weeks of session logs.✓ Copiado
    → Static + runtime findings
  2. Review the patch
    Show me the proposed SKILL.md diff.✓ Copiado
    → Minimal, reviewable diff
  3. Apply and validate
    Apply the patch and tell me what to watch for this week.✓ Copiado
    → Validation checklist

Resultado: A targeted improvement with an accountability plan.

Armadilhas
  • Optimizing for activation rate but breaking scope — Include a 'false positive rate' acceptance metric
Combine com: skillcompass-skill

Polish your first SKILL.md before publishing

👤 First-time skill authors ⏱ ~20 min beginner

Quando usar: You wrote a SKILL.md and want expert review before shipping.

Fluxo
  1. Ask for a review
    Review my SKILL.md against skill-optimizer's static checks.✓ Copiado
    → Checklist with pass/fail + rationale
  2. Fix issues
    Apply the fixes and show me the final version.✓ Copiado
    → Clean SKILL.md

Resultado: A ship-ready SKILL.md.

Armadilhas
  • Over-promising in the description — Be specific about what the skill does; Claude uses it to decide activation

Combinações

Combine com outros MCPs para 10× de alavancagem

skill-optimizer-skill + skillcompass-skill

SkillCompass ranks the bundle; skill-optimizer dives into the worst offender

Use SkillCompass to pick the weakest skill, then optimize its SKILL.md.✓ Copiado
skill-optimizer-skill + filesystem

Apply SKILL.md patches directly

Apply the proposed diff to ~/.claude/skills/my-skill/SKILL.md.✓ Copiado

Ferramentas

O que este MCP expõe

FerramentaEntradasQuando chamarCusto
static-analysis SKILL.md path Before publishing or during iteration 0
log-based-analysis logs + skill path Post-use tuning 0
patch-generation findings After analysis 0

Custo e limites

O que custa rodar

Cota de API
none beyond LLM
Tokens por chamada
2–10k per skill analysis
Monetário
free
Dica
Static analysis is nearly free; log analysis costs more — run it only when iterating

Segurança

Permissões, segredos, alcance

Armazenamento de credenciais: none; logs may contain sensitive prompts — treat their path carefully
Saída de dados: none

Solução de problemas

Erros comuns e correções

No logs found

Confirm Claude Code trace path; pass the path explicitly if non-default.

Suggestions conflict with intended scope

Tell the optimizer your scope constraints; it can respect non-goals

Alternativas

skill-optimizer vs. outros

AlternativaQuando usarTroca
skillcompass-skillYou need bundle-level ranking, not single-skill depthBreadth over depth

Mais

Recursos

📖 Leia o README oficial no GitHub

🐙 Ver issues abertas

🔍 Ver todos os 400+ servidores MCP e Skills