Skip to content

feat(ai): share skill files between Cursor and OpenCode#2

Merged
marcodsl merged 1 commit intomainfrom
feat/cursor-config
Apr 13, 2026
Merged

feat(ai): share skill files between Cursor and OpenCode#2
marcodsl merged 1 commit intomainfrom
feat/cursor-config

Conversation

@marcodsl
Copy link
Copy Markdown
Owner

What

Adds a cursor.nix module that wires Cursor to the same skill files and MCP server config already used by OpenCode.

Changes

  • cursor.nix: symlinks ~/.cursor/skills to the shared ai/skills/ directory and writes ~/.cursor/mcp.json from config.programs.mcp.servers.
  • ai/skills/: moved from opencode/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: imports cursor.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.

- 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/*
@marcodsl marcodsl merged commit 9667cbc into main Apr 13, 2026
1 check passed
@marcodsl marcodsl deleted the feat/cursor-config branch April 13, 2026 10:25
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.

1 participant