-
Notifications
You must be signed in to change notification settings - Fork 59
Open
Labels
adapterFramework adapterFramework adapterenhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Description
Summary
Add a full adapter for Cursor, enabling export, run, and enhanced import support.
Details
Cursor is a widely-used AI-powered code editor. It uses:
.cursor/rules/directory with.mdcfiles (markdown with YAML frontmatter) for project rules.cursorrules(legacy, single file) for global project instructions- Rule files support
globs,alwaysApply,description, andcontentfields - Rules can be scoped to specific file patterns (e.g.,
*.ts,src/api/**)
gitagent already has a basic cursor import (reads .cursorrules), but a full adapter would add:
- Export: Convert a gitagent agent to Cursor's
.cursor/rules/*.mdcformat, mapping skills to scoped rules - Run: Not applicable (Cursor is an IDE, not a CLI runner) — skip or document as N/A
- Enhanced import: Read
.cursor/rules/*.mdcfiles (not just legacy.cursorrules), map scoped rules to skills
Acceptance Criteria
-
gitagent export --format cursorgenerates valid.cursor/rules/*.mdcfiles with frontmatter - Skills with file globs map to scoped Cursor rules
- SOUL.md + RULES.md map to
alwaysApply: truerules - Enhanced import reads
.cursor/rules/*.mdcdirectory (not just.cursorrules) - Documentation added to README adapter table
- Mapping document: what gitagent fields map, what gets dropped
Resources
- Cursor rules docs
- Existing import in
src/commands/import.ts(importFromCursor) for reference - Existing adapters in
src/adapters/for the export pattern
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
adapterFramework adapterFramework adapterenhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed