Keep agent skills in an open source repo your team reviews
Skills live as folders in your git repo, and which agent may load which one is a grant in kortix.yaml. A change request reviews whatever the agent proposes, and a lockfile pins a skill that came from another repository. Kortix is the open-source CompanyOS, and in my opinion it is the better fit when the repo is the review surface; I work at Kortix, so weigh that accordingly.
The grant in kortix.yaml and the lockfile beside it
What a grant looks like in a diff, and the lockfile entry beside it.
Two named skills
kortix.yaml
kortix_version: 3agents: support: description: Answers help desk tickets. prompt_file: agents/support.md skills: [refund-policy, kortix-cli]
Every skill
kortix.yaml
kortix_version: 3agents: support: description: Answers help desk tickets. prompt_file: agents/support.md skills: "*"
Pinned skills
skills-lock.json
{ "version": 1, "skills": { "agent-browser": { "source": "vercel-labs/agent-browser", "sourceType": "github", "skillPath": "skills/agent-browser/SKILL.md", "computedHash": "80161e6836b3b40f4e83730a290deb40ac14d877d38c97ad5f6d71be37ce74c3" }, "ponytail": { "source": "DietrichGebert/ponytail", "ref": "v4.10.0", "sourceType": "github", "skillPath": "skills/ponytail/SKILL.md", "computedHash": "210fa0831f649ce9f8a305f7b7c8cf2a0dd09ac4dd53067109941b96e7811d4e" } }}
https://github.com/kortix-ai/CompanyOS/blob/dev/skills-lock.json
Three minutes at a real terminal
The recording runs the whole path once: a skills/<name>/SKILL.md written from scratch, the skills: grant added to one agent's block in kortix.yaml, then kortix validate run from the project root, where the grant names a skill whose folder has no SKILL.md. The validator reports it as an error and exits 1.
Kortix, the open-source CompanyOS, runs that grant and that validator, so what you see is the path the docs describe, typed out on a real terminal. Watch the three-minute run.
A skill is a folder in the repo, and that is the point
The Agent Skills format is an open standard, and the frontmatter carries name and description; the Markdown under it is the instruction set, and the scripts, reference documents and templates it needs sit beside it, read or run only when a step asks for them.
In a Kortix project the path is skills/<name>/SKILL.md, and reference files can sit beside it. The line that decides which agent may load it lives in kortix.yaml, in the same repository and the same change request as the file itself.
A skill typed into a settings screen has no diff and no author you can ask. Held in the repository it has both, plus a history you can read next quarter. When an instruction turns out to be wrong, the fix becomes a patch, and a patch can be reviewed by someone who did not write it.
The format is built for that kind of loading, and the Agent Skills specification sets the budget, so a repository can hold ten skills without putting ten instruction sets in every prompt. The description is what an agent reads at startup, and progressive disclosure sets out all three tiers: what loads then, what loads on activation, and what waits until a step asks for it.
Which agent may load a skill
An agent loads a kortix-* skill only when its skills grant names it or is all, and those skills are registered in every project, so a managed skill is granted like one you wrote (kortix.yaml reference).
The system skills are the case that shows it. Kortix adds a set of system skills to every project, and you cannot change or remove these; an agent loads them only when it has access to them, like any other skill (the guide). A managed skill reaches an agent only when the grant list names it, which is why a grant lists kortix-cli beside the project's own skills.
What the skills key in kortix.yaml accepts
Which skills an agent may load is a grant in kortix.yaml, set for each agent. A skill in skills/ is usable only when that agent's grant allows it.
The key takes three values (read the docs):
all, or*, allows every skill.none, or"", allows none.- A list of names allows those skills.
Leaving the key out
An omitted skills, subagents, commands, extensions, connectors, secrets, apps or kortix_permissions grants nothing, which is why the reference gives none as the default for every one of them (kortix.yaml reference).
A name in that list has to match the skill's folder and its frontmatter name. kortix.yaml declares the machine image, connectors and triggers, and secret names and grants. Secret values never appear in the repo, and an agent's skill reach shows up as one line in the diff beside the skill it names.
A change to a skill is a change request
A session clones the project repo onto a new branch named after the session id. The agent commits and opens a change request, and a person with project.gitops.merge reviews and merges it. Session work reaches main through a change request. Merge is default-deny for agents.
That path covers the agent's own instructions too. An agent can edit its own configuration on its session branch and propose the change. A person approves it.
The reviewer has four things to read, and only the first is obvious:
- the body change, in the skill's own language;
- new files under
references/orscripts/, which load later and are easy to miss in a collapsed diff; - the
descriptionline, when the trigger changed, becausedescriptionis what the agent reads to decide when to load the skill; - the lockfile entry, when the skill comes from another repository.
Pinning a skill that lives in another repository
skills-lock.json records a borrowed skill's source repository, skillPath and a computedHash, so the copy in your repo stays the one somebody reviewed. The full case for treating an installed skill as a dependency is in a post on the lockfile from Kortix.
Validate the file before anyone reads the diff
The specification's reference library skills-ref validates a skill's frontmatter and naming: skills-ref validate ./my-skill. It settles the mechanical questions, the ones a reviewer should not spend time on: the naming rules, the length limits, and the limits on optional fields such as compatibility and metadata. The specification also recommends keeping the main SKILL.md under 500 lines and moving reference material into separate files.
Validation answers whether the file is legal. It cannot answer whether the skill belongs in the repository, which is what the reviewer and the change request are for.
The failure mode: a skill nobody can audit
Four projects copy the same skill folder. Three of them edit their copy. Nobody owns the fourth. The grant list says all, because enumerating names took five minutes nobody had, and no lockfile records which upstream commit is folded into the version now running. Months later a behavior change has to be traced back to an instruction file that no person read before it shipped.
An instruction pasted into a settings field changes with whoever edits it, and no copy of the previous version is kept. The team ends up with text nobody owns, and months later, when a behavior changes, there is nothing to compare it against.
The fix is unglamorous: one folder per skill, a named grant list per agent, a hash on every skill that comes from elsewhere, and a merge that a person performs. Then the question a team actually asks in an incident, which instructions did this agent run last Tuesday and who approved them, has an answer in a git repo you own. That is the setup Kortix runs on. Open source. Read it, fork it, audit it.
Questions teams ask before they move skills into git
Short answers to the questions that come up before skills move into git.
- Are agent skills actually useful?
- Yes. A skill stores the instructions you would otherwise retype into a prompt for a recurring job, and the agent loads it only when a task matches the description. The saving compounds across a team, because everyone's sessions read the same reviewed file.
- What skills do you need to build AI agents?
- Only two fields are required: a
nameand adescription. Start with the jobs your team repeats, such as triage, release notes or brand copy, and add a skill for each one the agent should recognize on its own. - How do I add agent skills to a repository?
- Create
skills/<name>/SKILL.mdwith frontmatter and instructions, commit it, then name it in the agent'sskillsgrant inkortix.yaml. The name in the grant must match the folder and the frontmattername. - What are the skills for an agent?
- A skill is a folder with a
SKILL.mdfile: frontmatter that says what it does and when to use it, then the instructions. The agent reads the description at startup and loads the body only when the skill is activated.
Put the instruction under review.
Agents, skills, memory, tools, triggers and connectors are files in one git repo you own.
Run it on Kortix Cloud, in your VPC, or on your own on-prem network. Self-host is free. · Session work reaches main through a change request · Merge is default-deny for agents