Skip to content
docs

Skills and commands

Skills and commands are your own extensions to the agent, written as Markdown files. They share one mechanism: a command also works as a skill, so the agent can load it on its own based on its description, and you can invoke it by hand with /name.

A command is a Markdown file in a commands/ directory (inside .waibee/ or .claude/, in the project or globally in ~). The file name becomes the command name unless the frontmatter has name: review.md is invoked as /review. A subdirectory adds a prefix: deploy.md in commands/ops/ is invoked as /ops:deploy.

The body of the file is a prompt template that gets filled in on invocation. Arguments:

  • $ARGUMENTS inserts the whole string after the command name,
  • $1, $2 insert individual arguments in order,
  • !`command` inserts the output of a shell command at the time of invocation. The command must be fast and print little; otherwise the text gets a [!substitution ...] marker instead.

If the template uses $ARGUMENTS or positional substitutions, the arguments go only into those places. If there are no substitutions, the argument string is appended to the prompt.

Optional frontmatter configures the command:

---
description: Short description for the command list
argument-hint: <branch>
allowed-tools: Read, Grep, Bash
---
Check branch $1 for conflicts with main and describe what needs fixing.
  • description appears in the command list.
  • argument-hint tells you which arguments are expected.
  • allowed-tools limits the tool set for the turn the command starts. If you invoke several commands in one line, their sets are combined; a command without a limit leaves the combined set unlimited. In Claude Code this field means something else. See What works differently.

That is how invocation with /name works. When the agent loads a command or skill on its own with the Skill tool, it gets the text with the arguments filled in: the tool set is not limited, and !`command` does not run.

Skill, command, and subagent directories can be symbolic links, so you can keep a shared set in one place.

A skill is a command with extra files next to it: a .waibee/skills/<name>/ directory with a SKILL.md file and any supporting material. The skill name comes from the name field, or from the directory name if the field is missing. A standalone .md file directly in skills/ is also read as a skill.

SKILL.md
---
name: deploy
description: Deploy the current branch to staging
allowed-tools: [Read, Bash, Edit]
argument-hint: "[environment]"
---
When asked to deploy: show git status, run the tests, then deploy.

Frontmatter fields: name, description, allowed-tools, argument-hint, and user-invocable (true by default). user-invocable: false removes the skill from the / menu, but the agent can still load it on its own. Other fields are not read.

The agent keeps the short descriptions of all skills in context at all times and loads the full content only when a skill is needed. That way, knowledge for a specific task does not take up space in every session.

One skill is built in: waibee describes the commands of the app itself, and the agent loads it when you ask about Waibee Code. It is not in the / menu, and it stays even with --bare.

A subagent is a separate agent that the main one starts with the Agent tool for a narrow task in a separate context. Unless its definition says otherwise, it runs on the same model and at the same reasoning level as the main agent, and it spends from the same budget as the request that started it. The number of concurrent subagents is limited; the rest wait in a queue. Put the definition in .waibee/agents/<name>.md:

.waibee/agents/code-reviewer.md
---
name: code-reviewer
description: Reviews a diff for correctness and style, without edits
tools: [Read, Glob, Grep]
effort: high
skills: [code-standards]
---
You are a reviewer. Read the diff and point out problems. Do not change anything.

The body of the file becomes the subagent’s system prompt. It replaces the opening part that describes the agent’s role, and the general working rules stay. The subagent also gets the project instructions (WAIBEE.md, CLAUDE.md) unless its definition has omitClaudeMd. Compaction does not touch the system prompt, so the body, like WAIBEE.md, stays in full until the run ends. The task the main agent passes to Agent arrives as the first message and gets summarized during compaction, so put standing rules in the body. To the model it is still a request: back up a rule that must not be broken with a hook in the hooks field. An edit to the file takes effect from the subagent’s next run.

The frontmatter is read as YAML, so a list can go on one line or on separate lines with a dash. Files are also found in subdirectories of agents/. A file with neither name nor description does not count as a subagent and is skipped; if only name is missing, the name comes from the file name.

