Skip to content
Skillpedia
Agents29k Β· #9384

stage-launch

What it does

This skill prepares the setup files for a Claude managed agent from a finished build plan. It is for people who want to launch their agent in their own account.

When to use it

  • βœ“When your agent build plan is ready and you want to launch it.
  • βœ“When you want setup files checked for errors before anything goes live.
  • βœ“When you want a launch script that can resume if it stops partway.

Skill link

https://github.com/alirezarezvani/claude-skills/blob/main/agent-launcher/skills/stage-launch/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/alirezarezvani/claude-skills/blob/main/agent-launcher/skills/stage-launch/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œMy agent plan is ready. Prepare the setup files and a launch script I can run with my own key.”

5 new skills a week. 1 minute to read.

How it works

The skill generates the setup files, writes a launch script that creates each part in order, and checks everything for problems. You run the script yourself.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

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

Does the skill use my API key?

No. The scripts do not touch your key. The launch script reads it from your own shell when you run it.

What happens if the launch stops halfway?

The launch script skips the steps that already finished when you run it again.

Will my key be saved in a file?

No. The skill says never to print or write the key to a file or to chat.

Details

Original description by the author

Use when a managed-agent build sheet is ready to launch ('launch it', 'deploy the agent'). Generates and validates API payloads with payload_generator.py and payload_validator.py and writes a resumable curl script with launch_script_writer.py that uses the user's own key.

repo: alirezarezvani/claude-skills

Popularity

GitHub stars
29k
Ranking position
#9384
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills