atomikpanda/mothership/overnight-cloud-worker-routines
Claude Code and agent skill by atomikpanda/mothership
- community
Checking that the SKILL.md file is still in the repository.
Use when standing up an overnight/unattended Claude Code cloud routine that becomes a disposable mship worker — clones the workspace, implements one approved spec, and opens the PR(s) through the relay, holding only a low-value per-run token.
Install
npx vskill@latest install atomikpanda/mothership/overnight-cloud-worker-routinesSKILL.md
The same SKILL.md was published earlier as atomikpanda/mothership/overnight-cloud-worker-routines.
Overnight Cloud-Worker Routines
Overview
A cloud-worker routine is a scheduled Claude Code run that, when it fires, becomes a disposable mship worker: it clones the workspace, implements one assigned spec, and opens the PR(s) — all routed through the relay. The worker never holds a GitHub token. It carries only a low-value, short-lived per-run token; its git and GitHub-API traffic go through the relay, which attaches and enforces real credentials at egress (attach-at-relay).
You (the agent standing the routine up) do two things the worker cannot: mint the run token and schedule the routine. The worker does the rest.
Scheduling a routine and creating it are agent behaviour (your own ClaudeCode/scheduleability), not mship code. This skill documents the pattern;mship does not automate it.
Prerequisites
- An approved enrollment with a github-app grant whose ceiling covers
every repo the run touches (see mship relay enroll / mship relay grant).
- A live relay egress-server reachable at a base URL (the
<relay-url>below). - The approved spec the worker will implement.
The flow
1. You: mint a per-run token (scoped to the run)
--reposmust be within the enrollment's grant ceiling. **It must include
the workspace repo (so the worker can clone the workspace to read the spec/plan) and every affected member repo** (so it can clone them, push, and open PRs).
--push-branchis the run's branch; the relay only lets the attached
credential push that branch.
- The token prints once — inject it into the routine's environment as the
--run-token value. It is low-value: scoped, short-lived, and useless without the relay.
2. You: schedule a Claude Code routine
Give the routine an environment that installs mship and the relay URL + the run token, and a prompt/task naming the spec to implement. Its flow is:
3. The worker (inside the fired routine)
Guarantees
- The worker holds only the low-value run token. No GitHub token, no App
key, no broker bearer ever lands on the worker. The relay attaches real credentials at egress and enforces the run's scope (repos + push branch).
- Nothing auto-merges — the flow is review-gated end to end. The worker
opens PRs; a human reviews and merges. There is no auto-merge step.
- Fail-fast before spend.
gh preflightaborts the run early if relay auth
can't push, instead of burning AI tokens on code that can't be landed.
Notes
- The relay flags are opt-in: without
--relay-url/--run-token,bootstrap
and gh preflight behave exactly as they do for a local/broker run. Passing one without the other is a clear error.
git config --globalon the worker is safe **because the worker is
disposable** (a fresh cloud env). Do not run these flags on a machine whose real git config you care about.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsrc/mship/skills/overnight-cloud-worker-routines/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/atomikpanda/mothership/overnight-cloud-worker-routines)