FieldWhat it does
name, descriptionthe name for Agent and the line used to pick the agent
modela model of its own instead of the parent’s: an alias or provider/model. inherit and an unknown name without / give the parent’s model
toolswhat is available to the subagent. ["*"] is the parent’s whole set; mcp__<server> or mcp__<server>__* is every tool of a server at once
disallowedToolswhat to subtract from the available set; the same masks, plus mcp__* for all of MCP
permissionModethe permission mode; it can only narrow the session’s permissions. plan leaves only reading, dontAsk rejects everything that would need approval
maxTurnsthe cap on turns for one run. Without the field, sub_agent_max_turns applies. See Per-message limits
timeoutSecshow many seconds to give a run; the overall max_run_seconds applies even without this field. When time runs out, the subagent is not cut off: it replies with what it has found so far
efforthow hard the subagent thinks: none, minimal, low, medium, high, xhigh, max; the set depends on the model. See Choosing a model. Without the field, it thinks at the same level as the main agent if they share a model; a different model has its own default level
skillsskills that sit in its context from the first turn
omitClaudeMddo not put the project instructions in its prompt
hookshooks in the settings format, only for the duration of its run. They are added to the project’s hooks rather than replacing them
backgroundrun in the background: the parent’s turn goes on, and the result arrives on the next turn
isolation: worktreework in a separate git working copy; the subagent names the branch and path in its reply
mcpServersMCP servers for it alone: a name from the settings or a server definition inline. tools does not filter their tools, but disallowedTools still hides them

Without tools, a subagent gets the default set: Read, Write, Edit, NotebookEdit, Bash with BashOutput and TaskStop, REPL, Glob, Grep, LSP, Skill, ToolSearch, CallTool, TodoWrite, WebFetch, WebSearch, Say, and the parent’s MCP tools. A subagent gets Say even with its own tools list, unless disallowedTools forbids it: it is the subagent’s channel to the main agent. Six tools are never available to it, even with ["*"]: Agent, TaskPeek, SidePanel, AskUserQuestion, EnterWorktree, ExitWorktree. It does not start subagents of its own, and it cannot ask a person either: the parent does that. A name in tools that matches no tool shows in /agents and in the result the main agent gets, with the reason: a typo, a tool turned off in the settings or in /mcp, an MCP server that is not connected, or an old tool name (then it also says which name to use).

The built-in subagents Explore and Plan only read: they have Read, Glob, Grep, LSP, Skill, ToolSearch, TodoWrite, WebFetch, WebSearch, and Say. Your own definition with the same name replaces the built-in one.

Tool names in the tools, disallowedTools, and allowed-tools lists can also be written the old way. See Names from earlier versions.

The main agent can clarify the task for a running subagent, or continue a finished one, through Agent with the resume field and the ID of the earlier agent. For a running subagent, the clarification goes into the current conversation; a finished one continues with its saved history after rereading the definition with the earlier name. If the definition can no longer be found anywhere, it cannot be continued. A subagent that hits a limit does not stop mid-sentence: it replies with what it found and says where it stopped. You can follow its progress and the clarifications in the terminal and in the browser.

The TaskPeek tool lets the main agent check on a subagent’s progress at any time without interrupting it.

You can also write to a subagent yourself: in the terminal, open it in Agent View (Tab); in the browser, in the agent panel. If the subagent is still working for the main agent, your message goes into that work, and the result goes to the main agent. If it has already finished, it replies to you, and the main agent neither learns about this conversation nor wakes up. If the main agent needs to know something, the subagent tells it with the Say tool, and that wakes the main agent.

The working copy stays after the run: deleting it means losing what the subagent did. Once you have taken the work, remove the copy as usual with git worktree remove <path> and git branch -D <branch>.

If the tools list matched nothing and the subagent’s own MCP servers added no working tools, the agent refuses to start the subagent and explains why.

hooks and mcpServers of a subagent defined by a file from this repository run only after the folder is trusted. See Folder trust. The other fields are always read, and a subagent from your ~/.claude or ~/.waibee is not affected.

The Claude Code fields color, memory, initialPrompt, cacheTtl, observer, observerMessage, observeSubagents, and isolation: remote are accepted but do nothing. Memory is still available to a subagent: it gets the facts from USER.md and MEMORY.md without that field.

Commands and skills are looked up in the project and globally, in .waibee/ and in the compatible .claude/. When names collide, the project wins over the global location, and .waibee/ wins over .claude/. A typed /name is looked up among commands first, then among skills. The agent loading a skill on its own does the opposite: it takes a skill before a command with the same name.

/help lists the available commands. /reload picks up a new or changed file: it rereads commands, skills, subagents, hooks, and MCP servers without a restart. You can also install skills and commands as a whole set. See Plugins.

You do not have to create the file by hand: on the extensions page in the browser, you can create a skill, command, or subagent through a form. By default the file goes into the folder of the session you are working with, but you can choose your home folder instead, which makes it available in every project. The same page lets you turn off a skill without deleting its file, and delete commands and subagents.

You do not have to write everything from scratch: skills already exist for common tasks. Catalogs and ways to install them are in Finding extensions, and ready-made sets are in Recommended extensions.