Commit Graph

20 Commits

Author SHA1 Message Date
Daniel Avila 6c5b5ff1f1 feat: Add SkillSpector security scanning for skill components (#623)
Integrate NVIDIA's SkillSpector static analyzer (Apache-2.0) to scan
AI agent skills under cli-tool/components/skills/ for security issues
(prompt injection, data exfiltration, supply chain, dangerous code, etc.).

- scripts/skillspector_scan.py: batch orchestrator that discovers skill
  dirs (by SKILL.md), runs `skillspector scan --no-llm --format json` on
  each, and aggregates results into a Markdown PR report + SARIF log.
  Tolerates per-skill scan failures and the CLI's non-zero exit on high
  scores without aborting the batch.
- skill-security-scan.yml (PR): scans only changed skills, posts an
  idempotent report comment, and blocks on HIGH/CRITICAL (score > 50).
- skill-security-scan-all.yml (weekly + manual): scans all skills,
  reports to run summary and SARIF, never blocks.
- CLAUDE.md: document the scanning workflow.

Co-authored-by: Claude <noreply@anthropic.com>
2026-06-05 23:12:26 -04:00
Dani 2cad57b147 feat: add brightdata-local-search skill to featured/brightdata page
- Added brightdata-local-search skill card to Skills Layer section
- Updated installCommand to include development/brightdata-local-search
- Incremented Components count from 7 to 8
- Added Featured Pages documentation to CLAUDE.md

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-18 00:02:07 -04:00
Dani 8432c377c6 fix: Resolve SSR fetch for components.json + update CLAUDE.md
- Use absolute URL (https://www.aitmpl.com) for server-side fetch of components.json
- Set site config in astro.config.mjs as fallback
- Update CLAUDE.md to reflect unified single Vercel project architecture

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 21:13:00 -05:00
daniel dd1b2d5eab docs: Extend security policy to prohibit all hardcoded IDs
Not just secrets — any project ID, org ID, or infrastructure
identifier must go in .env, never in tracked code.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 23:58:37 -05:00
daniel 7785d985eb docs: Require deployer agent for all deployments
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 23:52:19 -05:00
daniel 40f631f000 feat: Add deploy scripts and CI/CD for dual Vercel projects
- Add scripts/deploy.sh with site/dashboard/all targets
- Add npm scripts: deploy:site, deploy:dashboard, deploy:all
- Add GitHub Actions workflow with path-based triggers:
  docs/api/vercel.json changes → deploy www.aitmpl.com
  dashboard/ changes → deploy app.aitmpl.com
- Update CLAUDE.md deployment docs, remove obsolete prebuild notes

Resolves CLA-22

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 23:13:17 -05:00
daniel cf7e008c59 feat: Add monitoring points P1-P5 (installation outcomes, website events, API health)
- Create 3 Neon tables: installation_outcomes, website_events, api_health_logs
- Add API endpoints: track-installation-outcome, track-website-events, health-check
- Track CLI installation success/failure with timing and error classification
- Add website event tracker (search, cart, component views) with batched sendBeacon
- Add health-check cron every 15min with Discord alerts on failure
- Integrate tracking in all 6 installIndividual* functions with batchId support

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-10 22:08:34 -05:00
daniel a9d435a264 docs: Add npm publishing instructions with granular token workflow to CLAUDE.md
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 22:59:14 -05:00
Dani 62b5d8de60 feat: add Cloudflare Workers for docs-monitor and pulse weekly KPI report
- Add pulse worker: weekly report collecting metrics from GitHub, Discord,
  Supabase, and Vercel, sent via Telegram every Sunday 14:00 UTC
- Add docs-monitor worker: hourly documentation change monitor with
  Telegram notifications (previously local-only, now tracked in repo)
- Update .gitignore to track cloudflare-workers/ directory
- Document Cloudflare Workers architecture in CLAUDE.md

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 22:57:26 -05:00
Daniel Avila cc0f6a5d80 docs: remove test installation step from component creation workflow (#276)
Co-authored-by: Claude <noreply@anthropic.com>
2026-01-17 21:19:57 -05:00
Daniel Avila 3fc34b481a feat: Add component-reviewer subagent for PR validation (#275)
- Create component-reviewer subagent in .claude/agents/
- Validates all component types (agents, commands, MCPs, hooks, settings, skills)
- Checks format, required fields, naming conventions, and security
- Detects hardcoded secrets and absolute paths
- Provides prioritized feedback (Critical, Warnings, Suggestions)
- Update CLAUDE.md with mandatory component review workflow
- Add examples and usage instructions for component validation

The agent will be used in PRs to ensure component quality before merge.

Co-authored-by: Claude <noreply@anthropic.com>
2026-01-17 21:00:19 -05:00
Dani 7de42f1dd8 chore: Update CLAUDE.md, blog articles, and add simple-notifications-hook post
- Simplify CLAUDE.md documentation (remove verbose sections)
- Improve create-blog-article command with better template instructions
- Add new blog article: Simple Notifications Hook
- Update blog articles metadata and cleanup HTML
- Enhance blog loader with improved filtering

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-03 17:27:14 -05:00
Dani d8987f90e4 fix: Remove hardcoded API keys and use environment variables
- Move Google API keys to .env file (not tracked by git)
- Update generate_blog_images.py to use dotenv
- Update generate_blog_images_v2.py to use dotenv
- Add GOOGLE_API_KEY to .env.example
- Add critical security section to CLAUDE.md about never hardcoding secrets

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-29 10:32:33 -05:00
Dani 1a92c41eaa fix: Update script references after reorganization
Updated all references to point to new script locations:
- generate_components_json.py → scripts/generate_components_json.py
- generate_trending_data.py → scripts/generate_trending_data.py

Files updated:
- .github/workflows/update-json-data.yml
- CLAUDE.md
- docs/CLAUDE.md
- docs/api/README.md
- docs/guides/growth-kit-pr.md
- cli-tool/src/validation/README.md

This ensures CI/CD workflows and documentation are in sync with the new project structure.

🤖 Generated with Claude Code (https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-20 16:25:37 -05:00
Dani 598aac0e6b test: Add comprehensive API testing and deployment documentation
Critical Infrastructure Protection:
- Comprehensive test suite for all API endpoints
- Pre-deployment validation script
- Detailed API architecture documentation in CLAUDE.md

Test Suite (__tests__/endpoints.test.js):
- Critical endpoint availability checks
- Component download tracking validation
- Discord bot integration tests
- Claude Code changelog monitor tests
- Security & CORS validation
- Response time validation

Pre-Deployment Script (scripts/predeploy-check.sh):
- Git status validation
- Node.js & npm version checks
- Automatic dependency installation
- API test execution
- File structure validation
- Environment variable checklist
- Vercel configuration validation

Documentation Updates:
- API Architecture & Deployment section in CLAUDE.md
- Endpoint specifications and usage
- Testing procedures
- Deployment workflow
- Troubleshooting guides
- Emergency rollback procedures
- api/README.md with quick reference

This ensures the critical /api/track-download-supabase endpoint
(used by ALL component installations) never breaks during deployments.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-01 14:22:13 -04:00
Dani 41042d499f new CLAUDE.md and blog vercel routes 2025-09-02 09:15:15 -04:00
daniel 76810b3fe4 feat: Add AgentAnalyzer for tracking agent usage patterns and analytics
- Introduced AgentAnalyzer class to analyze agent invocation data, usage frequency, and workflow patterns.
- Implemented endpoint for agent usage analytics in ClaudeAnalytics.
- Enhanced session management to account for scheduled reset times instead of fixed durations.
- Updated SessionAnalyzer to reflect new session reset logic and improved warning messages.
- Added functionality to calculate agent efficiency and popular usage hours.
- Created a .nojekyll file for GitHub Pages deployment in Docusaurus configuration.
2025-07-29 08:54:47 -05:00
Dani 8e23f08d6d Add unit tests for StateCalculator, StateService, and WebSocketServer
- Implement comprehensive unit tests for StateCalculator to validate conversation status detection and state management.
- Create unit tests for StateService covering state management, subscriber notifications, and error handling.
- Develop unit tests for WebSocketServer to ensure proper handling of WebSocket connections, message broadcasting, and heartbeat mechanisms.
- Include edge case handling and validation for all components to enhance robustness and reliability.
2025-07-15 19:04:01 -04:00
Dani 97135ec48a Add Flask route generator and testing suite documentation
- Created a new markdown file for Flask route generation with examples and best practices.
- Added comprehensive testing suite documentation for Flask applications using pytest.
- Included project configuration guidelines for Flask applications.
- Introduced a new MCP configuration file for Rust SDKs and services.
2025-07-07 08:28:01 -04:00
Dani 043bae5218 Add comprehensive CLAUDE.md and README.md templates for various languages and frameworks
- Introduced CLAUDE.md with universal development guidelines, project structure, and best practices for JavaScript/TypeScript and Python.
- Created README.md files for common Claude Code templates, Go, JavaScript/TypeScript, and Python projects.
- Added specific command templates for JavaScript/TypeScript, including API endpoint, debug, lint, npm scripts, React component, refactor, test, and TypeScript migration commands.
- Implemented hooks for formatting and linting on save in JavaScript/TypeScript projects.
- Established settings.json for JavaScript/TypeScript projects with permissions and environment variables.
- Developed project structure guidelines for JavaScript/TypeScript and Python projects.
- Created example projects for React and Node.js APIs with corresponding CLAUDE.md files.
- Laid groundwork for future Rust and Go templates with placeholder README.md files.
- Set up package.json for test setup with React dependencies.
2025-07-03 23:07:56 -04:00