creating-claude-agents

Creates and refines Claude Code agents with validated frontmatter and schema conformance.

790|60|Updated Dec 17, 2025
One-click install
npx skills add https://github.com/khaliqgant/agent-relay --skill creating-claude-agents-khaliqgant
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: creating-claude-agents
Source: https://github.com/khaliqgant/agent-relay/tree/main/.claude/skills/creating-claude-agents-skill/SKILL.md
Command: npx skills add https://github.com/khaliqgant/agent-relay --skill creating-claude-agents-khaliqgant

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides guidance for creating Claude Code agents, covering frontmatter structure, persona definition, tool access, model selection, and validation against the agent schema.

Core Features & Use Cases

  • Define required frontmatter fields (name, description, model, allowed-tools, agentType)
  • Provide robust persona and process guidelines
  • Show model selection guidance and how to validate against the CLAUDE agent schema
  • Use Case: Generate a new agent with a specific persona and restricted tool access.

Quick Start

Create a new Claude Code agent with a specific name, description, and a minimal allowed-tools set and model.

Frequently Asked Questions about creating-claude-agents

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

FAQPage Schema
How do I create a Claude agent with custom frontmatter and schema validation?

Create a Claude agent by defining required frontmatter fields (name, description, model, allowed-tools, agentType), adding a mandatory H1 heading, defining a persona, and structuring content sections (Instructions, Process, Examples, Guidelines). Validate your agent against the Claude agent schema to ensure conformance before deployment.

What's the difference between a Claude agent, a Skill, and a slash command?

A Claude agent is a persona-driven interface with restricted tool access and custom frontmatter; a Skill is a reusable knowledge component; a slash command is a shorthand trigger. Agents require full schema validation and persona definition, while Skills and slash commands serve different architectural roles within Claude Code.

How do I restrict tool access when building a Claude agent?

Define the allowed-tools field in your agent frontmatter to specify exactly which tools the agent can access. This constrains functionality to your intended use case and improves security and performance by preventing unnecessary tool exposure.

What model should I select for a new Claude agent?

Model selection depends on your agent's complexity and latency requirements. The metadata field in frontmatter accepts model parameters; choose based on your task scope, tool dependencies, and performance constraints documented in agent creation best practices.

Why is my agent failing schema validation?

Agent schema validation errors typically stem from missing or malformed frontmatter fields, missing H1 heading, incomplete persona definition, or missing required content sections (Instructions, Process, Examples, Guidelines). Review each field against the Claude agent schema specification and ensure all mandatory elements are present.

Can I refine an existing agent using these best practices?

Yes. Apply agent creation best practices to troubleshoot validation errors, improve persona clarity, refine tool access restrictions, optimize model selection, and restructure content sections. Validation against the schema ensures your refined agent meets technical and functional requirements.