Skip to content

aix add

Adds skills, MCP servers, rules, or prompts to ai.json (or ai.local.json) and installs them to editors in one step. If no ai.json exists in the current directory, the item is installed directly to editors without modifying any config file.

Terminal window
aix add skill <source> [flags]

Flags:

  • --name <name> / -n: Override skill name.
  • --ref <ref> / -r: Git branch/tag/commit.
  • --no-install: Skip the install step after adding.
  • --local / -l: Add to ai.local.json.
  • --scope <scope> / --user (-u) / --project (-p): Target user-level or project-level config.

Sources:

  • react (npm package aix-skill-react)
  • @scope/pkg
  • github:user/repo
  • owner/repo/path-to-skill
  • https://github.com/org/repo/tree/main/skills/my-skill
  • https://github.com/org/repo/blob/main/skills/my-skill/SKILL.md
  • ./local/path

aix add skill stores native aix skill references in ai.json and installs skills through aix’s own resolver/installer flow. Skills are copied into .aix/skills/{name}/, then symlinked into editors with native skill support.

Terminal window
aix add mcp <name> [flags]

If no command/url is provided, it searches the registry.

Flags:

  • --command <cmd>: Command to run (stdio).
  • --args <args>: Command arguments.
  • --url <url>: HTTP/SSE URL.
  • --env <vars>: Environment variables (KEY=val,KEY2=val).
  • --no-install: Skip the install step after adding.
  • --local / -l: Add to ai.local.json.
  • --scope <scope> / --user (-u) / --project (-p): Target user-level or project-level config.
Terminal window
aix add rule <source> [flags]

Flags:

  • --name <name> / -n: Rule name.
  • --activation <mode> / -a: always, auto, glob, or manual.
  • --globs <patterns> / -g: Glob patterns (comma separated).
  • --description <desc> / -d: Description for auto-activation.
  • --ref <ref> / -r: Git branch/tag/commit.
  • --no-install: Skip the install step after adding.
  • --local / -l: Add to ai.local.json.
  • --scope <scope> / --user (-u) / --project (-p): Target user-level or project-level config.
Terminal window
aix add prompt <source> [flags]

Flags:

  • --name <name> / -n: Prompt name.
  • --description <desc> / -d: Command description.
  • --argument-hint <hint>: Hint for user arguments.
  • --ref <ref> / -r: Git branch/tag/commit.
  • --no-install: Skip the install step after adding.
  • --local / -l: Add to ai.local.json.
  • --scope <scope> / --user (-u) / --project (-p): Target user-level or project-level config.