Skip to content

Agents > Oz CLI

Skills via the Oz CLI

Use skills with the Oz CLI to run agents from reusable skill definitions stored in your repositories.

Skills are reusable instruction sets that teach agents how to perform specific tasks. Use the --skill flag to run an agent from a skill in a repository accessible to your environment.

The --skill flag accepts a skill specification that identifies which skill to use:

Terminal window
# Fully qualified (recommended)
oz agent run-cloud -e <ENV_ID> --skill "owner/repo:skill-name" --prompt "deploy to staging"
# With full path
oz agent run-cloud -e <ENV_ID> --skill "warpdotdev/warp-server:.warp/skills/deploy/SKILL.md" --prompt "deploy to staging"

Supported formats:

  • owner/repo:skill-name - Skill by name in a specific repository (recommended for cloud runs)
  • owner/repo:path/to/SKILL.md - Skill by full path in a specific repository
  • repo:skill-name - Skill by name in a repository configured in your environment or local directory
  • repo:path/to/SKILL.md - Skill by full path in a repository configured in your environment or local directory
  • skill-name - Skill by name in your current directory
  • path/to/SKILL.md - Skill by full path in your current directory

Skills are particularly useful with cloud agents (oz agent run-cloud) because they define reusable workflows that run consistently across environments:

Terminal window
# Run a deploy skill from a specific repo
oz agent run-cloud \
--environment SVhg783GBFQHk1OfdPfFU9 \
--skill "myorg/backend:.warp/skills/deploy/SKILL.md" \
--prompt "deploy to staging"
# Run a code review skill
oz agent run-cloud \
--environment SVhg783GBFQHk1OfdPfFU9 \
--skill "myorg/backend:code-review" \
--prompt "review the latest PR"

When you run an agent from a skill, the run name is automatically set to the skill name — no need to pass --name explicitly.

For local agent runs, skills from your current repository are automatically discovered. You can also pass a skill by name, path, or repository qualifier:

Terminal window
# By name or path in the current directory
oz agent run --skill "code-review" --prompt "additional context"
oz agent run --skill ".agents/skills/code-review/SKILL.md" --prompt "additional context"
# Qualified by repository
oz agent run --skill "owner/repo:skill-name" --prompt "additional context"

For more information about creating and managing skills, see Skills.