agr-cli

A package manager for AI-agent skills: reusable instruction folders that teach coding tools how to handle specific tasks. It works with Claude Code, Cursor, Codex, OpenCode, GitHub Copilot, and Pi.

In plain words
What is it for?
Use it to install, remove, update, run, share, and synchronize skills, set up a repository for them, or create a new skill folder.
Why use it?
It avoids manually installing and keeping the same agent skills in sync across different coding tools. It also records dependencies and versions in agr.toml and agr.lock files.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/computerlovetech/agr/agr-cli
Any agent
npx skills add computerlovetech/agr --skill agr-cli
Clone the repo
git clone --depth 1 https://github.com/computerlovetech/agr

Made for: Claude Code, Codex.

Per session 147 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,060 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00147 $0.03060
Opus 5 $0.00073 $0.01530
Sonnet 5 $0.00029 $0.00612
Haiku 4.5 $0.00015 $0.00306

Measured 2d ago against content hash fcf1b053b4fa, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

agr-cli scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/agr-cli/SKILL.md · 277 lines

How it starts

The opening of the file, as written. The whole thing — 277 lines — stays where its author put it; the contents beside it link to each section on GitHub.

agr CLI

agr is the package manager for AI agent skills. It installs, shares, and syncs SKILL.md folders across Claude Code, Cursor, Codex, OpenCode, GitHub Copilot, and Pi. This skill helps you operate the agr CLI on the user's behalf — set up new repos, install and sync skills, manage agr.toml / agr.lock, and scaffold in-repo skills under skills/.

When to use

Use this skill when the user wants to:

  • Install or remove a remote skill (agr add anthropics/skills/pdf).
  • Sync agr.toml after pulling teammates' changes (agr sync).
  • Upgrade an installed skill past its pinned commit (agr upgrade).
  • Run a skill once without persisting it (agrx ...) or invoke an installed one (agr run).
  • Scaffold a new skill (agr init my-skill) — especially as in-repo skills under skills/.
  • Set up a repo from scratch to use agr (multi-tool config, instruction syncing, sources).
  • Add a local in-repo skill to the project's dependency list.
  • Inspect, edit, or troubleshoot agr.toml / agr.lock / agr config.
  • Or whenever agr.toml is present and the user is doing resource-management work.

Do NOT use this skill for:

  • Authoring the body of a SKILL.md. This skill scaffolds and registers; for writing effective skill instructions, defer to the user or to a dedicated authoring skill such as anthropics/skills/skill-creator.
  • Iterating on an existing skill based on session feedback or a retrospective. That's a separate workflow — listen, propose, edit, commit, re-install. If the user has a dedicated debrief / improvement skill installed (e.g. skill-debrief), use it; otherwise just do the workflow directly.

Prerequisites

Before running anything, verify agr is installed:

agr --version

If missing, the standard install is uv tool install agr. Do not install agr without checking with the user first — they may prefer pipx, brew, or a pinned version in CI.

Mental model — read first

  • A skill is a folder containing a SKILL.md. agr copies the whole folder into each configured AI tool's skills directory (.claude/skills/, .cursor/skills/, .opencode/skills/, .agents/skills/, etc.).
  • A handle identifies a remote skill: user/skill (assumes a repo named skills), user/repo/skill (any repo), or ./local/path (on disk).
  • agr.toml is the manifest (hand-edited or written by agr add). agr.lock is the lockfile (auto-generated, pins commit SHAs and content hashes — never edit by hand).
  • Project-local vs global scope: every command takes -g to operate on ~/.agr/agr.toml and global tool dirs.
  • agr sync only installs missing deps. To move past a pinned commit, use agr upgrade.
  • Resource types: skill (consumed by AI tools), ralph (autonomous agent loop), package (a folder with its own agr.toml, expanded transitively). agr add auto-detects the type.

Read the full file on GitHub · 277 lines

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 277 lines · 147 tokens per session scan A fcf1b053b4fa

Subscribe to this mod's changes

agr-cli is a skill published in the GitHub repository computerlovetech/agr (452 stars, last pushed 20d ago), licensed MIT. It adds 147 tokens to every session and 3,060 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories