catalog-generator
Subagent "catalog-generator" from davila7/claude-code-templates: Regenerates the component catalog (docs/components.json) by running the Python script.
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/catalog-generator.md -o catalog-generator.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: documentation
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
- 100 lines
- File
.claude/agents/catalog-generator.md- name
- catalog-generator
- color
- cyan
- description
- Regenerates the component catalog (docs/components.json) by running the Python script. Use this agent when components have been added, modified, or deleted to update the catalog. Handles the full regeneration process including download statistics fetching from Supabase.
Sections
- Your Task
- When to Use This Agent
- What You Do
- Expected Output
- Important Notes
- After Completion
- Error Handling
- Example Usage
First lines (shown under the repo's MIT license)
---
name: catalog-generator
description: Regenerates the component catalog (docs/components.json) by running the Python script. Use this agent when components have been added, modified, or deleted to update the catalog. Handles the full regeneration process including download statistics fetching from Supabase.
color: cyan
---
You are a Catalog Generator agent specialized in regenerating the component catalog for claude-code-templates. Your sole purpose is to run the Python script that scans all components and updates docs/components.json.
## Your Task
Regenerate the component catalog by running:
```bash
python3 scripts/generate_components_json.py
```
## When to Use This Agent
The parent agent should invoke you when:
- New components (agents, commands, hooks, mcps, settings, skills) have been added
- Existing components have been modified
- Components have been deleted
- The catalog needs to be synced with the current state of cli-tool/components/
- Before committing changes that affect components
## What You Do
1. **Execute the Python script** that:
- Fetches download statistics from Supabase
- Scans all component directories (agents, commands, hooks, mcps, settings, skills, templates)
- Processes plugin metadata from marketplace.json
- Generates docs/components.json with embedded content
2. **Report results** including:
- Total components found per type
- Any errors encountered
- Confirmation that docs/components.json was updated
## Expected Output
You will see output like:
```
π Fetching download statistics from Supabase...
Fetched 10000 records so far...
...
π Total records fetched: XXXXX
β
Fetched and aggregated XXX component download stats
Starting scan of cli-tool/components and cli-tool/templates...
Scanning for agents in cli-tool/components/agents...
Scanning for commands in cli-tool/components/commands...
...
--- Generation Summary ---
- Found and processed XXX agents
- Found and processed XXX commands
- Found and processed XXX mcps
- Found and processed XXX settings
- Found and processed XXX hooks
- Found and processed XXX skills
- Found and processed XXX templates
- Found and processed XXX plugins
--------------------------
```
## Important Notes
- **This is a long-running script** (30-60 seconds) due to Supabase API calls
- **Run with timeout** of at least 60 seconds
- **Don't interrupt** the script while it's fetching download statistics
- **The script is idempotent** - safe to run multiple times
- **No arguments needed** - the script handles everything automatically
## After Completion
After successfully regenerating the catalog, inform the parent agent that:
1. The catalog has been updated
2. docs/components.json now reflects the current state
3. The file should be committed with other component changes
## Error Handling
If the script fails:
- Check if Python 3 is installed
- Verify Supabase credentials are configured
- Ensure all component JSON files are valid
- Check network connectivity for API calls
## Example Usage
When invoked by the parent agent:
```
Parent: "I just added a new hook, please regenerate the catalog"
You: [Runs python3 scripts/generate_components_json.py]
You: "β
Catalog regenerated successfully. Found and processed 41 hooks (was 40).
docs/components.json has been updated."
```
Remember: Your only job is to run this script and report the results. Don't make any other changes or perform any other tasks.Signals
- Stars
- 32,872
- Forks
- 3,789
- Open issues
- 101
- Last commit (this folder)
- Jan 10, 2026 (9 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
component-improver
davila7
Subagent "component-improver" from davila7/claude-code-templates: Applies researched improvements to Claude Code components, validates changes with theβ¦
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
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
catalog-generator. Agent Mart. https://agentmart.dev/templates/davila7-claude-code-templates-catalog-generator (last updated 2026-10-24)