Common issues and solutions when using aimgr.
Problem: Running aimgr returns "command not found".
Solution: Ensure aimgr is in your PATH:
# Check if /usr/local/bin is in PATH
echo $PATH
# Add to PATH if needed (add to ~/.bashrc or ~/.zshrc)
export PATH="/usr/local/bin:$PATH"Problem: Installed resources don't appear in Claude Code, OpenCode, etc.
Solutions:
- Check that resources are installed:
aimgr list- Look at the TARGETS column to see which tools have the resource
- If your tool isn't listed, the resource isn't installed for that tool
- Verify your tool is using the right directory (
.claude/,.opencode/, etc.) - Check installation targets:
aimgr config get install.targets - Restart your AI tool to pick up new resources
What it means: The resource is installed but not declared in your ai.package.yaml file.
Solutions:
- To track as a project dependency, add it to
ai.package.yaml:resources: - skill/my-skill - command/my-command
- If it's a temporary or local-only resource, you can ignore the
*symbol
What it means: The resource is declared in ai.package.yaml but not installed.
Solution:
# Install the specific resource
aimgr install skill/my-skill
# Or install all missing resources from manifest
aimgr install $(aimgr repo list --format=json | jq -r '.resources[] | select(.sync_status == "not-installed") | .name')What it means: The source was not successfully added to ai.repo.yaml.
Solutions:
- Check if
ai.repo.yamlexists:aimgr repo info
- If missing, initialize the repository:
aimgr repo init
- Re-add your sources:
aimgr repo add local:~/my-resources/
Problem: You overrode a remote source to a local path and now behavior seems inconsistent between repo info and repo show-manifest.
What it means:
repo infoshows the active local override and restore target.repo show-manifestintentionally emits a shareable baseline view and hides local-only override breadcrumb state.
Recovery workflow:
# Inspect active state
aimgr repo info
# Restore original remote definition
aimgr repo override-source <name> --clear
# Re-sync baseline state
aimgr repo syncIf you remove an overridden source (aimgr repo remove <name>), both the active override and restore target are removed permanently.
Problem 1: You ran repo override-source on a source that is already overridden.
What it means: Chained overrides are not supported. You must clear the active override before applying a new one.
Recovery:
aimgr repo override-source <name> --clear
aimgr repo override-source <name> local:/path/to/checkoutProblem 2: You ran repo override-source on a source that is already a local path source.
What it means: This operation is unsupported. repo override-source is only for temporarily switching remote-backed sources to a local checkout.
Problem: Adding or installing a resource fails because it already exists.
Solution: Use --force to overwrite:
aimgr repo add local:~/resource/ --force
aimgr install skill/foo --forceProblem: After removing a resource from the repository, projects have broken symlinks.
Solution: Use aimgr repair to fix broken symlinks automatically:
cd ~/project1
aimgr repair # Fixes broken symlinks, reinstalls from repo if possibleOr uninstall cleanly before removing from repository:
# 1. First uninstall from all projects
cd ~/project1 && aimgr uninstall skill/foo
cd ~/project2 && aimgr uninstall skill/foo
# 2. Then remove from repository
aimgr repo remove skill fooProblem: ai.package.yaml references resources that no longer exist in the repository.
Solution: Use aimgr repair --prune-package to clean up:
# Preview what would be removed
aimgr repair --prune-package --dry-run
# Remove invalid references
aimgr repair --prune-packageProblem: Owned resource directories contain content not declared in ai.package.yaml.
Solution: Use aimgr repair to reconcile owned directories to the manifest:
# Preview planned installs/fixes/removals
aimgr repair --dry-run
# Apply reconciliation
aimgr repairIf you want a full wipe of owned resource dirs first, then restore declared resources:
aimgr clean && aimgr repairProblem: You manually removed a skill/command/agent from a tool folder, but aimgr repair reinstalls it.
What it means: The resource is still declared in ai.package.yaml, so repair restores it.
Solution: Remove it from the manifest (for example with uninstall that saves manifest updates):
aimgr uninstall skill/my-skillAvoid --no-save if you want permanent removal.
Problem: aimgr repo verify reports missing metadata or orphaned metadata files.
Solution: Use aimgr repo repair to fix repository-level metadata:
aimgr repo repair # Fix auto-fixable issues
aimgr repo repair --dry-run # Preview what would be fixedEnable tab completion for faster workflow:
# Bash
aimgr completion bash > /etc/bash_completion.d/aimgr
# Zsh
aimgr completion zsh > "${fpath[1]}/_aimgr"
# Fish
aimgr completion fish > ~/.config/fish/completions/aimgr.fishNow you can tab-complete resource names:
aimgr install skill/<TAB>
# Shows: atlassian-cli dynatrace-api github-docs pdf-processing- Repairing Resources - Complete guide to
aimgr repairandaimgr repo repair
- Command help: Run
aimgr --helporaimgr <command> --help - Documentation: GitHub Repository
- Issues: Report bugs or request features