Skip to content
Skills

Skills

A skill is a piece of project- or domain-specific guidance that Ulmi can load into the agent’s system prompt on demand.

Skills live in markdown files with YAML frontmatter and are discovered at TUI launch. The package is internal/skill.

Why skills

System prompts are a one-shot mechanism — anything you want the agent to know up-front has to be in the prompt. Hand-crafting a long prompt for every project is tedious. Skills let you:

  • Keep small, focused instructions (“we use go-chi router”, “tests live next to source files”) in one place.
  • Compose them: any number of skills can be activated together.
  • Scope them to file globs so they auto-activate when relevant files are accessed.
  • Share them: drop one in .ulmi/skills/ and commit it with your repo.

Invocation (Codex-style)

MethodExampleWhen
$skill-name in message$go-testing review these testsExplicit user invocation
/skills pickerBrowse → Enter inserts $nameWhen you don’t remember the name
skill toolAgent calls skill({name: "go-testing"})Agent self-loads instructions
Glob auto-activationAgent reads internal/api/handler.goSkill with matching globs activates

Note: / is reserved for system commands. Skills use $, not /skill-name.

Lazy loading

At startup Ulmi injects only a catalog (name, description, file path) into the system prompt — not the full skill bodies. Bodies load when:

  1. You mention $skill-name in a message and send it.
  2. The agent calls the skill tool.
  3. A file tool touches paths matching a skill’s globs (unless disable-model-invocation: true).

File format

---
name: go-testing
description: "Conventions for Go tests in this repository"
globs:
  - "**/*_test.go"
  - "**/testdata/**"
priority: 100
disable-model-invocation: false
---

# Go testing guidelines

When writing or modifying Go tests in this project:

- Use table-driven tests with named cases.
- Place fixtures under `testdata/<package>/`.
FieldTypeMeaning
namestringOptional. Defaults to the filename or parent directory (SKILL.md).
descriptionstringOne-line summary shown in the catalog.
globslist of stringsPatterns for auto-activation on file access.
priorityintHigher priority skills are injected first (default 0).
disable-model-invocationboolWhen true, only explicit $name or skill tool can activate.

Where skills are loaded

Skills are discovered from compatible paths (in increasing priority):

Global: ~/.agents/skills/, ~/.claude/skills/, ~/.config/opencode/skills/, ~/.config/ulmi/skills/

Project: walk up from cwd to git root at each level:

  • .agents/skills/
  • .claude/skills/
  • .opencode/skills/
  • .ulmi/skills/

Two layouts per directory:

  • Flat: <dir>/<name>.md
  • Nested: <dir>/<name>/SKILL.md (OpenCode / Cursor / Claude compatible)

Glob syntax

PatternMatches
*.goFiles in the workspace root with the .go extension.
**/*.goAny .go file at any depth.
internal/**/*.go.go files under internal/.

System prompt layout

History starts with two system messages. Skills live in the second (volatile) block so they do not bust the cached prefix:

(stable system — agent prompt, cwd, tool index)

(volatile system)
mode / goal preambles
# Available Skills
(catalog: name + description + tags)
# Active Skill Instructions
(full bodies of activated skills only)

Tips

  • Keep individual skills small — long bodies crowd out the user’s question.
  • Use disable-model-invocation: true for deploy/release workflows.
  • Use priority to break ties when multiple skills overlap.
  • Combine project-local skills with global ones for personal preferences.