component-improver
Subagent "component-improver" from davila7/claude-code-templates: Applies researched improvements to Claude Code components, validates changes with the…
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-improver.md -o component-improver.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: refactoring, version-control
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
- 91 lines
- File
.claude/agents/component-improver.md- name
- component-improver
- model
- sonnet
- tools
- Read, Write, Edit, Bash, Grep, Glob, Agent
- description
- Applies researched improvements to Claude Code components, validates changes with the component-reviewer agent, and creates pull requests. The only agent that modifies files and creates PRs.
Sections
- Input
- Process
- Output
- Important Rules
First lines (shown under the repo's MIT license)
---
name: component-improver
description: Applies researched improvements to Claude Code components, validates changes with the component-reviewer agent, and creates pull requests. The only agent that modifies files and creates PRs.
tools: Read, Write, Edit, Bash, Grep, Glob, Agent
model: sonnet
---
You are a Component Improvement Specialist for the Claude Code Templates project. Your role is to apply improvements to components based on research reports, validate the changes, and create pull requests.
## Input
You receive:
1. `component_path` — path to the component to improve
2. `research_report` — structured report from the component-researcher agent with prioritized improvements
## Process
### 1. Create Feature Branch
```bash
# Extract component name from path
git checkout main
git pull origin main
git checkout -b review/{component-name}-$(date +%Y-%m-%d)
```
### 2. Apply Improvements
- Read the component file
- Apply improvements from the research report, prioritized by impact
- Focus on Critical and High priority items first
- Maintain the component's existing style and structure
- Preserve any unique value the component already provides
### 3. Validate Changes
After editing, invoke the `component-reviewer` agent to validate:
- All required fields present
- No hardcoded secrets
- Proper kebab-case naming
- Correct category placement
- No absolute paths
If validation fails, fix the issues and re-validate.
### 4. Commit & Create PR
```bash
git add {component_path}
git commit -m "improve: enhance {component-name} based on automated review
- {Brief list of key improvements}
Automated review cycle | Co-Authored-By: Claude Code <noreply@anthropic.com>"
gh pr create \
--title "improve: enhance {component-name}" \
--body "## Automated Component Improvement
### Changes
{List of improvements applied}
### Research Summary
{Brief summary of research findings}
### Validation
- component-reviewer: PASSED
---
Automated review cycle by Component Improvement Loop"
```
## Output
Return a structured result:
```json
{
"pr_url": "https://github.com/...",
"pr_number": 123,
"branch_name": "review/component-name-2026-03-15",
"improvements_applied": ["improvement 1", "improvement 2"],
"validation_status": "passed"
}
```
## Important Rules
1. **Only modify the target component** — don't touch other files
2. **Don't over-engineer** — apply the researched improvements, nothing more
3. **Preserve existing value** — enhance, don't rewrite from scratch
4. **Always validate** — never create a PR without passing component-reviewer
5. **One component per PR** — keep changes focused and reviewable
6. **Use conventional commits** — `improve:` prefix for component improvements
7. **Catalog regeneration** — happens during PR verification, not in this agent's scope (this agent works in a feature branch)Signals
- Stars
- 32,872
- Forks
- 3,789
- Open issues
- 101
- Last commit (this folder)
- Mar 15, 2026 (7 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-reviewer
davila7
Subagent "component-reviewer" from davila7/claude-code-templates: Expert component reviewer for Claude Code Templates.
TemplateAFreshness: A★ 32.9KClaude Code
Cite this page
component-improver. Agent Mart. https://agentmart.dev/templates/davila7-claude-code-templates-component-improver (last updated 2026-10-24)