CU

cursor-subagent-creator

Generates isolated, specialized AI subagents for the Cursor editor.

Install

mkdir -p .claude/skills/cursor-subagent-creator && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/1145" && unzip -o skill.zip -d .claude/skills/cursor-subagent-creator && rm skill.zip

Installs to .claude/skills/cursor-subagent-creator

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Creates Cursor-specific AI subagents with isolated context for complex multi-step workflows. Use when creating subagents for Cursor editor specifically, following Cursor's patterns and directories (.cursor/agents/). Triggers on "cursor subagent", "cursor agent". Do NOT use for generic subagent creation outside Cursor (use subagent-creator instead).
350 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Intermediate

Key capabilities

  • Create.cursor/agents/ markdown files
  • Configure model selection (fast/inherit)
  • Define foreground vs background task execution
  • Setup isolated context parameters
  • Structure complex multi-step workflows

How it works

It constructs a specialized markdown file following Cursor's internal agent protocol for context isolation and task delegation.

Inputs & outputs

You give it
Workflow steps and desired automation logic
You get back
Formatted markdown agent file in.cursor/agents/

When to use cursor-subagent-creator

  • Create a custom Cursor agent
  • Build specialized subagents
  • Implement multi-step automation
  • Configure background task agents

About this skill

Cursor Subagent Creator

You are an expert in creating Subagents following Cursor's best practices.

When to Use This Skill

Use this skill when the user asks to:

  • Create a new subagent/agent
  • Create a specialized assistant
  • Implement a complex workflow with multiple steps
  • Create verifiers, auditors, or domain experts
  • Tasks that require isolated context and multiple steps

DO NOT use for simple, one-off tasks - for those, use skills.

What are Subagents?

Subagents are specialized assistants that Cursor's Agent can delegate tasks to. Characteristics:

  • Isolated context: Each subagent has its own context window
  • Parallel execution: Multiple subagents can run simultaneously
  • Specialization: Configured with specific prompts and expertise
  • Reusable: Defined once, used in multiple contexts

Foreground vs Background

ModeBehaviorBest for
ForegroundBlocks until complete, returns result immediatelySequential tasks where you need the output
BackgroundReturns immediately, works independentlyLong-running tasks or parallel workstreams

Subagent Structure

A subagent is a markdown file in .cursor/agents/ (project) or ~/.cursor/agents/ (user).

File Format

---
name: agent-name
description: Description of when to use this subagent. The Agent reads this to decide delegation.
model: inherit # or fast, or specific model ID
readonly: false # true to restrict write permissions
is_background: false # true to execute in background
---

You are an [expert in X].

When invoked:

1. [Step 1]
2. [Step 2]
3. [Step 3]

[Detailed instructions about expected behavior]

Report [type of expected result]:

- [Output format]
- [Metrics or specific information]

Subagent Creation Process

1. Define the Purpose

  • What specific responsibility does the subagent have?
  • Why does it need isolated context?
  • Does it involve multiple complex steps?
  • Does it require deep specialization?

2. Choose the Location

  • Project: .cursor/agents/agent-name.md - project-specific
  • User: ~/.cursor/agents/agent-name.md - all projects

Naming convention:

  • Use kebab-case (words-separated-by-hyphens)
  • Be descriptive of the specialization
  • Examples: security-auditor, test-runner, debugger, verifier

3. Configure the Frontmatter

name (optional)

Unique identifier. If omitted, uses the filename.

name: security-auditor

description (optional but recommended)

CRITICAL for automatic delegation. Explains when the Agent should use this subagent.

Good descriptions:

  • "Security specialist. Use when implementing auth, payments, or handling sensitive data."
  • "Debugging specialist for errors and test failures. Use when encountering issues."
  • "Validates completed work. Use after tasks are marked done to confirm implementations are functional."

Phrases that encourage automatic delegation:

  • "Use proactively when..."
  • "Always use for..."
  • "Automatically delegate when..."

Avoid:

  • Vague descriptions: "Helps with general tasks"
  • No context of when to use

model (optional)

model: inherit  # Uses the same model as parent agent (default)
model: fast     # Uses fast model
model: claude-3-5-sonnet-20250219  # Specific model

When to use each model:

  • inherit: Default, maintains consistency
  • fast: For quick checks, formatting, simple tasks
  • Specific model: When you need specific capabilities

readonly (optional)

readonly: true # Restricts write permissions

Use when the subagent should only read/analyze, not modify.

is_background (optional)

is_background: true # Executes in background

Use for:

  • Long-running tasks
  • Continuous monitoring
  • When you don't need the result immediately

4. Write the Subagent Prompt

