How davila7/claude-code-templates works
Claude Code Templates is a component catalog and CLI installer for Claude Code configuration, alongside a web catalog and local utilities. The main workflow is users selecting or specifying catalog components, then the CLI fetching and installing files while merging existing configuration; anonymous usage tracking is best-effort. The repository also contains validation, analytics and chat tools, sandbox references, and scheduled web services. The graph reflects README-described capabilities and the sampled CLI entry point; several implementation links are based on the source index rather than inspected source excerpts.
Main entry points: index.js CLI entry point · analytics.js Session analytics · file-operations.js Component installer · components Component catalog
Components 22
Catalog and discovery
- Component catalog
cli-tool/components - Catalog browser
cli-tool/src/catalog-browser.js - Catalog lookup
cli-tool/src/catalog-lookup.js
CLI installation
- CLI entry point
cli-tool/src/index.js - Component installer
cli-tool/src/file-operations.js - Config merging
cli-rust/src/merge.rs - Rust CLI core
cli-rust/src/main.rs - Usage tracking
cli-tool/src/tracking-service.js - Component validation
cli-tool/src/validation/ValidationOrchestrator.js - Sandbox references
cli-tool/components/sandbox
Local tools
- Session analytics
cli-tool/src/analytics.js - Session analysis
cli-tool/src/analytics/core/SessionAnalyzer.js - Live notifications
cli-tool/src/analytics/notifications/NotificationManager.js - Chat browser
cli-tool/src/chats-mobile.js - Health check
cli-tool/src/health-check.js
Web services
- Catalog website
dashboard - Tracking endpoints
dashboard/src/lib/api/download-client-signals.ts - Scheduled checks
cloudflare-workers/crons/index.js - Weekly KPI report
cloudflare-workers/pulse/index.js - Community newsletter
cloudflare-workers/newsletter/index.js - Docs monitor
cloudflare-workers/docs-monitor/index.js
Other components
- CLI user
Connections 21
- CLI user → CLI entry point: selects components
README.md - CLI user → Catalog browser: browses catalog
README.md - Catalog browser → Component catalog: searches
- CLI entry point → Catalog lookup: looks up components
cli-tool/src/index.js - CLI entry point → Component installer: installs files
cli-tool/src/index.js - Component installer → Config merging: merges config
README.md - Rust CLI core → Component installer: delegates non-install work
cli-rust/src/main.rs - CLI entry point → Usage tracking: reports usage
cli-tool/src/index.js - Usage tracking → Tracking endpoints: sends tracking requests
cli-tool/src/tracking-service.js - Component validation → Component catalog: validates components
- CLI user → Session analytics: runs analytics
README.md - Session analytics → Session analysis: analyzes sessions
cli-tool/src/analytics.js - Session analytics → Live notifications: manages notifications
cli-tool/src/analytics.js - CLI user → Chat browser: opens chat browser
README.md - CLI user → Health check: runs diagnostics
README.md - CLI user → Sandbox references: uses sandbox references
README.md - CLI user → Catalog website: browses catalog
README.md - Scheduled checks → Health check: triggers health check
cloudflare-workers/crons/index.js - Weekly KPI report → Tracking endpoints: collects usage metrics
- Community newsletter → Component catalog: selects trending components
- Docs monitor → Catalog website: monitors documentation