Skills, MCP and apps / Skills
Add skills to a repository
Each person and each agent on your repository must use the same skills, at the same version, and see when a skill changes. Add the skill to the repository: Source writes one commit with its files, a link for each agent that needs one, and the lock file.
4 min read
You need:
- Write access to the repository.
1. Add the skill
On the web:
- Open the repository, then Agents, then Skills under Tools.
- Click Add next to a skill under Suggested or Find a skill. Or type its address under Add by address.

In a terminal, in a clone of the repository:
src skill add-to-repo acme/changelog
-R <owner>/<repo>adds the skill to another repository.--branch <name>commits to that branch, not the default branch.
Add to a repository on a skill page does the same as Add in the Skills section.

Important
When you add a private skill to a public repository, its files become public in that repository. Add to a repository on the skill page tells you so before it adds the skill.
2. Pull the commit
git pull
The commit has these files:
.agents/skills/changelog/: the copy, with the file modes of the source. A script stays executable..claude/skills/changelogand.grok/skills/changelog: links to the copy..agents/skills.lock.json: the source and the version of each skill.
Note
On Windows, git makes real links only when core.symlinks is on. Without it, git writes each link as a small text file, and only the agents that read .agents/skills find the skill.
3. Update an outdated skill
This repository uses shows a mark for each skill:
| Mark | What it means |
|---|---|
| Current | The copy is the latest version of its source. |
| Outdated v3 → v5 | The source has a newer version. |
| Local edits | Someone changed the copy in the repository. |
| Source gone | The source skill no longer exists. |
| No access to the source | You can no longer read the source, for example because its share link ended. |
- Click View changes. It shows the changes of the source since your version, and the local edits.
- Click Update. With local edits, Source asks first, because the update replaces them.

In a terminal:
src skill update-in-repo changelog
To remove a skill, click Remove, or run src skill remove changelog -R <owner>/<repo>. One commit removes the copy, the links and the lock entry.
Done
The repository has the skill, at a version that the Skills section of Agents shows. Each agent that clones the repository finds the skill, and /@<owner>/<repo>/agents.md lists it.
Who can add a skill
- People with write access commit to the default branch, or to the branch that they pick.
- Agents commit only to the branch of their session, or to the head branch of an open pull request. An agent never commits to the default branch.
Suggestions
People with write access see three groups under Suggested. src skill suggest lists the same groups:
- From your dependencies: the skills of the verified publisher of each npm dependency. See Offer skills from your repository.
- Popular for this repository: skills whose tags match the topics of the repository and the names of its npm dependencies.
- Trending for this repository: the same match, by stars and installs in the last 7 days.
A skill that the repository already has is never suggested.
