Skills
A skill is a folder with a SKILL.md in the Agent Skills format. It says how one part of your project is built and how its code must be written. Kerpeten gives the list of your skills to the reviewer and the judge. The reviewer reads the skills that cover the changed code, and a change that breaks a rule of a skill is a finding.
.kerpeten/skills/ billing-code/ SKILL.md http-clients/ SKILL.md---name: billing-codedescription: Rules for code under src/billing - how errors are thrown, how amounts are held and how billing code logs.---# Billing code
Use this skill when you write or change code under `src/billing`.
## Errors
- Throw `BillingError` from `src/billing/errors.ts`, with a code from `ErrorCodes`.- Never throw a plain `Error` from billing code. The API layer maps the code of a `BillingError` to a response, and a plain `Error` becomes a 500.A change that throws a plain Error in src/billing/refund.ts then gets a convention finding whose evidence cites the line of the skill:
review: bf7383c85cc6..3cb84819735a, 1 changed files, prompt reviewer v8skills: repo:billing-code (read), repo:http-clients (not read)findings: 1- src/billing/refund.ts:6-6 [convention] Refund validation throws plain errors instead of coded billing errors. verdict verified, impact broken, trigger normal, fix_effort easy, origin introduced, priority P1, score 75, action inline An out-of-range percentage or an over-refund throws a plain `Error`. The billing API maps plain errors to HTTP 500 instead of handling them as coded billing errors. fix Use `BillingError` with an appropriate `ErrorCodes` value at both validation branches. rationale Both validation branches throw plain Error in billing code, and the applicable skill explicitly states these become HTTP 500 rather than coded API responses. The new file introduces this behavior. evidence repo:billing-code/SKILL.md:11: Billing code must throw BillingError with an ErrorCodes value. evidence repo:billing-code/SKILL.md:12: Plain errors become HTTP 500 responses. evidence src/billing/refund.ts:6: The percentage check throws a plain Error. evidence src/billing/refund.ts:20: The balance check also throws a plain Error.Where skills live
Section titled “Where skills live”- The folder.
.kerpeten/skillsin the repository root.skills.pathsnames other folders. - One folder a skill. A skill is a folder directly below it that holds a
SKILL.md:.kerpeten/skills/<name>/SKILL.md. A folder deeper down is part of its skill. - The
SKILL.md. It starts with a YAML block that has anameand adescription. Thenameis the name of the folder. - Other files. A skill can hold more files, and its
SKILL.mdcan point to them. A model reads one only when it asks for it. - The id.
repo:<name>, such asrepo:billing-code. The output, the log and the evidence of a finding name a skill by its id.
How a review uses them
Section titled “How a review uses them”- Before any model is called, Kerpeten lists the skills. It reads only each
SKILL.md, to get the name and the description. - The reviewer and the judge get the list in their message: one line a skill, with its id and its description. Write the description so that it says which code the skill covers.
- The reviewer reads the
SKILL.mdof the skills whose description covers the changed code, with itsread_skilltool. It reads no other skill. - Changed code that breaks a written rule of a skill is a finding with the category
convention. Its evidence cites the rule as the id of the skill, the file and the line:repo:billing-code/SKILL.md:12. - The judge reads the cited lines with
read_skill. The finding holds only when the rule is really written there, applies to the code and the code breaks it.
- No skills, no list. A repository without a skill gets no list, and its review is as it was before.
- The list has limits. At most 50 skills or 10,000 characters. The skills that do not fit are left out of the list, and the log says how many:
"reviewer input shortened" note="<n> skills left out". - Each read counts. A
read_skillcall counts towardmax_tool_callslike any other tool call.
Writing the description
Section titled “Writing the description”Before the model reads a skill it sees only the id of the skill and its description. A skill whose description does not match the change is not read, and its rules are not checked.
- Name the code it covers. The folder, the framework or the kind of code:
src/billing, “outgoing HTTP requests”, “database migrations”. - Use the words of the code. The names that stand in the paths and in the code itself, such as “refund”, “amount” and “BillingError”.
- Say what it rules. “How errors are thrown, how amounts are held and how billing code logs” tells more than “Billing guidelines”.
- One part of the project for each skill. A description that covers everything matches every change, so the reviewer reads the skill also where it has nothing to say.
- Keep it to one or two sentences.
What a skill can and cannot do
Section titled “What a skill can and cannot do”A skill is data, like a rule file.
- Its code rules count. A rule that a skill writes down for the code counts like a rule in
AGENTS.md. - Nothing in it is run. Kerpeten runs no script of a skill, and the models have no tool that could.
- It cannot change the review. A skill cannot change the reviewer’s task, its tools or the form of its findings. A line that tells its reader to run a command, or says how a person or an agent should work, is ignored.
- It cannot change the score. The score, the priority and the action of a finding come from what the judge marks.
Which commit
Section titled “Which commit”Skills are read from the commit of the branch the change goes into: the commit of --base, or the base commit of the pull request. They are never read from the change itself.
- A change cannot bring its own skills. A skill that a change adds or edits is not in force until the change is merged. The log warns:
"skills of the change are not in force" folder=.kerpeten/skills base=<commit>. The reviewer sees the edit in the diff and reviews it like any other file. - The folders too.
skills.pathsis part of.kerpeten.yml, which a review reads from the base commit as well. - On GitLab. The base commit is the last commit of the target branch when the branch of the merge request was last pushed.
A skill that is left out
Section titled “A skill that is left out”A skill that cannot be used is left out, and the review goes on without it. The output and the log give the reason.
| Case | What happens |
|---|---|
The SKILL.md has no YAML block, no name or no description |
Left out |
The name is not the name of the folder |
Left out |
The SKILL.md is not a regular file or not UTF-8 text |
Left out |
| A skill has more than 512 files or more than 16 MiB | Left out |
| A file changed between the listing and the read | The read fails and the skill is closed for the rest of the run |
| A configured folder does not exist | No skill, no error |
WARN "skill not listed" command=review origin=repo skill=<folder> reason="<reason>"In the output
Section titled “In the output”A review that found a skill shows a skills: line before its findings:
skills: repo:billing-code (read), repo:http-clients (not read)read: a model read a file of the skill in this run.not read: no model asked for it.closed: <reason>: a file of the skill failed its check.skipped skills: <n>follows when skills were left out, with one line for each and its reason.
--json has three keys for skills. They are left out when the repository has no skill:
| Key | What it holds |
|---|---|
skills |
One entry for each listed skill: id, origin, the digest of its SKILL.md, read, and closed with the reason when it was closed |
skipped_skills |
One entry for each skill that was left out: origin, path and reason |
unlisted_skill_sources |
One entry for each source that could not list its skills: origin and reason |
The log says how many skills were listed: "skills listed" command=review skills=<n> base=<commit>.
Permissions
Section titled “Permissions”read_skill needs the permission skills:read. Both permission groups give it.
Skills and rule files
Section titled “Skills and rule files”Rule files and REVIEW.md |
Skills | |
|---|---|---|
| How many | One text for the whole repository | One for each part of the project |
| Who gets the text | The reviewer, on every run | Nobody; a model reads a skill when the change touches its part |
| Good for | Rules that hold everywhere | Rules of one folder, one framework or one kind of code |
A skill that an agent already uses to write the code can serve the review too. Add the folder that holds the skill’s folder to skills.paths: .claude/skills for a skill at .claude/skills/billing-code/SKILL.md.