Courses / Build an Autonomous Claude Code AgentProLesson 3 of 94:20

Skills Stop the Agent Improvising

A frontier model can figure out your process eight times in ten, but it pays for the research on every run and ten engineers reinvent it ten ways. A skill turns your team's loop into the steps the agent follows.

Transcript

And then you need to build your own skills that is related to your company and your domain, how you operate, how your incident management is operated, how your documentation process is automated, how your GitHub template will be working, how your documentation process will work. For example, you run a Claude Code session and or cursor session. Now, regardless of one engineer using Claude Code or another engineer using cursor, you need to always do the same loop. Like, okay, you pick a ticket, you create the PR, and after the PR, once the PR is merged, what needs to happen? whether the documentation or decision log needs to be updated, whether it is a product change log or your technical decision log where it needs to update, is it a separate wiki, or is it in your Jira ticket, or is it in your repository itself that you need to design and based on that, you need to write your skills, and that skill will automatically able to deliver, or it can be an agent as well, like skills or a sub-agent as well. Skill is what the agent follows instead of instead of improvising. So why you create a skill? whether it is a skill for Claude or whether it is a skill for your factory or for any agent, coding agent, why it is necessary. Oftentimes the bigger models, the frontier models are very much capable of doing things very well. But in order for them to figure things out, what is the right way for this repository or for this company, every time it needs to go into their memory or it need to go into certain you know research on what I need to do for this scenario. Every time it will go into that loop, and this skill is basically to cut down that loop. Like instead of you go through each and every time to follow certain process. A simple example is like you are creating a browser agent and you are saying okay, invoices will be created by calling this API, and this is the way you need to call, and this is how the credit note will be created, and this is how the invoice line items will be created, and you need to verify whether the invoice line item is already there, then you need to call in a way it is idempotent enough. So even if multiple times I'm calling, still the invoice will be only once. Now, if you define that skill, next time, if an person who is entering, like hey, create this invoice, then automatically it will pick what are all the skills which is available. Okay, this is the way invoice is created, and it will pick that skill and it will follow that instruction which is in the skill. But now, if you are not providing that skill, then also most of the time, I'm saying eight out of ten times opus 5.5 kind of frontier models can easily figure out this is the way to do it, but at what cost? Every time it needs to go and research what is the ultimate way to go and do it, it will do it and it will cache it in their memory, and each run they will find nuances in it. It won't follow the same way as memory because memory also have you know budget to it. It won't pull the contextual memory each time, and also when you have 10 different engineers or 10 different people who are invoicing, then what will happen is like your memory, what which is in local is not going to feed them, so they are also going to reinvent again and now there is a higher chance that eight out of 10 times means two times there is a failure which can happen. It might you know create in a false way or so on. So that is where skills become more and more important. So, regardless of whether it is a coding agent or in an agentic AI system, you need to create this skill just to bypass and make a little bit more deterministic in terms of your output.

This lesson comes with Pro, $149 a year: Get Pro. This lesson is cut from the free Lightning session Build an Autonomous Claude Code Agent. The Live Labs build the same system with you, free, on Thursdays: see the Live Labs.