Agent Skills ​
The CLI bundles Anvia knowledge for a developer's coding agent. Each skill has a SKILL.md entrypoint, supporting references/, and verification or example scripts/. Installing a skill copies these files; it does not execute the scripts or start an Anvia agent.
Bundled skills ​
CLI 1.6.0 includes these nine skills:
| Skill | Use it for |
|---|---|
anvia-agent | Agents, tools, approvals, memory, streaming, teams, and providers |
anvia-durable | Experimental: durable main agents, owned subagents, replay-safe effects, approvals, persisted waits, task graphs, and remote controls; includes a local no-network restart smoke check |
anvia-chat | Server routes, transports, React hooks, and chat UI primitives |
anvia-channels | Discord, Slack, Telegram, sessions, and proactive delivery |
anvia-evals | Deterministic metrics, model judges, RAG checks, and CI evaluation |
anvia-mcp | MCP clients, transports, tool discovery, and URL safety |
anvia-pipeline | Sequential, parallel, batch, and agent pipeline stages |
anvia-rag | Chunking, embeddings, vector stores, knowledge graphs, and retrieval |
anvia-studio | Serving and inspecting agents, traces, approvals, and observability |
Since CLI 1.5.8, the bundled skills are manual-invocation only. Each SKILL.md sets disable-model-invocation: true (Claude Code), and each agents/openai.yaml sets allow_implicit_invocation: false (Codex). Invoke a skill explicitly, such as /anvia-agent in Claude Code or $anvia-agent in Codex; the agent does not load it on its own.
anvia skills listlist prints bundled names and descriptions, rather than inspecting installed files. Since 1.6.0, skills init and skills update accept skill names to act on only those skills:
anvia skills init anvia-agent anvia-chat --claudeUnknown names fail with the list of available skills. The release-notes demo skill was removed from the bundle in 1.6.0.
Install the canonical files ​
anvia skills initThe default layout is:
skills/
anvia-agent/
SKILL.md
references/
scripts/
anvia-chat/
SKILL.md
references/
scripts/
...Run this from any project directory. React, components.json, and shadcn initialization are not required. Script executable permissions are preserved where the filesystem supports them. Running init again fills missing files and keeps differing existing files unless you use --force. Files that are no longer in the bundle are not deleted.
Connect your coding agent ​
Target flags add integrations alongside the canonical skill copy:
| Flag | Output | How it connects the agent |
|---|---|---|
| None | skills/<name>/ | Your agent can read each SKILL.md directly |
--claude | .claude/skills/<name>/ | A separate, self-contained copy for Claude Code |
--cursor | .cursor/rules/<name>.mdc | One rule per bundled skill, pointing to the canonical SKILL.md; alwaysApply: false |
--agents | AGENTS.md | A section listing the skills and how to read them |
--codex | AGENTS.md | An alias for the AGENTS.md integration; it does not create .codex/skills/ |
anvia skills init --claude --cursor --codexThe AGENTS.md integration owns the section between <!-- anvia-skills:start --> and <!-- anvia-skills:end -->. It preserves content outside a valid marker pair. If the markers are absent, it appends a section; if the file is absent, it creates it. Keep project-specific instructions outside the generated section.
Choose another directory ​
anvia skills init --dir agent-skills --cwd ./my-project --cursor --agentsThe canonical files now live in my-project/agent-skills/. Cursor rules and the AGENTS.md section point to agent-skills/<name>/SKILL.md. The Claude copy still lives under my-project/.claude/skills/.
Use the same --dir and --cwd values on later updates. Changing --dir selects a different destination; it does not move or remove the previous copy. Updating differing Cursor pointers requires --apply.
Update skills and integrations ​
Preview the canonical copy and selected integrations:
anvia skills updateThe preview lists paths that would change and writes nothing, including AGENTS.md. Apply it explicitly:
anvia skills update --applyWithout target flags, update detects the integrations already installed: .claude/skills/<name>/ or .cursor/rules/<name>.mdc for a bundled skill name, and the Anvia section markers in AGENTS.md. Target flags replace detection. A custom canonical directory is not detected, so repeat --dir. In an interactive terminal, --apply asks for confirmation; pass --yes in scripts. Comparisons use the skills bundled with the CLI build you run.
| Target | Preview | With --apply |
|---|---|---|
| Canonical and Claude skill trees | List differing and missing files inside installed skills | Replace differing files and restore missing files within installed skills |
| Cursor rules | List differing and missing rules for installed skills | Replace differing rules and create missing rules for installed skills |
| AGENTS.md / Codex | Report a pending generated section without writing | Create or refresh the generated section, preserving surrounding instructions |
skills update --force was removed in 1.6.0 and is rejected as an unknown option; use --apply. During installation, skills init --force replaces differing skill files and Cursor rules; without it, init keeps existing differing files and reports them as skipped.
For skill trees, a skill counts as installed when at least one file expected by the bundle exists. Removing an entire skill directory prevents update, including --apply, from reinstalling it. Run skills init to restore it. Since 1.6.0, update rebuilds the AGENTS.md list from installed skills, so a removed skill drops out of it after --apply. It never deletes files: remove the Cursor rule for a skill you deleted yourself.
The comparison cannot tell a local customization from an older bundled file: both differ from the current bundle. Review or commit your changes before using --apply.
Use the files in an Anvia runtime ​
For an application that deliberately loads these skills into an Anvia agent, the Core skill loader can read the canonical directory:
import { loadSkills, skill } from '@anvia/core/skills'
const skills = await loadSkills(skill.local('./skills'))
console.log(skills.skills.map((entry) => entry.name))Installing files for a coding agent and enabling skills in an application runtime are separate steps. Continue with runtime skills for loading and agent configuration, or the CLI API reference for programmatic installation.