The prompt should define:

  1. Identity: "You are an [expert]..."
  2. When invoked: Context of use
  3. Process: Specific steps to follow
  4. Expected output: Format and content of the result
  5. Behavior: Approach and philosophy

Recommended structure:

You are an [expert in X] specialized in [Y].

When invoked:

1. [First action]
2. [Second action]
3. [Third action]

[Detailed instructions about approach]

Report [type of result]:

- [Specific format]
- [Information to include]
- [Metrics or criteria]

[Philosophy or principles to follow]

5. Be Focused and Specific

  • One clear responsibility: Each subagent has one purpose
  • Concise prompts: Don't write 2000 words
  • Actionable instructions: Clear and testable steps
  • Structured output: Well-defined response format

Field Configuration

FieldRequiredDefaultDescription
nameNoFilenameUnique identifier (lowercase + hyphens)
descriptionNo-When to use this subagent (read by Agent)
modelNoinheritModel to use (fast, inherit, or specific ID)
readonlyNofalseIf true, write permissions restricted
is_backgroundNofalseIf true, executes in background

Common Subagent Patterns

1. Verification Agent

Purpose: Independently validates that work declared as complete actually works.

---
name: verifier
description: Validates completed work. Use after tasks are marked done to confirm implementations are functional.
model: fast
---

You are a skeptical validator. Your job is to verify that work declared complete actually works.

When invoked:

1. Identify what was declared as complete
2. Verify that the implementation exists and is functional
3. Execute tests or relevant verification steps
4. Look for edge cases that may have been missed

Be thorough and skeptical. Report:

- What was verified and passed
- What was declared but is incomplete or broken
- Specific issues that need to be addressed

Don't accept statements at face value. Test everything.

Use for:

  • Validating features work end-to-end
  • Catching partially implemented functionality
  • Ensuring tests actually pass

2. Debugger

Purpose: Expert in root cause analysis and error correction.

---
name: debugger
description: Debugging specialist for errors and test failures. Use when encountering issues.
---

You are a debugging expert specialized in root cause analysis.

When invoked:

1. Capture the error message and stack trace
2. Identify reproduction steps
3. Isolate the failure location
4. Implement minimal fix
5. Verify that the solution works

For each issue, provide:

- Root cause explanation
- Evidence supporting the diagnosis
- Specific code fix
- Testing approach

Focus on fixing the underlying issue, not symptoms.

Use for:

  • Complex or obscure errors
  • Test failures that need investigation
  • Performance issues

3. Security Auditor

Purpose: Security expert auditing code.

---
name: security-auditor
description: Security specialist. Use when implementing auth, payments, or handling sensitive data.
model: inherit
---

You are a security expert auditing code for vulnerabilities.

When invoked:

1. Identify security-sensitive code paths
2. Check for common vulnerabilities (injection, XSS, auth bypass)
3. Confirm that secrets are not hardcoded
4. Review input validation and sanitization

Report findings by severity:

- **Critical** (must fix before deploy)
- **High** (fix soon)
- **Medium** (address when possible)
- **Low** (suggested improvements)

For each finding, include:

- Vulnerability description
- Location in code
- Potential impact
- Fix recommendation

Use for:

  • Authentication/authorization implementations
  • Code handling payments
  • User inputs
  • External API integrations

4. Test Runner

Purpose: Expert in test automation.

---
name: test-runner
description: Test automation expert. Use proactively to run tests and fix failures.
is_background: false
---

You are a test automation expert.

When you see code changes, proactively execute the appropriate tests.

If tests fail:

1. Analyze the failure output
2. Identify the root cause
3. Fix the issue preserving test intent
4. Re-run to verify

Report test results with:

- Number of tests passed/failed
- Summary of any failures
- Changes made to fix issues

Never break existing tests without clear justification.

Use for:

  • Running tests automatically after changes
  • Fixing test failures
  • Maintaining a healthy test suite

5. Documentation Writer

Purpose: Expert in creating clear documentation.

---
name: doc-writer
description: Documentation specialist. Use when creating READMEs, API docs, or user guides.
model: fast
---

You are a technical documentation expert.

When invoked:

1. Analyze the code/feature to document
2. Identify audience (developers, end users, etc.)
3. Structure documentation logically
4. Write with clarity and practical examples
5. Include code examples when relevant

Documentation should include:

- Purpose overview
- How to install/configure (if applicable)
- How to use with examples
- Available parameters/options
- Common use cases
- Troubleshooting (if applicable)

Use formatted markdown, clear language, and concrete examples.

6. Orchestrator

Purpose: Coordinates multiple subagents in sequence.

---
name: orchestrator
description: Coordinates complex workflows across multiple specialists. Use for multi-phase projects.
---

You are a complex workflow orchestrator.

W

---

*Content truncated.*

