chatlunalab/chatluna/sub-agent-creator
Claude Code and agent skill by chatlunalab/chatluna
- community
Checking that the SKILL.md file is still in the repository.
Create, edit, convert, or audit ChatLuna sub-agent markdown files. Use when adding a new sub-agent, refining a sub-agent prompt, choosing a sub-agent's goal and output contract, restricting tools, skills, MCP, or computer permissions, pinning or omitting a model, setting maxTurns, placing agents under local `data/chatluna/agents`, writing them into a remote sandbox before `agentcli sync`, or converting Claude or OpenCode agent files into ChatLuna-compatible sub-agents.
Install
npx vskill@latest install chatlunalab/chatluna/sub-agent-creatorSKILL.md
Sub-Agent Creator
Create complete sub-agent markdown files for ChatLuna's extension-agent package. Prefer ChatLuna format unless the target file, target directory, or user request clearly calls for Claude or OpenCode compatibility.
Default Decisions
- Default new ChatLuna-native agents to
local data/chatluna/agents/<agent-name>/index.md.
- If the current computer backend is not
local, write the new file to the
sandbox path ~/.chatluna/agents/<agent-name>/index.md instead, create the parent folder first if it does not exist, and finish with agentcli sync subagents so the local ChatLuna path is updated.
- Preserve the existing format when editing an existing sub-agent file.
- Use a short, specific agent name. Keep the job narrow.
- Omit
modelwhen you do not know the exact installed model name. Let the
sub-agent inherit the parent model instead of guessing.
- Keep
allowKoishiMessageTransform: falseunless the agent must receive the
user's Koishi message structure instead of plain text.
Authoring Workflow
- Define the agent's exact job.
- State the goal, the expected input, the limits, and the expected final
answer.
- Split planning, implementation, review, and UI control into separate
agents when possible.
- Choose the narrowest permission set that still works.
- Read-only agents usually need
file_read,glob, andgrep. - Focused coding agents usually need
file_read,file_edit,file_write,
glob, grep, and sometimes bash.
- Web research agents may need
browser_open,web_search,
browser_read_text, and browser_summarize.
- Keep computer access denied unless the task truly needs desktop control.
- Choose model and turn budget.
- Use the exact requested model when the user provides one.
- Leave
modelunset when the correct model is unknown. - Use
8-20turns for lookup or review,20-60for focused
implementation, and 100 only for broad multi-step work.
- Write the prompt body.
- Start with the role in one sentence.
- Name the tools or capabilities the agent can rely on.
- Describe the workflow in execution order.
- State hard boundaries.
- End with the required result format.
- Review the file.
- Remove placeholders, TODOs, and vague filler.
- Make sure the description says when the parent should use this agent.
- Make sure the permissions match the prompt.
- If the file was authored in a sandbox, run
agentcli sync subagentsand
verify the local file path after sync.
What Good Sub-Agents Look Like
- Make the
descriptionusable as catalog text. Write what the agent does and
when to call it.
- Make the prompt operational, not inspirational. Tell the agent what to do
first, what to avoid, and what to return.
- Keep each agent single-purpose. Do not create a giant all-in-one assistant.
- Prefer explicit output contracts such as file paths, line numbers, patches,
checklists, or concise result summaries.
- Do not rely on nested delegation. The platform blocks sub-agents from using
task.
ChatLuna Format
Use this format for new ChatLuna-native agents.
ChatLuna Frontmatter Fields
name: Human-facing sub-agent name.description: Catalog text. Include both capability and trigger.format: Usechatlunafor native agents.enabled: Usuallytrue.hidden: Settrueonly when the agent should stay out of the normal
catalog.
model: Optional exact model name. Omit to inherit from the parent agent.maxTurns: Hard turn budget. Default config is100, but most specialists
should use less.
allowKoishiMessageTransform: Settrueonly when the prompt must preserve
Koishi message elements, mentions, or multimodal transforms.
permissions: Four permission groups:skills,mcp,tools, and
computer.
Permission Rules
Each permission group uses this shape:
inherit: Use the global default for that category.all: Allow everything in that category.allow: Allow only the listed entries.deny: Deny the listed entries and allow the rest of that category.
Prefer mode: allow for tight specialist agents. It is the clearest and safest way to restrict behavior.
Use the right names:
permissions.tools: Tool names such asfile_read,file_edit,
file_write, glob, grep, bash, web_search, browser_read_text, and browser_summarize.
permissions.skills: Skill names.permissions.mcp: MCP server names.permissions.computer: Backend names such aslocal,e2b, and
open-terminal.
Important behavior:
- Sub-agents cannot use
task, even if you mention it. - Only the builtin
planandexploreagents get hard-coded read-only
protection. Custom read-only agents must restrict their own tools.
- When you want "no MCP", use
mcp.mode: allowwith an emptyallowlist. - When you want "no tools", use
tools.mode: allowwith an emptyallow
list.
Recommended Permission Shapes
Use these patterns as defaults.
Read-only explorer
Focused coder with shell access
Browser or desktop operator
Only grant computer when the task explicitly needs GUI or browser control.
Claude-Compatible Format
Use Claude-style frontmatter only when editing a Claude agent or when the file will live in a Claude agents directory.
Supported Claude fields:
namedescriptionmodelmaxTurnshiddentoolsdisallowedToolsskillsmcpServers
Use a simple allow list when possible.
Notes:
read,write,edit,bash,glob,grep,webfetch, andtask
aliases are mapped into ChatLuna-compatible tool names.
- Prefer
toolsoverdisallowedToolsfor narrow agents.
OpenCode-Compatible Format
Use OpenCode-style frontmatter only when editing an OpenCode agent or when the file will live in an OpenCode agents directory.
Supported OpenCode fields:
namedescriptionmodelhiddendisableprompttoolspermissionmode
Example:
Notes:
- If
promptexists in frontmatter, ChatLuna prepends it to the markdown body. modeis informational here. Keep it accurate, but do not rely on it for
enforcement.
Prompt Writing Rules
- Tell the sub-agent what success looks like.
- Tell it what to do first.
- Tell it what not to do.
- Tell it what format to return.
- Name concrete artifacts such as file paths, symbols, routes, schemas, or test
commands.
- Avoid generic lines such as "be helpful", "think step by step", or
"use your best judgment" unless they add a real constraint.
Final Checklist
- Use the correct format for the target directory or existing file.
- Match the agent name, file name, and job.
- Make the description specific enough to trigger the right agent.
- Omit
modelinstead of inventing one. - Use the narrowest permission set that still works.
- Keep
computeroff unless the task explicitly needs it. - Keep the prompt complete. Do not leave stubs.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/extension-agent/resources/skills/sub-agent-creator/SKILL.md
Popularity
- Repository stars
- 429
- Repository forks
- 51
- 7-day trend score
- 30
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 27 Jul 2026, 3 months ago.
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/chatlunalab/chatluna/sub-agent-creator)