Repositories
Repositories are the backbone of the aix ecosystem. They allow you to discover and share AI resources–such as skills, commands, and agents–via standard Git repositories.
Instead of manually downloading and managing individual files, you can add a repository once, and aix will handle the caching, indexing, and installation for you.
How it Works
aix repositories are standard Git repositories that follow a simple directory structure. When you add a repository, aix performs a shallow clone into a local cache directory (~/.cache/aix/repos).
The CLI then scans the repository for resources in the following subdirectories:
skills/: Reusable agent skills (SKILL.md).commands/: Custom slash commands.agents/: Agent definitions.mcp/: Model Context Protocol server configurations.
Adding a Repository
Use the aix repo add command to register a new repository source.
# Add from GitHub
aix repo add https://github.com/thoreinstein/agents.git
# Add with a custom name
aix repo add https://github.com/user/my-skills.git --name community-skills
# Add a private repository via SSH
aix repo add git@github.com:org/private-resources.gitBy default, the repository name is derived from the URL (e.g., agents). You can override this with the --name flag.
Listing Repositories
To see all registered repositories and where they are cached on your system:
aix repo listTo output the list in JSON format (useful for automation):
aix repo list --jsonUpdating Repositories
Since repositories are cached locally, you need to pull the latest changes occasionally to get new resources or updates.
# Update all repositories
aix repo update
# Update a specific repository
aix repo update agentsRemoving a Repository
If you no longer want to use a repository as a source, you can remove it. This also cleans up the locally cached files.
aix repo remove agentsDiscovery (Coming Soon)
Once a repository is added, you can search for resources across all repositories using:
aix search <query>This makes it easy to find a specific skill or tool without knowing which repository it belongs to.
Best Practices
- Use Meaningful Names: When adding multiple repositories, use
--nameto give them clear identifiers likeinternal-toolsorcommunity-core. - Organize Your Repos: If you are creating your own repository, keep resources organized in the standard
skills/,commands/,agents/, andmcp/folders. - Keep it Shallow:
aixuses--depth=1by default to keep the local cache small and fast.