agentleFS
PuntoyComaTechPuntoyComaTech/hermes-agent-squads/skills/changing-bots/SKILL.md

changing-bots

Skill3 starsChanged 18 days agoMITView on GitHub

Edits, adds, splits and retires the bots of a squad. Use when a bot is added, changed, split or retired.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 0 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Write the change to the overlay local/squads/<key>/squad.yaml (key builder for the builder).

    line 16
  2. Very specific:

    Put new or changed assets next to the overlay.

    line 26
  3. Very specific:

    Add a bot: check skills/designing-squads -> Rules, then add bots.<key>-<role> with role: worker, title, description, lane, toolsets …

    line 30
  4. Very specific:

    Before planning, confirm each skill a bot lists in skills.squad exists in the overlay or repo (SKILL.md present).

    line 43
  5. Very specific:

    Run scripts/hpy squadctl.py plan <key> --json (--self for the builder), show the diff and apply only after the user's explicit OK: …

    line 45
  6. Very specific:

    After a retire, apply leaves the old profile in place.

    line 49
  7. Very specific:

    After a retire, hermes profile list no longer shows the bot and scripts/hpy squadctl.py doctor reports no fail.

    line 73

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Changing bots

When to Use

  • The user wants a bot to gain or lose toolsets, skills, plugins, MCP servers, connectors, cron jobs or its lane.
  • A squad needs another bot, one bot split in two, or a bot retired.

Procedure

  1. Write the change to the overlay local/squads/<key>/squad.yaml (key builder for the builder). Merge rule (deep_merge in scripts/squadctl.py): maps merge per key, lists and scalars replace, null deletes the key. For skills.keep and plugins.enable write keep_add / keep_remove and enable_add / enable_remove (an entry with the same id or name replaces the repo's), so later repo additions to those lists still arrive. Write every other changed list or chain in full. A hub keep this squad installed and the merged manifest no longer lists is uninstalled by the next apply (hermes skills uninstall <name> --yes); hub skills the bot or user installed stay.
  2. Put new or changed assets next to the overlay; they win over the repo copies: local/squads/<key>/souls/<bot>.md, local/squads/<key>/skills/<skill>/ (skills/authoring-skills), local/squads/<key>/scripts/<script>.
  3. Add a bot: check skills/designing-squads -> Rules, then add bots.<key>-<role> with role: worker, title, description, lane, toolsets (squads/_schema/squad.schema.json -> bot), its SOUL with one line on what its memory stores, and the chain stages it takes. Past 5 required bots the new bot sets optional: true. Change a model: skills/assigning-models. Add a Project: skills/managing-projects.
  4. Split a bot: add the new bot as in step 3, then rewrite the old bot's toolsets and skills.squad and every chain whose stages move.
  5. Retire a bot: set bots.<bot>: null; rewrite every chain and copy into the overlay every squad skill that names it, with the bot replaced. Move its open cards first: hermes kanban --board <slug> list --assignee <bot> --json, then hermes kanban --board <slug> reassign <id> <new-bot> --reclaim per card.
  6. Before planning, confirm each skill a bot lists in skills.squad exists in the overlay or repo (SKILL.md present); plan warns on a missing one. Run scripts/hpy squadctl.py plan <key> --json (--self for the builder), show the diff and apply only after the user's explicit OK: scripts/hpy squadctl.py apply <key>. A new lane without a model needs skills/assigning-models first.
  7. After a retire, apply leaves the old profile in place. On the user's OK run hermes profile export <bot> -o local/backups/<bot>.tar.gz, then hermes profile delete <bot> --yes.

Pitfalls

  • Editing a profile's config.yaml, SOUL.md or skills/ by hand: the next apply overwrites it. Change the overlay.
  • A cron agent job whose script prints on quiet ticks: only empty stdout or a last line {"wakeAgent": false} skips the agent (skills/hermes-platform/references/cron-and-gates.md).
  • passthrough on a bot with web or browser: skills/designing-squads -> Rules.
  • Editing the prose of a SOUL the repo composes from a base: the update-path test asserts SOUL.md is the base file plus its role section, byte for byte, so a sentence added to the composed file alone leaves the suite red. Grep tests/ for how the SOUL is assembled before editing it, and run that test beside the skill lint after every SOUL edit.

Verification

  • scripts/hpy squadctl.py plan <key> --json reports every bot unchanged.
  • hermes -p <bot> config get <config-key> and hermes -p <bot> cron list show the new values.
  • After a retire, hermes profile list no longer shows the bot and scripts/hpy squadctl.py doctor reports no fail.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.