Skip to content

feat: Native Cursor IDE integration #302

@danielmeppiel

Description

@danielmeppiel

Summary

Add Cursor as the third native integration target alongside GitHub Copilot and Claude. When .cursor/ exists in a project, apm install should deploy primitives in Cursor's native formats without requiring compilation.

Motivation

Cursor is a widely-used AI-powered IDE with its own primitive formats (rules, subagents, skills, hooks, MCP). APM currently supports GitHub Copilot (.github/) and Claude (.claude/) natively, but Cursor users must rely on apm compile to generate AGENTS.md. Native integration removes this friction and gives Cursor users first-class support.

Primitive Mapping

APM Primitive Cursor Destination Format
Instructions (.instructions.md) .cursor/rules/*.mdc applyTo:globs: frontmatter conversion
Agents (.agent.md) .cursor/agents/*.md Markdown with YAML frontmatter
Skills (SKILL.md) .cursor/skills/{name}/SKILL.md agentskills.io standard (identical)
Hooks (.json) .cursor/hooks.json Merged JSON with _apm_source tracking
MCP servers .cursor/mcp.json Standard mcpServers JSON

Design Decisions

  • Opt-in: Only deploy to .cursor/ when the directory already exists (consistent with Claude pattern)
  • TargetProfile data layer: Scalable multi-target architecture — adding future targets = adding a dict entry
  • .cursor-plugin/plugin.json: Detect Cursor-native plugin repos as APM dependencies

Implementation

PR: #301

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementDeprecated: use type/feature. Kept for issue history; will be removed in milestone 0.10.0.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions