ast installs a project's agent tools (skills, agents, commands, scripts and
cards) from git repos and keeps track of them. The project commits a small config, a lock
file and the installed files. Every clone then has the same setup, and
ast status and ast update show and apply what changed upstream.
An organisation can publish named sets of tools from one repo.
You need Python 3.11.4+ and git. Install a release tag:
$ uv tool install git+https://github.com/epatel/ai-setup-tool@v0.3.0
# or
$ pipx install git+https://github.com/epatel/ai-setup-tool@v0.3.0
$ ast --version
ast 0.3.0
A git repo that holds tools. Give it as owner/repo, a git URL, or a local path. It stays pinned to a ref: a tag, a branch, a commit, or latest-tag.
A skill, agent, command, script or card. ast finds tools by where they are in the source repo. The repo needs no manifest.
ast.tomlThe project's config. You can edit it by hand, and comments are kept. It says which sources, sets and tools the project wants.
ast.lockThe exact commit, git tree id and content hash of each installed tool. With it, ast can tell a local edit from an upstream change.
One repo with ast-org.toml. It names the organisation's sources and its sets.
A named list of tools. A set can extend other sets, add tools, and exclude tools. A project selects one set and can adjust it.
| Kind | In the source repo | Installed to |
|---|---|---|
| skill | <name>/SKILL.md, skills/<name>/SKILL.md, .claude/skills/<name>/SKILL.md | .claude/skills/<name>/ |
| agent | agents/<name>.md, .claude/agents/<name>.md | .claude/agents/<name>.md |
| command | commands/<name>.md, .claude/commands/<name>.md | .claude/commands/<name>.md |
| script | scripts/<file> | .claude/scripts/<file> |
| card | cards/<name>.md | cards/<name>.md |
Name a tool as name, kind/name, source:name or
source:kind/name. The short forms work while only one tool matches them.
You don't need an org repo. Reference a tool repo directly and pick tools from it:
$ ast init
created /work/myapp/ast.toml
$ ast source add epatel/agent-skills --ref latest-tag
$ ast list --available # what the source offers
$ ast add double-check makefile-actions
installed agent-skills:skill/double-check
installed agent-skills:skill/makefile-actions
$ ast status
sources:
agent-skills epatel/agent-skills v2026.12.05 (a9c4ae7)
tools:
ok agent-skills:skill/double-check .claude/skills/double-check
ok agent-skills:skill/makefile-actions .claude/skills/makefile-actions
no updates available
$ git add ast.toml ast.lock .claude && git commit -m "Add agent tools with ast"
The resulting ast.toml is short and readable:
# ast (AI setup tool) config. Commit this file and ast.lock with the project.
version = 1
[sources.agent-skills]
repo = "epatel/agent-skills"
ref = "latest-tag"
[tools]
add = [
"agent-skills:skill/double-check",
"agent-skills:skill/makefile-actions",
]
$ ast disable makefile-actions # removes the files, keeps it in ast.toml
$ ast enable makefile-actions # installs it again
$ ast rm double-check # removes a tool you added
Maybe someone copied a skill in by hand. If the copy is identical to the source,
ast add takes it over and copies nothing:
$ ast add double-check
adopted agent-skills:skill/double-check
Sources move only when you run ast update. Adding a tool never moves the others.
ast status tells you what's waiting:
$ ast update
agent-skills: v2026.11.14 -> v2026.12.05 (a9c4ae7)
updated agent-skills:skill/double-check
If you edited an installed tool, ast won't overwrite it. The same goes for a file
that ast did not install. The tool is reported as blocked, together with
a way out, and the command exits 1:
$ ast add review-agentic-setup
blocked agent-skills:skill/review-agentic-setup: exists and ast does not manage it (use --force to overwrite)
$ git diff --no-index .claude/skills/review-agentic-setup /path/to/release # look first
$ ast add review-agentic-setup --force # then decide
--force. A
blocked tool is either an older release that nobody edited, which is safe to replace, or
it has local edits that someone wanted.To make the files on disk match ast.toml and ast.lock again, for
example after someone deleted a skill folder, run ast sync.
An org repo publishes the sources and sets once. A project selects a set and adjusts it locally. epatel/ast-repo is a public example that you can try:
$ ast use epatel/ast-repo
$ ast select # list the sets
$ ast list --tree # how the sets build on each other
default (4 tools) Baseline for every project
├── python-service (10 tools) Python services and command-line tools
│ + agent-skills:skill/makefile-actions
│ + agent-skills:skill/state-machines
│ …
└── docs (6 tools) Documentation and writing projects
$ ast select python-service # install that set
$ ast disable minimal-repro # drop one of its tools, for this project only
$ ast add ste-writing # add a tool the set does not have
The project's ast.toml records only the choice and the local changes:
[org]
repo = "epatel/ast-repo"
set = "python-service"
[tools]
add = [
"agent-skills:skill/ste-writing",
]
disable = [
"agent-skills:skill/minimal-repro",
]
When the org repo changes, projects pick up the change with ast update.
You manage the org repo with the same commands. A set is everything its
extends parents give, plus its own tools, minus its own
exclude.
$ ast init --org # ast-org.toml with a 'default' set
$ ast source add epatel/agent-skills --ref latest-tag
$ ast source add . --name org # tools kept in the org repo itself
$ ast add review-agentic-setup # into 'default'
$ ast set new web --extends default --description "Web front ends"
$ ast add design-system --set web
$ ast disable review-agentic-setup --set web # exclude an inherited tool
$ ast status # checks that every tool still exists
# ast-org.toml
version = 1
[sources.agent-skills]
repo = "epatel/agent-skills"
ref = "latest-tag"
[sets.default]
description = "Baseline for every project"
tools = ["agent-skills:skill/review-agentic-setup"]
[sets.web]
description = "Web front ends"
extends = ["default"]
tools = ["agent-skills:skill/design-system"]
exclude = ["agent-skills:skill/review-agentic-setup"]
Org sources must be remote URLs or . (the org repo itself), so that a set
resolves the same on every machine. Commit and push, and the projects follow.
ast does the mechanical work. ast prompt prints instructions for
the part that needs judgment, and a coding agent follows them:
$ ast prompt setup epatel/ast-repo # pick the set that fits this project, install, report
$ ast prompt adopt epatel/ast-repo # bring tools copied in by hand under ast
$ ast prompt update # update, then review what changed in the instructions
$ ast prompt org ../app ../docs # start an org repo with sets that fit those projects
$ ast prompt # list prompts, including your org repo's
In Claude Code, run ! ast prompt setup epatel/ast-repo and then say
"follow that". With another agent, paste the output.
prompts/<name>.md in a source or in the org repo becomes
ast prompt <name>. $ARGUMENTS is replaced by the extra
words on the command line.{{include cards/some-file.md}} is replaced by that file from the same
repo.prompts/setup.md and prompts/adopt.md are added under
"Steps from the org repo" to the built-in setup and adopt
prompts. An org uses them to add its own work, for example documentation patterns to
offer, or how to move projects from an older process.A card is a short reference file. An agent reads it only when the work calls for it, and
decides from a one-line index entry. ast keeps that index for you:
<!-- CARDS.md -->
<!-- ast:cards:begin - written by ast from ast.lock; edits between the markers are lost -->
- [agent-setup](cards/agent-setup.md) — adding, changing or updating a skill, command, script or card
<!-- ast:cards:end -->
ast keeps it.CLAUDE.md (or AGENTS.md)
gets one @CARDS.md line, so the index loads in every session.ast uses the card's first paragraph.Sources stay at their locked commit until ast update.
An edited tool, or a file that ast did not install, is never overwritten or deleted without --force.
A command that fails leaves ast.toml and ast.lock as they were. State files are written atomically.
It writes nothing outside the project directory, except the repo cache in ~/.cache/ast. Lock paths outside the project are refused.
It doesn't touch hooks in settings.json, MCP servers or plugins.
ast status exits 1 when the local files differ from the lock, so CI can check the setup.
| Command | Does |
|---|---|
ast init [--org] | Create ast.toml, or ast-org.toml for an org repo. |
ast source add <repo> [--name N] [--ref R] · rm · list | Manage the repos that tools come from. |
ast use <org repo> [--ref R] [--set S] · --remove | Import an org repo's sets, or stop using it. |
ast select [set] | Select a set. With no name, list the sets. |
ast list [-a] · --tree | Active tools and their state. -a also lists the available tools, and --tree shows the sets as a tree. |
ast add · rm <tool>… | Add or remove tools in the project, or in a set with --set S. |
ast disable · enable <tool>… | Turn a tool off or on, and keep it in the config. |
ast status | Installed tools, local changes, pending changes and upstream updates. |
ast sync | Make the installed files match ast.toml and ast.lock. |
ast update [source]… | Resolve the refs again and reinstall. |
ast set new <name> [--extends A,B] · rm · list | Manage the sets in an org repo. |
ast prompt [name] [arg]… (ast ai) | Print a prompt for a coding agent to follow. |
ast help [command] | Show help. |
Global flags: -C DIR (run as if started in DIR), --offline (use only
the cache), and --org (act on ast-org.toml when a directory has both
files).