AAnvio
Skills, Personas, Souls & Learning

Skills

Reusable capability modules — Markdown or YAML files that attach instructions, permissions, and tool requirements to any agent.

6 min read

A Skill is a reusable capability module: a block of instructions plus metadata (permissions, tool requirements, context requirements) that any agent can load by slug. Skills are how Anvio keeps agent definitions small — instead of writing "how to do a code review" into every persona, you write it once as a skill and attach it wherever it's needed.

Skills are file-first. They live as plain Markdown or YAML files on disk, under version control, in configs/skills/ (bundled catalog) and workspace/skills/ (your workspace catalog).

File formats

Anvio supports two on-disk formats for the same underlying SkillDefinition:

  • YAML — apiVersion: anvio.io/v1, kind: Skill, explicit spec fields. This is the bundled-catalog format.
  • Markdown — YAML frontmatter (name, description, permissions, tags, ...) followed by a body that becomes spec.instructions verbatim. This is the format the learning loop writes when it drafts new skills, and the format used for hand-authored workspace skills.

YAML example (real, from configs/skills/architecture.yaml)

apiVersion: anvio.io/v1
kind: Skill
metadata:
  slug: architecture
  version: "1.0.0"
  catalog: bundled
spec:
  name: Architecture
  description: System design, architecture review, and technical decision making
  category: engineering
  routing: coding
  instructions: |
    When performing architecture tasks:
    1. Understand requirements and constraints first
    2. Identify key architectural drivers (scalability, security, maintainability)
    3. Propose options with tradeoffs
    4. Recommend a path with clear rationale
    5. Document decisions for future reference
  permissions:
    - read:documentation
    - read:codebase
  toolRequirements: []
  contextRequirements:
    - project_context
    - requirements

Markdown example (real, from workspace/skills/code-review.md)

---
name: Code Review
description: Structured code review with security and maintainability focus
---

When reviewing code:

1. Check correctness and edge cases
2. Assess readability and naming
3. Flag security and data-handling risks
4. Suggest minimal, focused improvements
5. Summarize blocking vs non-blocking findings

The parser (parseSkillMd in packages/core/src/markdown/skill-md.ts) reads the frontmatter for name, description, permissions, toolRequirements, contextRequirements, tags, catalog, and version; anything missing falls back to a sensible default (e.g. the # Heading in the body becomes name if frontmatter omits it). The entire Markdown body becomes spec.instructions.

Schema

Every skill — regardless of source format — normalizes to this shape (packages/core/src/schemas/skill.schema.ts):

FieldTypeNotes
metadata.slugstringUnique identifier, also the filename stem
metadata.versionstringDefaults to 1.0.0
metadata.catalogbundled | community | team | privateOptional; drafts default to private
spec.namestringDisplay name
spec.descriptionstringOne-line summary
spec.instructionsstringThe actual prompt text injected for the agent
spec.permissionsstring[]Declarative permission tags (e.g. read:codebase)
spec.toolRequirementsstring[]Tool names the skill expects to be available
spec.contextRequirementsstring[]Named context values the skill expects (e.g. project_context)
spec.categorystring (optional)Free-form grouping, e.g. engineering
spec.routingstring (optional)Hint used for kanban lane routing (see Kanban)
spec.tagsstring[]Free-form tags

Where skills live

configs/skills/           # Bundled catalog — ships with Anvio
  architecture.yaml
  code-review.yaml
  coding.yaml
  debugging.yaml
  documentation.yaml
  finance.yaml
  planning.yaml
  project-manager.yaml
  research.yaml
  assistant.yaml
  coach.yaml

workspace/skills/          # Your workspace catalog — take precedence over bundled
  architecture.md
  code-review.md
  dag-report-skill.md
  _drafts/                 # Learning-loop skill drafts (not yet installed)
  _installed/manifest.yaml # Records what's been installed from the bundled catalog

SkillCatalogResolver (packages/skills/src/catalog-resolver.ts) looks in workspace/skills/ first, then configs/skills/ (the bundled dir), for a {slug}.yaml or {slug}.yml file. A workspace skill with the same slug as a bundled one silently wins.

The catalog resolver as implemented reads .yaml/.yml only — Markdown skill files are resolved through the higher-level skill registry/workflow-registry paths that also check .md. If you hand-author a .md skill and it isn't picked up where you expect, verify which loader is in the code path; the workflow registry (packages/workflows/src/workflow-registry.ts) explicitly checks md, yaml, yml in that order, and skill drafts are always written and promoted as .md.

Resolving and rendering skills

SkillRegistry.getBySlugs(slugs) (packages/skills/src/index.ts) loads each requested skill and returns its spec. renderSkillInstructions concatenates them into a single block the runtime injects into the agent's context:

## Skill: Architecture
System design, architecture review, and technical decision making

When performing architecture tasks:
1. Understand requirements ...

---

## Skill: Code Review
...

An agent definition (kind: Agent) references skills by slug; at run time the runtime resolves each slug through the registry and appends the rendered instructions to the assembled prompt (alongside persona and soul context — see Personas and Souls & Soul Gate).

Installing bundled skills into your workspace

SkillInstaller (packages/skills/src/skill-installer.ts) copies a bundled skill's raw YAML into workspace/skills/{slug}.yaml and records it in workspace/skills/_installed/manifest.yaml:

apiVersion: anvio.io/v1
kind: SkillManifest
spec:
  installed:
    - slug: architecture
      version: "1.0.0"
      source: bundled
      installedAt: "2026-07-01T09:00:00.000Z"

Installing gives you a local, editable copy — you can hand-modify the instructions afterward without touching the bundled catalog. remove(slug) deletes the workspace copy and drops it from the manifest.

Skills derived from workflows

A DAG workflow that runs successfully and deterministically can be captured as a skill so an agent can invoke the same procedure directly, without going through the DAG executor. workspace/skills/dag-report-skill.md is a real example derived from workspace/workflows/example-dag.md:

---
apiVersion: anvio.io/v1
kind: Skill
metadata:
  slug: dag-report-skill
  name: DAG Report Skill
  sourceWorkflow: example-dag
spec:
  description: Produces a merged DAG report from parallel gather steps (derived from example-dag workflow)
  triggers:
    - dag report
    - parallel gather
---

# DAG Report Skill

Derived from workflow `example-dag`. Use when the user wants a structured
report from two parallel research branches.

## Procedure
1. Gather finding A for the given topic (web search or repo scan).
2. Gather finding B from a complementary angle.
3. Merge into markdown ...

See Workflows & DAG Execution for the source workflow and the conversion checklist.

Skills and the learning loop

Skills aren't only hand-authored. The learning loop can propose new skill drafts in workspace/skills/_drafts/ after a session or a successful tool call, and — depending on soul evolution settings — auto-promote them into workspace/skills/. See Learning Loop for the full pipeline (session summarize → memory nudge → skill draft → promote).

CLI

Not yet shipped

The source docs describe anvio skill list, anvio skill install <slug>, and anvio skill validate <slug> as the expected CLI surface for skill management.

TODO: confirm exact subcommand names and flags against apps/cli/src/main.ts's cmdSkill handler before publishing usage strings — this page intentionally does not restate unverified flag lists.

Edit on GitHub

Last updated on

On this page