Skip to content

AI Environments

AIM applies a single inventory to multiple AI environments through adapters.

Supported environments

EnvironmentTarget IDSkillsMCP config
Claude Codeclaude-codesupportedsupported
Cursorcursorsupportedsupported
Codex CLIcodexsupportedsupported

All three adapters work in both directions: they install inventory items into an environment and read its contents on import (aiman import skill, aiman import mcp). The paths that skills and MCP configuration are read from are listed in the CLI Reference.

Gemini CLI and other environments are being considered as future adapters.

How AIM resolves paths

During aiman init and aiman doctor, AIM attempts to locate the standard directories for each AI environment.

If an environment is not found automatically, you can set the path in aim.local.yaml:

yaml
environments:
  claude-code: ~/.claude
  cursor: ~/.cursor
  codex: ~/.codex

aim.local.yaml is local to the machine and must not be committed to Git.

Skills

A skill from skills/<name>.md (or a folder skill, skills/<name>/SKILL.md together with its resource files) is installed in the format expected by the specific AI environment. AIM does this during apply (local iteration) and sync (applying the published state):

bash
aiman apply   # apply local changes
aiman sync    # apply the published state from Git

MCP servers

An MCP Item from mcp/<name>.yaml is applied by the adapter to the AI environment's config file.

For Claude Code and Cursor, the mcpServers JSON structure is used. For Codex CLI, the mcp_servers TOML structure is used.

Secret values and env variables are substituted from the local aim.local.yaml.

Diagnostics

bash
aiman doctor

doctor shows:

  • found and missing AI environments;
  • path issues;
  • the state of the inventory repository;
  • validity of the skills in skills/ of the active inventory repository;
  • missing required MCP env variables.

doctor only checks that the environments' base directories exist. It does not scan which skills are installed inside the AI environments: the === Skills === section counts skills in the inventory repository.


What's next

Released under the Apache 2.0 License.