feat(components): add performance-auditor agent and pr-summary command

VJ
9h ago
+283-0

Summary of Changes

This pull request introduces two new high-value components to the Claude Code templates catalog:

  1. performance-auditor (Domain Expert Agent):

    • Path: cli-tool/components/agents/domain-experts/performance-auditor.md
    • Purpose: Specialist agent configured with Claude 3.5 Sonnet for diagnosing and resolving runtime latency, memory retention/closures leaks, frontend bundle bloat, and database query bottlenecks (N+1 queries, missing indexes, connection starvation).
    • Tools enabled: search/codebase, changes, edit/editFiles, fetch, findTestFiles, runCommands, runTests, usages.
    • Features: Structured profiling workflows, empirical measurement templates, Node.js heapdump patterns, DataLoader batching patterns, and comprehensive audit report formatting.
  2. pr-summary (Code Generation Slash Command):

    • Path: cli-tool/components/commands/code-generation/pr-summary.md
    • Purpose: Slash command /pr-summary to inspect git workspace diffs and synthesize comprehensive, production-ready GitHub/GitLab pull request descriptions, categorized changelogs (Conventional Commits), and file-by-file impact matrices.
    • Features: Supports arguments (main, HEAD~N, --detailed, --changelog, --json), extracts commit history, highlights breaking changes, and includes test verification checklists.
  3. Dashboard Content Payloads:

    • Generated corresponding static payloads under dashboard/public/component-content/ (agents/domain-experts/performance-auditor.json and commands/code-generation/pr-summary.json) for web UI rendering and on-demand delivery.

Verification

  • Validated YAML frontmatters for both components.
  • Generated and verified component-content JSON payloads via catalog build tooling.
  • Verified working tree cleanliness without unrelated catalog churn.

Summary by cubic

Adds a performance-auditor domain-expert agent and a /pr-summary slash command to the cli-tool/components/ catalog. The periodic merges from main introduce no behavior changes beyond the two new components.

  • New components live in cli-tool/components/, so docs/components.json and the dashboard/public/ content indexes were regenerated.
  • performance-auditor profiles latency, memory/closures, bundle bloat, and DB query bottlenecks, emitting structured before/after audit reports; heap deltas require --expose-gc for consistent Node.js measurements.
  • /pr-summary generates PR descriptions, Conventional Commits changelogs, and file-by-file impact matrices; it rejects unknown flags, never passes mode flags to Git, defaults to origin/main...HEAD, and supports main/HEAD~N with --detailed, --changelog, --json, and --breaking-only.
  • No new environment variables or secrets are required.