Skip to content

feat(agents): add Cursor support to init-agents and init-skills - #42245

Open
John Hill (unlikelyzero) wants to merge 1 commit into
microsoft:mainfrom
unlikelyzero:feature-41563
Open

feat(agents): add Cursor support to init-agents and init-skills#42245
John Hill (unlikelyzero) wants to merge 1 commit into
microsoft:mainfrom
unlikelyzero:feature-41563

Conversation

@unlikelyzero

@unlikelyzero John Hill (unlikelyzero) commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

I recently joined a team that uses Cursor almost exclusively, and hit this gap firsthand — init-agents had no Cursor target, so this closes that.

Summary

  • Add a CursorGenerator that reuses the canonical planner/generator/healer agent specs to produce native Cursor subagents under .cursor/agents
  • Merge the Playwright Test MCP server into .cursor/mcp.json, preserving any existing entries
  • Write reusable commands to .cursor/commands when --prompts is passed
  • Add cursor as an init-skills loop and playwright-cli install --skills target, installing into .cursor/skills

Compatibility 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

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.
@pavelfeldman

Copy link
Copy Markdown
Member

Does cursor not support agents/skills?

@unlikelyzero

Copy link
Copy Markdown
Contributor Author

Pavel Feldman (@pavelfeldman)

Yes, actually — Cursor added native support for both in 2.4:

This PR generates into those native locations. I manually verified .cursor/agents + the merged .cursor/mcp.json get picked up correctly in Cursor (planner/generator/healer all discoverable, MCP server connects).

One nuance: Cursor also reads .claude/agents/ and .claude/skills/ directly for compatibility, so in principle the existing Claude output would partially work in Cursor too — but generating true Cursor-native files lets us set Cursor-specific frontmatter (model: inherit) correctly rather than relying on that compatibility shim, matching how this codebase treats every other provider.

@pavelfeldman

Copy link
Copy Markdown
Member

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?

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.

[Feature]: When will the Playwright test agent support Cursor?

2 participants