/ Каталог / Песочница / skill-optimizer
● Сообщество hqhq1025 ⚡ Сразу

skill-optimizer

автор 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).

Зачем использовать

Ключевые функции

Живое демо

Как выглядит на практике

skill-optimizer-skill.replay ▶ готово
0/0

Установка

Выберите клиент

~/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
    }
  }
}

Откройте Claude Desktop → Settings → Developer → Edit Config. Перезапустите после сохранения.

~/.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 использует ту же схему mcpServers, что и Claude Desktop. Конфиг проекта приоритетнее глобального.

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
    }
  }
}

Щёлкните значок MCP Servers на боковой панели Cline, затем "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
    }
  }
}

Тот же формат, что и Claude Desktop. Перезапустите Windsurf для применения.

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

Continue использует массив объектов серверов, а не 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"
        ]
      }
    }
  }
}

Добавьте в context_servers. Zed перезагружается автоматически.

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

Однострочная команда. Проверить: claude mcp list. Удалить: claude mcp remove.

Сценарии использования

Реальные сценарии: skill-optimizer

How to diagnose and fix one underperforming skill

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

Когда использовать: You notice one skill never activates, or activates wrongly.

Предварительные требования
  • 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
Поток
  1. Point it at the skill
    Analyze ~/.claude/skills/my-skill/SKILL.md using my last 2 weeks of session logs.✓ Скопировано
    → Static + runtime findings
  2. Review the patch
    Show me the proposed SKILL.md diff.✓ Скопировано
    → Minimal, reviewable diff
  3. Apply and validate
    Apply the patch and tell me what to watch for this week.✓ Скопировано
    → Validation checklist

Итог: A targeted improvement with an accountability plan.

Подводные камни
  • Optimizing for activation rate but breaking scope — Include a 'false positive rate' acceptance metric
Сочетать с: skillcompass-skill

Polish your first SKILL.md before publishing

👤 First-time skill authors ⏱ ~20 min beginner

Когда использовать: You wrote a SKILL.md and want expert review before shipping.

Поток
  1. Ask for a review
    Review my SKILL.md against skill-optimizer's static checks.✓ Скопировано
    → Checklist with pass/fail + rationale
  2. Fix issues
    Apply the fixes and show me the final version.✓ Скопировано
    → Clean SKILL.md

Итог: A ship-ready SKILL.md.

Подводные камни
  • Over-promising in the description — Be specific about what the skill does; Claude uses it to decide activation

Комбинации

Сочетайте с другими MCP — эффект x10

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.✓ Скопировано
skill-optimizer-skill + filesystem

Apply SKILL.md patches directly

Apply the proposed diff to ~/.claude/skills/my-skill/SKILL.md.✓ Скопировано

Инструменты

Что предоставляет этот MCP

ИнструментВходные данныеКогда вызыватьСтоимость
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

Стоимость и лимиты

Во что обходится

Квота API
none beyond LLM
Токенов на вызов
2–10k per skill analysis
Деньги
free
Совет
Static analysis is nearly free; log analysis costs more — run it only when iterating

Безопасность

Права, секреты, радиус поражения

Хранение учётных данных: none; logs may contain sensitive prompts — treat their path carefully
Исходящий трафик: none

Устранение неполадок

Частые ошибки и исправления

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

Альтернативы

skill-optimizer в сравнении

АльтернативаКогда использоватьКомпромисс
skillcompass-skillYou need bundle-level ranking, not single-skill depthBreadth over depth

Ещё

Ресурсы

📖 Читать официальный README на GitHub

🐙 Открытые задачи

🔍 Все 400+ MCP-серверов и Skills