Add Cursor and GitHub Copilot adapters#44
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #30.
.cursor/rules/<name>.mdcwithdescription+alwaysApply: falsefrontmatter: an "agent-requested" rule the agent loads when the description matches (or the user@-mentions), the same on-demand posture as the Kiroinclusion: manualfix. Verified against cursor.com/docs/context/rules..github/prompts/<name>.prompt.mdwith adescriptionfrontmatter, invoked via/<name>in chat. Verified against the VS Code prompt-files docs.$HOME-relative path. A new per-adapterscopesattribute enforces this indestination()with a clean CLI error.yaml_frontmatterhelper (injection-safe, same as Claude; Claude's output is byte-identical after the refactor, so no installs go stale).copilot/cursortosupported-agents(patch bumps); docs table gains a Scopes column.Verified end-to-end: installs write correct frontmatter to both locations;
--scope globalfails cleanly.🤖 Generated with Claude Code