rtango
Package manager for AI-agent skills, agents, and configuration files.
Author a skill once — in whichever agent's format you prefer — and rtango renders and syncs copies to every other agent's native layout (frontmatter, permission schema, target paths) from a single source of truth.
Why
Modern projects juggle several coding agents (Claude Code, Copilot, Codex, OpenCode, Pi, …). Each one stores skills, agents, and instruction files in different paths with different frontmatter and different permission vocabularies. Hand-porting and keeping them in sync is tedious and error-prone.
rtango treats this like a package manager: declare rules in .rtango/spec.yaml, run rtango sync, and every agent gets an up-to-date rendering.
Install
From crates.io:
Or from a local checkout:
Binary name is rtango.
Quick start
# scan repo, detect agents, write .rtango/spec.yaml + lock.yaml
# append a local skill rule
# import all skills from another repo (local path)
# import from a GitHub repo (pinned to a commit)
# preview the plan
# write files, update the lock
GitHub auth and fetch failures
For GitHub-backed rules, rtango first uses RTANGO_GITHUB_TOKEN or GITHUB_TOKEN if either is set.
If those are absent, rtango also tries gh auth token from an existing GitHub CLI login.
If a GitHub fetch hits auth/rate-limit issues during a command, rtango can lazily ask to run
gh auth login, then retry immediately.
If you want the rest of the spec to continue when a GitHub fetch fails, use:
Commands
| Command | Purpose |
|---|---|
init |
Detect installed agents and bootstrap .rtango/spec.yaml + .rtango/lock.yaml. --gitignore-targets adds a managed .gitignore block for generated targets. |
sync |
Fetch sources, render per-agent outputs, write files, update the lock. --check (CI dry-run), --adopt (absorb existing files on first sync), --force (override on_target_modified: fail), --rule <id> (single rule), --ignore-fetch-failures (skip GitHub rules whose fetch fails). When defaults.gitignore_targets: true, sync also maintains a managed .gitignore block. |
status |
Preview the sync plan without writing. --verbose shows up-to-date items too. --ignore-fetch-failures skips GitHub rules whose fetch fails. |
own |
Record or clear a manual ownership decision when multiple rules target the same path. |
add |
Mechanically append a rule to the spec. Kinds: --skill, --agent, --skill-set, --agent-set, --system, --collection-kind/--col. |
Core concepts
- Rule — a
{source, schema_agent, kind}declaration inspec.yaml. Source is a local path orgithub: owner/repo@ref:path.schema_agentnames the authoritative agent whose format the source is written in. - Kinds —
skill,skill-set,agent,agent-set,system(root-level instruction files likeAGENTS.md/CLAUDE.md),collection(import rules from another repo's.rtango/spec.yaml). - Rendering — for each agent in
spec.agents, rtango rewrites frontmatter and permission tokens into that agent's native schema and writes to its canonical path. Theschema_agent's own target is auto-skipped when source and target paths collide. - Lock —
.rtango/lock.yamlrecords what was written, content hashes, and ownership decisions. Changes to target files detected outside rtango are caught by theon_target_modifiedpolicy (fail/overwrite/skip). - Managed
.gitignore— optionally keep projected targets in a dedicated rtango block. Skill projections are ignored precisely as leaf directories (for example.pi/skills/reviewer/), while agent/system projections are ignored as exact files; broad roots like.pi/are never ignored.
Repository signals for agents
If a repo uses rtango, make that obvious so coding agents know they should sync managed skills instead of hand-editing generated copies.
Recommended signals to commit:
.rtango/spec.yaml— the strongest signal that rtango manages agent files here..rtango/lock.yaml— shows the repo is actively synced.- A short note in
AGENTS.md,CLAUDE.md, orREADME.mdtelling agents to usertango status/rtango syncafter changing shared skills or instructions. - Optionally
defaults.gitignore_targets: trueso projected outputs stay ignored consistently across machines.
A good agent-facing note is:
This repo uses rtango to manage agent skills/instructions.
After changing shared agent files or `.rtango/spec.yaml`, run:
- -
Supported agents
Claude Code, GitHub Copilot, Codex, OpenCode, Pi. Each has its own parser, writer, and permission mapper under src/agent/.
Layout
src/
cmd/ # subcommand handlers
spec/ # spec.yaml + lock.yaml types and IO
agent/ # per-agent parse/write/frontmatter/permission
engine/ # expand → fetch → plan → execute pipeline
demo/ # worked example with .rtango/ and sample skills
tests/ # integration tests
Collections
A collection points at another repo's .rtango/spec.yaml and imports its declared rules into your project. The source is just a local path or a GitHub ref — the kind: collection is what triggers the import.
# Local sibling repo
# GitHub repo, pinned to a commit
# Import only specific rules
Imported rules are namespaced in the lock as <collection-id>/<rule-id>. When two collections produce the same target path, rtango detects the conflict and prompts during sync — or use rtango own <path> <rule-id> to resolve it non-interactively.
See AGENTS.md for contributor and agent-facing context.