use-claude-code-subagentslisted
Install: claude install-skill ysskrishna/claude-code-subagents-for-cursor
# Use Claude Code subagents
## When to use
Cursor's Task tool pins custom subagents to the parent model when a personal Anthropic API key is on, or when the agent's model is not enabled in Cursor. This skill runs the project's custom subagents through Claude Code (headless `claude -p`) so each runs on the `model:` in its own agent file. The mode lasts for the rest of the chat. When the user says "use cursor subagents", switch back to the Task tool and confirm in one line.
Skip for Cursor's built-in subagents (`explore`, `generalPurpose`, ...), for Cloud Agents (no `claude` CLI there), and for any agent that step 2 sends to the Task tool.
## Before you start
1. **Gather first.** Read the agent file for each agent named (step 1) before you ask the user anything.
2. **Consent.** If the user typed `/use-claude-code-subagents` or asked for Claude Code subagents, continue. If this skill loaded on its own (the user only described a symptom), ask once: "Run custom subagents through Claude Code? Runs bill your Claude Code account and edits bypass Cursor's review and undo. Reply yes to switch." Wait for yes. On no, use the Task tool.
3. Reply exactly: `Subagent mode: claude code`.
4. **Preflight once.** This skill needs a POSIX shell (the `<` redirect). On native Windows (PowerShell or cmd), stay in Cursor native mode and say why. Otherwise run `claude --version` with `required_permissions: ["all"]`. It must be 2.1.281 or later. If it fails, point the user to the [Claude Code setu