catalog-generator
From davila7
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.
Facts
- Repository
- davila7/claude-code-templates
- Status
- Actively maintained
- Last commit
- Source file
- .claude/agents/catalog-generator.md
Source preview
The instructions Claude Code reads when this subagent runs.
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 cView full source on GitHub āOther subagents
system-architect
ā 71,115Use this agent when making architectural decisions for RTK ā adding new filter modules, evaluating command routing changes, designing cross-cutting features (config, tracking, tee), or assessing performance impact of structural changes. Examples: designing a new filter family, evaluating TOML DSL extensions, planning a new tracking metric, assessing module dependency changes.
rtk-aiupdated 20d agoApache-2.0debugger
ā 71,115Use this agent when encountering errors, test failures, unexpected behavior, or when RTK doesn't work as expected. This agent should be used proactively whenever you encounter issues during development or testing.\n\nExamples:\n\n<example>\nContext: User encounters filter parsing error.\nuser: "The git log filter is crashing on certain commit messages"\nassistant: "I'm going to use the debugger agent to investigate this parsing error."\n<commentary>\nSince there's an error in filter logic, use the debugger agent to perform root cause analysis and provide a fix.\n</commentary>\n</example>\n\n<example>\nContext: Tests fail after filter modification.\nuser: "Token savings tests are failing after I updated the cargo test filter"\nassistant: "Let me use the debugger agent to analyze these test failures and identify the regression."\n<commentary>\nTest failures require systematic debugging to identify the root cause and fix the issue.\n</commentary>\n</example>\n\n<example>\nContext: Performance regression detected.\nuser: "RTK startup time increased to 25ms after adding lazy_static regex"\nassistant: "I'm going to use the debugger agent to profile the performance regression."\n<commentary>\nPerformance problems require systematic debugging with profiling tools (flamegraph, hyperfine).\n</commentary>\n</example>\n\n<example>\nContext: Shell escaping bug on Windows.\nuser: "Git commands work on macOS but fail on Windows with shell escaping errors"\nassistant: "Let me launch the debugger agent to investigate this cross-platform shell escaping issue."\n<commentary>\nCross-platform bugs require platform-specific debugging and testing.\n</commentary>\n</example>
rtk-aiupdated 20d agoApache-2.0rust-rtk
ā 71,115Expert Rust developer for RTK - CLI proxy patterns, filter design, performance optimization
rtk-aiupdated 20d agoApache-2.0rtk-testing-specialist
ā 71,115RTK testing expert - snapshot tests, token accuracy, cross-platform validation
rtk-aiupdated 20d agoApache-2.0code-reviewer
ā 71,115Use this agent when you need comprehensive code quality assurance, security vulnerability detection, or performance optimization analysis. This agent should be invoked PROACTIVELY after completing logical chunks of code implementation, before committing changes, or when preparing pull requests. Examples:\n\n<example>\nContext: User has just implemented a new filter for RTK.\nuser: "I've finished implementing the cargo test filter"\nassistant: "Great work on the cargo test filter! Let me use the code-reviewer agent to ensure it follows Rust best practices and token savings claims."\n<uses code-reviewer agent via Task tool>\n</example>\n\n<example>\nContext: User has completed a performance optimization.\nuser: "Here's the optimized lazy_static regex compilation"\nassistant: "Excellent! Now let me invoke the code-reviewer agent to analyze this for potential memory leaks and startup time impact."\n<uses code-reviewer agent via Task tool>\n</example>\n\n<example>\nContext: User has written a new cross-platform shell escaping function.\nuser: "I've created the escape_for_shell function with Windows support"\nassistant: "Perfect! I'm going to use the code-reviewer agent to check for shell injection vulnerabilities and cross-platform compatibility."\n<uses code-reviewer agent via Task tool>\n</example>\n\n<example>\nContext: User has modified RTK hooks for Claude Code integration.\nuser: "Updated the rtk-rewrite.sh hook"\nassistant: "Important changes! Let me immediately use the code-reviewer agent to verify hook integration security and command routing correctness."\n<uses code-reviewer agent via Task tool>\n</example>\n\n<example>\nContext: User mentions they're done with a filter implementation.\nuser: "The git log filter is complete"\nassistant: "Excellent progress! Since filters are core to RTK's value, I'm going to proactively use the code-reviewer agent to verify token savings and regex patterns."\n<uses code-reviewer agent via Task tool>\n</example>
rtk-aiupdated 20d agoApache-2.0technical-writer
ā 71,115Create clear, comprehensive CLI documentation for RTK with focus on usability, performance claims, and practical examples
rtk-aiupdated 20d agoApache-2.0