/trust-ladder:setup-hermes-projectfrom trust-ladder
Connect a GitHub repository to this machine's Hermes dispatch. Two parts. The machine side, run from the owner's own Claude Code: checks the Hermes install, creates the project bot and the checkout its Claude Code sessions launch from (faker-kit marks it trusted in Claude Code itself), and starts the setup session. The repository side, run by that setup session inside the repository: writes .agents/dispatch.json and .agents/dispatch.md, describes the layout in AGENTS.md, and fills in the kit setup the repository still lacks, in one pull request. The owner only answers a few questions and merges the setup pull request. Use for /setup-hermes-project, "add this repo to Hermes", "set up faker-kit dispatch for OWNER/REPO", "set up this repo for Hermes dispatch", or after a dispatch refusal about dispatch.json.
Ships in trust-ladder. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Run this on the machine where Hermes runs, in Claude Code. It does the same steps as the Hermes bootstrap bot, but from your coding agent. A project is one repository; for a second repository, run this again.
Every change to the Hermes side goes through ~/.hermes/bin/faker-kit, which prints JSON or lines of text, or faker-kit: refused: <why>. When it refuses, tell the owner why and stop that step. Never edit bots.yaml by hand.
.env, and never put a token in a command line.~/.hermes/bin/faker-kit status --all
No such file: Hermes's faker-kit module is not installed. Install it from a checkout of the kit, pinned to the kit's current default-branch commit, with a bootstrap bot:
ref=$(gh api repos/<kit owner>/<kit repo>/commits/main --jq .sha)
bash <kit checkout>/hermes/install.sh --ref "$ref" --bootstrap-bot bootstrap
The installer restarts the shared Hermes gateway, so other bots pause for a moment; say so first.
trusted_authors holds OWNER-LOGIN: the owner has not filled in ~/.hermes/faker-kit/guard.yaml. Ask for their GitHub login and replace that placeholder under trusted_authors. That file is the owner's; change only that entry.
The repository is already listed: this is a refresh. Skip what status shows is done.
One question at a time, only what you do not know yet. Use AskUserQuestion.
OWNER/REPO.- and _, never default. Offer the repository name for both.1h (GitHub events wake the bot sooner).--claude-subscription), or the provider Hermes already uses.Run this from the owner's own shell, with the CLAUDE_CONFIG_DIR their claude login uses exported if it is not the default:
~/.hermes/bin/faker-kit add-project OWNER/REPO [--bot <bot>] [--project <project>] \
[--heartbeat-every 1h] [--model <model>] [--claude-subscription]
It creates the bot's profile, its one agent job (faker-kit-babysit), the andon and bug-report labels in the repository, and the launch checkout: one kept clone of the repository that every Claude Code session for this project starts from. It prints that path as launch_checkout. The jobs start once gh is signed in on this machine; if the output says they are paused, the owner runs gh auth login once and you run add-project again.
add-project and every launch mark the launch checkout trusted in the Claude Code config the launch uses. Never ask the owner to trust a folder.
Write a setup brief into the owner's own briefs folder, ~/.hermes/faker-kit/briefs/default/setup-<project>.md (the installer creates the folder; a launch from the owner's shell reads briefs only from there), as the bootstrap skill's step 4 describes: it starts with /faker-mode, names /setup-hermes-project, and asks for the repository side of this skill (below) and for setup-faker-kit sections 3 and 4 (CI and verification, skills), with one pull request and no merge. Then:
~/.hermes/bin/faker-kit launch --project <project> --brief-file ~/.hermes/faker-kit/briefs/default/setup-<project>.md
This is the first real launch, so a refusal names what is wrong, such as a claude that is not logged in. Give the owner the session link and, once it appears, the pull request; wait until it is merged.
Run faker-kit status and show the owner the bot's line. Then tell them, in a few lines:
faker-kit merge;The setup session the bootstrap bot or step 5 starts runs this part inside the repository, with the kit's skills from the cloud environment. Dispatch has two sides: the Hermes machine (steps 1 to 6 above, set up by the hermes/ module of the kit) and the repository, which holds .agents/dispatch.json and .agents/dispatch.md.
A project is one repository. When a product has an API, a web app, and a mobile app, they live side by side in this one repository, so one agent can carry a feature through all of them in one pull request.
The setup brief gives these values. If you run this part by hand, ask the owner for each:
| Value | What it is |
|---|---|
backend | claude: Claude Code cloud, started with claude --cloud; or t3code: T3 Code on the owner's Mac, driven through the mcp__t3code__* tools Hermes exposes once the owner connects T3 Code in the Pal app |
trusted_dispatchers | The GitHub logins that open unit issues: the project bot's login, and the owner's |
project | The project's slug |
Open exactly one pull request. Never merge it, and never push to the default branch.
The repository must work for unattended cloud agents:
setup-faker-kit is done.setup-cloud-agents is done: the build and test commands in AGENTS.md pass in a fresh cloud session..github/workflows/faker-kit-checks.yml (that one only checks the kit) that runs its build and test commands on every pull request, triggered by push or pull_request (faker-kit merge counts only those runs, for the pull request's own head). Filter by path at job level (a change-detection job or per-job conditions), never in the workflow's on.pull_request.paths, and keep at least one job that always runs: a workflow-level path filter leaves a docs-only pull request with no CI run, and faker-kit merge refuses it. If the repository has none, stop: faker-kit merge refuses every pull request that has no passing run of such a workflow, so the project bot could never land work. The owner adds CI that builds and tests every pull request first; add no check runner of your own.If setup-faker-kit or setup-cloud-agents is not done, do that skill now, on the same branch, so the one pull request carries it. If something else cannot be done from here (a CI secret, for example), do the rest and list what is left under "Owner to do" in the pull request. The build-and-test CI is the exception: stop on it, as above.
AGENTS.mdThe project bot plans from AGENTS.md. Make sure it has a short Layout section:
apps/api/ (the backend) or apps/mobile/ (the iOS and Android app).Keep it to what an agent needs to plan a change. Do not repeat the README.
.agents/dispatch.jsonCopy templates/dispatch/dispatch.json and fill it:
backend from the values. For t3code, also add a t3code object: project (the T3 project id or the absolute path of the project on the owner's Mac, which you ask the owner for), base_ref (leave it out to branch from origin/<default branch>; set it only for a repository with no remote or to branch from another ref), provider and model (the T3 provider instance id and model slug, both or neither, only if the owner names them; without them T3 uses the project's default), and max_in_flight (how many T3 threads may run at once, default 2, separate from the top-level max_in_flight, which counts cloud sessions). Without the object, faker-kit launch refuses every launch.max_in_flight: how many units may run here at once. The owner sets it in .agents/dispatch.json: ask the owner for the number, and put it in the pull request. The machine has its own total across projects.forbidden_paths: paths no unit may touch. Keep the template's and add the repository's own, such as generated code or vendored files. The lockfile stays forbidden, because parallel agents that each change it conflict.trusted_dispatchers from the values. Coding agents follow only issues these logins wrote.verification_skill: the name of the repository's verification skill, a verify-* folder under .agents/skills/ or .claude/skills/. The project bot names it in every brief, and the brief's VERIFY field has the author's own session run it, and any other verify-* skill the repository has, on its change. If there is none and the repository has a user-facing surface, delete the key and list /create-verification-skill under "Owner to do": without it, agents prove changes with tests only, never on screen. For logic where a missed case is costly, list /create-formal-verification-skill there too.risk_paths_high: the repository's own high-risk paths, such as authentication, secrets, migrations, or deployment. The review prompts treat a pull request that touches one as high risk. A pattern ending in / matches that directory anywhere, such as apps/ledger/; others are globs.incidents: what faker-kit incidents polls when the owner asks a project bot to check for incidents (no job polls it on a schedule), from the bot's own machine and outbound only, so nothing needs a public address. main_checks (default true) opens an incident when the default branch's checks fail. health lists {"name": "api", "url": "https://..."} endpoints that must answer 2xx; two failed polls in a row open an incident. andon_on_red pulls the project's andon cord while the branch is red. The project bot launches a triage-incident session when a check it ran on request finds something red. Ask the owner for the health URLs; leave health empty without them.upstream_sync: only in a repository that vendors plugins from another repository through upstream/source.json and scripts/sync-upstream.mjs, such as the kit itself. Set it to true, and Hermes checks once a week whether that upstream repository has moved and, if so, dispatches one unit that runs the sync script and opens the pull request. Leave the key out everywhere else..agents/dispatch.mdCopy templates/dispatch/dispatch.md. Add standing orders only the repository's own files justify, such as "Every API change updates openapi.yaml". Every brief pastes this file verbatim, so keep it short.
One branch, such as faker-kit/setup-dispatch, and one pull request to the default branch. Its body lists:
max_in_flight the owner gave,Run the build, test, and lint commands from AGENTS.md before you push, and put their result in the pull request. Report the pull request link, the CI check names, the /check-agent-compatibility result, and the "Owner to do" list.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
6 skills in this plugin
/control-mobileBuild or adapt a local harness to drive and inspect an Android, iOS, Flutter, or Kotlin Multiplatform app on an emulator or simulator. Use for mobile UI verification, screenshots and screen recordings, UI hierarchy dumps, logs, startup and frame timing, deep links, or reproducing mobile bugs. The mobile counterpart of team-workflows's control-ui./setup-cloud-agentsMake the repository start, build, test, and run its app in a fresh cloud container, so engineers can run agents in parallel and designers, marketers, and founders can use the kit from a browser or phone with nothing installed. Writes one idempotent setup script, makes the kit load in every cloud session, wires it into Claude Code on the web, picks how screenshots reach pull requests for each surface, and proves it all in a fresh session. Use for /setup-cloud-agents, "run agents in the cloud", "let non-engineers use this without installing anything", or before scaling past a handful of parallel agents./setup-faker-kitPrepare a repository so agents can work in it unattended and anyone on the team can use the kit. Writes AGENTS.md, CLAUDE.md and STYLE.md around the repository's own build, test, and lint commands; links project skills for Claude Code; adds team settings so teammates get the kit automatically; and starts the corrections ledger. It adds no check script or lint configuration of its own; the one CI step it adds checks the repository's skill links. Use for /setup-faker-kit, "set this repo up for agents", or a repo with no AGENTS.md./style-guide-from-reviewsBuild or update STYLE.md from what reviewers actually say. Mines human review comments on merged pull requests, clusters the repeated ones into rules with bad and good examples, and names the layer each rule should move to next (type, lint, rules file, skill, or style-only). Use for /style-guide-from-reviews, when STYLE.md is empty or stale, or when reviewers keep repeating themselves./triage-incidentInvestigate one incident a Hermes project bot brought to you (the default branch's checks went red, a health URL fails, or an alert source such as Sentry, PagerDuty, Datadog, or Grafana reports a failure), without changing anything. Reads the failing checks' logs, finds the commit that broke it between the last green commit and the head, proves it by running the failing check at both, and posts one diagnosis (suspect commit, confidence, evidence, smallest safe fix) as a comment on the head commit for the owner. Never edits, pushes, reverts, or opens a pull request. Use when the brief says "/triage-incident Investigate ... in OWNER/REPO".npx claudepluginhub tsnanh/faker-kit --plugin trust-ladder