Skip to content
Source
Sign inSign up

Add skills to a repository

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:

  1. Open the repository, then Agents, then Skills under Tools.
  2. Click Add next to a skill under Suggested or Find a skill. Or type its address under Add by address.
The Agents tab with Skills open under Tools in the sidebar: the skills the repository uses, where vitest-patterns is outdated and has View changes and Update buttons, and the skills it offers

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.

The Add to a repository dialog on a skill page, with the repository picker

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/changelog and .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:

MarkWhat it means
CurrentThe copy is the latest version of its source.
Outdated v3 → v5The source has a newer version.
Local editsSomeone changed the copy in the repository.
Source goneThe source skill no longer exists.
No access to the sourceYou can no longer read the source, for example because its share link ended.
  1. Click View changes. It shows the changes of the source since your version, and the local edits.
  2. Click Update. With local edits, Source asks first, because the update replaces them.
The changes of vitest-patterns from v1 to v2 in the diff viewer

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.

Suggested skills: one from the @tanstack/ai dependency, and one popular for the repository