claude-code:skill

A guide for creating and improving Claude Code skills, which are instruction packages that teach an agent when and how to perform a task. It covers activation rules, file structure, development, and validation.

In plain words
What is it for?
Creating skills, converting notes into skills, debugging activation, checking skill folders, and validating skill instructions.
Why use it?
It helps skills activate in the right situations and follow the expected structure. Checks can catch invalid metadata, naming problems, and misplaced files.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/bendrucker/claude/skill
Any agent
npx skills add bendrucker/claude --skill skill
Clone the repo
git clone --depth 1 https://github.com/bendrucker/claude

Made for: Claude Code, Codex.

Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,553 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00047 $0.02553
Opus 5 $0.00023 $0.01277
Sonnet 5 $0.00009 $0.00511
Haiku 4.5 $0.00005 $0.00255

Measured 2d ago against content hash f605bdfb2d98, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

claude-code:skill scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

The scan reads SKILL.md. This mod also ships 20 executable files (scripts/check-lint.test.ts, scripts/check-lint.ts, scripts/check-namespace.test.ts, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/claude-code/skills/skill/SKILL.md · 201 lines

How it starts

The opening of the file, as written. The whole thing — 201 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Claude Code Skills Development

Reference for developing effective skills.

Arguments

Run a check against a skill path in $ARGUMENTS, defaulting to the skill you just edited:

  • --validate: run skill-lint (see Validation) for frontmatter, naming, and reference-depth validation.
  • --structure: run the directory-structure check (${CLAUDE_SKILL_DIR}/scripts/check-structure.ts) for the SKILL.md, scripts/, references/, assets/ layout.

With neither flag, use the skill as an authoring reference. See Validation.

Skill Structure

---
name: plugin-name:skill-name
description: Third-person capability description with trigger terms
argument-hint: "[--flag] [<positional>]"
allowed-tools: [Read, Grep, Glob]
model: sonnet
effort: low
context: fork
agent: Explore
background: false
user-invocable: false
hooks:
  PreToolUse:
    - matcher: "Bash"
      hooks:
        - type: command
          command: "./scripts/validate.sh"
          once: true
---
Required Fields
  • name: Lowercase letters, numbers, hyphens only (max 64 chars). See Naming.
  • description: Third-person, includes trigger terms and use cases (max 1024 chars).
Optional Fields
  • argument-hint: Arguments the skill accepts, shown in the slash menu after the skill name. See Argument Hints.
  • allowed-tools: Tools Claude can use without permission when skill is active
  • model: Override the conversation's model. Prefer a tier alias (haiku, sonnet, opus, fable) or inherit over a dated model ID.
  • effort: Reasoning effort while the skill is active. Pin low on mechanical skills such as monitoring, execution, and formatting. Defaults to the conversation's effort.
  • context: Set to fork to run in isolated subagent context
  • agent: Agent type when context: fork (Explore, Plan, general-purpose, or custom)
  • background: Only with context: fork. false waits for the fork's result in the invoking turn instead of backgrounding it. Default true.
  • user-invocable: Hide from slash menu when false (default: true)
  • disable-model-invocation: Block model (Skill-tool) invocation and drop the skill's name and description from the always-on catalog (zero recurring context cost); still slash-invocable. Opposite of user-invocable: false, which hides the slash menu but keeps the description loaded for the model.
  • hooks: Skill-scoped hooks (PreToolUse, PostToolUse, Stop)

Read the full file on GitHub · 201 lines

Files

What ships with it

32 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 201 lines · 47 tokens per session scan A f605bdfb2d98

Subscribe to this mod's changes

claude-code:skill is a skill published in the GitHub repository bendrucker/claude (16 stars, last pushed 2d ago), licensed MIT. It adds 47 tokens to every session and 2,553 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.