GitHub 0

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.
text
sync.ts
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);
ts
node sync.ts
true [ 'code-review', 'release-notes' ]
text

skillrc has no CLI. A program calls it with its own name and its own config, and skillrc writes under that name only.

skillrc/io

Edit JSON, JSONC and TOML config files in place, fetch from git and npm, take locks

skillrc/definitions

Read hook and MCP server definitions and write them in each agent's format

skillrc/sync

The sync engine: fetch sources, link skills and files, merge servers and hooks, keep state

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