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.
Commands
Section titled “Commands”aix add skill
Section titled “aix add skill”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 toai.local.json.--scope <scope>/--user(-u) /--project(-p): Target user-level or project-level config.
Sources:
react(npm packageaix-skill-react)@scope/pkggithub:user/repoowner/repo/path-to-skillhttps://github.com/org/repo/tree/main/skills/my-skillhttps://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.
aix add mcp
Section titled “aix add mcp”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 toai.local.json.--scope <scope>/--user(-u) /--project(-p): Target user-level or project-level config.
aix add rule
Section titled “aix add rule”aix add rule <source> [flags]Flags:
--name <name>/-n: Rule name.--activation <mode>/-a:always,auto,glob, ormanual.--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 toai.local.json.--scope <scope>/--user(-u) /--project(-p): Target user-level or project-level config.
aix add prompt
Section titled “aix add prompt”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 toai.local.json.--scope <scope>/--user(-u) /--project(-p): Target user-level or project-level config.