When not to use it

  • Generic subagent creation outside Cursor
  • Simple, one-off tasks easily solved by standard prompts

Prerequisites

Cursor editor installation.cursor directory configuration

Limitations

  • Agent performance depends on the underlying model context
  • Cannot bypass Cursor's built-in file system access rules

How it compares

It specifically uses Cursor-native patterns for subagent delegation and background task orchestration.

Compared to similar skills

cursor-subagent-creator side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
cursor-subagent-creator (this skill)55moNo flagsIntermediate
opencode-cli147moReviewAdvanced
claude-automation-recommender472moReviewBeginner
mcp-integration218moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

More by tech-leads-club

View all by tech-leads-club

accessibility

tech-leads-club

Audit and improve web accessibility following WCAG 2.1 guidelines. Use when asked to "improve accessibility", "a11y audit", "WCAG compliance", "screen reader support", "keyboard navigation", or "make accessible".

42174

perf-lighthouse

tech-leads-club

Run Lighthouse audits locally via CLI or Node API, parse and interpret reports, set performance budgets. Use when measuring site performance, understanding Lighthouse scores, setting up budgets, or integrating audits into CI. Triggers on: lighthouse, run lighthouse, lighthouse score, performance audit, performance budget.

1361

subagent-creator

tech-leads-club

Guide for creating AI subagents with isolated context for complex multi-step workflows. Use when users want to create a subagent, specialized agent, verifier, debugger, or orchestrator that requires isolated context and deep specialization. Works with any agent that supports subagent delegation. Triggers on "create subagent", "new agent", "specialized assistant", "create verifier".

828

tlc-spec-driven

tech-leads-club

Project and feature planning with 4 phases - Specify, Design, Tasks, Implement+Validate. Creates atomic tasks with verification criteria and maintains persistent memory across sessions. Stack-agnostic. Use when: (1) Starting new projects (initialize vision, goals, roadmap), (2) Working with existing codebases (map stack, architecture, conventions), (3) Planning features (requirements, design, task breakdown), (4) Implementing with verification, (5) Tracking decisions/blockers across sessions, (6) Pausing/resuming work. Triggers on "initialize project", "map codebase", "specify feature", "design", "tasks", "implement", "pause work", "resume work".

77

aws-advisor

tech-leads-club

Expert AWS Cloud Advisor for architecture design, security review, and implementation guidance. Leverages AWS MCP tools for accurate, documentation-backed answers. Use when user asks about AWS architecture, security, service selection, migrations, troubleshooting, or learning AWS. Triggers on AWS, Lambda, S3, EC2, ECS, EKS, DynamoDB, RDS, CloudFormation, CDK, Terraform, Serverless, SAM, IAM, VPC, API Gateway, or any AWS service.

529

domain-analysis

tech-leads-club

Identifies subdomains and suggests bounded contexts in any codebase following DDD Strategic Design. Use when analyzing domain boundaries, identifying business subdomains, assessing domain cohesion, mapping bounded contexts, or when the user asks about DDD strategic design, domain analysis, or subdomain classification.

39

You might also like

opencode-cli

SpillwaveSolutions

This skill should be used when configuring or using the OpenCode CLI for headless LLM automation. Use when the user asks to "configure opencode", "use opencode cli", "set up opencode", "opencode run command", "opencode model selection", "opencode providers", "opencode vertex ai", "opencode mcp servers", "opencode ollama", "opencode local models", "opencode deepseek", "opencode kimi", "opencode mistral", "fallback cli tool", or "headless llm cli". Covers command syntax, provider configuration, Vertex AI setup, MCP servers, local models, cloud providers, and subprocess integration patterns.

14174

claude-automation-recommender

anthropics

Analyze a codebase and recommend Claude Code automations (hooks, subagents, skills, plugins, MCP servers). Use when user asks for automation recommendations, wants to optimize their Claude Code setup, mentions improving Claude Code workflows, asks how to first set up Claude Code for a project, or wants to know what Claude Code features they should use.

47140

mcp-integration

anthropics

This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context Protocol", "connect external service", mentions "${CLAUDE_PLUGIN_ROOT} with MCP", or discusses MCP server types (SSE, stdio, HTTP, WebSocket). Provides comprehensive guidance for integrating Model Context Protocol servers into Claude Code plugins for external tool and service integration.

21123

hook-development

anthropics

This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.

11122

agent-factory

alirezarezvani

Claude Code agent generation system that creates custom agents and sub-agents with enhanced YAML frontmatter, tool access patterns, and MCP integration support following proven production patterns

8109

swarm-advanced

ruvnet

Advanced swarm orchestration patterns for research, development, testing, and complex distributed workflows

7110

Search skills

Search the agent skills registry