tuff-cli-guide
Skill22 starsChanged 2 months agoMITView on GitHub
Reference for using Tuff CLI to manage agent capabilities — create, add (including MCP servers), list, diff, check, update, and scope operations.
- Installs packages
In this repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/llms.txtllms.txt
- agent-topSkill
- rust-best-practicesSkill
- tuff-capabilitiesSkill
- tuff-cli-guideSkill
- add-harness-adapterSkill
- agent-topSkill
- write-changelogSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Run tuff --version. If the command is missing, ask the user before installing anything.
- Very specific: line 18
If uv is not available, use brew tap kannandreams/homebrew-tuff && brew install tuff on macOS, or cargo install tuffcli where Rust is …
- Very specific: line 22
If the project has no tuff.lock, run tuff init before anything else.
- Distinctive: line 100
No separate source directory — agent files are the source
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Tuff CLI Guide
Tuff is a capability lifecycle manager. It installs, versions, diffs, and validates the skills, tools, hooks, workflows, and MCP servers a repository gives its coding agents. Use these commands when the user asks about managing any of those, or when they mention "drift", "baseline", or "tuff".
Before You Start
Run tuff --version. If the command is missing, ask the user before installing anything. When they agree:
uv tool install tuffcliIf uv is not available, use brew tap kannandreams/homebrew-tuff && brew install tuff on macOS, or cargo install tuffcli where Rust is present. Avoid bare pip install: most systems refuse it as an externally-managed environment, and a virtual environment install is not on PATH afterwards.
Confirm with tuff --version before continuing. If the command is still not found, the install directory is not on PATH; ~/.local/bin is the usual one.
If the project has no tuff.lock, run tuff init before anything else. Never hand-edit tuff.lock or the files Tuff emits under a harness directory; edit the source under .agents/ and let Tuff re-emit.
Available Commands
Install
tuff add <path> -a <agent>— install a local capability (auto-detect type)tuff add skill <path> [name] -a <agent>— install a skilltuff add tool <path> [name] -a <agent>— install a tooltuff add hook <path> [name] -a <agent>— install a hooktuff add workflow <path> [name] -a <agent>— install a workflowtuff add .agents/skills/<id> -a open-agents— track existing agent files in placetuff add <git-url> skill <name> -a <agent>— install skill from gittuff add <git-url> tool <name> -a <agent>— install tool from gittuff add <git-url> hook <name> -a <agent>— install hook from gittuff add skill <git-url> <name>@<version|range> -a <agent>— install a tagged release (1.2.0,^1.2,>=1, <2); the lockfile records the tag, the requirement, and the commit- without
@, a git install records the version the source declares (versionintuff.toml, orversion:/metadata.version:inSKILL.mdfrontmatter), shown as1.2.0 (declared)since it is weaker than a release; a source declaring nothing records the commit SHA tuff create <type> <id> -a <agent>— create and track a capabilitytuff add pack <artifact.tuffpack> -a <agent>— atomically install a verified capability packtuff add mcp <catalog-id|path|git-url>... -a <agent>— wire external MCP servers (catalog: filesystem, memory, github, fetch, git, time, sequentialthinking, everything, brave-search, notion, playwright, sentry, linear, context7) into each harness config; secrets stay as${VAR}references. Prompts once per required variable at a real terminal (add--yesto skip, or it's automatic in a non-interactive shell)
Packs
tuff pack build --name <name>— package accepted project capabilities intotuff-dist/<name>-0.1.0.tuffpacktuff pack build --name <name> --capability <id> --version <version> -a <agent>— build a selected project packtuff pack init <name> --from-project --capability <id>— save a reusable ID-based definition undertuff-packs/tuff pack check [path]— validate a local source packtuff pack build [path] -o <artifact.tuffpack>— build a reusable project definition or standalone source packtuff pack inspect <artifact.tuffpack>— inspect verified metadatatuff pack verify <artifact.tuffpack>— verify metadata and every stored filetuff pack push <artifact.tuffpack> <registry/repository:tag>— publish exact pack bytes as an OCI artifacttuff pack pull <registry/repository:tag-or-digest> -o <artifact.tuffpack>— download and verify an OCI-distributed pack without overwriting an existing filetuff pack extract <artifact.tuffpack> -a <agent> -o <dir>— extract a runtime-native target
Inspect
tuff list— show all installed capabilities with drift statustuff list --type skill— filter by capability typetuff list --scope global— show global scopetuff status— detailed status with override warningstuff diff <id>— show local changes against baselinetuff diff <id> --upstream— show upstream changes (git sources only); for a release-pinned entry, against the newest release its requirement allowstuff diff <id>@<range> --upstream— preview what a different requirement would change beforetuff update <id>@<range>tuff outdated— check all capabilities for available updates;repointedortag missingon a release-pinned entry means the tag moved or vanished upstream, andtuff update <id> --forcereplaces the install with what the tag names nowtuff mcp doctor— spawn each installed MCP server for real and verify the handshake + tool list, not just that the config entry exists
Update & Merge
tuff update <id> --check— preview local baseline promotion or upstream changestuff update <id>— accept local edits or reconcile with upstreamtuff update <id> -a <agent>— update one recorded agenttuff update <id> --force— overwrite local changes with source outputtuff update <id>@<range>— change a tag-pinned capability's requirement and move to the newest release it allows; a bareupdatenever leaves the recorded range
CI & Validation
tuff check— validate all capabilities (exit 1 on any failure)tuff check --json— machine-readable output for CItuff list --json,tuff outdated --json,tuff diff <id> --json— the same rows as JSON, with the sametype/target/statuskeys ascheck --json; prefer these over parsing tables
Manage
tuff remove <id>— remove a capabilitytuff agent list— show available agent harnessestuff agent add <id>— register an agent and initialize its project directorytuff init --global— initialize global scope
Agents
open-agents— Codex, Cursor, OpenCode, Copilot, Gemini CLI, Roo, Clineclaude— Claude Code
Scope
- Project (default):
tuff.lockin repo root — committed with project - Global state: XDG config/state/cache Tuff directories — available across all projects
- Project always wins when both exist
Directory Model
.agents/skills/— create and edit skills here (single source of truth).agents/tools/— create and edit tools here.agents/hooks/— create and edit hooks here.agents/workflows/— create and edit workflows here.agents/mcp-servers/— generatedserver.tomlrecords for external MCP servers (edit the manifest, not these)tuff.lock— committed capability identity and lifecycle metadatatuff.config.json— project preferences;tuff.lockremains the project source of truth- No separate source directory — agent files are the source
Status Values
clean— installed content matches baselinemodified— local changes detected (runtuff diff <id>to see)missing— installed file no longer exists
Quick Cheat Sheet
tuff init # initialize repo and register open-agents
tuff add <path> -a open-agents # install capability (auto-detect type)
tuff add skill <path> [name] # install a skill explicitly
tuff add mcp github -a claude # wire a catalog MCP server
tuff list # check drift
tuff diff <id> # see what changed
tuff check # CI validation
tuff outdated # check for updates
tuff update <id> # accept local edits or update from sourceDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

