Agent Skills

Skills are AI capability definitions. While rules constrain what the AI produces, skills shape how it works: a skill supplies a system prompt, declares which tools it may use, and carries a trust tier that decides how its prompt is placed in the conversation.

For a user-level walkthrough see the Agent Skills guide. This page is the file-format reference.

Skill Definition

Skills are project files under _Skills/. The loader (crates/ai/crates/sb-skills) reads .yaml / .yml files, and .md files with YAML frontmatter (if the Markdown has no prompts, its body becomes the system prompt).

skill_id: character_voice
name: Character Voice Generator
description: Generates dialogue and internal monologue in a character's unique voice
version: "1.0"
category: creative
applies_to: character
tags: [dialogue, voice, personality, writing]
 
prompts:
  system: |
    You are a creative writing assistant specializing in character voice.
    Given a character's personality traits, background, and speech patterns,
    generate dialogue or internal monologue that authentically represents
    their voice. Maintain consistency with established character details.
 
capabilities:
  - entity_read
  - ai_generate

Skill Fields Reference

FieldTypeRequiredDescription
skill_idstringYesUnique identifier. A file without it is skipped.
namestringNoDisplay name. Defaults to skill_id.
descriptionstringNoHuman-readable description.
versionstringNoVersion string. Defaults to "1.0".
categorystringNoGrouping category (for example creative).
applies_tostringNoA single entity type this skill targets. Empty = applies to every type.
tagslistNoSearchable tags.
capabilitieslistNoCapability strings declared by the skill.
promptsmapNoNamed prompts. The engine uses prompts.system (falling back to prompts.default).
tool_scopelistNoTool namespaces the skill may use (sb/<id> convention). Empty means no tool access.
output_contractobjectNoschema (JSON Schema) and optional description for the structured result.
modelstringNoModel alias in sb/<id> form. Do not hardcode concrete model IDs.
min_tierstringNoMinimum plan tier. Defaults to free.
invocation_scopeobjectNoNested-invocation settings (creates_child_session, inherit_context, max_turns).

Unknown keys are ignored. Earlier versions of this page documented parameters (temperature, max_tokens, output_types) and {{field}} placeholders in a prompts.user template. The skill loader and engine do not read those: when a skill is invoked, the caller’s arguments are sent as the user message (JSON) after the system prompt.

Trust Tiers

The tier is set by the directory a skill is loaded from, not by the file contents:

DirectoryTierBehaviour
Standard/, Core/built-insystem prompt is used as the system message.
Custom/, User/, _Skills/ rootuntrustedBlocked with a consent_required result until the user consents. Once consented, the prompt is wrapped with delimiters and sent in the user turn, not the system turn.

_Skills/Downloaded/ is intentionally never loaded or executed.

Resolution Order

When the same skill_id appears in several directories, the highest-priority copy wins:

Standard/  >  Core/  >  Custom/  >  User/  >  _Skills/ root (legacy)
⚠️

Because Standard/ has the highest priority, a Custom/ file with the same skill_id does not override a Standard skill. Give a custom skill its own skill_id instead.

Directory Structure

_Skills/
  Standard/                   # Built-in / catalog skills
  Core/                       # Built-in core skills
  Custom/                     # Your skills (publishing to the catalog reads from here)
  User/                       # Per-user skills
  my_project_skill.yaml       # Legacy root-level skill

Project skills are plain files that sync with the project like templates and rules.

Creating a Custom Skill

# _Skills/Custom/recipe_chef.yaml
skill_id: recipe_chef
name: Chef Assistant
description: Generates recipes with professional culinary techniques and plating suggestions
version: "1.0"
category: creative
applies_to: recipe
tags: [cooking, culinary, plating, technique]
 
prompts:
  system: |
    You are a professional chef with expertise in multiple cuisines.
    Generate recipes with precise measurements, professional techniques,
    and plating suggestions. Include chef's tips for common mistakes.
 
capabilities:
  - entity_read
  - ai_generate

Marketplace

Catalog skills install into the project’s skill directories, and a skill you publish is read from _Skills/Custom. See the marketplace.

Next Steps