0:00 / 0:00

Create A Custom Skill

From the course: Agentic AI For Founders & Senior Operators

Ask the agent for it in one prompt, such as “create a skill called wrap-up that summarizes the state of any chat session into a thread document.” Claude writes the SKILL.md file with the instructions and steps, and you run it with a slash command. Read it once it's written, especially if it's long or sensitive, so it doesn't do anything you don't expect, and ask Claude to change what you don't like.

Transcript

What we do is we write a prompt here called "Create a skill called wrap-up that summarizes the state of any single chat session into a thread document." And that's all we need to do. We simply need to tell the agent, "Hey, create a skill for me." And it comes back to you with the skill proposal. So let's see what we have here. So it's invoked using the forward slash command, right? So it's called the wrap-up skill this way. And the content is basically the SKILL.md file that Claude has written. So MD is just Markdown. It's a file format. So Claude writes a SKILL.md file for us, which has all of this baked into it from the single prompt that we gave it. So it says, "Turn this one chat session into its thread doc so that the next session can start cold. One doc per session, named the same as the session: threads/<session-name>.md." And so these are the broad instructions that the skill has. And then it says these are the steps. So it says first get the date, then settle the file, and then a series of steps associated with that. So it reads the file, drafts the update, and so on and so forth. I won't go through the full details here, but broadly Claude will do a fairly good job of writing out a skill. I do think generally speaking you should read a skill once it's written, so it's not doing things you don't expect, especially for very long or complicated or sensitive skills. It's always worth doing it at least once. The second thing to note is that skills can always be updated. You can say, "No, I don't like this. Change it." Claude will do that for you as well. And it can be updated later at any point in time.