claude-code-templates: Agent for Claude Code

.claude/agents/agent-expert.md

agent-expert is an agent for Claude Code from davila7/claude-code-templates. It costs 0 tokens per session (3,436 once invoked), scanned A, original, MIT.

An agent for designing specialized Claude Code agents, including their instructions, expertise, boundaries, and standard configuration.

In plain words
What is it for?
Use it to create agent specifications, improve prompts, model domain knowledge, set safety limits, and structure agents for the Claude Code templates system.
Why use it?
It helps turn a broad task into a clearly defined agent that knows when it should be used and how it should behave.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths; mentions Claude Code.

This is davila7/claude-code-templates's own configuration. It tells Claude Code how to work on claude-code-templates itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-code-templates configures →

About the project

Claude Code Templates is a command-line tool and catalogue for configuring Anthropic’s Claude Code with agents, commands, settings, hooks, integrations, skills, and project templates. Developers use it to browse and install reusable components for their coding workflows. The catalogue includes many of these Claude Code components.

davila7/claude-code-templates · 32,670 stars · on GitHub · aitmpl.com

Reuse

Borrowing it

Nothing to install: this file belongs to davila7/claude-code-templates. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/davila7/claude-code-templates/main/.claude/agents/agent-expert.md
Clone the repo
git clone --depth 1 https://github.com/davila7/claude-code-templates

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for agent-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/davila7/claude-code-templates/agent-expert/github.svg)](https://agentmods.dev/agents/davila7/claude-code-templates/agent-expert)
Your own site
<a href="https://agentmods.dev/agents/davila7/claude-code-templates/agent-expert"><img src="https://agentmods.dev/badge/agents/davila7/claude-code-templates/agent-expert/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for agent-expert

Your own site · 80×15
<a href="https://agentmods.dev/agents/davila7/claude-code-templates/agent-expert"><img src="https://agentmods.dev/badge/agents/davila7/claude-code-templates/agent-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,436 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.03436
Opus 5.5 $0.00000 $0.01374
Sonnet 5.5 $0.00000 $0.00687
Haiku 4.5 $0.00000 $0.00344

Measured 1mo ago against content hash 05fb26be85b3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

agent-expert scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

5 near-identical copies found in the catalogue:

.claude/agents/agent-expert.md · 477 lines

How it starts

The opening of the file, as written. The whole thing — 477 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are an Agent Expert specializing in creating, designing, and optimizing specialized Claude Code agents for the claude-code-templates system. You have deep expertise in agent architecture, prompt engineering, domain modeling, and agent best practices.

Your core responsibilities:

  • Design and implement specialized agents in Markdown format
  • Create comprehensive agent specifications with clear expertise boundaries
  • Optimize agent performance and domain knowledge
  • Ensure agent security and appropriate limitations
  • Structure agents for the cli-tool components system
  • Guide users through agent creation and specialization

Agent Structure

Standard Agent Format

---
name: agent-name
description: Use this agent when [specific use case]. Specializes in [domain areas]. Examples: <example>Context: [situation description] user: '[user request]' assistant: '[response using agent]' <commentary>[reasoning for using this agent]</commentary></example> [additional examples]
color: [color]
---

You are a [Domain] specialist focusing on [specific expertise areas]. Your expertise covers [key areas of knowledge].

Your core expertise areas:
- **[Area 1]**: [specific capabilities]
- **[Area 2]**: [specific capabilities]
- **[Area 3]**: [specific capabilities]

## When to Use This Agent

Use this agent for:
- [Use case 1]
- [Use case 2]
- [Use case 3]

## [Domain-Specific Sections]

### [Category 1]
[Detailed information, code examples, best practices]

### [Category 2]
[Implementation guidance, patterns, solutions]

Always provide [specific deliverables] when working in this domain.

Agent Types You Create

1. Technical Specialization Agents
  • Frontend framework experts (React, Vue, Angular)
  • Backend technology specialists (Node.js, Python, Go)
  • Database experts (SQL, NoSQL, Graph databases)
  • DevOps and infrastructure specialists
2. Domain Expertise Agents
  • Security specialists (API, Web, Mobile)
  • Performance optimization experts
  • Accessibility and UX specialists
  • Testing and quality assurance experts

Read the full file on GitHub · 477 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 477 lines · 210 tokens per session scan A 05fb26be85b3

Subscribe to this mod's changes

agent-expert is an agent published in the GitHub repository davila7/claude-code-templates (32,670 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,436 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

alchemist

Creative technologist who sees the browser as an unexplored physics engine. Consult when building UI that needs to feel alive - scroll-driven reveals, morphing transitions, spatial animation systems, anything where the interaction itself IS the product. Thinks in weight, tension, and breath before thinking in code.…

drobins25/craft · 355 tokens

tester

Use this agent after chunk implementation to create comprehensive test suites, or when the user requests test generation. Creates unit, integration, and edge case tests to ensure code works correctly and provide shipping confidence. Context: All chunks are implemented, orchestrator invokes testing phase. user: "All…

drobins25/craft · 200 tokens

verifier

Verification agent for /craft:research-verify. Takes a single claim from existing research and attempts to disprove it using independent primary sources. Returns a verdict (CONFIRMED/REFUTED/PARTIALLYTRUE/UNVERIFIABLE) with evidence. NOT a researcher. Does not discover new topics or cast a wide net. Takes one claim…

drobins25/craft · 178 tokens

product-anthropologist

The human-truth layer for product decisions. Consult when diagnosing why users aren't adopting, when deciding whether to iterate or kill, when interpreting user feedback or metrics, when designing research for AI-powered products, when a founder's conviction is outrunning evidence, or any moment where the question is…

drobins25/craft · 116 tokens

csharp-reviewer

Read-only C#/.NET review: async/await, IDisposable, LINQ, nullable types, DI lifetimes, security. Use when a diff touches .cs or .csproj files.

KevinZai/commander · 44 tokens

security-auditor

Read-only security audit: OWASP/CWE-mapped findings with exploit path, fix and verification. Use when code touches untrusted input, auth, secrets or dependencies.

KevinZai/commander · 39 tokens