create-subagent

Create custom AI subagents with unique system prompts and configurations for Cursor agents directories.

Updated Feb 20, 2026
One-click install
npx skills add https://github.com/garethdaine/agent --skill create-subagent-garethdaine
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-subagent
Source: https://github.com/garethdaine/agent/tree/main/.cursor/skills-cursor/create-subagent
Command: npx skills add https://github.com/garethdaine/agent --skill create-subagent-garethdaine

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the creation of specialized AI agents (subagents) that can be tailored for specific tasks, improving AI focus and context preservation.

Core Features & Use Cases

  • Custom Agent Creation: Define and configure new AI agents with unique prompts and behaviors.
  • Context Isolation: Create agents that operate in isolated contexts, preserving main conversation flow.
  • Specialized AI Assistants: Set up agents for tasks like code review, debugging, or domain-specific assistance.
  • Use Case: You need an AI assistant that only reviews code for security vulnerabilities. You can create a 'security-reviewer' subagent with a specific prompt and have it run whenever code is modified.

Quick Start

Create a new subagent named 'code-reviewer' with a description that it reviews code for quality and best practices.

Frequently Asked Questions about create-subagent

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a custom AI agent for code review?

You create a custom AI agent for code review by defining a unique system prompt and configuration. This Skill facilitates generating specialized subagents, such as a 'code-reviewer', that operate in isolated contexts to enforce specific quality and best practice behaviors.

What is an AI subagent and when do I need one?

An AI subagent is a specialized assistant with a tailored system prompt that runs in an isolated context. You need one to preserve main conversation flow and focus the AI on specific tasks like debugging, code review, or security vulnerability scanning.

Can I configure project-specific AI agents in my codebase?

Yes, you can configure project-specific AI agents by placing them in the `.cursor/agents/` directory. This allows you to define custom AI behaviors that are scoped directly to your current project's codebase and requirements.

Does this support user-specific AI assistants across multiple projects?

Yes, user-specific AI assistants are supported by storing configurations in the `~/.cursor/agents/` directory. This setup enables specialized agent behaviors to persist globally across all your local projects rather than being limited to a single repository.

How do I set up a security reviewer that runs automatically when code is modified?

You set up a security reviewer by creating a 'security-reviewer' subagent with a specific prompt to scan for vulnerabilities. This specialized AI assistant can then be configured to run whenever your code is modified in the environment.

What are the limitations of using isolated context subagents?

The main limitation of isolated context subagents is that they operate independently from the main conversation flow. While this preserves context isolation, it means the subagent cannot access the ongoing dialogue history or shared state of your primary AI assistant.