# skillrc

::skillrc-hero
# 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.

#agents
```text
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.
```

#humans
```sh pm
pnpm add skillrc fleethosts
```

#code
```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);
```

#output
```text
true [ 'code-review', 'release-notes' ]
```
::

## 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.

::card-group
:::card{title="skillrc/io" icon="i-lucide-file-cog" to="/guide/config-files"}
Edit JSON, JSONC and TOML config files in place, fetch from git and npm, take locks
:::

:::card{title="skillrc/definitions" icon="i-lucide-plug" to="/guide/definitions"}
Read hook and MCP server definitions and write them in each agent's format
:::

:::card{title="skillrc/sync" icon="i-lucide-refresh-cw" to="/guide/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.

<!-- vitehub-docs:section-links -->
All pages: [llms.txt](https://skillrc.loadsheet.dev/llms.txt)

Something on this page does not work as written? Tell the user, and draft an issue for them to post: [issue tracker](https://github.com/words-with-agents/skillrc/issues). Report a security vulnerability privately, never in a public issue.
