/trust-ladder:setup-cloud-agentsfrom trust-ladder
Make 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.
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.
Read when SKILL.md points to them; scripts run unread.
A cloud session is a fresh machine per task. That does two jobs:
The work is making the repository boot from nothing, reliably, with the kit loaded and a way to show pictures of the result.
Create scripts/cloud-setup.sh. It must:
Run it in a clean container (for example docker run --rm -v "$PWD:/repo" -w /repo ubuntu:24.04 bash scripts/cloud-setup.sh) until it succeeds from nothing.
A cloud session starts from a clone of the repository and nothing else. It does not install the plugins .claude/settings.json enables, and it cannot clone the kit when the kit's repository is private: the session's GitHub access reaches only the repository it was started on. The repository does not carry the kit. The owner's cloud environment does.
plugins/trust-ladder/skills/setup-cloud-agents/scripts/environment-setup.sh to the END of the cloud environment's setup script. Paste the contents: the setup script runs before any repository is cloned, and the kit is private, so it cannot call a file in a repository.FAKER_KIT_READ_TOKEN in the environment's variables. It is a fine-grained personal access token with Contents read-only on tsnAnh/faker-kit. Set FAKER_KIT_REF too to pin a branch, tag, or commit; it defaults to main.What the snippet does. It writes ~/.claude/faker-kit-install.sh, registers it as a SessionStart hook in ~/.claude/settings.json (idempotent, and it honours CLAUDE_CONFIG_DIR), and runs it once. At each session start the hook, when the token is set, fetches the kit into ~/.cache/faker-kit (first start only, since a marker file makes later starts a no-op), links every kit skill and subagent into the config folder's skills/ and agents/ with scripts/kit_links.py (it never replaces a skill or file that is not a link), and prints the kit's compat block (plugins/trust-ladder/references/compat.md) to stdout so it reaches the session as SessionStart context. The log is ~/.claude/faker-kit-setup.log. With no token it logs and exits 0, and nothing is installed.
Why a hook and not the setup script. Environment variables are invisible to the setup script and only the session sees them, so only a session-time hook can use the token. Why the compat block comes from the hook's stdout. CLAUDE.md is read before SessionStart hooks run, so editing it there would be too late.
Keep .claude/settings.json from setup-faker-kit: it installs the kit as plugins on engineers' own machines, where the plugin hooks run. In Claude Code a plugin skill is named with its plugin, such as agent-compatibility:check-agent-compatibility, and the linked one check-agent-compatibility, so the two never clash. Link the repository's own skills with scripts/link-skills.sh (from setup-faker-kit) as before.
Plugin hooks still do not run in a cloud session, so the hook above is what tells the agent how to read the upstream skills. Step 5 proves that a kit skill resolves in a fresh session.
Claude Code on the web (also what the Claude desktop and mobile apps run). In the cloud environment's settings, set the setup script to bash scripts/cloud-setup.sh, set network access to what the script needs, and add environment variables and API credentials, including FAKER_KIT_READ_TOKEN from step 2. The setup script ends with the snippet from step 2. The result is cached between sessions. For steps that must run in every session, such as starting a local database, add a SessionStart hook to .claude/settings.json that runs only when CLAUDE_CODE_REMOTE is true. Name the environment after the repository, so non-engineers can pick it without asking.
Give non-engineers access: each needs a claude.ai seat on the team plan, the GitHub connection for the repository, and read access to it. Branch protection (templates/branch-protection.md) is what keeps their pull requests safe, so turn it on first.
For every user-facing surface, pick how a cloud session proves a change with pictures, and how those pictures reach the pull request (references/evidence-in-prs.md):
| Surface | Proof in a cloud container | Where the rest is verified |
|---|---|---|
| Web app | Drive it headless with control-ui; screenshots and traces | Per-pull-request preview deployments, if the team has them, give the requester a link to click |
| Service, CLI, TUI | control-cli transcripts, responses, database rows | None needed |
| Android, KMP Compose | JVM screenshot tests (Roborazzi or Paparazzi) and Robolectric; no emulator, since most containers lack KVM | A KVM-enabled or macOS CI runner, or a device farm, for on-device checks |
| Flutter | flutter test golden images and the web target | As Android and iOS, for platform-specific behavior |
| iOS | None: the Simulator needs macOS | A GitHub Actions macOS runner posts screenshots per pull request (templates/github/ios-snapshots.yml). Xcode Cloud to TestFlight, or fastlane on the same runner, puts a build on the requester's phone |
For mobile apps, add screenshot tests for the main screens if the repository has none: they are the only pictures a Linux cloud session can take, and they catch visual regressions in the repository's tests from then on.
Write the result into AGENTS.md under a Cloud sessions heading: for each surface, the command that proves it in the cloud, and where the rest is verified. Agents read that section to tell a requester what proof to expect.
Start a fresh cloud session. In it:
doctor command, which must report healthy for every surface the cloud can run./check-agent-compatibility. It must run and score the repository./faker-mode to a pull request. Its body must show the before and after images, and anyone on the team must be able to see them.Record the time from session start to passing tests. If it is over ten minutes, cache more in the setup script.
The setup script, where it is wired in each agent, whether the owner added the snippet and FAKER_KIT_READ_TOKEN to the environment, whether the kit loads in a fresh session, the proof for each surface and where the rest is verified, the link to the test pull request, the time to passing tests, and the next steps: send non-engineers to claude.ai/code, and run /check-agent-compatibility to see how ready the repository is for agents. The owner sets how many agents run at once with max_in_flight in .agents/dispatch.json.
What SKILL.md sets; muted values are Claude Code's defaults
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-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.Other plugins' skills for the same job
/setup-hermes-projectConnect 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.npx claudepluginhub tsnanh/faker-kit --plugin trust-ladder