/harness:optimize-skillsfrom harness
Creates, reviews, and improves SKILL.md files for correct triggering, concise content, and reliable execution. Use when building new skills or fixing under/over-triggering.
Ships in harness. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Use this skill to create, review, or improve SKILL.md-based skills so they trigger correctly, stay concise, and execute reliably.
Write SKILL.md and its resources in the voice of a professional technical writer.
Prefer ASD-STE100 Simplified Technical English: short sentences, one instruction per sentence, active voice, and one term per concept.
Restrict modals to can, will, and must — should, may, and might leave the agent deciding whether a step is optional.
Keep identifiers, commands, paths, and tool names exact.
references/ instead.## Overview, ## When to Use, optional ## When Not to Use, then ## Invocation Notice.
The reader decides whether the skill applies before reading how it announces itself.
Place any remaining sections after the notice.assets/skill-template.md writes it, with the skill name in backticks.
It tells a user who did not ask for the skill which one is driving the reply, so it is skipped only when the user asked for the skill itself.
Keep the trigger-phrase clause: without it an agent reads its own trigger list as a name and suppresses the notice on the invocations that most need it.SKILL.md, references/, assets/, and scripts/.optimize-skills.
Skip the notice when the user asked for the skill by name or slash command; spelling and spacing need not match.
A phrase from this skill's own trigger list is not a name — naming the work is not naming the skill.A skill is a reference guide for proven techniques, patterns, or tools, typically classed as procedural knowledge or best practices. Skills help future Agent instances find and apply effective approaches.
Skills are: Reusable techniques, patterns, tools, reference guides
Skills are NOT: Narratives about how you solved a problem once
Create when:
Don't create for:
SKILL.md and related resources as baseline.name and description.description and ## When to Use (and ## When Not to Use when helpful).references/, assets/, or scripts/ and link from SKILL.md.references/best-practices.md and references/skills-search-optimization.md.
Then run scenario and functional checks against realistic prompts.SKILL.md sections into resources where appropriate.references/.references/.description/## When to Use, not pasted verbatim?
If not, convert.references/skills-search-optimization.md).description and ## When to Use.SKILL.md under 500 lines and focused on action.name + description): small startup footprint, ideally ~100 tokens.SKILL.md: keep actionable and concise, target <5000 tokens and <500 lines.scripts/, references/, assets/: loaded only when needed; keep files narrow so agents pull less context.digraph when_flowchart {
"Need to show process guidance?" [shape=diamond];
"Non-obvious decision or loop?" [shape=diamond];
"Use markdown (list/table/code)" [shape=box];
"Use small inline DOT flowchart" [shape=box];
"Need to show process guidance?" -> "Non-obvious decision or loop?" [label="yes"];
"Need to show process guidance?" -> "Use markdown (list/table/code)" [label="no"];
"Non-obvious decision or loop?" -> "Use small inline DOT flowchart" [label="yes"];
"Non-obvious decision or loop?" -> "Use markdown (list/table/code)" [label="no"];
}
references/graphviz-conventions.dot for node shapes and labels.Render DOT to SVG with scripts/render_dot.py.
Output SVGs are written to the target skill's assets/ directory.
scripts/render_dot.py skills/optimize-skills/references/skill-workflow.dot
scripts/render_dot.py skills/optimize-skills/SKILL.md
scripts/render_dot.py skills/optimize-skills/SKILL.md --force # overwrite existing SVGs
skills/
skill-name/
SKILL.md # Main reference (required)
assets/ # (optional) Static reusable resources such as templates or figures
references/ # (optional) On-demand documentation, organized by topic or variant
scripts/ # (optional) Executable helpers for deterministic tasks;
# scripts should be self-contained or clearly declare dependencies,
# include clear errors, and handle edge cases.
SKILL.md.name in frontmatter.name and description fields.name must be kebab-case and match the folder name.description should emphasize when to use the skill and include triggers/symptoms.## When to Use / ## When Not to Use for trigger cues; do not add a dedicated trigger-scenarios section unless explicitly requested by the repo.assets/skill-template.md for a suggested (but easily modified) template structure.description instead of stating actionable triggers and symptoms.description and ## When to Use.SKILL.md instead of linking to references/.assets/skill-template.md for a suggested SKILL.md structure.references/best-practices.md: checklists, structure guidance, testing, and troubleshooting patterns.references/skills-search-optimization.md: description and trigger optimization rules.references/skill-workflow.dot: canonical workflow for this skill.references/graphviz-conventions.dot: DOT style and semantics for workflow diagrams.ATTRIBUTION.md (opens in a new tab)assets/flowchart-guidance.svg (opens in a new tab)assets/flowchart-usage.svg (opens in a new tab)assets/graphviz-conventions.svg (opens in a new tab)assets/skill-template.md (opens in a new tab)assets/skill-workflow.svg (opens in a new tab)references/best-practices.md (opens in a new tab)references/graphviz-conventions.dot (opens in a new tab)references/skill-workflow.dot (opens in a new tab)references/skills-search-optimization.md (opens in a new tab)scripts/render_dot.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
2 skills in this plugin
Other plugins' skills for the same job
npx claudepluginhub ahgraber/skills --plugin harness