Phase 2 of building a Claude Managed Agent — turn a validated build sheet into exact API payloads and a resumable BYOK curl launch script, then launch (environment → agent → session → kickoff) using the founder's OWN Anthropic key. Use when the user says "launch it", "deploy the agent", "create the agent now", or when the orchestrator routes phase=stage-launch. payload_generator.py emits the four ordered payloads; launch_script_writer.py writes launch.sh that reads $ANTHROPIC_API_KEY at runtime and never embeds it; payload_validator.py runs a pre-launch check including an API-key-leak scan. No tool in this skill makes network calls — the user runs launch.sh themselves. Distinct from interview (planning) and grade-iterate (the outcome loop).
Turn the build sheet into runnable artifacts, then let the founder launch with
their own key. No script here touches the network or the key — the user runs
launch.sh.
python3 scripts/payload_generator.py \
--sheet ./my-agent/build-sheet.json --out-dir ./my-agent
# -> ./my-agent/payloads/{01-environment,02-agent,03-session,04-kickoff}.json
Agent toolset → always_allow; every MCP toolset → always_ask (baked into
the agent payload's permission_policies).python3 scripts/launch_script_writer.py --out-dir ./my-agent
launch.sh creates environment → agent → session → kickoff in order,
chaining IDs, and resumes on re-run (each step skips if its *.id file
exists). It reads $ANTHROPIC_API_KEY at runtime.python3 scripts/payload_validator.py --dir ./my-agent
FAIL blocks — especially a key_leak finding. Fix and re-run.[ -n "$ANTHROPIC_API_KEY" ] && echo "key present" || echo "export ANTHROPIC_API_KEY=... first"
Point the founder to platform.claude.com → API keys. Never print the key to
chat, never write it to a file.export ANTHROPIC_API_KEY=... # in their shell, not in chat
./my-agent/launch.sh
Mark checkpoints with Console deep links. Then goal_state.py set --phase grade-iterate and advance.launch.sh reads it
from the environment; payload_validator.py scans for sk-ant-… leaks and FAILs.launch.sh continues from the last created ID.$ANTHROPIC_API_KEY
before anything. Cite: this SKILL, key-safety rules.always_ask. Cite:
cma-primitives.md (permissions).scripts/payload_generator.py — build sheet → 4 ordered API payloads.scripts/launch_script_writer.py — resumable BYOK curl launcher (no key handling).scripts/payload_validator.py — pre-launch check + API-key-leak scan.Copy a source-pinned command for your client. You run it yourself.
Destination: .claude/skills/stage-launch · pinned to the source commit
# Run from your project root
git clone https://github.com/alirezarezvani/claude-skills.git .skillboard-tmp
git -C .skillboard-tmp checkout 19392f7a08264ed00486a251f5b2098321771f94
mkdir -p ".claude/skills"
cp -r ".skillboard-tmp/.gemini/skills/stage-launch" ".claude/skills/"
rm -rf .skillboard-tmpReview the source before running. This copies files into your project; it is not a one-click install and does not verify runtime safety.
sudo apt update && sudo apt install -y gitnpm install -g @anthropic-ai/claude-code# Run from your project root
git clone https://github.com/alirezarezvani/claude-skills.git .skillboard-tmp
git -C .skillboard-tmp checkout 19392f7a08264ed00486a251f5b2098321771f94
mkdir -p ".claude/skills"
cp -r ".skillboard-tmp/.gemini/skills/stage-launch" ".claude/skills/"
rm -rf .skillboard-tmpDestination: .claude/skills/stage-launch
Scanner static-checks@0.1.0 · commit 19392f7a0826. Static checks cannot prove runtime safety – review the source and the exact diff before installing. How checks work.
References credentials, tokens or secret files that a skill should not need.
Evidence: [redacted]· fingerprint ccae6d912a41bfef
Fetches remote content at runtime, which can change after review.
Evidence: curl· fingerprint 427e4b79b1f0fc90