* improve: rename risk-manager to trading-risk-manager, add model field
- Resolve name collision with finance/risk-manager.md by renaming this
trading/portfolio-focused agent to trading-risk-manager (frontmatter
name + filename), sharpening the description to distinguish it from
the enterprise ERM-focused finance/risk-manager
- Add required model: sonnet field (was missing, failed component-reviewer
checklist)
- Add "When Invoked" context-gathering step and Human-in-the-Loop Pause
Criteria (account size, risk tolerance, leverage/derivatives, full-Kelly
requests)
- Add financial-advice disclaimer as a required Output element
- Add <example> blocks to description for reliable auto-invocation
- Recommend fractional (half/quarter) Kelly over full Kelly, and add
tail-risk hedging / leverage-liquidation risk / Sharpe-Sortino-Calmar
focus areas
- Add "Integration with Other Agents" section
Automated review cycle | Co-Authored-By: Claude Code <noreply@anthropic.com>
* chore: regenerate component catalog for trading-risk-manager rename
Propagates the risk-manager -> trading-risk-manager rename (and the
model/content updates) into the generated catalog artifacts so
browse/search/install no longer reference the deleted
business-marketing/risk-manager.md path. Also removes the now-orphaned
component-content JSON for the deleted path.
Addresses review feedback on PR #765.
---------
Co-authored-by: Claude <noreply@anthropic.com>
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>
- Remove redundant serverless function files from /docs/api
- Update README to clarify two-directory architecture
- /api/ for serverless functions (Vercel requirement)
- /docs/api/ for static JSON files only
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
This reverts commit b082254. Vercel requires serverless functions in /api/
regardless of outputDirectory. Both directories are needed:
- /api/ for serverless functions (Vercel auto-detects here)
- /docs/api/ can be removed as it's redundant
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Eliminated duplicate /api directory (not used by Vercel)
- Updated /docs/api/README.md to reflect single source of truth
- /docs/api/track-download-supabase.js already includes 'skill' type support
- Simplified maintenance workflow (no more file syncing needed)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Added 'skill' to validTypes array in track-download-supabase.js
- Ensures download analytics properly track skill installations
- Completes skills integration for web interface and backend
The download tracking was failing because Vercel serves from /docs/ as
the outputDirectory. Serverless functions must be inside this directory
to be detected and deployed correctly.
Changes:
- Copy track-download-supabase.js to docs/api/
- Copy package.json with dependencies to docs/api/
- Add comprehensive README.md explaining API structure
- Create sync-api.sh script for easy maintenance
- Keep /api/ as source of truth, /docs/api/ for deployment
This fixes the 404 error on:
https://www.aitmpl.com/api/track-download-supabase
Technical details:
- vercel.json has "outputDirectory": "docs"
- Vercel only detects functions inside the output directory
- Both static files (agents.json) and serverless functions now coexist
- Environment variables (SUPABASE_URL, SUPABASE_SERVICE_ROLE_KEY) required
Testing:
After Vercel deployment, test with:
curl -X POST https://www.aitmpl.com/api/track-download-supabase \
-H "Content-Type: application/json" \
-d '{"type":"agent","name":"test","path":"test","category":"test"}'
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Remove obsolete tracking files (docs/track.html, docs/api/track.html)
- Simplify tracking-service.js by removing telemetry fallback system
- Update documentation to reflect Supabase-only architecture
- Remove references to GitHub Issues and unused workflow components
- Clean up legacy GitHub repo references in tracking service
- Update API examples to use correct endpoint and payload format
The system now uses only Supabase database for tracking, eliminating
the complex fallback system that was previously in place.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Add track.html endpoint for visible tracking
- Add api/track.html for silent tracking with 1x1 pixel
- Create GitHub Action to process tracking logs
- Use GitHub Pages infrastructure for anonymous tracking
- No external dependencies or authentication required