Back to PodcastsClaude
Claude Code skills
Creating your first skill
So, let's create a skill.
Erstellen wir ein skill.
This skill will teach Claude how we would like it to explain code using visual diagrams and analogies.
Dieses skill bringt Claude bei, Code mithilfe von visuellen Diagrammen und Analogien zu erklären.
[music]
[music]
Then, we'll look at what happens under the hood when Claude uses it.
Dann sehen wir, was im Hintergrund passiert, wenn Claude es nutzt.
First, [music] let's create a directory for your skill.
Zuerst, [music] erstellen Sie ein Verzeichnis für Ihr skill.
We're going to be making a personal skill, so it'll live in many projects, so it will go in your home directory.
Es ist ein persönliches skill für mehrere Projekte, daher kommt es ins Home-Verzeichnis.
Take into consideration that we're creating a directory with the skill name inside of the skills directory.
Beachten Sie, dass wir ein Verzeichnis mit dem skill-Namen innerhalb des skills-Verzeichnisses erstellen.
Now create the skill.
Erstellen Sie jetzt das skill.
The name identifies your skill.
Der Name identifiziert Ihr skill.
The description tells Claude when to use it.
Die description teilt Claude mit, wann es zu verwenden ist.
This is the matching criteria.
Das ist das Übereinstimmungskriterium.
And then everything after the second dashes is the instructions that Claude follows.
Alles nach den zweiten Trennzeichen sind die Anweisungen, denen Claude folgt.
Cloud code loads skills at startup.
Claude Code lädt skills beim Start.
So restart your session.
Starten Sie Ihre Sitzung neu.
Then verify it's available.
Prüfen Sie dann, ob es verfügbar ist.
You should see PR description in the list.
Sie sollten PR description in der Liste sehen.
Now test it.
Testen Sie es jetzt.
Make some changes on a branch and say, "Write a PR description for my changes."
Nehmen Sie Änderungen auf einem Branch vor und sagen Sie: Schreibe eine PR description für meine Änderungen.
Claude will then show you that it's using the PR description skill.
Claude zeigt an, dass es den PR description skill verwendet.
After that, it'll check your diff and write a description following your template.
Dann prüft es Ihren diff und schreibt eine Beschreibung nach Ihrer Vorlage.
Same format every single time.
Jedes Mal das gleiche Format.
When Cloud Code starts, it scans four locations for skills.
Beim Start scannt Claude Code vier Speicherorte nach skills.
Enterprise paths, your personal Claude skills, the project's Claude skills, and installed plugins.
Enterprise-Pfade, Ihre persönlichen Claude skills, die Claude skills des Projekts und installierte plugins.
It loads only the name and description of each skill, not the full content.
Es lädt nur den Namen und die Beschreibung jedes skills, nicht den vollständigen Inhalt.
This is important later.
Das ist später wichtig.
When you send a request, Claude compares it to the descriptions of your skills.
Wenn Sie eine Anfrage senden, vergleicht Claude sie mit den Beschreibungen Ihrer skills.
Explain what this function does matches a skill described as explain code with visual diagrams because the intent overlaps.
Erkläre, was diese Funktion tut, entspricht einem skill mit der Beschreibung Code mit visuellen Diagrammen erklären, weil die Absicht übereinstimmt.
It will then ask you to confirm loading up the skill.
Es fordert Sie dann auf, das Laden des skills zu bestätigen.
This confirmation step keeps you aware of what context Claude is using.
Dieser Bestätigungsschritt hält Sie darüber informiert, welchen Kontext Claude verwendet.
After you confirm, Claude reads the complete file and follows its instructions.
Nach der Bestätigung liest Claude die vollständige Datei und folgt ihren Anweisungen.
Now, let's say you clone a Git repository and have an overlapping skill name.
Angenommen, Sie klonen ein Git-Repository und haben einen gleichnamigen skill.
Well, which one wins?
Welcher gewinnt?
Here's the priority list.
Hier ist die Prioritätsliste.
The highest is enterprise, which lives in the manage settings.
Die höchste ist enterprise, die in den Verwaltungseinstellungen gespeichert ist.
Two is the personal, which lives in your root directory configuration like we're doing right now.
Zweite ist personal, die wie hier in der Root-Verzeichnis-Konfiguration liegt.
Three is the project which is the claw directory inside of your repository.
Dritte ist project, das .claude-Verzeichnis in Ihrem Repository.
And the lowest is the plugins where you store your plugins that you got online.
Die niedrigste sind plugins, wo Sie online erhaltene plugins speichern.
This lets organizations enforce standards while allowing individual customization through differently named skills.
Das ermöglicht Organisationen, Standards durchzusetzen und gleichzeitig individuelle Anpassungen durch unterschiedlich benannte skills zu erlauben.
If your company has an enterprise code review skill and you create a personal code review skill, the enterprise version of that takes precedence.
Hat Ihr Unternehmen ein enterprise-Code-Review-skill und Sie erstellen ein persönliches Code-Review-skill, hat die enterprise-Version Vorrang.
To avoid conflicts, use descriptive names.
Um Konflikte zu vermeiden, verwenden Sie beschreibende Namen.
Instead of review, use front-end PR review or security review.
Statt review verwenden Sie front-end PR review oder security review.
To update a skill, edit it skill.md file.
Um ein skill zu aktualisieren, bearbeiten Sie die skill.md-Datei.
Simple.
Einfach.
To remove one, delete its directory.
Um eines zu entfernen, löschen Sie sein Verzeichnis.
Restart clock code after changes for them to take effect.
Starten Sie Claude Code nach Änderungen neu, damit sie wirksam werden.
Creating a skill means making a directory with a skill.md file containing metadata and instructions.
Ein skill erstellen bedeutet, ein Verzeichnis mit einer skill.md-Datei zu erstellen, die Metadaten und Anweisungen enthält.
Claude loads skill names and descriptions at startup.
Claude lädt skill-Namen und -Beschreibungen beim Start.
matches incoming requests against those descriptions and asks for confirmation before loading the full content.
Es gleicht eingehende Anfragen mit diesen Beschreibungen ab und bittet um Bestätigung, bevor es den vollständigen Inhalt lädt.
Priority rules handling name conflicts.
Prioritätsregeln behandeln Namenskonflikte.
Enterprise overrides personal personal overrides project overrides plugins.
Enterprise überschreibt personal, personal überschreibt project, project überschreibt plugins.
[music]
[music]
Edit the skill.md file to update a skill and restart cloud code for changes to take effect.
Bearbeiten Sie die skill.md-Datei, um ein skill zu aktualisieren, und starten Sie Claude Code neu, damit Änderungen wirksam werden.