A target is the AI tool you want to install into, such as Cursor, Claude, or Codex. Packages list the targets they support, and you choose one with the CLI.
AIPM automatically detects the AI tool in your project and installs the skill in the matching location. Detection looks for tool-specific directories in your project root. If AIPM finds a .cursor/ folder, it knows your project uses Cursor. If it finds .claude/, it targets Claude Code. If it finds .codex/, it targets Codex.
When your project uses multiple AI tools, or when you want to override automatic detection, use --target cursor, --target claude, or --target codex with aipm add. The target flag tells AIPM exactly where to write the skill files. Add --no-init on that command to write the skill files without aipm.package.json or aipm-lock.json.
Some packages support only one target, while others include files for multiple AI tools. The package page shows which targets are available. If you request a target the package does not support, AIPM will report an error and suggest available options.
cursor
Cursor
Installs a Cursor project skill folder. Cursor loads skills from .cursor/skills.
Detected by
.cursor/
Writes to
.cursor/skills/<skill>/SKILL.md
Use this command to force installation into the Cursor target.
aipm add @scope/name@1.0.0 --target cursor --ci
claude
Claude
Installs a Claude Code project skill folder. Cursor also loads skills from .claude/skills.
Detected by
.claude/
Writes to
.claude/skills/<skill>/SKILL.md
Use this command to force installation into the Claude target.
aipm add @scope/name@1.0.0 --target claude --ci
codex
Codex
Installs an OpenAI Codex project skill folder under .agents/skills. Cursor also loads skills from that folder.
Detected by
.codex/
Writes to
.agents/skills/<skill>/SKILL.md
Use this command to force installation into the Codex target.
aipm add @scope/name@1.0.0 --target codex --ci
shared
Shared
Keeps the skill in one folder and adds a shortcut in every detected tool. Shown in the install menu when the project has more than one tool folder.
Detected by
two or more of .cursor/, .claude/, .codex/
Writes to
.ai/skills/<skill>/SKILL.md
Use this command to force installation into the Shared target.
aipm add @scope/name@1.0.0 --shared --ci
Publishing for multiple targets
When you publish a package, you declare which targets it supports in the manifest file. Each target can have different files or the same content adapted for that AI tool's format. AIPM validates that your package includes the required files for each declared target.
Manifest examples
Cursor-only
"targets": ["cursor"]
Installs only Cursor files.
Claude-only
"targets": ["claude"]
Installs only Claude project skill folders.
Codex-only
"targets": ["codex"]
Installs only Codex project skill folders under .agents/skills.
Multi-tool
"targets": ["cursor", "claude", "codex"]
Installs the same package into multiple AI tools.
Future targets
AIPM is designed to support additional AI tools as they adopt file-based skill formats. The target system is extensible, so new tools can be added without changing the core CLI or registry. Follow the roadmap for updates on new target support.