跳到主要内容
知仓学习社ZHICANG

stage-launch

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 laun…

联网无严重或高危命中alirezarezvani/claude-skills

它会碰到什么

扫了多少5 个文本文件,20 KB
它会碰到什么联网
命中总数2 处
命中统计严重 0 · 高 0 · 中 0 · 低 2

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

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

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

  1. Validate before launch.
   python3 scripts/payload_validator.py --dir ./my-agent

FAIL blocks — especially a key_leak finding. Fix and re-run.

  1. 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.**

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

  1. "Cloud or self-hosted environment?" Recommend: cloud for v0. Cite:

cma-primitives.md (environment).

  1. "Any MCP server in the payload?" Recommend: keep it always_ask. Cite:

cma-primitives.md (permissions).

  1. "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.

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。

它属于哪个仓库

星标★ 26,030
本站分层T1
该仓技能数846
原文件路径agent-launcher/skills/stage-launch/SKILL.md

同一个仓库里的其他技能

看这个仓库的全部 846 个技能

同名技能的其他版本

有 2 个不同仓库或目录里都有叫 stage-launch 的技能。它们内容并不相同,别混用: