Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

skill-optimization

БесплатноБез исполняемых скриптовНе проверен

Evaluates and optimizes skill file quality using 9 content patterns and 10 editing principles. Use when creating skills, refining skill content, or auditing…

shinprот shinpr★ 239 звёзд на GitHub

Об этом скилле

Skill Content Optimization

Core Philosophy

  1. Finding-Based: Every change resolves a recorded issue or follows a named project-specific source
  2. Concrete: Each pattern provides detection criteria and transform methods
  3. Structure-Focused: Optimizes expression and organization; domain knowledge remains unchanged
  4. Intent-Preserving: Records the original requirements before changing structure, wording, constraints, context, or examples
  5. Traceable: Connects every applied change to a finding or named project source
  6. Self-Contained: Keeps every pure skill executable when loaded alone; duplication across independently loaded pure skills is valid when each copy is required for standalone execution

Content Optimization Patterns

P1: Critical (Must Fix)

Issues that directly reduce LLM execution accuracy when consuming the skill.

BP-001: Negative Instructions → Positive Form

Detection Transform
"don't", "do not", "never", "avoid" in skill instructions State the desired action or allowed state first. Preserve an explicit prohibition only when the violation is an irreversible operational action, the caller cannot normally recover it, and a positive-only rewrite would blur the boundary. Pair the prohibition with the safe alternative and the condition that authorizes crossing the boundary. Rewrite reviewable quality policies in positive form.

Exception boundary examples:

  • Permitted: "Move obsolete records to the recoverable archive. Do not permanently delete them unless the user explicitly authorizes permanent deletion."
  • Rewrite in positive form: "Do not invent issues" → "Base every issue on BP patterns or 10 principles", "Do not skip P1 issues" → "Evaluate all P1 issues in every review mode", "Do not give grade A when P1 exists" → "Assign grade A only when P1 count is zero"

Quality policies, role boundaries, scoring criteria, and general work rules always use positive form. Outputs that the caller validates, overwrites, or discards are never irreversible.

Skill example:

  • Before: "Don't use generic variable names"
  • After: "Use descriptive variable names that reflect purpose (e.g., userId not x)"

Why critical for skills: A prohibition alone leaves the executable target state unspecified.

BP-002: Vague Instructions → Specific Criteria

Detection Transform
Vague term ("appropriate", "good", "proper", "best", "should be clear") that leaves a decision the intended outcome requires, where plausible interpretations would materially change execution or verification Resolve it with the least-restrictive sufficient criterion, following the resolution steps below
Unspecified format, length, scope, tone, or success criteria whose plausible interpretations satisfy the intended outcome equally well Treat as acceptable flexibility; add a constraint only when one interpretation is required (for a format a downstream consumer requires, see BP-003)

Resolution steps (first-row findings):

  1. Choose the least-restrictive sufficient criterion — the measurable if-then rule or threshold that supplies the required precision while excluding the fewest valid behaviors.
  2. Record its precision contribution: the observable output difference it improves for the intended outcome.
  3. Record its constraint cost: the valid solutions allowed by the original intent that it excludes.
  4. Apply it only when the precision contribution is identifiable and the constraint cost preserves the original intent.
  5. When input or project context cannot determine the decision, record the required source instead of guessing.

Skill exception: Expressions that the LLM can resolve unambiguously from input context (e.g., "where the user left gaps" when the user's prompt is available for comparison) are not vague — they describe a deterministic operation, not a subjective judgment.

Skill example:

  • Before: "Handle errors appropriately"
  • After (criteria derived from a named source): "Follow the project error-handling policy (docs/error-handling.md): wrap external API calls, file I/O, and JSON.parse in try-catch; log error.name, error.stack, and timestamp; re-throw with context when the caller must handle it."
  • After (no source available): "Record 'error-handling policy' as the required source instead of inventing try-catch targets, log fields, or thresholds."

Why critical for skills: A vague instruction forces the model to choose an outcome-relevant behavior without a supplied criterion.

BP-003: Missing Output Format → Structured Output

Detection Transform
Skill describes what to do but not the expected deliverable format Add an output section defining the structure, fields, and ordering required by the output consumer (parsing, routing, comparison, verification), rather than selecting a format by convention

For a skill review, the ou

Полный SKILL.md на GitHub

Установить skill-optimization в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/creation-guide.mdreferences/review-criteria.md

FAQ

Что делает скилл skill-optimization?

Evaluates and optimizes skill file quality using 9 content patterns and 10 editing principles. Use when creating skills, refining skill content, or auditing skill quality.

Как установить скилл skill-optimization?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл skill-optimization запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить skill-optimization с