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)
| Method | Example | When |
|---|---|---|
$skill-name in message | $go-testing review these tests | Explicit user invocation |
/skills picker | Browse → Enter inserts $name | When you don’t remember the name |
skill tool | Agent calls skill({name: "go-testing"}) | Agent self-loads instructions |
| Glob auto-activation | Agent reads internal/api/handler.go | Skill 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:
- You mention
$skill-namein a message and send it. - The agent calls the
skilltool. - A file tool touches paths matching a skill’s
globs(unlessdisable-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>/`.| Field | Type | Meaning |
|---|---|---|
name | string | Optional. Defaults to the filename or parent directory (SKILL.md). |
description | string | One-line summary shown in the catalog. |
globs | list of strings | Patterns for auto-activation on file access. |
priority | int | Higher priority skills are injected first (default 0). |
disable-model-invocation | bool | When 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
| Pattern | Matches |
|---|---|
*.go | Files in the workspace root with the .go extension. |
**/*.go | Any .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: truefor deploy/release workflows. - Use
priorityto break ties when multiple skills overlap. - Combine project-local skills with global ones for personal preferences.