agentleFS
EnjoyoerEnjoyoer/loadout/skills/orchestration/claude-cloud/SKILL.md

claude-cloud

Skill0 starsChanged 2 months agoMITView on GitHub

Offload a coding task to a Claude Code cloud session (claude.ai/code), billed to the owner's claude.ai cloud-session credits. Use for long-running work, work that must continue with the laptop closed, or several independent tasks to run in parallel. Also covers checking and teleporting a cloud session back.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 6 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep the task local when it needs local-only files, services, secrets, or hosts, or when it depends on uncommitted local state.

    line 16
  2. Very specific:

    Run claude auth status. The CLI must be logged in to the claude.ai account that holds the credits, not a proxy API key.

    line 20
  3. Distinctive:

    Run git remote -v in the repository.

    line 21
  4. Distinctive:

    Commit and push anything the cloud session must see.

    line 23
  5. Distinctive:

    Run from inside the repository:

    line 27
  6. Distinctive:

    Write the description as a complete, self-contained brief: outcome, scope, constraints, and checks.

    line 38
  7. Distinctive:

    Use a PTY, since the Bash tool is non-interactive:

    line 58
  8. Very specific:

    Write the brief to a file, for example /tmp/brief.txt.

    line 60

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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

Claude Code cloud sessions

Cloud sessions run on Anthropic infrastructure against a repository and bill the claude.ai account's cloud-session credits, not the local proxy quota.

When to use

  • Long-running work that should not tie up a local agent.
  • Work that must keep going with the laptop closed.
  • Several independent tasks: each --cloud call is its own parallel session.

Keep the task local when it needs local-only files, services, secrets, or hosts, or when it depends on uncommitted local state.

Preflight

  1. Run claude auth status. The CLI must be logged in to the claude.ai account that holds the credits, not a proxy API key. If it is not, stop and ask the owner to run claude then /login interactively.
  2. Run git remote -v in the repository.
  3. Upload warning. If there is no Git remote, or the Claude GitHub App is not installed on that repository, the whole local repository is bundled and uploaded. GitHub tokens cannot list App installations, so the owner records confirmed repositories in ~/.config/opc/cloud-repos, one owner/repo per line, or owner/* for every repository of an account. If the GitHub remote matches a line (case-insensitive), the App is confirmed: proceed without asking. Otherwise, before offloading a private or secret-bearing repository, stop and get the owner's explicit approval. Prefer pushing to a GitHub remote with the Claude GitHub App installed.
  4. Commit and push anything the cloud session must see; it does not inherit uncommitted work when working from the remote.

Commands

Run from inside the repository:

claude --cloud "<brief>" --model 'claude-opus-5-5[1m]' --effort xhigh  # create one new cloud session
claude -p "<message>" --cloud <session_id | claude.ai/code URL>     # queue a follow-up into an existing session
claude --teleport [session_id]                                      # pull a finished session into this terminal
  • --model <id> and --effort <level> apply to the new session. The owner's default for cloud lanes is Opus 5.5 at xhigh, as shown.
  • --cloud requires an interactive terminal. Non-interactive invocations, including an agent's Bash tool call, run locally and silently ignore --cloud.
  • Write the description as a complete, self-contained brief: outcome, scope, constraints, and checks. The session cannot ask the local agent follow-up questions, so the brief must also:
    • give a unique marker and say "open a PR from your working branch titled [<marker>] <summary> against the default branch, and leave it unmerged". Do not name a branch: the cloud git proxy lets a session push only to its own assigned claude/<slug>-<suffix> branch and rejects pushes to any other name;
    • forbid edits to the project's memory files (STATUS.html, LESSONS.md).
  • --remote is a deprecated alias for --cloud; do not use it.
  • Teleport is one-way: a local terminal session cannot be pushed to the cloud.
  • Record the session ID, URL, marker, and expected PR in the project's STATUS.html.

Results

The session pushes nothing back to the launcher. Detect completion by either signal:

  • a PR whose title starts with [<marker>]: gh pr list --repo <owner/repo> --state all --limit 100 --json number,title,state,isDraft,headRefName filtered on that title prefix. Its headRefName is the session's claude/... branch;
  • the session page at the returned claude.ai/code URL.

claude --teleport <id> pulls a finished session in. Verify the result as you would any delegated work before merging.

Known failures: a brief that names its own branch makes the session's push fail, so it never opens the PR. A session can also run for hours without pushing. Before giving up on it, read its claude.ai/code page and, if it is idle or unreadable, send one -p follow-up asking it to push; fall back to a local worker only if the page shows a failure or it stays quiet after that. "Attaching to an existing cloud session is not enabled for your account" only means -p was missing from a follow-up, not that cloud sessions are unavailable. "Cloud sessions are disabled by your organization's policy" or "aren't available with <provider>" means cloud sessions cannot run from this login. The title marker and "open a PR" in the brief are what make completion detectable at all.

From Paseo agents

Use a PTY, since the Bash tool is non-interactive:

  1. Write the brief to a file, for example /tmp/brief.txt.
  2. create_terminal in the repository.
  3. send_terminal_keys with claude --cloud "$(cat /tmp/brief.txt)" --model 'claude-opus-5-5[1m]' --effort xhigh followed by a newline.
  4. capture_terminal to read the session ID and URL.

The machine running the agent must satisfy the preflight login check.

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.