Skip to content

Commands

Command packages define slash commands that users invoke explicitly in their AI coding assistant (e.g. /audit, /review). Slash commands are currently the most Claude Code-specific package type — other tools have limited or no equivalent.

For general information about command packages, see Command package type.

Auto-setup: No (manual placement) Target path:

.claude/commands/<command-name>.md

File format: Markdown with YAML frontmatter.

Frontmatter fields used:

FieldRequiredDescription
nameYesThe slash command name (invoked as /<name>)
descriptionYesShown in Claude Code’s command list and help

Behavior: Users copy the command definition file into .claude/commands/. Once placed, the command appears in Claude Code’s slash command list and can be invoked with /<name>. The prompt body defines what Claude does when the command runs.

APKG installs command packages into apkg_packages/ but does not auto-copy files into .claude/commands/. After installation, users can copy the definition file manually:

Terminal window
apkg add @acme/audit-command
cp apkg_packages/@acme/audit-command/audit.md .claude/commands/

Example definition file:

---
name: audit
description: Run a security audit on the current project
---
Perform a security audit of this project. Check for:
1. Hardcoded secrets and credentials
2. Dependency vulnerabilities
3. Insecure API usage
4. Missing input validation
Report findings with severity levels and suggested fixes.

Auto-setup: No Support: No native slash command system.

Cursor does not have an equivalent to slash commands. If you install a command package, the definition files are available in apkg_packages/ but APKG does not generate any Cursor configuration.

Workaround: Users can adapt the command’s prompt content into a Cursor rule (.cursor/rules/) that activates based on description matching. This loses the explicit invocation model but preserves the behavior.

Auto-setup: No Support: No native slash command system.

Same as Cursor — Windsurf does not support user-defined slash commands. Command packages are installed but not auto-configured.

Auto-setup: No Support: No native slash command system.

Kiro does not currently support user-defined slash commands. Command packages are installed but not auto-configured.

Auto-setup: No Support: No native slash command system.

Codex operates as a non-interactive agent and does not support slash commands. Command packages are installed but not auto-configured.

ToolSlash commandsAuto-setupWorkaround
Claude CodeYesNo (manual copy)
CursorNoAdapt as a rule
WindsurfNoAdapt as a rule
KiroNo
CodexNo
PageDescription
Command package typeManifest fields and package structure
Tool Setup ExplainedDetection, precedence, and the generic setup mechanism