Terug naar podcastsClaude
Claude Code skills
Configuratie en skills met meerdere bestanden
A basic skill works with just a name and description, but here are some other advanced tips that can make your skills really effective in claw code.
Een basisskill werkt met alleen een naam en beschrijving, maar hier zijn wat andere geavanceerde tips die je skills echt effectief maken in Claude Code.
The agentskills.io open standard has many available fields.
De agentskills.io open standard heeft veel beschikbare velden.
We already went over the name, which identifies your skill, uses lowercase letters, numbers, and hyphens only.
We hebben al het veld name besproken, dat je skill identificeert en alleen kleine letters, cijfers en koppeltekens gebruikt.
A maximum of 64 characters and should match your directory name.
Maximaal 64 tekens en moet overeenkomen met je directorynaam.
a description which is also required which tells Claude when to use the skill.
Een description, ook verplicht, vertelt Claude wanneer de skill gebruikt moet worden.
This is a maximum of,024 characters and is the most important field.
Dit is maximaal 1.024 tekens en het belangrijkste veld.
Claude uses this for matching.
Claude gebruikt dit voor matching.
But we can also add other optional fields.
Maar we kunnen ook andere optionele velden toevoegen.
One of them is the allowed tools field which restricts which tools Claude can use when the skill is active.
Een daarvan is het veld allowed tools, dat beperkt welke tools Claude kan gebruiken wanneer de skill actief is.
The model field which specifies which cla model to use for the skill.
Het veld model, dat aangeeft welk Claude-model voor de skill gebruikt moet worden.
Try to be explicit with your instructions.
Probeer expliciet te zijn in je instructies.
For example, if someone told me my job was to help with dogs, I wouldn't know what to do.
Als iemand me bijvoorbeeld zou vertellen dat mijn taak is om met honden te helpen, zou ik niet weten wat ik moet doen.
So, we have to assume Claude would think the same way.
We moeten er dus van uitgaan dat Claude op dezelfde manier denkt.
A good description answers two questions.
Een goede description beantwoordt twee vragen.
What does this skill do?
Wat doet deze skill?
And when should Claus use it?
En wanneer moet Claude hem gebruiken?
Now, if this job description was given to me, I feel a little bit more confident that I could get the job done.
Als deze functiebeschrijving aan mij gegeven wordt, voel ik me een stuk zekerder dat ik het werk kan doen.
If your skill isn't triggering, add more keywords that match how you phrase requests.
Als je skill niet triggert, voeg dan meer trefwoorden toe die overeenkomen met hoe je verzoeken formuleert.
Sometimes you want a skill that can only read files, not modify them.
Soms wil je een skill die alleen bestanden kan lezen, niet aanpassen.
This could be for security sensitive workflows, read only tasks or more.
Dit kan voor beveiligingsgevoelige workflows zijn, alleen-lezen taken of meer.
We have the allowed tools field to make this possible.
We hebben het veld allowed tools om dit mogelijk te maken.
When this skill is active, Claw can only use those tools without asking permission.
Wanneer deze skill actief is, kan Claude alleen die tools gebruiken zonder toestemming te vragen.
No editing, no writing, no bash commands.
Geen bewerken, geen schrijven, geen bash-opdrachten.
If you omit allowed tools, the skill doesn't restrict anything.
Als je allowed tools weglaat, beperkt de skill niets.
Claude uses its normal permission model.
Claude gebruikt zijn normale rechtenmodel.
Skills share Claw's context window with your conversation.
Skills delen het contextvenster van Claude met je gesprek.
When Claude wants to use a skill, it will decide to load the contents of that skill into context.
Wanneer Claude een skill wil gebruiken, besluit hij de inhoud van die skill in de context te laden.
However, sometimes you'll need some references, examples, or some utility scripts that are required by the skill.
Soms heb je echter referenties, voorbeelden of hulpscripts nodig die de skill vereist.
But cramming it all into one 20,000 line text file means you take up a lot of space in the context window.
Maar alles in één tekstbestand van 20.000 regels proppen, betekent veel ruimte innemen in het contextvenster.
And let's be real here, it's just not a lot of fun to maintain that.
En laten we eerlijk zijn, het is gewoon niet leuk om dat bij te houden.
This is where progressive disclosure comes in.
Hier komt progressive disclosure van pas.
Put your essential instructions in skill.mmp and detailed reference material in separate files that Claude reads only when needed.
Zet je essentiële instructies in skill.md en gedetailleerd referentiemateriaal in aparte bestanden die Claude alleen laadt wanneer dat nodig is.
The open standard also suggests having a scripts folder for executable code, references for additional documentation and assets for images, templates or other data files that would be relevant for that skill.
De open standard stelt ook voor om een scripts-map te hebben voor uitvoerbare code, references voor aanvullende documentatie en assets voor afbeeldingen, sjablonen of andere databestanden die relevant zijn voor die skill.
Then in skill.md link to the supporting files.
Voeg dan in skill.md links toe naar de ondersteunende bestanden.
Here, Claude reads architecture.md only when someone asks about system design.
Hier leest Claude architecture.md alleen wanneer iemand vraagt over systeemontwerp.
If they're asking where to add a component, let's say, it just never loads.
Als ze vragen waar ze een component moeten toevoegen, bijvoorbeeld, wordt het gewoon nooit geladen.
It's like having a table of contents in the context window rather than fitting the whole entire document in there.
Het is alsof je een inhoudsopgave in het contextvenster hebt in plaats van het hele document daarin te proppen.
Keep skill.md under 500 lines.
Houd skill.md onder de 500 regels.
If you're exceeding that, then maybe consider should this be split up into different content.
Als je dat overschrijdt, overweeg dan of dit in andere inhoud opgesplitst moet worden.
Scripts in your skill directory can run without loading their contents into context.
Scripts in je skill-directory kunnen worden uitgevoerd zonder hun inhoud in de context te laden.
The script executes and only the output consumes tokens.
Het script wordt uitgevoerd en alleen de uitvoer verbruikt tokens.
Tell claw to run the script, not read it.
Vertel Claude om het script uit te voeren, niet om het te lezen.
This is very useful for environment validation, data transformations that need to be consistent, operations that are more reliable as tested code than generated code.
Dit is erg handig voor omgevingsvalidatie, datatransformaties die consistent moeten zijn, en bewerkingen die als getest code betrouwbaarder zijn dan als gegenereerde code.
Skills support metadata fields.
Skills ondersteunen metadatavelden.
Name and description which are required.
Name en description, die verplicht zijn.
Allowed tools restricts available tools and model specifies which claw to use.
Allowed tools beperkt de beschikbare tools en model specificeert welk Claude gebruikt moet worden.
Descriptions need specific actions and trigger phrases to match for reliability.
Descriptions hebben specifieke acties en triggerfrases nodig om betrouwbaar te matchen.
For larger skills, use progressive disclosure.
Gebruik voor grotere skills progressive disclosure.
Keep your skill.md file under 500 lines and link to the supporting files that load only when needed.
Houd je skill.md-bestand onder de 500 regels en voeg links toe naar de ondersteunende bestanden die alleen worden geladen wanneer dat nodig is.
Scripts [music] can execute without loading their contents, keeping context efficient.
Scripts [muziek] kunnen worden uitgevoerd zonder hun inhoud te laden, waardoor de context efficiënt blijft.