Repository navigation
feat: support Cursor as a project agent - #83
Merged
nicholasjackson merged 2 commits intoOct 26, 2026
Merged
Conversation
`spektacular init cursor` installs the workflow skills under .cursor/skills/, where Cursor discovers them and lists each in its `/` menu, and writes the standing-rule sections into root AGENTS.md, which Cursor reads natively in the editor and the CLI. No command wrappers or .cursor/rules files are written, and no other agent's files are touched. Hive-Run: hivecommons#81 Hive-Plan: cursor-agent-integration Hive-Spec: issue-81#cursor-support Signed-off-by: Danathar <Danathar@users.noreply.github.com>
Main added GitHub Copilot CLI as an agent while this branch added Cursor. Conflicts in the cross-agent test lists and README are resolved as the union of both, and the README integration count becomes six. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Danathar <doug.baggett@gmail.com>
Contributor
Author
|
hive-base-moved: merged 🐝 Hive Agent: |
Collaborator
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: nicholasjackson The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
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.
Adds Cursor as a fifth agent:
spektacular init cursor.What it installs
.cursor/skills/<name>/SKILL.md, using the same eight templates as every other agent. Cursor finds skills in this folder (docs), and each one shows up in Agent chat's/menu, so/spek-new …works. Each skill's frontmatternamematches its folder, which Cursor requires.AGENTS.md, the same eight sections codex and omp get. Cursor reads rootAGENTS.mditself (docs), so nothing is written to.cursor/rules/and noCLAUDE.mdis created..cursor/rules/are left alone.Migration needs no changes.
migratelooks up the recorded agent, so a project withagent: cursorgets its skills reinstalled like any other.Choice made:
.cursor/skills/instead of.agents/skills/Cursor reads both folders. I used
.cursor/skills/so that each agent has its own folder, as claude, bob and omp already do. The downside: in a project also set up for codex or claude, Cursor sees a second copy of each skill. The README's new "Using Cursor" section says this and tells users to runinitfor each agent after upgrading.Changes
internal/agent/cursor.go: the new agent, registered in the agent registry.internal/agent/cursor_test.go: checks the skills (including frontmatter), all eight AGENTS.md sections, and that it writes no wrappers, no rules, noCLAUDE.mdand no other agents' folders.initinstalls the epic skills for every agentagent.go: package doc comment.Testing
go vet ./...passed,gofmt -lis clean, andgo test ./...passed.init cursorwrote 8.cursor/skills/*/SKILL.mdfiles and anAGENTS.mdwith all 8 sections, and nothing else outside.spektacular/. Running it again left everything byte-identical.config.yamlrecordedagent: cursor, andinit --helplistscursor.migrate. It reported"agent": "cursor", "reinstall": trueand restored the skill.AGENTS.mdcome from Cursor's docs linked above.Not done here: the docs site (
spektacular-website) is a separate repo and doesn't list Cursor yet.Closes #81
— hive: backend=omp model=anthropic/claude-opus-5-5 effort=high