mirror of
https://github.com/davila7/claude-code-templates.git
synced 2026-09-19 01:30:23 +08:00
9e711c9320
Path-scoped rules that lazy-load context only when working on the relevant part of the codebase, complementing the global CLAUDE.md.
1.1 KiB
1.1 KiB
paths
| paths | ||
|---|---|---|
|
CLI Tool — Component System
This is the npm package claude-code-templates. A Node.js CLI for installing Claude Code components.
Architecture
- Entry point:
src/index.js - Components live in
cli-tool/components/{type}/{category}/{name}.md - Types: agents, commands, mcps, hooks, settings, skills, templates
- Catalog generated by
python scripts/generate_components_json.py
Component Files
- Format: Markdown with YAML frontmatter
- Names: kebab-case only (e.g.,
react-performance-expert.md) - No hardcoded secrets, API keys, or absolute paths
- Include clear description, usage examples, and tags
- Always validate with the
component-revieweragent before committing
After Adding/Modifying Components
- Run
python scripts/generate_components_json.pyto regenerate catalog - Copy
docs/components.jsontodashboard/public/components.json - Deploy dashboard
Testing
npm test # Run all tests
npm run test:watch
Publishing
Always check npm view claude-code-templates version before publishing to avoid version conflicts.