mameikagou/skill-forge/delegate-luna-worker
Claude Code and agent skill by mameikagou/skill-forge
- community
Checking that the SKILL.md file is still in the repository.
Install or configure the luna-worker Agent and delegate clearly bounded work to GPT-6 Luna with max reasoning under active main-agent oversight. Use when the user explicitly asks to set up or use Luna, Luna Max, luna-worker, or a Luna subagent, especially for implementation that needs a detailed prompt, strict change boundaries, protection against over-design, shared-worktree coordination, and direct main-agent intervention when quality is low.
Install
npx vskill@latest install mameikagou/skill-forge/delegate-luna-workerSKILL.md
The same SKILL.md was published earlier as mameikagou/skill-forge/delegate-luna-worker.
Delegate Luna Worker
Use the custom Agent defined at ~/.codex/agents/luna-worker.toml. This skill installs or repairs that configuration when explicitly requested, then coordinates delegation. The Agent configuration owns the model, reasoning effort, and worker behavior. The main agent remains an active technical owner: it controls direction and acceptance, participates in implementation when useful, and directly repairs low-quality or over-designed work when that is faster and safer.
Install or repair the Agent
Run this workflow when the user explicitly asks to install, configure, repair, or show the configuration for Luna Worker. Do not overwrite an existing customized Agent blindly: inspect it first and preserve unrelated supported settings unless the user requests the canonical replacement.
Resolve the target as $CODEX_HOME/agents/luna-worker.toml when CODEX_HOME is set, otherwise ~/.codex/agents/luna-worker.toml. Create the agents directory if needed, then use apply_patch to create or minimally update the file to this canonical configuration:
After writing the file:
- Parse it with an available TOML parser without installing dependencies globally. Assert that
name,description,model,model_reasoning_effort, anddeveloper_instructionsexist; assertname = "luna-worker",model = "gpt-6-luna",model_reasoning_effort = "max", and non-empty description and instructions. - Run a Codex configuration diagnostic when available. Distinguish validation of the main Codex configuration from validation of the Agent file; do not claim the diagnostic parsed the Agent unless it did.
- Show the user a unified diff limited to this file. For a new file, diff it against
/dev/null; for an update, preserve a pre-edit snapshot and diff old against new. Do not expose unrelated configuration. - Explain that Agent discovery is snapshotted when a Codex task starts. A new task or Codex restart is required before
spawn_agentcan select a newly created or changed Agent. Runtime verification consists of spawningluna-workerafter reload and confirming that the child turn usesgpt-6-lunawithmaxeffort.
If no TOML parser is available, report that syntax validation is pending instead of installing a global package or claiming success. Do not start a separate Codex instance solely for runtime validation unless the user explicitly requests it.
Prepare the delegation
Delegate only when the user's request explicitly authorizes Luna or subagent work. Before writing the task, inspect the current repository, worktree, applicable instructions, dirty files, live process or data state, and approved architecture. Read delegation-contract.md completely, then convert the relevant sections into a detailed, task-specific prompt. A short generic prompt is not sufficient for repository, migration, or data work.
The prompt must make change boundaries operational and contain:
- The concrete outcome and stopping condition.
- Exact repository and worktree paths, branch state, known commits, dirty files, completed work, failed attempts, and live runtime or data facts already verified.
- Owned files, modules, responsibilities, existing entrypoints, dependencies, and data or artifact roots that Luna may change or write.
- Exact protected paths and unrelated work that Luna must not stage, rewrite, reformat, move, or delete.
- The approved architecture and existing live path that must be reused.
- Prohibited additions such as new top-level packages, duplicate CLIs, parallel databases, compatibility layers, one-off scripts, speculative abstractions, and unrelated refactors.
- Ordered execution steps, required validation, real completion evidence, progress checkpoints, escalation conditions, and expected handoff.
- A reminder that the main agent may directly intervene in the shared worktree and Luna must preserve those edits.
Resolve details from the current context when safe. Ask the user only if an unresolved choice would materially change the result or ownership boundary.
Do not rely on phrases such as “follow the existing style” or “avoid over-engineering” without naming the exact allowed and forbidden surfaces for the current task. Before authorizing any new surface, require the prompt to identify the verified gap, reader, owner, lifecycle, replacement target, and smallest acceptance test.
Spawn the worker
Call spawn_agent with:
agent_type: "luna-worker"fork_turns: "none"- A short snake_case
task_name - The complete task contract in
message
Do not pass a model or reasoning-effort override. Do not use a full-history fork with a custom Agent type; the runtime rejects that combination. Include every fact the worker needs in the message because it receives no conversation history.
If the runtime reports unknown agent_type 'luna-worker', the current task's Agent registry is stale. Tell the user to start a new task or restart Codex so the newly installed Agent is loaded. Do not silently substitute a generic worker or a different model.
Coordinate and verify
Do not wait passively for Luna's final handoff. Continue useful conflict-free work and inspect the shared worktree, diff, tests, processes, and artifacts at natural checkpoints. Freeze the smallest acceptance set before implementation and prevent Luna from turning review concerns into extra gates or a broader redesign.
When Luna drifts or over-designs, send a concrete correction immediately, naming the files, behavior, and smaller approved direction. If Luna's implementation is materially low quality, unsafe, stuck in repeated churn, or unnecessarily heavy, directly modify or replace the affected work. Tell Luna before or immediately after intervening, identify the main-agent-owned edits, and instruct it to continue without reverting them. Delegation does not prevent the main agent from participating in the main implementation path.
Treat Luna's report as a claim, not proof. Check the authoritative diff and runtime state against the contract at matching scope. Verify that the requested outcome works through the approved path, protected work remains untouched, tests and real evidence cover the acceptance set, and no speculative framework or duplicate owner remains. Use followup_task for a narrow correction when that is more efficient; otherwise repair the issue directly and reassign Luna to the next bounded task or to evidence collection. Report that Luna was used and distinguish its claims from validation performed by the main agent.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/delegate-luna-worker/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mameikagou/skill-forge/delegate-luna-worker)