Agent skill

Agr CLI

by computerlovetech in computerlovetech/agr

Install, share, sync, and create AI agent skills across coding tools (Claude Code, Cursor, Codex, OpenCode, Copilot, Pi) using the agr CLI.

MITAuto-check passedDocuments & Office

Install Agr CLI

skills CLI
$ npx skills add computerlovetech/agr --skill agr-cli -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install computerlovetech/agr agr-cli --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/computerlovetech/agr.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/agr-cli .claude/skills/agr-cli && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
agr-cli
GitHub stars
451
Token cost
~3k tokens
SKILL.md length
1,289 words
Files
9 (incl. references)
Skills in repo
3
Repo updated
First seen
Licence
MIT

At a glance

Install, share, sync, and create AI agent skills across coding tools (Claude Code, Cursor, Codex, OpenCode, Copilot, Pi) using the agr CLI.

  • Works in 8 steps: Set up a new repo for agr → Install a skill → In-repo skills (the recommended workflow… → …
  • The user mentions agr
  • SKILL.md covers When to use, Prerequisites, Mental model — read first and Workflows, plus 4 more sections
  • Calls uv and git; reaches gitlab.com; needs GITHUB_TOKEN

What it does

Agr CLI is an agent skill from computerlovetech/agr. Install, share, sync, and create AI agent skills across coding tools (Claude Code, Cursor, Codex, OpenCode, Copilot, Pi) using the agr CLI. Use whenever the user mentions agr, agr.toml, agr.lock, agrx, or asks to: add a skill ("install the pdf skill", "agr add ..."), sync agent resources across tools, share skills with their team, scaffold a new SKILL.md, run a skill ephemerally (agrx), set up a repo to manage AI agent dependencies, or configure tools/sources/instruction-syncing. Also use whenever an agr.toml or…

Its SKILL.md is about 3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files, including reference files (for example `references/configuration.md`, `references/handles.md` and `references/in-repo-skills.md`).

It sits in Documents & Office. The repository describes itself as: Educational package-manager project for AI agent skills. Not actively maintained. The licence is MIT.

When your agent uses it

  • The user mentions agr
  • Asks to: add a skill (install the pdf skill
  • Sync agent resources across tools
  • Share skills with their team

Example prompts

  • “install the pdf skill”
  • “agr add ...”
  • “/agr-cli”

Requirements

  • A credential in GITHUB_TOKEN

Workflow steps

8 steps, taken from the step headings in SKILL.md.

  1. Set up a new repo for agr
  2. Install a skill
  3. In-repo skills (the recommended workflow for skills shipping with the codebase)
  4. Sync after pulling teammates' changes
  5. Upgrade past pinned commits
  6. Run a skill
  7. Configure agr
  8. List and inspect

What it can do on your machine

Read from SKILL.md and the folder at commit f260b65. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • uv
    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • gitlab.com

    Also links to:

    • computerlovetech.github.io

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • GITHUB_TOKEN

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Agr CLI loads about 3k tokens when it runs, and up to ~12k if it reads all its reference files. Until then it costs about 152 tokens; SKILL.md has 1,289 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~152
When it runs · the whole SKILL.md, loaded when a task matches
~3k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~12k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from computerlovetech/agr at commit f260b65, republished under its MIT licence (© computerlovetech). 1,289 words, ~2,993 tokens.

Download SKILL.mdSave it as .claude/skills/agr-cli/SKILL.md (or your agent's skills folder). This skill also uses 8 other files; get the full folder from GitHub.
name
agr-cli
description
Install, share, sync, and create AI agent skills across coding tools (Claude Code, Cursor, Codex, OpenCode, Copilot, Pi) using the agr CLI. Use whenever the user mentions agr, agr.toml, agr.lock, agrx, or asks to: add a skill ("install the pdf skill", "agr add ..."), sync agent resources across tools, share skills with their team, scaffold a new SKILL.md, run a skill ephemerally (agrx), set up a repo to manage AI agent dependencies, or configure tools/sources/instruction-syncing. Also use whenever an agr.toml or agr.lock is present in the project and the user is doing resource-management work.

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:

bash
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.

For the full conceptual model: references/handles.md.

Workflows

1. Set up a new repo for agr

When the user wants to start using agr in a project that has none configured:

  1. Run agr init. agr auto-detects which AI tools the repo uses (.claude/, CLAUDE.md, .cursor/, .cursorrules, .codex/, .opencode/, .github/copilot-instructions.md, .pi/, .agents/) and writes agr.toml.
  2. Confirm or adjust the detected tools. For multi-tool: agr config set tools claude codex opencode.
  3. If the user maintains a canonical instruction file (e.g. CLAUDE.md) and wants it mirrored to others (AGENTS.md), enable instruction syncing: agr config set sync_instructions true then agr config set canonical_instructions CLAUDE.md.
  4. Commit agr.toml. (agr.lock will appear after the first agr add or agr sync — commit it too.)

Full details: references/setup.md.

2. Install a skill
bash
agr add anthropics/skills/pdf

Notes:

  • Multi: agr add user/skill1 user/skill2 (skills from the same repo are batched into one download).
  • --overwrite / -o to replace.
  • -g for global (available in every project).
  • agr add auto-creates agr.toml if missing — no need to agr init first.

For handle formats and private repos: references/handles.md and references/installing-skills.md.

Place project-specific skills under skills/ at the repo root (or at the root of a relevant submodule). This keeps the skill in version control, reviewable in PRs, and sharable across the team via agr.toml.

bash
agr init my-skill                  # scaffolds my-skill/SKILL.md in CWD
mkdir -p skills && mv my-skill skills/
agr add ./skills/my-skill          # records {path = "./skills/my-skill", type = "skill"} in agr.toml

Iterate: edit skills/my-skill/SKILL.md, then agr upgrade my-skill to reinstall the fresh on-disk copy into each configured tool and refresh agr.lock. (agr add ./skills/my-skill --overwrite also works, but reach for it when you've changed the dependency's path or are re-adding it — for plain edits to an already-registered skill, agr upgrade is shorter and lock-aware.)

Teammates pick it up with agr sync after pulling. The local path dependency travels with the repo, so contributors don't need network access to use it.

For structuring (scripts/, references/, assets/), iteration patterns, and testing with agrx: references/in-repo-skills.md.

4. Sync after pulling teammates' changes
bash
agr sync

This (1) syncs instruction files, (2) runs directory migrations, (3) installs any deps missing for any tool, (4) refreshes agr.lock.

CI flags:

  • agr sync --frozen — install exactly what agr.lock says; fail if lock is missing or doesn't cover all deps. Use in deploy pipelines for byte-identical installs.
  • agr sync --locked — fail if agr.lock is stale vs agr.toml. Use in PR checks to enforce lockfile hygiene.
  • --frozen and --locked are mutually exclusive.

Full lifecycle: references/syncing.md.

Show full SKILL.md (487 more words)Show less
5. Upgrade past pinned commits

agr sync only installs what is missing. To pull the latest upstream code for a skill that is already installed, use agr upgrade:

bash
agr upgrade                                # everything in scope
agr upgrade pdf                            # short-name match (errors on ambiguity)
agr upgrade anthropics/skills/pdf          # full handle

Gotcha: upgrading one skill from a multi-skill repo (e.g. anthropics/skills/pdf) does NOT refresh siblings. Run agr upgrade with no args, or name each sibling explicitly, to refresh the whole repo together.

6. Run a skill
bash
agr run pdf                               # invoke installed skill in default tool
agr run pdf -- "summarise report.pdf"     # extra prompt
agr run pdf -i                            # interactive
agr run pdf --tool cursor                 # override tool
agrx anthropics/skills/pdf -p "Extract"   # ephemeral, no install

agr run requires the skill to be already installed. agrx downloads, runs, and cleans up. Difference and tool-resolution rules: references/running-skills.md.

7. Configure agr

Keys: tools, default_tool, default_owner, default_source, sync_instructions, canonical_instructions, sources.

bash
agr config show
agr config set tools claude codex opencode
agr config add tools cursor
agr config remove tools cursor      # ⚠ DELETES that tool's skills directory

Private repos / custom Git hosts:

bash
agr config add sources gitlab --url "https://gitlab.com/{owner}/{repo}.git"
export GITHUB_TOKEN="..."           # auth for private GitHub repos

Add -g to operate on ~/.agr/agr.toml instead of the project file.

All keys with defaults: references/configuration.md.

8. List and inspect
bash
agr list           # status of every dep: installed / partial / not synced / invalid
agr list -g        # global skills
cat agr.toml       # the manifest
cat agr.lock       # the lockfile (READ ONLY)

partial (claude, cursor) means a skill is installed in some tools but not others — agr sync to fan it out to the rest.

Boundaries

  • Never edit agr.lock by hand. It's regenerated by agr add/agr sync/ agr remove/agr upgrade. If it looks wrong, run agr sync (or agr sync --locked to confirm hygiene).
  • agr config remove tools <name> deletes that tool's skills directory. Confirm with the user before running it. The skills can be re-installed by re-adding the tool.
  • Don't author the body of a new skill on the user's behalf unless they explicitly asked. This skill scaffolds and registers; SKILL.md content authoring is a separate task.
  • Always confirm before --overwrite on a skill the user has been editing locally — overwriting will replace their working copy.
  • Don't install agr globally without checking — the user may have a pinned version, alternative install method, or CI constraints.
  • Don't push or git tag as part of these workflows. Commit changes locally; let the user push.

Troubleshooting pointers

  • "Skill not found" → check the handle format (2 vs 3 parts), see references/handles.md.
  • "agr.lock out of date" in CI → user added a dep but didn't commit the lockfile; run agr sync locally and commit.
  • partial install status → agr sync to fan out to all configured tools.
  • Auth errors on private repos → check GITHUB_TOKEN is exported.
  • Type errors after manually editing agr.toml → run agr add to let agr rewrite the entry with the correct type field.

Full list: references/troubleshooting.md.

References

For the canonical CLI reference, point the user at https://computerlovetech.github.io/agr/reference/ or run agr <command> --help.

  • Greenfield skill authoring — scaffolding a brand-new SKILL.md from a blank slate. Canonical option: anthropics/skills/skill-creator.
  • Retrospective-driven skill improvement — listening to feedback after a session and updating an existing skill. If the user has a dedicated workflow skill for this, use it; otherwise the workflow is editing the source under skills/<name>/, committing, and agr upgrade <name>.

© computerlovetech, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 8 other files (references) in skills/agr-cli of computerlovetech/agr.

  • SKILL.md
  • references/configuration.md
  • references/handles.md
  • references/in-repo-skills.md
  • references/installing-skills.md
  • references/running-skills.md
  • references/setup.md
  • references/syncing.md
  • references/troubleshooting.md

Open the folder on GitHubat commit f260b65

Compare with similar skills

Agr CLI next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Agr CLI compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Agr CLI this skillcomputerlovetech/agr451—~3kAutomated safety check: PassMIT
Markdown Article FormatterJimLiu/baoyu-skills26k7 repos~3.5kAutomated safety check: PassMIT
MarkitdownImCa0/just-laws78114 repos~3.2kAutomated safety check: NotesMIT
Obsidian MarkdownAtmosphere/atmosphere3.8k20 repos~1.3kAutomated safety check: PassApache-2.0
DOCXrvdbreemen/OTGW-firmware20733 repos~4.3kAutomated safety check: PassProprietary
Gzh Designisjiamu/gzh-design-skill3.9k1 repos~2.2kAutomated safety check: PassAGPL-3.0

Similar skills

  • Markdown Article Formatter

    JimLiu/baoyu-skills

    Reformats plain text or Markdown articles with frontmatter, a title, a summary, headings, bold, lists and code blocks, and saves a separate formatted copy.

    26k GitHub starsUsed in 7 repos~3.5k tokens
    Documents & OfficeAuto-check passed
  • Markitdown

    ImCa0/just-laws

    Convert files and office documents to Markdown. An agent skill from ImCa0/just-laws.

    781 GitHub starsUsed in 14 repos~3.2k tokens
    Documents & OfficeAuto-check: notes
  • Obsidian Markdown

    Atmosphere/atmosphere

    Create and edit Obsidian Flavored Markdown with wikilinks, embeds, callouts, properties, and other Obsidian-specific syntax.

    3.8k GitHub starsUsed in 20 repos~1.3k tokens
    Documents & OfficeAuto-check passed
  • DOCX

    rvdbreemen/OTGW-firmware

    A skill your agent uses whenever the user wants to create, read, edit, or manipulate Word documents (.docx files).

    207 GitHub starsUsed in 33 repos~4.3k tokens
    Documents & OfficeAuto-check passed
  • Gzh Design

    isjiamu/gzh-design-skill

    微信公众号文章排版引擎,将 Markdown 转换为可直接粘贴到公众号编辑器的 HTML。主题风格从 references/theme-index.md 注册的自定义主题库中选取,自动章节编号、关键词下划线标记、引言卡片、目录导航、代码块、图片/GIF、作者签名。支持 Markdown / Word(.docx) / PDF / 纯文本输入(非 Markdown…

    3.9k GitHub starsUsed in 1 repo~2.2k tokens
    Documents & OfficeAuto-check passed
  • Reads, creates and edits Word .docx files with python-docx, and drops to raw OOXML for tracked changes, comments and byte-exact edits.

    41k GitHub stars~2.5k tokensUpdated today
    Documents & OfficeAuto-check passed

More from computerlovetech/agr

  • Skill Debrief

    computerlovetech/agr

    Debrief an AI agent skill (SKILL.md) after using it — capture session feedback or a retrospective and fold it back into the skill.

    451 GitHub starsUsed in 1 repo~2.2k tokens
    Auto-check passed
  • Agr Release

    computerlovetech/agr

    Release process for the agr package. An agent skill from computerlovetech/agr.

    451 GitHub stars~1.6k tokensUpdated 1 mo ago
    Auto-check passed

Questions about Agr CLI

What does Agr CLI do?

Install, share, sync, and create AI agent skills across coding tools (Claude Code, Cursor, Codex, OpenCode, Copilot, Pi) using the agr CLI. Agr CLI is an agent skill from computerlovetech/agr. Install, share, sync, and create AI agent skills across coding tools (Claude Code, Cursor, Codex, OpenCode, Copilot, Pi) using the agr CLI.

When should I use Agr CLI?

Agr CLI fits situations like: the user mentions agr; asks to: add a skill (install the pdf skill; sync agent resources across tools; share skills with their team.

How do I install Agr CLI in Claude Code?

Run `npx skills add computerlovetech/agr --skill agr-cli -a claude-code`. Or copy the skill folder (skills/agr-cli in computerlovetech/agr) into .claude/skills/agr-cli in your project. Claude Code loads it when a task matches its description.

How do I install Agr CLI in Codex?

Run `npx skills add computerlovetech/agr --skill agr-cli -a codex`. Or copy the skill folder (skills/agr-cli in computerlovetech/agr) into .agents/skills/agr-cli in your project. Codex loads it when a task matches its description.

Can I use Agr CLI in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add computerlovetech/agr --skill agr-cli -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/agr-cli, .gemini/skills/agr-cli, .github/skills/agr-cli and .opencode/skills/agr-cli in your project.

What does Agr CLI need to run?

Going by SKILL.md and its folder, Agr CLI needs the command-line tools its instructions call (uv and git) and credentials named GITHUB_TOKEN. Our summary lists: A credential in GITHUB_TOKEN.

Does Agr CLI access the network?

SKILL.md names 2 domains. In commands or code: gitlab.com; the agent is likely to contact it when it follows the instructions. As links in the text: computerlovetech.github.io. This is read from the text; nothing was executed.

Is Agr CLI safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Agr CLI use?

Agr CLI is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Agr CLI use?

About 3k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 9.2k tokens, read only when the agent opens those files.

What are the alternatives to Agr CLI?

Skills that share tags, products or a category with Agr CLI: Markdown Article Formatter (JimLiu/baoyu-skills, 26k stars), Markitdown (ImCa0/just-laws, 781 stars), Obsidian Markdown (Atmosphere/atmosphere, 3.8k stars) and DOCX (rvdbreemen/OTGW-firmware, 207 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Agr CLI?

computerlovetech (a GitHub organization) maintains it in computerlovetech/agr, which has 451 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on August 12, 2026.

Source: computerlovetech/agr on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.