Skip to content

Add Cursor and GitHub Copilot adapters#44

Merged
richardmhope merged 1 commit into
mainfrom
cursor-copilot-adapters
Jul 4, 2026
Merged

Add Cursor and GitHub Copilot adapters#44
richardmhope merged 1 commit into
mainfrom
cursor-copilot-adapters

Conversation

@richardmhope

Copy link
Copy Markdown
Collaborator

Closes #30.

  • Cursor.cursor/rules/<name>.mdc with description + alwaysApply: false frontmatter: an "agent-requested" rule the agent loads when the description matches (or the user @-mentions), the same on-demand posture as the Kiro inclusion: manual fix. Verified against cursor.com/docs/context/rules.
  • Copilot.github/prompts/<name>.prompt.md with a description frontmatter, invoked via /<name> in chat. Verified against the VS Code prompt-files docs.
  • Both are project-scope only: Cursor keeps user rules in app settings and Copilot in the VS Code profile dir, so there's no stable $HOME-relative path. A new per-adapter scopes attribute enforces this in destination() with a clean CLI error.
  • Frontmatter serialization is now a shared yaml_frontmatter helper (injection-safe, same as Claude; Claude's output is byte-identical after the refactor, so no installs go stale).
  • All seven skills add copilot/cursor to supported-agents (patch bumps); docs table gains a Scopes column.

Verified end-to-end: installs write correct frontmatter to both locations; --scope global fails cleanly.

🤖 Generated with Claude Code

Cursor: agent-requested project rules at .cursor/rules/<name>.mdc
(description + alwaysApply: false frontmatter) — the agent pulls the
rule in when the description matches, or the user @-mentions it.

Copilot: VS Code prompt files at .github/prompts/<name>.prompt.md with
a description frontmatter, run on demand via /<name> in chat.

Neither tool has a stable filesystem location for user-level config
(Cursor keeps user rules in app settings; Copilot in the VS Code
profile dir), so both adapters are project-scope only, enforced by a
new per-adapter `scopes` attribute checked in destination().

The YAML-frontmatter serialization moves to a shared helper in base
(same injection-safety rationale as the Claude adapter, whose output
is byte-identical after the refactor). All skills add the two agents
to supported-agents (patch bumps).

Closes #30

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@richardmhope
richardmhope merged commit aa645ee into main Jul 4, 2026
10 checks passed
@richardmhope
richardmhope deleted the cursor-copilot-adapters branch July 4, 2026 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Cursor and GitHub Copilot adapters

1 participant