New: Earn 20% as an AgentAlley affiliate. Share your link and earn on every sale you refer. Join now New: Earn 20% as an affiliate. Join now

Phase 2 of building a Claude Managed Agent

Phase 2 — Stage → Launch

by alirezarezvani · MIT license · ★ 26,349 on GitHub · v2.11.2 · updated Aug 30

Phase 2 — Stage → Launch cover

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…

---
name: stage-launch
description: 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).
version: 2.11.2
author: Alireza Rezvani
license: MIT
tags: [cma, launch, payloads, curl, byok, api-key-safety, environment, agent, session]
compatible_tools: [claude-code, codex-cli, cursor, antigravity, opencode, gemini-cli]
---

# Phase 2 — Stage → Launch

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`.

## Workflow

Overview

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.

Manual install (npx, ZIP)
Claude Codenpx skills add alirezarezvani/claude-skills --skill stage-launch -g -a claude-code
Claude Code (manual)mkdir -p ~/.claude/skills && curl -sL https://codeload.github.com/alirezarezvani/claude-skills/tar.gz/19392f7a0826 \ | tar -xz -C ~/.claude/skills --strip-components=3 claude-skills-19392f7a0826/agent-launcher/skills/stage-launch
Windows (PowerShell)New-Item -ItemType Directory -Force "$HOME\.claude\skills" | Out-Null; Invoke-WebRequest "https://m.agentalley.io/zip/081415a4cb0341871b6b/stage-launch.zip" -OutFile "$env:TEMP\stage-launch.zip"; Expand-Archive "$env:TEMP\stage-launch.zip" -DestinationPath "$HOME\.claude\skills" -Force
Claude.ai / desktopDownload the ZIP and upload it under Settings → Capabilities → Skills.
Codex, Cursor, other agentsPoint them at SKILL.md. The other files are plain text.

Connects with Agent Alley MCP · agentalley.io/mcp

Files included

  • SKILL.md3.8 KB
  • README.md1.0 KB
  • scripts/3 files · 15.2 KB
Read the files here
alirezarezvani/19392f75 files
SKILL.md
Show the full text77 lines

Phase 2 — Stage → Launch

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.

Workflow

  1. Generate payloads.
    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).
  2. Write the launch script.
    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.
  3. Validate before launch.
    python3 scripts/payload_validator.py --dir ./my-agent
    
    FAIL blocks — especially a key_leak finding. Fix and re-run.
  4. Minimal key step (never in chat). Check the shell first:
    [ -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.
  5. Launch + watch the first poll.
    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.

Hard rules (API-key safety)

  • The key never enters chat, a file, a payload, or a log. launch.sh reads it from the environment; payload_validator.py scans for sk-ant-… leaks and FAILs.
  • Sequential launch. environment → agent → session → kickoff. Watch the first poll foreground before declaring success.
  • Resumable. Re-running launch.sh continues from the last created ID.

Forcing-question library (recommend + cite)

  1. "Is the key in your shell env already?" Recommend: check $ANTHROPIC_API_KEY before anything. Cite: this SKILL, key-safety rules.
  2. "Cloud or self-hosted environment?" Recommend: cloud for v0. Cite: cma-primitives.md (environment).
  3. "Any MCP server in the payload?" Recommend: keep it always_ask. Cite: cma-primitives.md (permissions).
  4. "Did the first poll return idle/running cleanly?" Recommend: watch it foreground before moving on. Cite: cma-primitives.md (session lifecycle).

Tools

  • 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.
1---
2name: stage-launch
3description: 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).
4version: 2.11.2
5author: Alireza Rezvani
6license: MIT
7tags: [cma, launch, payloads, curl, byok, api-key-safety, environment, agent, session]
8compatible_tools: [claude-code, codex-cli, cursor, antigravity, opencode, gemini-cli]
9---
10 
11# Phase 2 — Stage → Launch
12 
13Turn the build sheet into runnable artifacts, then let the founder launch with
14their own key. **No script here touches the network or the key** — the user runs
15`launch.sh`.
16 
17## Workflow
18 
191. **Generate payloads.**
20 ```bash
21 python3 scripts/payload_generator.py \
22 --sheet ./my-agent/build-sheet.json --out-dir ./my-agent
23 # -> ./my-agent/payloads/{01-environment,02-agent,03-session,04-kickoff}.json
24 ```
25 Agent toolset → `always_allow`; every MCP toolset → `always_ask` (baked into
26 the agent payload's `permission_policies`).
272. **Write the launch script.**
28 ```bash
29 python3 scripts/launch_script_writer.py --out-dir ./my-agent
30 ```
31 `launch.sh` creates environment → agent → session → kickoff **in order**,
32 chaining IDs, and **resumes** on re-run (each step skips if its `*.id` file
33 exists). It reads `$ANTHROPIC_API_KEY` at runtime.
343. **Validate before launch.**
35 ```bash
36 python3 scripts/payload_validator.py --dir ./my-agent
37 ```
38 FAIL blocks — especially a `key_leak` finding. Fix and re-run.
394. **Minimal key step (never in chat).** Check the shell first:
40 ```bash
41 [ -n "$ANTHROPIC_API_KEY" ] && echo "key present" || echo "export ANTHROPIC_API_KEY=... first"
42 ```
43 Point the founder to platform.claude.com → API keys. **Never print the key to
44 chat, never write it to a file.**
455. **Launch + watch the first poll.**
46 ```bash
47 export ANTHROPIC_API_KEY=... # in their shell, not in chat
48 ./my-agent/launch.sh
49 ```
50 Mark checkpoints with Console deep links. Then `goal_state.py set --phase
51 grade-iterate` and advance.
52 
53## Hard rules (API-key safety)
54 
55- **The key never enters chat, a file, a payload, or a log.** `launch.sh` reads it
56 from the environment; `payload_validator.py` scans for `sk-ant-…` leaks and FAILs.
57- **Sequential launch.** environment → agent → session → kickoff. Watch the first
58 poll foreground before declaring success.
59- **Resumable.** Re-running `launch.sh` continues from the last created ID.
60 
61## Forcing-question library (recommend + cite)
62 
631. "Is the key in your shell env already?" *Recommend:* check `$ANTHROPIC_API_KEY`
64 before anything. *Cite:* this SKILL, key-safety rules.
652. "Cloud or self-hosted environment?" *Recommend:* cloud for v0. *Cite:*
66 cma-primitives.md (environment).
673. "Any MCP server in the payload?" *Recommend:* keep it `always_ask`. *Cite:*
68 cma-primitives.md (permissions).
694. "Did the first poll return idle/running cleanly?" *Recommend:* watch it
70 foreground before moving on. *Cite:* cma-primitives.md (session lifecycle).
71 
72## Tools
73 
74- `scripts/payload_generator.py` — build sheet → 4 ordered API payloads.
75- `scripts/launch_script_writer.py` — resumable BYOK curl launcher (no key handling).
76- `scripts/payload_validator.py` — pre-launch check + API-key-leak scan.
77 
View all files on GitHub →

Details

Version
2.11.2
Updated
Aug 30, 2026
License
MIT
Stars on the repo
★ 26,349
Checked
Source
alirezarezvani/claude-skills ↗
Creator
alirezarezvani · 363 listings
View creator

Similar skills

See all →
SkillTurn the current project website into a short, polished/braglatent-spaces/brag · by latent-spacesTurn the current project website into a short, polished, shareable launch video using Hyperframes. Use when someone says "/brag", "let's brag about this", "make a launch video", "turn this into a video", or wants to share what they built. Reads the project code directly — no live URL or screenshots needed.★ 12.5k GitHub starsSkillTurn a project directory or a website URL into a short/brag-slimlatent-spaces/brag · by latent-spacesTurn a project directory or a website URL into a short, shareable launch video with music, motion, and share copy. One file, no bundled assets — built entirely by the model with the tools already on the machine. Use when someone says "/brag-slim", "let's /brag about this", "brag about <url>", "make a launch video", or wants to show off what they built. If the /brag skill is also installed, let /brag handle those phrases; it hands off here on Opus 5.5.★ 12.5k GitHub starsSkillPlan, build and quality-check a premium short commercialBusiness motion filmechris6/motion-video-kit · by echris6Plan, build and quality-check a premium short commercial for a real business (roofing, property, ecommerce, B2B software) using AI-generated footage, code-built motion (HTML/GSAP), selective Three.js and an independent-critic "Gauntlet" loop. Use when asked to make a launch-style / SaaS-style video, business ad, explainer, sample reel or pitch video, or to review and improve one. Encodes motion principles distilled from 28 professional launch films, a quality bar, audio rules and a business-offer playbook.★ 665 GitHub starsSkillLaunch your AI product to global attentionAI Product Launch PlaybookGingiris-1031/gingiris-skills · by Gingiris-1031Launch your AI product to global attention — the playbook behind Manus, Devin, and AFFiNE's breakout launches. Covers AI-specific GTM strategy, hype cycle management, waitlist tactics, and multi-market rollout for maximum day-one impact.★ 82 GitHub starsSkillBuild motion graphics and launch videos in codeMotion osjasonlee-breadcrumb/motion-os · by jasonlee-breadcrumbBuild motion graphics and launch videos in code, then open them in Motion OS, a local scene-by-scene review player where the user edits copy, pins notes on the frame, and sends one prompt back. Use when the user asks for a motion graphic, launch video, explainer, product video or animated ad, says "motion os", or pastes feedback that starts with "Motion OS feedback for".★ 61 GitHub starsSkillBuild a 30-60s motion-graphics launch video for a <YOURBRANDLaunch video creatortimscheuerai/content-vault · by timscheueraiBuild a 30-60s motion-graphics launch video for a <YOUR_BRAND> product or feature. Remotion 4 React composition + ElevenLabs AI narration + sound effects + background music, beat-anchored timing, brand-aligned design system. Use when asked to "create a launch video", "make a product video", "video for X feature", "launch a new feature", or "/launch-video".★ 37 GitHub stars

More from alirezarezvani

SkillResume a paused experiment/ar:ar-resume — Resume Experimentalirezarezvani/claude-skills · by alirezarezvaniResume a paused experiment. Checkout the experiment branch, read results history, continue iterating. Use when the user runs /ar:ar-resume or asks to pick up a previously started autoresearch experiment.★ 26.3k GitHub starsSkillShow experiment dashboard with results, active loops/ar:ar-status — Experiment Dashboardalirezarezvani/claude-skills · by alirezarezvaniShow experiment dashboard with results, active loops, and progress. Use when the user runs /ar:ar-status or asks how an autoresearch experiment is going.★ 26.3k GitHub starsSkillStart an autonomous experiment loop with user-selected/ar:loop — Autonomous Experiment Loopalirezarezvani/claude-skills · by alirezarezvaniStart an autonomous experiment loop with user-selected interval (10min, 1h, daily, weekly, monthly). Uses CronCreate for scheduling. Use when the user runs /ar:loop or asks to run an autoresearch experiment continuously on a schedule.★ 26.3k GitHub starsSkillRun a single experiment iteration/ar:run — Single Experiment Iterationalirezarezvani/claude-skills · by alirezarezvaniRun a single experiment iteration. Edit the target file, evaluate, keep or discard. Use when the user runs /ar:run or asks for one manual autoresearch iteration.★ 26.3k GitHub starsSkillSet up a new autoresearch experiment interactively/ar:setup — Create New Experimentalirezarezvani/claude-skills · by alirezarezvaniSet up a new autoresearch experiment interactively. Collects domain, target file, eval command, metric, direction, and evaluator. Use when the user runs /ar:setup or asks to start optimizing a file with the autoresearch loop.★ 26.3k GitHub starsSkill/cs:boardroom <brief/cs:boardroom — Multi-Role Boardroom Deliberationalirezarezvani/claude-skills · by alirezarezvani/cs:boardroom <brief> — 6-phase multi-role deliberation across the C-suite with Phase 2 isolation, critic pre-screen, and synthesis. Outputs a board memo. Use when a decision spans multiple executive domains — e.g. a pricing change touching finance, positioning, and product, or a raise-vs-cut runway call.★ 26.3k GitHub stars