sol-luna-setup

sol-luna-setup is a skill for Codex from Yuri-NagaSaki/subagent-skills. It costs 159 tokens per session (1,967 once invoked), scanned D, original, MIT.

A setup guide for configuring a team of coding agents, with one agent planning work and others scouting, building, reviewing, or testing it. It can also configure Claude Code and Pi tools for a new machine or project.

In plain words
What is it for?
Use it to set up Codex, Claude Code, or Pi, create shared agent instructions, configure layered agents, and run basic checks that the setup works.
Why use it?
It removes the manual work of installing several command-line tools and creating their project configuration. It also helps diagnose cases where the lead agent cannot start its worker agents, while keeping API keys out of project files.

Skill for Codex

Written for Codex: runs codex exec. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

Good fit Use it to set up Codex, Claude Code, or Pi, create shared agent instructions, configure layered agents, and run basic checks that the setup works.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yuri-nagasaki/subagent-skills/sol-luna-setup
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Yuri-NagaSaki/subagent-skills --skill sol-luna-setup
Clone the repo
git clone --depth 1 https://github.com/Yuri-NagaSaki/subagent-skills

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sol-luna-setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/yuri-nagasaki/subagent-skills/sol-luna-setup/github.svg)](https://agentmods.dev/skills/yuri-nagasaki/subagent-skills/sol-luna-setup)
Your own site
<a href="https://agentmods.dev/skills/yuri-nagasaki/subagent-skills/sol-luna-setup"><img src="https://agentmods.dev/badge/skills/yuri-nagasaki/subagent-skills/sol-luna-setup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sol-luna-setup

Your own site · 80×15
<a href="https://agentmods.dev/skills/yuri-nagasaki/subagent-skills/sol-luna-setup"><img src="https://agentmods.dev/badge/skills/yuri-nagasaki/subagent-skills/sol-luna-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 159 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,967 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 3 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00159 $0.01967
Opus 5 $0.00079 $0.00983
Sonnet 5 $0.00032 $0.00393
Haiku 4.5 $0.00016 $0.00197

Measured 11d ago against content hash 39244d50eb3e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade D, and why

sol-luna-setup scanned grade D with 3 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (references/project-template/scripts/prepare-luna-catalog.sh, scripts/bootstrap.sh, scripts/prepare-luna-catalog.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

# 或 curl -fsSL https://pi.dev/install.sh | sh

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

写入 `~/.codex/config.toml`(仅个人默认):

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

# 或 curl -fsSL https://pi.dev/install.sh | sh
skills/sol-luna-setup/SKILL.md · 196 lines

How it starts

The opening of the file, as written. The whole thing — 196 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Sol + Luna 分层子代理 Setup Skill

Install: npx skills add Yuri-NagaSaki/subagent-skills -g -y
Repo: https://github.com/Yuri-NagaSaki/subagent-skills
Guide: https://catcat.blog/2026/08/sol-luna-layered-subagents-codex-claude-pi.html

目标

不把密钥写入仓库的前提下,让项目具备:

  • 主会话 gpt-5.6-sol(领导)
  • 工人 gpt-5.6-luna(scout / worker / critic / tester)
  • 项目级配置可 git 共享
  • 可验证的冒烟结果

硬性安全规则

  1. 永远不要把 API Key、主机 IP、SSH 密码、私钥写进 config.tomlAGENTS.md、README、文章正文或 git commit。
  2. 密钥只用环境变量:OPENAI_API_KEY / GATEWAY_API_KEY / ANTHROPIC_API_KEY 等。
  3. model_providers.*.env_key 只写变量
  4. 大文件 models-v1.json 默认 gitignore,用脚本生成。

前置

  • Linux / macOS,Node.js 20+
  • 可访问的 OpenAI-compatible Responses 端点(wire_api = "responses"
  • 账号侧启用 gpt-5.6-solgpt-5.6-luna

标准流程(Agent 必须按序执行)

0. 探测

node -v && npm -v
command -v codex || true
command -v claude || true
command -v pi || true
test -n "${OPENAI_API_KEY:-}" && echo "OPENAI_API_KEY=set" || echo "OPENAI_API_KEY=MISSING"

若缺少 Key:停止并要求用户 export,不要在对话外落盘明文。

1. 安装 CLI

npm i -g @openai/codex @anthropic-ai/claude-code
# 可选
npm i -g @earendil-works/pi-coding-agent
# 或 curl -fsSL https://pi.dev/install.sh | sh
pi install npm:@kky42/pi-flow   # 可选,需已装 pi

2. 全局个人默认(可选)

写入 ~/.codex/config.toml(仅个人默认):

  • model = "gpt-5.6-sol"
  • default_subagent_model = "gpt-5.6-luna"
  • [features] multi_agent = truemulti_agent_v2 = false(配合 V1 catalog)
  • [model_providers.gateway] + env_key = "OPENAI_API_KEY"

不要复制用户的真实 Key 进文件。

3. 项目级模板

在项目根运行:

bash /path/to/subagent-skills/scripts/bootstrap.sh "$(pwd)"
# 或安装 skill 后:
# bash ~/.claude/skills/sol-luna-setup/scripts/bootstrap.sh "$(pwd)"

会创建/更新:

.codex/config.toml
.codex/agents/luna_{scout,worker,critic,tester}.toml
AGENTS.md
.claude/agents/luna-{scout,worker,critic}.md
CLAUDE.md
scripts/prepare-luna-catalog.sh
.gitignore 条目:.codex/models-v1.json、.env

保留用户已有无关配置;冲突时合并而非盲覆盖。

4. 修复 Sol → Luna spawn(必做)

Read the full file on GitHub · 196 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 196 lines · 159 tokens per session scan D 39244d50eb3e

Subscribe to this mod's changes

sol-luna-setup is a skill published in the GitHub repository Yuri-NagaSaki/subagent-skills (12 stars, last pushed 1mo ago), licensed MIT. It adds 159 tokens to every session and 1,967 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it D with 3 findings (downloads and executes remote code, reads agent configuration directories, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.