← ClaudeAtlas

use-claude-code-subagentslisted

Use when Cursor subagents run on the parent model instead of the model in their agent file, or the user asks: "use claude code subagents", "run scout on haiku", "why are my subagents all Opus?". Runs custom subagents through headless Claude Code. Skip for Cursor's built-in subagents or Cloud Agents.
ysskrishna/claude-code-subagents-for-cursor · ★ 0 · AI & Automation · score 75
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