feat(agents): add Cursor support to init-agents and init-skills - #42245
feat(agents): add Cursor support to init-agents and init-skills#42245John Hill (unlikelyzero) wants to merge 1 commit into
Conversation
Add a CursorGenerator that reuses the canonical planner/generator/healer agent specs to produce native Cursor subagents under .cursor/agents, merges the Playwright Test MCP server into .cursor/mcp.json (preserving any existing entries), and writes reusable commands to .cursor/commands when --prompts is passed. Also add "cursor" as an init-skills loop and playwright-cli install --skills target, installing into .cursor/skills. Cursor's native subagents currently inherit whatever MCP tools are available to the parent agent rather than supporting a documented per-agent tool allowlist, so no unsupported tools: frontmatter is generated; this limitation is documented in the Test Agents guide.
|
Does cursor not support agents/skills? |
|
Yes, actually — Cursor added native support for both in 2.4:
This PR generates into those native locations. I manually verified One nuance: Cursor also reads |
|
The history of the topic is that we first supported it for .claude/, and then community aligned on .agents/. We can't ignore / regress claude, but we'd like to see the rest aligned around .agents/. I hope cursor will read frontmatter off any files, regardless of where they are. So to me things already work, what do I miss? |
I recently joined a team that uses Cursor almost exclusively, and hit this gap firsthand —
init-agentshad no Cursor target, so this closes that.Summary
CursorGeneratorthat reuses the canonical planner/generator/healer agent specs to produce native Cursor subagents under.cursor/agents.cursor/mcp.json, preserving any existing entries.cursor/commandswhen--promptsis passedcursoras aninit-skillsloop andplaywright-cli install --skillstarget, installing into.cursor/skillsCompatibility note
Cursor's native subagents currently inherit whatever MCP tools are available to the parent agent rather than supporting a documented per-agent tool allowlist. No unsupported
tools:frontmatter is generated as a result; this is documented in the Test Agents guide.Fixes #41563