Skip to content

Skills

A skill is a SKILL.md file the model reads at runtime that teaches it how to follow a specific workflow — step-by-step instructions for a repeatable task.

When to use skills instead of putting everything in the system prompt: - The same procedure applies to multiple agents (you don't want to duplicate it) - The instruction is task-specific and you want to keep the base system prompt concise - You want to opt different agents into the same workflow independently

When skills aren't the right fit: - Personality, tone, and core identity belong in the system prompt, not a skill - One-off instructions for a single agent — just write them in the agent body

Authoring a skill

A SKILL.md at the root of a skill directory:

# Investigate Monte Carlo alerts

Use this when you receive a Monte Carlo data quality alert.

## Steps

1. Call `montecarlo__getTable` with the qualified table name from the alert.
2. Check `failure_rate` and `freshness` fields in the response.
3. If freshness > 24h, flag as a data pipeline issue and call `get_airflow_run`.
4. Summarize root cause in one sentence, then list evidence.

## Tools

Prefer `montecarlo__getTable` over generic search for direct table metadata.

Write for the model, not a human — explicit, ordered steps with specific tool names beat vague guidance.

Directory layout

.abt/
  skills/
    investigate-mc-alerts/
      SKILL.md
    code-review-checklist/
      SKILL.md
    asset-health/
      SKILL.md
      references/
        workflows.md
        parameters.md

A skill directory can contain supporting files alongside SKILL.md (reference docs, configs, examples). Agents access them via the read_skill_file tool.

Skills live in .abt/skills/ by default — apart from .agents/skills/, which belongs to coding assistants (Codex, Cursor, …). To use other folders, list them all:

paths:
  skills: [.abt/skills, team_skills]

Enabling skills on an agent

Skills are opt-in. List them by name — abt finds each one in paths.skills:

---
name: montecarlo-investigator
description: Investigates data quality alerts.
skills:
  - investigate-mc-alerts        # found in any paths.skills folder
  - team_skills/team-runbook     # needs team_skills in paths.skills (see above)
tools:
  - montecarlo__getTable
---

You investigate data quality incidents.

An agent sees exactly what it lists, nothing more:

  • A skill (investigate-mc-alerts) gives that one skill, not its siblings.
  • A folder (team_skills) gives every skill in it.
  • No skills: gives none. Delegating agents too: they get no default and don't inherit their subagents' skills.
  • A name found in two folders fails abt compile ('dup-skill' matches more than one paths.skills root — use the full path) — use the full path.
  • A name found in no folder fails abt compile too ('nope-skill' not found).

Remote skills

Reference a SKILL.md hosted in a remote Git repository without using submodules:

---
name: my-agent
skills:
  - github(my-org/my-skills/skills/review/SKILL.md@main)
  - local-skill
---

A remote skill is instruction text your model follows, so treat it like code: use a repository you trust and pin @<ref> to a tag or commit SHA you reviewed.

Syntax: <provider>(<owner>/<repo>/<path-to-SKILL.md>@<ref>)

  • provider — github (more providers planned: gitlab, etc.)
  • @<ref> — branch, tag, or commit SHA (optional; defaults to HEAD)

Remote skills are fetched at compile time — the entire skill directory is downloaded (SKILL.md plus any sibling files like references/, configs, etc.) and materialized to target/skills/<provider>/<slug>/. They appear in the manifest identically to local skills.

Transient GitHub errors (5xx, 429, and 403s identified as rate limiting via Retry-After/X-RateLimit-Remaining headers) are retried with backoff, up to ABT_SKILL_FETCH_MAX_ATTEMPTS (default 5). A skill that still fails degrades with a warning by default, or aborts compile with --live.

Authentication: every remote skill needs a GitHub token, public repositories included. abt checks for one before it sends any request, so a skill in a repository that doesn't exist fails the same way. It uses the same credential chain as context.github(): 1. credentials.github.token in profiles.yaml 2. GITHUB_TOKEN environment variable

Without a token, compile logs Failed to fetch remote skill ...: GitHub credentials are not configured (set credentials.github.token in profiles.yaml or GITHUB_TOKEN env var). A default compile then continues without the skill, and --live exits with Failed to resolve 1 remote skill. For a private repository the token also needs read access to it (classic token: repo scope; fine-grained: Contents read permission on the target repo).

# profiles.yaml
agent_factory:
  target: dev
  outputs:
    dev:
      credentials:
        github:
          token: ghp_...

Lazy mode: when --lazy is active (or ABT_LAZY_CONTEXT=true), already-materialized remote skills are not re-fetched. See Lazy materialization.

Subagents: remote skills work on both head agents and subagents. Each agent's skills: list is resolved independently at runtime.

Multi-file skills

A skill can include supporting files alongside SKILL.md — reference docs, parameter guides, workflow details, etc. This works for both local and remote skills.

asset-health/
  SKILL.md
  references/
    workflows.md
    parameters.md

Authoring: reference the supporting files from SKILL.md body:

# Asset Health

Read `references/workflows.md` before executing any tool calls.
Read `references/parameters.md` for parameter conventions.

Runtime access:

  • Plain agents — use the read_skill_file tool:
    read_skill_file(skill_slug="asset-health", relative_path="references/workflows.md")
    
  • Delegating agents — Deep Agents' read_file tool resolves paths via the backend (files are served from the materialized directory)

A miss names the files the skill actually ships (capped at 50, then +N more), so an agent that guessed a conventional path — references/workflows.md is the usual one — is corrected in the same turn instead of guessing again.

Safety: path traversal (../) and symlink escapes are blocked. Only files within the skill directory are accessible.

See also

  • Agents — skills: in frontmatter
  • Subagents — specialists with their own tools and skills