Teams¶
Set up agr for your team so everyone shares the same skills, stays in sync, and gets productive on day one.
Set up your project¶
1. Initialize agr¶
Run this in your repo root:
This creates agr.toml and auto-detects which tools your team uses from
repo signals (.claude/, .cursor/, CLAUDE.md, etc.).
To target specific tools:
2. Add skills¶
Install the skills your team needs:
agr add anthropics/skills/frontend-design
agr add anthropics/skills/pdf
agr add ./skills/internal-review # Local skills work too
Each agr add updates agr.toml with the dependency.
3. Commit agr.toml¶
agr.toml is your skill lockfile. Commit it so every clone starts with the
same skills.
4. Teammates install¶
After cloning the repo, a new teammate runs two commands:
uv tool install agr # One-time install (or: pipx install agr)
agr sync # Install all skills from agr.toml
Done. Everyone has the same skills in the same tool.
Multi-tool teams¶
If your team uses different AI coding tools, configure all of them:
When anyone runs agr add or agr sync, skills are installed into every
configured tool's skills directory simultaneously. A skill added by someone
using Claude Code is also available to the teammate using Cursor.
See Supported Tools for details on each tool.
Keep instruction files in sync¶
When using multiple tools, you probably want one source of truth for your
project-level instructions (CLAUDE.md, AGENTS.md, GEMINI.md). Enable
instruction syncing:
Now agr sync copies CLAUDE.md content to AGENTS.md and GEMINI.md
as needed by your configured tools. Maintain one file, all tools stay aligned.
See Configuration — Instruction Syncing for details.
Private skills¶
Teams often keep internal skills in private GitHub repositories. agr supports this through environment variables — no configuration changes needed.
Developer setup¶
Each developer exports a GitHub token:
Or, if you use the GitHub CLI:
The token needs Contents: Read-only access on the repositories containing your skills. Fine-grained tokens scoped to specific repos are recommended.
Add the export to your shell profile (~/.zshrc, ~/.bashrc) for permanent
access.
CI/CD setup¶
For automated environments, pass the token as a secret:
Create a fine-grained token with Contents: Read-only on your skill repositories and add it as a repository secret.
See Configuration — Private Repositories for full details.
CI/CD integration¶
Add agr sync to your CI pipeline to ensure skills are available in
automated environments.
GitHub Actions¶
- name: Install agr
run: uv tool install agr
- name: Sync skills
run: agr sync
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Only needed for private repos
The GITHUB_TOKEN line is only required if your team uses private skill
repos. For public skills, agr sync works without authentication.
Other CI systems¶
agr is a standard Python CLI. Install it with pip install agr or
pipx install agr in any CI environment that has Python 3.10+ and Git:
Set GITHUB_TOKEN in your CI environment variables for private repos.
Onboarding existing projects¶
If your project already has skills installed manually (copied into
.claude/skills/ or similar), use the interactive onboard command:
This walks you through:
- Selecting which tools your team uses
- Discovering skills already in your tool directories
- Migrating them into
./skills/as local dependencies - Creating your
agr.toml
If you have .claude/commands/, .cursorrules, or other files that should
become skills:
Adding and updating skills¶
Add a new skill for the team¶
Teammates pick it up on their next agr sync.
Update a skill to the latest version¶
The --overwrite flag replaces the installed skill with the latest version
from GitHub. Commit the updated skill files so the team stays in sync.
Remove a skill¶
Recommended workflow¶
A typical team workflow looks like this:
- One person sets up
agr.tomlwith the team's skills and commits it - Everyone runs
agr syncafter pulling to stay up to date - Anyone can add or remove skills — changes go through normal code review
- CI runs
agr syncto ensure skills are available in automated environments
The agr.toml file is the single source of truth. Treat it like any other
project dependency file.
Next steps¶
- Configuration — Custom sources, global installs, full
agr.tomlreference - Creating Skills — Build internal skills for your team
- Supported Tools — How agr works with each AI coding tool
- Troubleshooting — Common issues and fixes