NachschlagenQuellenregister

Dokumentationerreichbar

Anthropic, Extend Claude with skills

code.claude.com (externe Seite)

Die Her­stel­ler­do­ku­men­ta­tion zu Skills, den abrufbaren Arbeits­an­wei­sungen neben dem Modell. Sie liefert das Kostenargument dieses Kapitels: Der Rumpf eines Skills lädt erst beim Gebrauch, umfangreiches Nach­schla­ge­ma­te­rial kostet also bis dahin fast nichts, und sobald er geladen ist, bleibt er über die folgenden Runden stehen. Dazu die Steuerung darüber, wer ihn aufrufen darf, und der Maßstab für die Wirkung: Dass ein Skill anspringt, heißt nur, dass er gefunden wurde.

geprüft 17.11.2026

Worauf sich diese Seite beruft, wörtlich, abgerufen am 04.08.2026:

  • Create a skill when you keep pasting the same instructions, checklist, or multi-step procedure into chat, or when a section of CLAUDE.md has grown into a procedure rather than a fact.bestätigt 17.11.2026
  • Unlike CLAUDE.md content, a skill's body loads only when it's used, so long reference material costs almost nothing until you need it.bestätigt 17.11.2026
  • Once a skill loads, its content stays in context across turnsbestätigt 17.11.2026
  • You don't want Claude deciding to deploy because your code looks ready.bestätigt 17.11.2026
  • Seeing a skill trigger tells you Claude found it, not that it did what you intended.bestätigt 17.11.2026
  • A fresh session matters because leftover context from authoring the skill will mask gaps in the written instructions.bestätigt 17.11.2026
  • The budget scales at 1% of the model's context window.bestätigt 17.11.2026
  • When the listing overflows, Claude Code drops descriptions starting with the skills you invoke least, so the skills you use most keep their full text.bestätigt 17.11.2026
  • When the conversation is summarized to free context, Claude Code re-attaches the most recent invocation of each skill after the summary, keeping the first 5,000 tokens of each.bestätigt 17.11.2026
  • Claude Code runs a hook every time its event occurs, such as before each file edit, whether or not Claude is following the skill.bestätigt 17.11.2026
  • Claude reports its findings first and asks for confirmation before changing anything.bestätigt 17.11.2026
  • Despite the name, a skill with context: fork doesn’t run in a fork of the current conversationbestätigt 17.11.2026
  • The subagent doesn’t see your conversation history, so the skill’s instructions have to stand on their own.bestätigt 17.11.2026
  • Claude uses skills when relevant, or you can invoke one directly withbestätigt 17.11.2026
  • Every skill needs a SKILL.md file with two parts: YAML frontmatter between --- markers that tells Claude when to use the skill, and markdown content with the instructions Claude follows when the skill runs.bestätigt 17.11.2026
  • The directory name, or the frontmatter name when you set one, becomes the command you type, and the description helps Claude decide when to load the skill automatically.bestätigt 17.11.2026
  • Keep SKILL.md under 500 lines.bestätigt 17.11.2026
  • Custom commands have been merged into skills.bestätigt 17.11.2026
  • both create /deploy and work the same way.steht dort nicht mehr
  • Your existing .claude/commands/ files keep working.bestätigt 17.11.2026
  • a Markdown file in .claude/commands/ is the older format and still works.bestätigt 17.11.2026
  • Skills add optional features: a directory for supporting filessteht dort nicht mehr
  • By default, both you and Claude can invoke any skill.bestätigt 17.11.2026
  • After plain text, the name gives Claude permission to run the skill but doesn’t run itbestätigt 17.11.2026
  • To write about the skill without permitting a run, leave off the slash.bestätigt 17.11.2026
  • If Claude tries anyway, Claude Code blocks the call and instructs it not to reproduce the deploy steps another waysteht dort nicht mehr
  • Where you save a skill decides which sessions load it.bestätigt 17.11.2026
  • Enterprise over personal, and personal over project.bestätigt 17.11.2026
  • Your skill replaces the bundled command, but not its aliases.bestätigt 17.11.2026
  • don’t read ~/.claude/skills/ on your machine.bestätigt 17.11.2026
  • Bundled skills are prompt-based: they give Claude detailed instructions and let it orchestrate the work using its tools.bestätigt 17.11.2026
  • Most built-in commands instead execute fixed logic directly.bestätigt 17.11.2026
  • run only when you invoke them.steht dort nicht mehr
  • Claude Code runs the command and replaces the line with its output before Claude sees the skill contentbestätigt 17.11.2026
  • the rendered SKILL.md content enters the conversation as a single message and stays there across later turns.bestätigt 17.11.2026
  • Claude Code does not re-read the skill file on later turnsbestätigt 17.11.2026
  • All fields are optional. Only description is recommended so Claude knows when to use the skill.bestätigt 17.11.2026
  • Claude Code ignores a field it doesn’t recognize without reporting an error.bestätigt 17.11.2026
  • the combined description and when_to_use text is truncated at 1,536 characters in the skill listing to reduce context usage.bestätigt 17.11.2026
  • When set, Claude loads the skill automatically only when working with files matching the patterns.bestätigt 17.11.2026
  • Indexed arguments use shell-style quoting, so wrap multi-word values in quotes to pass them as a single argument.bestätigt 17.11.2026
  • If you invoke a skill with arguments but no placeholder in the skill’s content receives one, Claude Code appendsbestätigt 17.11.2026
  • you can stack several skills at the start of one message.bestätigt 17.11.2026
  • Through the Agent SDK or claude -p, Claude Code loads only the first skill, with the rest of the line as its arguments.bestätigt 17.11.2026
  • doesn’t attach the files that @ references name the way it does for a local skillsteht dort nicht mehr
  • include ultrathink anywhere in the skill content.bestätigt 17.11.2026
  • Claude never sees the skill content for that invocation.bestätigt 17.11.2026
  • With the default bash shell, any non-zero exit code counts as a failure.bestätigt 17.11.2026
  • Claude Code treats exit code 1 from search and comparison commands as a normal result and injects their output.bestätigt 17.11.2026
  • Injected commands never prompt for permission while the skill renders.bestätigt 17.11.2026
  • A command a deny rule matches aborts the invocationbestätigt 17.11.2026
  • when a command’s permission check returns anything other than allow, Claude Code aborts the invocation with the same error.steht dort nicht mehr
  • In auto mode, a command that would otherwise need your approval doesn’t abort the invocation.bestätigt 17.11.2026
  • Bundled and managed skills are not affected.bestätigt 17.11.2026
  • The directory containing the skill’s SKILL.md file.bestätigt 17.11.2026
  • Using the same variable in both places lets a skill run a bundled script without a permission prompt.bestätigt 17.11.2026
  • Claude Code starts a new subagent of the type set in the agent field and gives it the skill content as its prompt.bestätigt 17.11.2026
  • only makes sense for skills with explicit instructions.bestätigt 17.11.2026
  • The built-in Explore and Plan agents start without CLAUDE.md and git status to keep their context smallbestätigt 17.11.2026
  • you keep working while it runs, and its result arrives in your conversation when it completes.bestätigt 17.11.2026
  • in the frontmatter to instead wait for the result in the turn that invoked the skill.bestätigt 17.11.2026
  • A backgrounded fork also runs with the narrower tool set that applies to background subagentsbestätigt 17.11.2026
  • applies its edits outside your session’s checkpoints.bestätigt 17.11.2026
  • /rewind restores only the files Claude had already edited in your conversation.bestätigt 17.11.2026
  • The skill’s edits to other files stay, so use git to revert them.bestätigt 17.11.2026
  • The override applies for the rest of the current turn and isn’t saved to settings.bestätigt 17.11.2026
  • Overrides the session effort level, but not the CLAUDE_CODE_EFFORT_LEVEL environment variable.bestätigt 17.11.2026
  • The allowed-tools field grants permission for the listed tools during the turn that invokes the skillbestätigt 17.11.2026
  • The grant clears when you send your next message.bestätigt 17.11.2026
  • It does not restrict which tools are availablebestätigt 17.11.2026
  • Workspace trust doesn’t gate this field.steht dort nicht mehr
  • A skill can grant itself broad tool access, so review the allowed-tools of skills checked into a repository before you run Claude Code there.bestätigt 17.11.2026
  • Claude Code ignores allowed-tools in project and personal skillsbestätigt 17.11.2026
  • Permission syntax: Skill(name) for exact match, Skill(name *) for prefix match with any arguments.bestätigt 17.11.2026
  • The skillOverrides setting controls skill visibility from your settings instead of the skill’s own frontmatter.bestätigt 17.11.2026
  • highlight a skill and press Space to cycle states, then Esc to save tobestätigt 17.11.2026
  • Manage those through /plugin instead.bestätigt 17.11.2026
  • Claude Code picks up the change within the current session, without a restart.bestätigt 17.11.2026
  • Live change detection covers SKILL.md text only.steht dort nicht mehr
  • If you create a top-level skills directory that didn’t exist when the session started, runbestätigt 17.11.2026
  • Run /skill-doctor to see what each of your skills costs and how often it gets used, so you can decide which ones to turn off.bestätigt 17.11.2026
  • requires Claude Code v2.1.252 or later and isn’t available in sessions that skipbestätigt 17.11.2026
  • Claude Code loads project skills from .claude/skills/ in the directory where you start it and in every parent directory up to the repository rootbestätigt 17.11.2026
  • Skills in a .claude/skills/ directory below where you started don’t load at startup.bestätigt 17.11.2026
  • They load the first time Claude reads or edits a file in that subdirectory and stay available for the rest of the session.bestätigt 17.11.2026
  • Until then they don’t appear in the / menu and you can’t invoke them by name.bestätigt 17.11.2026
  • grants file access only and loads none of these.bestätigt 17.11.2026
  • When the session starts, Claude Code downloads your account’s skills into ~/.claude/skills/synced/ in the backgroundbestätigt 17.11.2026
  • Claude Code syncs only in a session that signs in with your claude.ai accountbestätigt 17.11.2026
  • Claude Code downloads synced skills and never uploads them.bestätigt 17.11.2026
  • To stop syncing on a machine, set syncClaudeAiSkills to false in your user settings.bestätigt 17.11.2026
  • skill loads Claude API and Managed Agents reference material for your project’s language.bestätigt 17.11.2026
  • Claude also activates it automatically when your code importsbestätigt 17.11.2026
  • Claude Code extends the standard with additional features likebestätigt 17.11.2026
  • Outside Claude Code, you can use only the fields in the Agent Skills specbestätigt 17.11.2026
  • If you include any field the spec doesn’t allow, packaging or upload fails with a hard error instead of ignoring the fieldbestätigt 17.11.2026
  • don’t function in claude.ai chat or through the API.bestätigt 17.11.2026
  • When a session starts with a skill named verify or simplify in place, Claude Code’s commit instructions tell Claude to run it right before each commit, except for changes to docs or tests.bestätigt 17.11.2026
  • The directory name also invokes the skill.bestätigt 17.11.2026
  • the bundled alias /review never runs your skillbestätigt 17.11.2026
  • In a local terminal session, your skill replaces the built-in command, but not its aliases.bestätigt 17.11.2026
  • The invocation still aborts in a forked skill that sets agentbestätigt 17.11.2026
  • a later sync can overwrite or remove it.bestätigt 17.11.2026
  • Build and run your app to confirm a code change does what it should, without falling back to tests or type checksbestätigt 17.11.2026
  • That inference gets unreliable for projects that need anything beyond a standard launchbestätigt 17.11.2026
  • /run-skill-generator records the recipe instead.bestätigt 17.11.2026
  • At the repo root, the recorded skill replaces the bundled /verifybestätigt 17.11.2026
  • Claude edits the recorded file only when it steered a run wrongbestätigt 17.11.2026
  • The recipe that /verify records at your repo root is a project skill, so it counts.bestätigt 17.11.2026
  • Set to true to prevent Claude from automatically loading this skill. Use for workflows you want to trigger manually withbestätigt 17.11.2026
  • Also prevents the skill from being preloaded into subagents and from running when a session-scoped scheduled task fires with the skill as its prompt.bestätigt 17.11.2026
  • To remove tools from Claude’s available pool while a skill is active, list them in disallowed-tools in the skill’s frontmatter.bestätigt 17.11.2026
  • The restriction clears when you send your next message.bestätigt 17.11.2026
  • skills your organization provides there, and Anthropic’s built-in skills such asbestätigt 17.11.2026
  • That hook applies from the time the skill is invoked until the session ends.bestätigt 17.11.2026
  • invoke the skill again to restore its full contentbestätigt 17.11.2026
  • Run /doctor for an estimate of the listing’s context cost and its biggest contributors.bestätigt 17.11.2026
  • setup checkup stays typable when disableBundledSkills is on.bestätigt 17.11.2026
  • Claude Code accepts the field but doesn’t act on it.bestätigt 17.11.2026
  • Claude Code searches parent directories only up to the worktree root.bestätigt 17.11.2026
  • gets a prefix when its folder name clashes with an enterprise, personal, or project skillbestätigt 17.11.2026
  • The usage check requires Claude Code v2.1.305 or later, and /doctor leaves it out while Remote Control is connected.bestätigt 17.11.2026
  • last 7 daysbestätigt 17.11.2026
  • use square brackets or argument-hintbestätigt 17.11.2026
  • A custom command or skill doesn’t load when Claude Code refuses its directory or file name.bestätigt 17.11.2026
  • a personal or project skill whose frontmatter declares hooks loses its allowed-tools pre-approvalbestätigt 17.11.2026
  • because its hooks don’t run under that settingbestätigt 17.11.2026
  • To keep them, move the skill into a plugin that you install from a marketplace.bestätigt 17.11.2026
  • don’t name a skill folder synced, in any capitalization.bestätigt 17.11.2026
  • such as one that authenticates with an API keybestätigt 17.11.2026
  • A session that doesn’t fetch feature flags, such as one on Amazon Bedrockbestätigt 17.11.2026
  • A session in bare mode or one you start with --safe-modebestätigt 17.11.2026

Skill im Glossar02 Die erste Sitzung10 Texte und Dateien in Ordnern11 Eine Wissensbasis aufbauen12 Hooks und Skills13 Subagenten und Schleifen17 Skills und Befehle24 Test und Spezifikation zuerst25 Prüfen und Review31 Der Harness

Alle Quellen

↑↓ auswählenEnter öffnenDie Suche läuft im Browser. Nichts wird übertragen.