AI-Assisted Agent Generation Template

Agent

by davila7 · Added 5mo ago

Claude

Install

npx claude-code-templates@latest --agent=cli-tool/components/skills/development/agent-development/examples --yes

Add to Claude

claude mcp add ai-assisted-agent-generation-template

About

AI-Assisted Agent Generation Template

Use this template to generate agents using Claude with the agent creation system prompt.

Usage Pattern

Step 1: Describe Your Agent Need

Think about:

  • What task should the agent handle?
  • When should it be triggered?
  • Should it be proactive or reactive?
  • What are the key responsibilities?

Step 2: Use the Generation Prompt

Send this to Claude (with the agent-creation-system-prompt loaded):

Create an agent configuration based on this request: "[YOUR DESCRIPTION]"

Return ONLY the JSON object, no other text.

Replace [YOUR DESCRIPTION] with your agent requirements.

Step 3: Claude Returns JSON

Claude will return:

{
  "identifier": "agent-name",
  "whenToUse": "Use this agent when... Examples: <example>...</example>",
  "systemPrompt": "You are... **Your Core Responsibilities:**..."
}

Step 4: Convert to Agent File

Create agents/[identifier].md:

---
name: [identifier from JSON]
description: [whenToUse from JSON]
model: inherit
color: [choose: blue/cyan/green/yellow/magenta/red]
tools: ["Read", "Write", "Grep"]  # Optional: restrict tools
---

[systemPrompt from JSON]

Example 1: Code Review Agent

Your request:

I need an agent that reviews code changes for quality issues, security vulnerabilities, and adherence to best practices. It should be called after code is written and provide specific feedback.

Claude generates:

{
  "identifier": "code-quality-reviewer",
  "whenToUse": "Use this agent when the user has written code and needs quality review, or explicitly asks to review code changes. Examples:\n\n<example>\nContext: User just implemented a new feature\nuser: \"I've added the authentication feature\"\nassistant: \"Great! Let me review the code quality.\"\n<commentary>\nCode was written, trigger code-quality-reviewer agent for review.\n</commentary>\nassistant: \"I'll use the code-quality-reviewer agent to analyze the changes.

Tags

FullStackaitmplclaude-code-templates

From Our Store

View all →
Claude Code

Claude Code Power User Kit

$39+

Advanced Claude Code skills and configurations

OpenClaw

OpenClaw Business Starter Kit

$59+

Set Up Your AI Assistant in 60 Minutes