Skip to content
Source
Sign inSign up

Offer skills from a repository

Skills, MCP and apps / Skills

Offer skills from your repository

You maintain a library, and you want the agents of its users to use it well, with no publish step for each change. Put a skill folder in your repository: Source finds it on each push to the default branch, gives it a version, and lists it.

3 min read

1. Add the skill folder

Put a SKILL.md in a folder of its own, for example next to the package that it is for:

packages/ai/skills/enhance/SKILL.md

Then push it to the default branch:

git add packages/ai/skills/enhance
git commit -m "docs: add the enhance skill"
git push

2. Know which folders are offered

  • Used: a skill folder in an agent folder, such as .agents/skills or .claude/skills. The agents of your repository use these skills. They are never offered.
  • Offered: a skill folder anywhere else, for example skills/enhance/ or packages/ai/skills/enhance/.

The agent folders are:

.agents/skills
.claude/skills
.codex/skills
.opencode/skills
.opencode/skill
.cursor/skills
.gemini/skills
.github/skills
.grok/skills

Note

Source reads only the default branch. It skips node_modules, vendor, dist, build and each folder whose name starts with a dot. It finds skill folders at most 6 folders deep, and at most 200 skills in one repository.

3. Check the result

Open the repository, then Agents, then Skills under Tools. This repository offers shows each skill with its address, <owner>/<repo>/<name>, and its install command.

  • The marketplace lists the offered skills when the repository is public and not a fork.
  • Each change of a skill folder on the default branch makes a new version. Changes to other files make none.
  • When two offered skills have the same name, the Skills section marks both. The marketplace and the address <owner>/<repo>/<name> use the first in path order. Add the other one by its folder: <owner>/<repo>:<path>.

4. Verify your GitHub repository

The Skills section of a repository suggests the skills of its npm dependencies. A package.json can claim any package name, so only a verified publisher counts.

  1. Open your repository, then Settings, then GitHub sync under Integrations.
  2. Under Verified GitHub repository, type the GitHub repository as owner/name.
  3. Click Verify with GitHub, then sign in to GitHub as an admin of that repository.
The Verified GitHub repository card in a repository's settings
  • An import from GitHub verifies the new repository when your import token has admin permission on the GitHub repository.
  • A skill belongs to the package in the nearest package.json at or above its folder.
  • The package counts only when its repository field on npm points to your verified GitHub repository.

Done

Your skill shows in the Skills section of your repository, under Agents. When the repository is public, it shows in the marketplace. When the public repository is also verified, the skill shows under From your dependencies. The people who write to a repository that depends on your package see it there.