AI Integration

OpenSpec is designed to work natively with AI coding assistants.

Slash Commands

When you run openspec init, the CLI generates custom slash command configurations for supported tools. These commands streamline the workflow.

Command Description
/openspec-proposal Scaffolds a new change proposal structure and validates it.
/openspec-apply Implements an approved change, following the tasks.md checklist.
/openspec-archive Archives the change and updates the spec documentation.

Supported Tools

OpenSpec includes specific configurators for:

  • Claude Code: Generates CLAUDE.md and .claude/commands/.
  • Cursor: Generates .cursor/commands/.
  • Windsurf: Generates workflows in .windsurf/workflows/.
  • GitHub Copilot: Generates prompts in .github/prompts/.
  • Cline: Generates workflows in .clinerules/workflows/.
  • And many others: (See openspec init --help for the full list).

AGENTS.md Standard

For tools that do not support custom slash commands, OpenSpec generates a root AGENTS.md file containing the core instructions. This file serves as a context file that you can manually mention or add to your AI's context window.