ワンクリックで
add-agent-spec
Add a Bun-native YAML agent definition with inheritance, tool policy, and subagent references.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Add a Bun-native YAML agent definition with inheritance, tool policy, and subagent references.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
Add a Bun-native messaging channel adapter with lifecycle, webhook, and configuration coverage.
Add a Bun-native LLM provider entry with routing, pricing, headers, limits, and Bun tests.
Add a Bun-native TypeScript tool with schema, registry wiring, policy boundaries, and Bun tests.
Author a Bun-native Xerxes SKILL.md bundle with valid metadata, safe assets, and discovery tests.
Normalize Xerxes Apache-2.0 headers with the native Bun maintenance command and verify TypeScript sources.
Manage Apple Notes via the memo CLI on macOS (create, view, search, edit).
SOC 職業分類に基づく
| name | add-agent-spec |
| description | Add a Bun-native YAML agent definition with inheritance, tool policy, and subagent references. |
| version | 2.0.0 |
| tags | ["agents","yaml","typescript","bun","orchestration","xerxes"] |
| required_tools | ["ReadFile","WriteFile","FileEditTool","GlobTool"] |
Use this skill when creating or updating a declarative Xerxes agent definition. Agent definitions set a role prompt, default model, tool restrictions, and subagent references; they do not add runtime logic.
Do not use this skill to add a provider, a tool implementation, or a channel adapter.
Read xerxes/src/agents/definitions.ts and
xerxes/src/agents/agentSpec.ts before editing.
xerxes/src/agents/default/.$XERXES_HOME/agents/..xerxes/agents/.agent.yaml or agents.yaml at its root.Later sources override an earlier definition with the same name. Use a project directory for project-specific behavior; change the bundled directory only when the framework itself needs a new built-in agent.
Read xerxes/src/agents/default/agent.yaml, its system.md, and one
specialist such as coder.yaml or planner.yaml. The loader supports YAML
specification version 1, relative prompt paths, and extend: default.
Create .xerxes/agents/reviewer.yaml:
version: 1
agent:
name: reviewer
extend: default
when_to_use: Review a proposed code change for correctness and safety.
system_prompt_args:
ROLE_ADDITIONAL: >
Review the change for correctness, security, tests, and maintainability.
State concrete findings before suggesting edits.
model: claude-sonnet-4-6
allowed_tools:
- ReadFile
- GrepTool
- GlobTool
exclude_tools:
- exec_command
extend: default resolves to the native bundled agent.yaml. An explicit
relative path such as extend: ./base.yaml resolves relative to the current
definition.
tools replaces the inherited tool list when it is present.allowed_tools is an exclusive allow-list; use null to remove an inherited
allow-list.exclude_tools removes named tools from the resolved list.ToolDefinition.function.name values exactly.
Inspect xerxes/src/tools/index.ts and the relevant tool module
instead of guessing a class or file name.Use an allow-list for an agent that should be read-only or otherwise narrowly scoped. Do not put credentials or policy bypasses in a YAML definition.
Subagents are a mapping of name to a path, with an optional description:
agent:
subagents:
researcher:
path: ./researcher.yaml
description: Investigates code and returns evidence without editing files.
The path is resolved relative to the YAML file. Keep the delegation graph small
and set max_depth only when the default depth of five is not appropriate.
Add or extend xerxes/test/agents.test.ts. Test inheritance, prompt
substitution, tool restrictions, and the source-precedence behavior that your
definition changes. Use a temporary directory in the test rather than writing
to a real user agent directory.
Run:
bun test xerxes/test/agents.test.ts
bun run --cwd xerxes check
allowed_tools and exclude_tools use public tool names, not TypeScript
export names or file names.system_prompt and system_prompt_path after inheritance resolution
is a load error.ROLE_ADDITIONAL concise. Long prompts consume context on every turn.