GitHub 0
Skip to content

Installation

Install skillrc with fleethosts, name your program, and make a first edit to an agent's config.
pnpm
pnpm add skillrc fleethosts
npm
npm install skillrc fleethosts
yarn
yarn add skillrc fleethosts
bun
bun add skillrc fleethosts

Requires Node 22.20 or later. Git sources also need git on PATH.

fleethosts gives you Places, the object every skillrc function takes first. skillrc depends on it too, so the two share one registry of child processes.

  1. import { standardPlaces } from "fleethosts/places";
    
    const places = standardPlaces("mytool");
    ts
  2. import { editConfigFile } from "skillrc/io";
    
    const result = editConfigFile(places, "/home/me/.claude/settings.json", () => [
      { path: ["env", "MYTOOL_HOME"], value: "/home/me/.config/mytool" },
    ]);
    ts
  3. result.changed says whether the file changed. result.skipped says why it was left for later, such as a lock another program holds. result.error says why it can't be edited at all.

Next, read Config files for edits, or Sync to run the whole engine.