In a Claude cloud container running the cloud install profile, check which rh commands work locally vs fail with remote_only, enforce cloud token and GraphQL boundaries, and hand off local-host work (Herdr seats, council, Codex cross-review, quota, autopilot, board dispatch) to the owner's Mac through Remote Control. Exclude local hosts.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Repo Harness Cloud Bridge?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/aimpact-inc-repo-harness-cloud-bridge)
---
name: repo-harness-cloud-bridge
description: In a Claude cloud container running the cloud install profile, check which rh commands work locally vs fail with remote_only, enforce cloud token and GraphQL boundaries, and hand off local-host work (Herdr seats, council, Codex cross-review, quota, autopilot, board dispatch) to the owner's Mac through Remote Control. Exclude local hosts.
when_to_use: "repo-harness-cloud-bridge, remote_only, cloud profile, Remote Control, local Mac hand-off"
---
# repo-harness-cloud-bridge
Bot entrypoint. Use this skill in a Claude cloud container installed with
`--profile cloud`, either on explicit invocation or when an `rh` command fails
with `remote_only`. It maps cloud-available vs local-host capabilities and
defines the Remote Control hand-off. For gh-only coordination steps, follow
`repo-harness-issue-flow`.
## Check Profile First
Run `rh doctor --json` and inspect the `install-profile` check (`profile` and
`remote_only`).
- If `profile` is not `cloud`, stop: this host runs the local profile and does
not use this bridge.
- Each CLI command declares its environment (`local`, `cloud`, or `both`) at its
registration site. Run `rh commands --json` and inspect `environment` and
`plugin` for the exact command list, or read `install-profile.remote_only`
from `rh doctor --json` for the collapsed local-only command list.
## Command Boundaries on the Cloud Profile
The `cloud` profile installs `core` plus the fixed plugins `architecture` and
`product`, the Claude hook routes, the agent fleet, Waza, Mermaid, and the
CodeGraph CLI and MCP entry without pre-building a CodeGraph index. It refuses
`--plugins` and `--no-plugins`.
- **Available in the container:** commands with `environment: "both"` (or
`"cloud"`) whose `plugin` is `"core"`, `"architecture"`, or `"product"`, plus
GitHub REST CLI calls (`gh api` REST endpoints, `gh issue create|edit|comment`,
`gh pr create|edit|comment`). Build the CodeGraph index on demand when a task
needs it (`rh init` or `rh arch codegraph ensure --init`). Worktrees created
in the container are ephemeral and disappear when the container exits.
- **Fail closed with `remote_only`:** commands with `environment: "local"` fail
with exit code 1 and `remote_only` in the root `preAction` gate before any
action or plugin check. `rh doctor` reports `magpie`, `herdr-notify-relay`,
`board-attention-watcher`, and `board-advisor-timer` as `na` (remote-only)
without probing them.
- **Refused as unselected plugins (`install_plugin_unavailable`):** commands
with `environment: "both"` owned by `operator`, `mcp`, `peer-runtime`, or
`strategy-memory` fail closed because the `cloud` profile locks plugins to
`architecture,product`.
Query the live command tree instead of keeping a second list:
```bash
rh commands --json # path, plugin, environment (local | cloud | both)
rh doctor --json # install-profile.profile and install-profile.remote_only
```
## GitHub GraphQL Boundary
The cloud egress proxy refuses GitHub GraphQL requests with HTTP 403 (`use the
REST API`), while `gh api` REST calls succeed. Most board, review, and
publication operations use GitHub REST (#3880). Hand off these GraphQL-dependent
operations to the local Mac host:
- `rh board merge` for live merges, including `--all`.
- `rh publication merge` for live merges.
- `rh board post disposition`, which checks the PR target with `gh pr view`.
GitHub REST exposes Development sidebar connection history. The full closing
issue set, including links from PR body keywords, requires GitHub GraphQL.
On the cloud profile, `rh publication merge` stops before any GitHub write.
Above round 5, `rh review publish` accepts an owner record on the PR or on an
issue with a verified active Development sidebar connection. When REST
cannot prove that connection, run the step on the local host or connect to
that host through Remote Control.
Do not call `gh api graphql` from a cloud container or bypass the merge commands
with `gh pr merge`.
## Hand-Off to the Local Mac Host
When a task hits a `remote_only` command, an unselected local plugin, or a
GraphQL-blocked step:
1. Complete every cloud-capable step first (edits, typecheck, affected tests,
branch push, PR creation, or offline validation such as
`rh board triage-check` and `rh arch verify`).
2. Do not simulate, mock, or downgrade the missing local capability inside the
container.
3. Build one bounded hand-off packet containing:
- Goal and the exact local-host command to run (for example
`rh seats council`, `rh board dispatch`, `rh review round`,
`rh board merge`, or `rh quota`).
- Repository (`owner/repo`) and issue or PR number and URL.
- Branch name and exact head commit SHA.
- File scope and forbidden areas.
- Cloud verification commands already run and their observed results.
- Return channel: the GitHub issue or PR thread where results should land.
4. Deliver the packet by starting or using a Remote Control session on the
owner's local Mac host (routing to the repository's local orchestrator seat
for multi-seat dispatch, council, or cross-model review). If no Remote
Control session is available, report the blocked step and hand-off packet
directly to the owner.
5. Read results back from the GitHub issue or PR thread.
## Credentials and Boundaries
- **Cloud GitHub App token only:** use only the GitHub App installation token
that the container already injects, scoped to attached repositories. Never
request, add, store, print, or copy a personal access token (PAT), macOS
Keychain secret, Codex/OpenAI/Gemini/Pi credential, magpie credential, or
`.env` secret in the cloud container (owner decision, #3875).
- **No Claude-only council:** `rh seats council` stays on the local Mac host so
cross-vendor seats remain intact (owner decision, #3875). Do not emulate a
council with Claude-only subagents in the cloud.
- **No local Herdr or cross-review substitute:** never replace Herdr seats,
`repo-harness-cross-review`, or `rh review round` with tmux or local
subprocesses in the cloud container.
- **No fabricated evidence:** never manufacture acceptance receipts, review
records, or local check passes for steps that require the Mac host.