Skip to main content
xbot
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage
Edit page

Skills & Agents

xbot supports extensible skills and role-based sub-agents, both defined as Markdown files.

Skills

Skills are Markdown-based capability packages that provide specialized instructions for specific tasks. They are loaded from the workspace on demand.

Skill Structure

Each skill is a directory under ~/.xbot/skills/ (or embedded in the binary):

~/.xbot/skills/
└── my-skill/
    └── SKILL.md       # Main skill definition

Built-in Skills

SkillDescription
agent-creatorCreate new SubAgent role definitions
debugInvestigate and fix bugs
skill-creatorCreate, update, or delete skills

Using Skills

The agent discovers and loads skills via the Skill tool:

Skill(name="debug", action="load")

SubAgents

SubAgents are role-based sub-programs that can be delegated tasks. They run independently with their own tool set and context.

Agent Structure

Each agent is a Markdown file under ~/.xbot/agents/ (or embedded):

~/.xbot/agents/
├── explore.md         # Code exploration agent
├── chancellery.md     # Review agent
├── secretariat.md     # Planning agent
└── ...

Built-in Agents (Three Provinces System)

AgentRoleTools
exploreCode exploration and logic analysisGrep, Glob, Read, Shell
chancelleryReview and quality assuranceRead, Grep, Glob, Shell
secretariatPlanning and architecture designRead, Grep, Glob, Shell
department-stateTask execution coordinationRead, Grep, Glob, Shell
ministry-worksCode implementation(specialized)
ministry-justiceBug hunting and correctnessRead, Grep, Glob
ministry-personnelCode quality reviewRead, Grep, Glob
ministry-revenuePerformance analysisRead, Grep, Glob, Shell
ministry-ritesDocumentation reviewRead, Grep, Glob
ministry-defenseSecurity reviewRead, Grep, Glob, Shell

Usage Modes

One-shot (default):

SubAgent(task="review this code", role="chancellery")

Interactive (multi-turn session):

SubAgent(task="analyze this module", role="explore", interactive=true, instance="review-1")
SubAgent(task="now check the tests", role="explore", action="send", instance="review-1")
SubAgent(task="", role="explore", action="unload", instance="review-1")

Limits

  • Max nesting depth: 6 (MAX_SUBAGENT_DEPTH)
  • Parallel instances: supported via unique instance IDs

Marketplace

Users can publish, browse, install, and uninstall skills and agents through the marketplace (Web channel and slash commands).

CommandDescription
/browseBrowse marketplace entries
/install <name>Install a skill/agent
/uninstall <name>Uninstall
/publishPublish own skill/agent
/unpublishRemove from marketplace