跳到正文
Skillpedia
智能体29k · #9384

stage-launch

它能做什么

这项技能根据完成的构建计划,为 Claude 托管智能体准备设置文件。适合希望在自己账户中启动智能体的人。

适用场景

  • ✓当你的智能体构建计划已经就绪,并希望启动它时。
  • ✓当你希望在任何内容上线之前,检查设置文件中是否有错误时。
  • ✓当你希望有一个启动脚本,即使中途停止也能恢复时。

技能链接

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

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/alirezarezvani/claude-skills/blob/main/agent-launcher/skills/stage-launch/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我的智能体计划已经准备好了。请准备好设置文件,以及一个我可以用自己的密钥运行的启动脚本。”

每周 5 个新技能,1 分钟读完。

工作原理

这项技能会生成设置文件,编写一个按顺序创建各个部分的启动脚本,并检查所有内容是否存在问题。由你自己运行该脚本。

技术内容(原始 SKILL.md)

作者在 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.
常见问题

这项技能会使用我的 API 密钥吗?

不会。脚本不会触碰你的密钥。启动脚本会在你运行时从你自己的 shell 中读取它。

如果启动中途停止会怎样?

你再次运行启动脚本时,它会跳过已经完成的步骤。

我的密钥会保存在文件中吗?

不会。技能规定绝不能将密钥打印、写入文件或发送到聊天中。

详情

作者的原始描述

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

热度

GitHub 星标
29k
排名
#9384
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能