catalog-generator

catalog-generator is an agent for Claude Code from davila7/claude-code-templates. It costs 51 tokens per session (723 once invoked), scanned A, original, MIT.

A tool for rebuilding the component catalogue file from the project’s current components. The catalogue is a generated list of agents, commands, hooks, integrations, settings, skills, and templates.

In plain words
What is it for?
Use it to run the catalogue-generation script, scan component folders, fetch statistics, and report the results or errors.
Why use it?
It keeps the catalogue in sync after components are added, changed, or removed, including download statistics and marketplace information.

Agent for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/davila7/claude-code-templates/catalog-generator
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 catalog-generator

README.md
[![agentmods](https://agentmods.dev/badge/agents/davila7/claude-code-templates/catalog-generator.svg)](https://agentmods.dev/agents/davila7/claude-code-templates/catalog-generator)
Your own site
<a href="https://agentmods.dev/agents/davila7/claude-code-templates/catalog-generator"><img src="https://agentmods.dev/badge/agents/davila7/claude-code-templates/catalog-generator.svg" alt="Measured on agentmods" height="20"></a>
Per session 51 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 723 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00051 $0.00723
Opus 5 $0.00026 $0.00362
Sonnet 5 $0.00010 $0.00145
Haiku 4.5 $0.00005 $0.00072

Measured 4d ago against content hash 1f30f20c3c8c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

catalog-generator 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 4d 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.

.claude/agents/catalog-generator.md · 100 lines

How it starts

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

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:

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

Read the full file on GitHub · 100 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. 4d ago First seen · 100 lines · 51 tokens per session scan A 1f30f20c3c8c

Subscribe to this mod's changes

catalog-generator is an agent published in the GitHub repository davila7/claude-code-templates (30,515 stars, last pushed today), licensed MIT. It adds 51 tokens to every session and 723 once invoked, about $0.0003 per session on Opus 5. 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

db-postgres-expert

Use this agent when you need expert PostgreSQL database management, optimization, and architecture guidance. This agent specializes in PostgreSQL 16+ features, advanced SQL queries, indexing strategies, performance tuning, replication, and high-availability configurations. Examples: Context: User needs to optimize…

andisab/swe-marketplace · 403 tokens

database-reviewer

Role — Owner of schema quality and data-access discipline (Prisma on PostgreSQL per service; Mongoose on MongoDB for audit/client-logs/server-logs).

ihabkhaled/ClawAI · 0 tokens

migration-reviewer

Role — Specialist for Prisma migrations and data backfills.

ihabkhaled/ClawAI · 0 tokens

database-navigator

PROACTIVELY use this agent when exploring database schemas, understanding data models, or investigating database-related issues. Expert in SQL, migrations, and data relationships. Read-only agent for production safety.

arpitnath/claude-capsule-kit · 43 tokens

data-integrity

Database integrity auditor — queries the persistent store for incomplete enrichment, orphaned references, stuck state-machine rows, cross-tenant leaks, and invariant violations. Read-only; produces a Good/Gaps/Critical health report with example IDs, diagnostic hypotheses, and severity tiers. Run after pipeline…

vindm/dotclaude · 74 tokens

database-architect

Use this agent when designing database schemas, analyzing query performance, or evaluating data storage strategies. Specializes in relational databases, indexing, transactions, and data modeling.

arpitnath/claude-capsule-kit · 38 tokens