# Dryv agent skill

The Dryv agent skill is a single `SKILL.md` file. It teaches an AI agent how to use Dryv:
the validate, plan, dry-run, generate loop, non-interactive `--json --no-input` runs, the
`DRYV_*` error codes, finding and adding packs, and the two rules that matter most: never
hand-edit managed generated files, and ask the user before choosing names.

Download it from a stable URL:

```text
https://docs.dryvcode.com/skills/dryv/SKILL.md
```

It follows the [Agent Skills](https://agentskills.io) format (a `name` and `description` in the
frontmatter, instructions in the body), so it works with Claude Code and with other agents that
read skills.

## Install in Claude Code

For every project on your machine:

```bash
mkdir -p ~/.claude/skills/dryv
curl -fsSL https://docs.dryvcode.com/skills/dryv/SKILL.md -o ~/.claude/skills/dryv/SKILL.md
```

For one project, shared with your team through version control:

```bash
mkdir -p .claude/skills/dryv
curl -fsSL https://docs.dryvcode.com/skills/dryv/SKILL.md -o .claude/skills/dryv/SKILL.md
```

Claude Code loads the skill when a task matches its description: a project with a
`dryv.yaml`, a request to generate code from contracts, a pack to add, or a `DRYV_*` error.
You can also call it directly with `/dryv`.

## Other agents

Agents that read skills from another folder take the same file; put it where that agent
looks for skills. Agents without skills support read `AGENTS.md`: add the
[Dryv block](agents.md#project-instructions) there instead, or as well.

## What the skill says

The skill is short on purpose. It covers:

- **The loop:** `dryv doctor`, `dryv validate`, `dryv plan`, `dryv generate --dry-run`,
  then `dryv generate --yes` once the user agrees with the preview.
- **Automation:** `--json --no-input` on every command, branching on `status` and `code`.
- **Errors:** what to do for each code, from `DRYV_INPUT_REQUIRED` to `DRYV_MANAGED_CONFLICT`.
- **Packs:** `dryv pack search`, `info`, `describe`, `explain` and `add --dry-run`.
- **Boundaries:** no edits to managed files, no `--conflicts` choice or `dryv trust` without the
  user, and no invented names, structure or behaviour.

Read the full text at the URL above before you install it; it is plain Markdown.

## Keep it current

The skill tracks the released CLI. Download it again after you update Dryv
(`dryv update`). If a command in it fails with `DRYV_ARGUMENT_ERROR`, `dryv <command> --help`
is the source of truth.

## Next

- [Use Dryv with AI agents](agents.md)
- [Agents and CI](../usage/agents-and-ci.md)
