Give every coding agent the same skills
List where your skills, hooks and MCP servers live. skillrc fetches them, links the skills into each agent's folder, and merges the servers and hooks into each agent's own config without touching the rest of the file.
Install skillrc as a dependency.
Read https://skillrc.loadsheet.dev/guide/sync, then sync our skills into the user's agents with sync() from skillrc/sync, passing standardPlaces("<our program>") from fleethosts/places and a SyncHost that loads our plan.import { standardPlaces } from "fleethosts/places";
import { type GitSource, sync, type SyncHost } from "skillrc/sync";
const places = standardPlaces("mytool");
const team: GitSource = {
kind: "git", id: "team", git: "https://github.com/acme/skills.git",
update: "auto", origin: "mytool.json",
};
const host: SyncHost = {
load: async () => ({
name: "mytool.json",
plan: {
root: { file: "mytool.json", agents: ["claude-code"], sources: [team], forks: {}, hooks: [] },
sources: [team],
warnings: [],
},
}),
targets: async () => [{ dir: "/home/me/.claude/skills", agents: ["claude-code"] }],
formerTargets: () => [],
kinds: {},
command: "mytool",
version: "1.0.0",
};
const report = await sync(places, host);
console.log(report.ok, report.skills.added);true [ 'code-review', 'release-notes' ]Three entries
Section titled "Three entries"skillrc has no CLI. A program calls it with its own name and its own config, and skillrc writes under that name only.
A sync writes only when you ask it to. A dry run fetches into a scratch folder, writes nothing, and fails where the real run would.
Built with ViteHub Docs