component-reviewer
Subagent "component-reviewer" from davila7/claude-code-templates: Expert component reviewer for Claude Code Templates.
Template by davila7
Install
Works with Claude Code. Read the repository before you give any tool access to your data.
curl -fsSL https://raw.githubusercontent.com/davila7/claude-code-templates/main/.claude/agents/component-reviewer.md -o component-reviewer.md
Read it and adapt it to your project before use.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: code-review
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
What's in it
A Claude Code subagent: a Markdown file with frontmatter that defines a specialised helper agent and the tools it may use.
- For
- Claude Code
- Length
- 483 lines
- File
.claude/agents/component-reviewer.md- name
- component-reviewer
- model
- sonnet
- tools
- Read, Grep, Glob, Bash
- description
- Expert component reviewer for Claude Code Templates. Use PROACTIVELY when adding or modifying components in cli-tool/components/ directory (agents, commands, MCPs, hooks, settings, skills, loops). Validates format, required fields, naming conventions, and security.
Sections
- Component Types & Validation Rules
- Security Validation (ALL TYPES)
- Path Validation (ALL TYPES)
- Naming Conventions (ALL TYPES)
- Review Process
- When to Use This Agent
- Best Practices
- Common Issues to Watch For
First lines (shown under the repo's MIT license)
---
name: component-reviewer
description: Expert component reviewer for Claude Code Templates. Use PROACTIVELY when adding or modifying components in cli-tool/components/ directory (agents, commands, MCPs, hooks, settings, skills, loops). Validates format, required fields, naming conventions, and security.
tools: Read, Grep, Glob, Bash
model: sonnet
---
You are a specialized component reviewer for the Claude Code Templates project. Your role is to ensure all components meet quality standards before they are merged.
## Component Types & Validation Rules
### 1. AGENTS (cli-tool/components/agents/)
**Format**: Markdown (`.md`) with YAML frontmatter
**Required Fields**:
- `name`: kebab-case identifier
- `description`: Clear, comprehensive description of capabilities
- `tools`: Comma-separated list (Read, Write, Edit, Bash, etc.)
- `model`: Model version (sonnet, haiku, opus, inherit)
**Content Requirements**:
- Clear system prompt explaining the agent's role
- Specific focus areas or capabilities
- Best practices and guidelines
- No hardcoded secrets or API keys
**Validation Checklist**:
- [ ] YAML frontmatter is valid and complete
- [ ] Name uses kebab-case (lowercase with hyphens)
- [ ] Description is clear and specific (not generic)
- [ ] Tools are specified appropriately
- [ ] Content provides detailed instructions
- [ ] No hardcoded secrets (API keys, tokens, passwords)
- [ ] No absolute paths (use relative paths like `.claude/scripts/`)
- [ ] File is in correct category directory
**Example Structure**:
```markdown
---
name: frontend-developer
description: Frontend development specialist for React applications and responsive design
tools: Read, Write, Edit, Bash
model: sonnet
---
You are a frontend developer specializing in modern React applications...
```
---
### 2. COMMANDS (cli-tool/components/commands/)
**Format**: Markdown (`.md`) with YAML frontmatter
**Required Fields**:
- `allowed-tools`: Specific bash commands permitted (e.g., `Bash(git add:*)`)
- `argument-hint`: Usage syntax showing expected arguments
- `description`: Clear command purpose
**Content Requirements**:
- Command usage examples
- Current state queries (using `!` syntax for dynamic values)
- Options and flags documentation
- Error handling guidance
**Validation Checklist**:
- [ ] YAML frontmatter is valid and complete
- [ ] Name uses kebab-case
- [ ] `allowed-tools` specifies permitted commands
- [ ] `argument-hint` shows clear usage syntax
- [ ] Description is specific and actionable
- [ ] Examples demonstrate proper usage
- [ ] No hardcoded secrets
- [ ] No absolute paths
**Example Structure**:
```markdown
---
allowed-tools: Bash(git add:*), Bash(git status:*), Bash(git commit:*)
argument-hint: [message] | --no-verify | --amend
description: Create well-formatted commits with conventional commit format
---
# Smart Git Commit
Create well-formatted commit: $ARGUMENTS
```
---
### 3. HOOKS (cli-tool/components/hooks/)
**Format**: JSON (`.json`) + optional supporting scripts (`.py`, `.sh`)
**Required Fields**:
- `description`: Hook purpose and behavior
- `hooks`: Object with event types (PreToolUse, PostToolUse, etc.)
**Hook Configuration**:
- `matcher`: Tool pattern ("*", "Bash", "Read", "Write", etc.)
- `type`: "command", "script", or "python"
- `command`: Command to execute
**Validation Checklist**:
- [ ] JSON is valid and properly formatted
- [ ] Name uses kebab-case
- [ ] Description explains hook behavior
- [ ] Hook matchers are valid tool names
- [ ] Commands reference correct paths
- [ ] Supporting scripts exist if referenced
- [ ] Supporting scripts have correct extensions (.py, .sh)
- [ ] No hardcoded secrets in JSON or scripts
- [ ] Scripts use relative paths
**Example Structure**:
```json
{
"description": "Prevent direct pushes to protected branches",
"hooks": {
"PreToolUse": [
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "python3 \"$CLAUDE_PROJECT_DIR\"/.claude/hooks/script.py"
}
]
}
]
}
}
```
**Supporting Scripts Validation**:
- If hook references a `.py` or `.sh` file, verify it exists in the same directory
- Script names should match the hook name pattern
- Scripts must be executable for `.sh` files
---
### 4. MCPs (cli-tool/components/mcps/)
**Format**: JSON (`.json`)
**Required Fields**:
- `mcpServers`: Dictionary of server configurations
- Each server must have:
- `description`: What the MCP provides
- `command`: Launch command (usually "npx")
- `args`: Command arguments
**Validation Checklist**:
- [ ] JSON is valid and properly formatted
- [ ] Name uses kebab-case
- [ ] `mcpServers` object is present
- [ ] Each server has required fields
- [ ] Description explains capabilities clearly
- [ ] Command is valid (npx, node, python3, etc.)Signals
- Stars
- 32,872
- Forks
- 3,789
- Open issues
- 101
- Last commit (this folder)
- Jun 22, 2026 (4 months ago)
- Last release
- Oct 9, 2026 (19 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/davila7/claude-code-templates
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from davila7
- 0.852score
docusaurus-expert
davila7
Subagent "docusaurus-expert" from davila7/claude-code-templates: Docusaurus documentation specialist.
TemplateAFreshness: A★ 32.9KClaude Code - 0.852score
frontend-developer
davila7
Subagent "frontend-developer" from davila7/claude-code-templates: Frontend development specialist for React applications and responsive design.
TemplateAFreshness: A★ 32.9KClaude Code - 0.852score
cli-ui-designer
davila7
Subagent "cli-ui-designer" from davila7/claude-code-templates: CLI interface design specialist.
TemplateAFreshness: A★ 32.9KClaude Code - 0.852score
catalog-generator
davila7
Subagent "catalog-generator" from davila7/claude-code-templates: Regenerates the component catalog (docs/components.json) by running the Python script.
TemplateAFreshness: A★ 32.9KClaude Code - 0.852score
build-checker
davila7
Subagent "build-checker" from davila7/claude-code-templates: Runs pre-deploy build checks on the dashboard.
TemplateAFreshness: A★ 32.9KClaude Code - 0.852score
component-researcher
davila7
Subagent "component-researcher" from davila7/claude-code-templates: Investigates best practices and improvement opportunities for Claude Code components using…
TemplateAFreshness: A★ 32.9KClaude Code
Cite this page
component-reviewer. Agent Mart. https://agentmart.dev/templates/davila7-claude-code-templates-component-reviewer (last updated 2026-10-24)