feat(ai): share skill files between Cursor and OpenCode#2
Merged
Conversation
- Add cursor.nix: link ~/.cursor/skills from the shared skills folder and write ~/.cursor/mcp.json from programs.mcp.servers - Move skills/ from opencode/ to ai/ so both Cursor and OpenCode source from the same location - Update opencode/default.nix skill paths from ./skills/* to ../skills/*
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.
What
Adds a
cursor.nixmodule that wires Cursor to the same skill files and MCP server config already used by OpenCode.Changes
cursor.nix: symlinks~/.cursor/skillsto the sharedai/skills/directory and writes~/.cursor/mcp.jsonfromconfig.programs.mcp.servers.ai/skills/: moved fromopencode/skills/so both agents read from one location. No skill content changed.opencode/default.nix: updated three skill paths from./skills/*to../skills/*.ai/default.nix: importscursor.nix.Why
Maintaining duplicate skill files per agent creates drift. A single source keeps coding-guidelines, natural-tone, and prompt-engineering in sync across both editors.