infra:make-subagent

Guide creation and configuration of Claude Code sub-agents with file structure and system prompts.

Updated Feb 24, 2026
One-click install
npx skills add https://github.com/atournayre/claude-personas --skill infra-make-subagent
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: infra:make-subagent
Source: https://github.com/atournayre/claude-personas/tree/main/infra/skills/make-subagent
Command: npx skills add https://github.com/atournayre/claude-personas --skill infra-make-subagent

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the creation and configuration of specialized sub-agents for Claude Code, enabling developers to build custom AI tools efficiently.

Core Features & Use Cases

  • Agent Structure Guidance: Provides clear instructions on file structure, frontmatter requirements, and system prompt formatting.
  • Tool & Model Selection: Offers best practices for choosing appropriate tools and AI models (sonnet, opus, haiku) based on task complexity.
  • Workflow Design: Differentiates between main chat and agent responsibilities, including background execution and parallel agent patterns.
  • Use Case: A developer needs to create a new agent that specifically analyzes code for security vulnerabilities. This Skill guides them through defining the agent's role, selecting necessary tools (like grep and bash), structuring the system prompt, and testing its effectiveness.

Quick Start

Use the infra:make-subagent skill to create a new agent for analyzing code quality.

Frequently Asked Questions about infra:make-subagent

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

FAQPage Schema
How do I create specialized Claude Code sub-agents for specific tasks?

Creating specialized Claude Code sub-agents requires configuring a specific file structure, frontmatter, and system prompts. This process involves defining the agent's role, selecting appropriate tools like grep or bash, and formatting system prompts using XML tags to ensure proper execution.

How do I select the right AI models and tools when building custom Claude Code agents?

Selecting AI models for custom Claude Code agents depends on task complexity, choosing between sonnet, opus, and haiku. You must also configure appropriate tools like grep and bash based on the specific data processing or code analysis requirements defined in the agent's workflow.

What is the correct file structure and frontmatter format for Claude Code sub-agents?

The correct file structure for Claude Code sub-agents requires specific frontmatter configurations and XML tags for system prompts. Adhering to these formatting constraints ensures proper agent initialization, tool selection, and background execution without requiring direct user interaction.

Can Claude Code sub-agents run in the background and execute in parallel?

Claude Code sub-agents support background execution and parallel agent patterns. Designing the workflow involves differentiating between main chat responsibilities and agent tasks, allowing multiple specialized agents to process code analysis or data simultaneously.

What are the limitations when designing workflows with Claude Code sub-agents?

Limitations when designing Claude Code sub-agents include strict constraints on user interaction and mandatory use of XML tags for system prompts. Agents must adhere to these structural rules and cannot operate outside their configured tool selections and defined roles.