@claude-collective/cli 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +42 -0
- package/LICENSE +21 -0
- package/README.md +278 -0
- package/dist/cli/index.js +6201 -0
- package/dist/cli/index.js.map +1 -0
- package/package.json +109 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [0.1.0] - 2026-01-30
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **Interactive wizard** (`cc init`) - guided setup with stack/skill selection
|
|
13
|
+
- **Stack installation** - install curated skill bundles (nextjs-fullstack, api-only, etc.)
|
|
14
|
+
- **Individual skill installation** - pick specific skills for your project
|
|
15
|
+
- **Skill compilation** (`cc compile`) - compile skills and agents
|
|
16
|
+
- **Validation** (`cc validate`) - validate skill file structure and content
|
|
17
|
+
- **Configuration management** (`cc config`) - view and edit project settings
|
|
18
|
+
- **List command** (`cc list`) - browse available and installed skills/stacks
|
|
19
|
+
- **Eject command** (`cc eject`) - eject templates for customization
|
|
20
|
+
- **Plugin mode** - native Claude Code plugin installation
|
|
21
|
+
- **Local mode** - copy skills directly to `.claude/skills/`
|
|
22
|
+
|
|
23
|
+
### Stacks Included
|
|
24
|
+
|
|
25
|
+
- `nextjs-fullstack` - Next.js App Router + Hono + Drizzle + Better Auth
|
|
26
|
+
- `angular-stack` - Angular 19 + Signals + NgRx
|
|
27
|
+
- `vue-stack` - Vue 3 + Pinia + Tailwind
|
|
28
|
+
- `nuxt-stack` - Nuxt + Vue 3
|
|
29
|
+
- `remix-stack` - Remix + React
|
|
30
|
+
- `solidjs-stack` - SolidJS + Tailwind
|
|
31
|
+
- `react-native-stack` - React Native + Expo
|
|
32
|
+
|
|
33
|
+
### Skills Available
|
|
34
|
+
|
|
35
|
+
80+ skills across domains:
|
|
36
|
+
|
|
37
|
+
- Web (React, SCSS Modules, Zustand, React Query, MSW)
|
|
38
|
+
- API (Hono, Drizzle, Better Auth, Resend)
|
|
39
|
+
- Infrastructure (GitHub Actions, Turborepo, PostHog)
|
|
40
|
+
- Quality (Vitest, Security, Accessibility)
|
|
41
|
+
|
|
42
|
+
[0.1.0]: https://github.com/claude-collective/cli/releases/tag/v0.1.0
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Vincent
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
# Claude Collective CLI
|
|
2
|
+
|
|
3
|
+
> Make Claude Code an expert in your tech stack. Production-ready knowledge modules for React, Hono, Drizzle, and 80+ more.
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/@claude-collective/cli)
|
|
6
|
+
[](https://www.npmjs.com/package/@claude-collective/cli)
|
|
7
|
+
[](https://opensource.org/licenses/MIT)
|
|
8
|
+
|
|
9
|
+
**Stop teaching Claude your conventions. Start coding.**
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npx @claude-collective/cli init
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## What is this?
|
|
16
|
+
|
|
17
|
+
[Claude Code](https://docs.anthropic.com/en/docs/claude-code) is Anthropic's agentic coding CLI. Out of the box, Claude knows programming - but not _your_ patterns, _your_ libraries, _your_ conventions.
|
|
18
|
+
|
|
19
|
+
**Claude Collective fixes that.** We provide **skills** - focused knowledge modules that make Claude an expert in specific technologies:
|
|
20
|
+
|
|
21
|
+
| Term | What it is |
|
|
22
|
+
| ---------- | ---------------------------------------------------------------------------- |
|
|
23
|
+
| **Skills** | Expertise in one technology (React 19, Hono v4, Drizzle ORM, etc.) |
|
|
24
|
+
| **Stacks** | Curated bundles for common setups ("nextjs-fullstack" = React + Hono + auth) |
|
|
25
|
+
| **Agents** | Specialized roles (frontend-developer, backend-reviewer, etc.) |
|
|
26
|
+
|
|
27
|
+
## Installation
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
# Recommended: Use npx (no install required)
|
|
31
|
+
npx @claude-collective/cli init
|
|
32
|
+
|
|
33
|
+
# Or install globally
|
|
34
|
+
npm install -g @claude-collective/cli
|
|
35
|
+
yarn global add @claude-collective/cli
|
|
36
|
+
pnpm add -g @claude-collective/cli
|
|
37
|
+
bun add -g @claude-collective/cli
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Requires Node.js 18+ and [Claude Code](https://docs.anthropic.com/en/docs/claude-code) installed.
|
|
41
|
+
|
|
42
|
+
## Quick Start (60 seconds)
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
# 1. Run the wizard in your project
|
|
46
|
+
cd your-project
|
|
47
|
+
npx @claude-collective/cli init
|
|
48
|
+
|
|
49
|
+
# 2. Select a stack (or pick individual skills)
|
|
50
|
+
# ? What type of project? > Fullstack React
|
|
51
|
+
# ? Include agents? > Yes
|
|
52
|
+
|
|
53
|
+
# 3. Done! Skills installed to .claude/skills/
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
**Or skip the wizard:**
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
# Initialize with a specific stack directly
|
|
60
|
+
cc init --stack nextjs-fullstack
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## See It In Action
|
|
64
|
+
|
|
65
|
+
**Before skills:** Claude gives generic React advice.
|
|
66
|
+
|
|
67
|
+
**After installing `react` skill:** Claude knows:
|
|
68
|
+
|
|
69
|
+
- Your project uses React 19 with the new `use` hook
|
|
70
|
+
- Error boundaries should use `react-error-boundary`
|
|
71
|
+
- Components go in `kebab-case.tsx` files with named exports
|
|
72
|
+
- State management follows your Zustand patterns
|
|
73
|
+
|
|
74
|
+
**What skills teach Claude:**
|
|
75
|
+
|
|
76
|
+
| Skill | Claude Learns |
|
|
77
|
+
| --------- | ---------------------------------------------------------- |
|
|
78
|
+
| `react` | React 19 patterns, hooks, error boundaries, file structure |
|
|
79
|
+
| `hono` | Route handlers, middleware, OpenAPI integration, Zod |
|
|
80
|
+
| `drizzle` | Schema patterns, migrations, transactions, relations |
|
|
81
|
+
| `vitest` | Test patterns, mocking, coverage requirements |
|
|
82
|
+
|
|
83
|
+
## Commands
|
|
84
|
+
|
|
85
|
+
### Essential Commands
|
|
86
|
+
|
|
87
|
+
| Command | Description |
|
|
88
|
+
| ------------------------ | ------------------------------------- |
|
|
89
|
+
| `cc init` | Interactive setup wizard - start here |
|
|
90
|
+
| `cc init --stack <name>` | Skip wizard, use a predefined stack |
|
|
91
|
+
| `cc list` | Browse available skills and stacks |
|
|
92
|
+
| `cc list --installed` | See what's currently installed |
|
|
93
|
+
|
|
94
|
+
### Advanced Commands
|
|
95
|
+
|
|
96
|
+
| Command | Description |
|
|
97
|
+
| ------------- | ------------------------------------------- |
|
|
98
|
+
| `cc compile` | Compile agent templates (for custom agents) |
|
|
99
|
+
| `cc validate` | Check skill files for errors |
|
|
100
|
+
| `cc config` | View or edit `.claude/config.yaml` |
|
|
101
|
+
| `cc eject` | Export templates for customization |
|
|
102
|
+
|
|
103
|
+
Run `cc --help` for full usage details.
|
|
104
|
+
|
|
105
|
+
## Available Stacks
|
|
106
|
+
|
|
107
|
+
| Stack | Includes | Best For |
|
|
108
|
+
| -------------------- | ------------------------------------------------------- | -------------------------- |
|
|
109
|
+
| `nextjs-fullstack` | Next.js App Router, Hono, Drizzle, Better Auth, Zustand | Full-stack TypeScript apps |
|
|
110
|
+
| `angular-stack` | Angular 19, Signals, NgRx SignalStore, Hono, Drizzle | Enterprise Angular apps |
|
|
111
|
+
| `vue-stack` | Vue 3 Composition API, Pinia, Tailwind, Hono, Drizzle | Vue.js applications |
|
|
112
|
+
| `nuxt-stack` | Nuxt 3, Vue 3, Pinia, Tailwind, Hono, Drizzle | Full-stack Vue apps |
|
|
113
|
+
| `remix-stack` | Remix, React, Tailwind, Zustand, Hono, Drizzle | Form-heavy applications |
|
|
114
|
+
| `solidjs-stack` | SolidJS, Tailwind, Vitest, Hono, Drizzle | High-performance apps |
|
|
115
|
+
| `react-native-stack` | React Native, Expo, Zustand, React Query | Cross-platform mobile |
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
# See all stacks
|
|
119
|
+
cc list --stacks
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
## Available Skills
|
|
123
|
+
|
|
124
|
+
80+ skills across domains:
|
|
125
|
+
|
|
126
|
+
- **Web**: React, SCSS Modules, Zustand, React Query, MSW
|
|
127
|
+
- **API**: Hono, Drizzle, Better Auth, Resend, PostHog
|
|
128
|
+
- **Infra**: GitHub Actions, Turborepo, monitoring, CI/CD
|
|
129
|
+
- **Quality**: Vitest, Security, Accessibility, Testing patterns
|
|
130
|
+
|
|
131
|
+
```bash
|
|
132
|
+
# Browse all available skills
|
|
133
|
+
cc list --skills
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
## How It Works
|
|
137
|
+
|
|
138
|
+
1. **Install skills** via `cc init` or manually to `.claude/skills/`
|
|
139
|
+
2. **Skills are loaded** automatically by Claude Code
|
|
140
|
+
3. **Agents use skills** to provide expert-level assistance
|
|
141
|
+
|
|
142
|
+
```
|
|
143
|
+
.claude/
|
|
144
|
+
├── skills/ # Installed skills
|
|
145
|
+
│ ├── react/
|
|
146
|
+
│ ├── hono/
|
|
147
|
+
│ └── drizzle/
|
|
148
|
+
└── agents/ # Compiled agents (optional)
|
|
149
|
+
├── frontend-developer.md
|
|
150
|
+
└── backend-developer.md
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
## Configuration
|
|
154
|
+
|
|
155
|
+
Configuration is stored in `.claude/config.yaml`:
|
|
156
|
+
|
|
157
|
+
```yaml
|
|
158
|
+
stack: nextjs-fullstack
|
|
159
|
+
skills:
|
|
160
|
+
- react
|
|
161
|
+
- hono
|
|
162
|
+
- drizzle
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
Edit manually or use `cc config`.
|
|
166
|
+
|
|
167
|
+
## Creating Custom Skills
|
|
168
|
+
|
|
169
|
+
Skills are markdown files with YAML frontmatter:
|
|
170
|
+
|
|
171
|
+
```
|
|
172
|
+
.claude/skills/my-skill/
|
|
173
|
+
├── SKILL.md # Main skill file (required)
|
|
174
|
+
├── metadata.yaml # Skill metadata (optional)
|
|
175
|
+
└── examples/ # Code examples (optional)
|
|
176
|
+
└── core.md
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
**SKILL.md template:**
|
|
180
|
+
|
|
181
|
+
```markdown
|
|
182
|
+
---
|
|
183
|
+
name: my-custom-skill
|
|
184
|
+
description: Brief description for Claude
|
|
185
|
+
globs: ["src/**/*.ts"]
|
|
186
|
+
---
|
|
187
|
+
|
|
188
|
+
# My Custom Skill
|
|
189
|
+
|
|
190
|
+
## When to Use
|
|
191
|
+
|
|
192
|
+
[Describe when Claude should apply this knowledge]
|
|
193
|
+
|
|
194
|
+
## Patterns
|
|
195
|
+
|
|
196
|
+
[Explain patterns with code examples]
|
|
197
|
+
|
|
198
|
+
## Anti-Patterns
|
|
199
|
+
|
|
200
|
+
[What NOT to do]
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
**Tips:**
|
|
204
|
+
|
|
205
|
+
- Be specific: "Use `date-fns`" not "use a date library"
|
|
206
|
+
- Include anti-patterns: Tell Claude what to avoid
|
|
207
|
+
- Add real examples: Code from your actual codebase works best
|
|
208
|
+
|
|
209
|
+
## Troubleshooting
|
|
210
|
+
|
|
211
|
+
<details>
|
|
212
|
+
<summary><strong>Skills not loading in Claude Code?</strong></summary>
|
|
213
|
+
|
|
214
|
+
1. Ensure skills are in `.claude/skills/` (not `.claude-skills/`)
|
|
215
|
+
2. Each skill needs a `SKILL.md` file
|
|
216
|
+
3. Restart Claude Code after adding skills
|
|
217
|
+
4. Run `cc validate` to check for errors
|
|
218
|
+
|
|
219
|
+
</details>
|
|
220
|
+
|
|
221
|
+
<details>
|
|
222
|
+
<summary><strong>Permission denied on global install?</strong></summary>
|
|
223
|
+
|
|
224
|
+
Use a Node version manager (nvm, fnm) or install to user directory:
|
|
225
|
+
|
|
226
|
+
```bash
|
|
227
|
+
npm install -g @claude-collective/cli --prefix ~/.npm-global
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
</details>
|
|
231
|
+
|
|
232
|
+
<details>
|
|
233
|
+
<summary><strong>"cc" command not found after install?</strong></summary>
|
|
234
|
+
|
|
235
|
+
Your global npm bin directory may not be in PATH. Try:
|
|
236
|
+
|
|
237
|
+
```bash
|
|
238
|
+
# Find where npm installs global bins
|
|
239
|
+
npm config get prefix
|
|
240
|
+
|
|
241
|
+
# Add to PATH (add to ~/.bashrc or ~/.zshrc)
|
|
242
|
+
export PATH="$(npm config get prefix)/bin:$PATH"
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
Or use `npx @claude-collective/cli` instead.
|
|
246
|
+
|
|
247
|
+
</details>
|
|
248
|
+
|
|
249
|
+
## FAQ
|
|
250
|
+
|
|
251
|
+
**Q: Does this work with Claude Code Pro/Team?**
|
|
252
|
+
A: Yes, skills work with any Claude Code installation.
|
|
253
|
+
|
|
254
|
+
**Q: Can I use custom skills alongside collective skills?**
|
|
255
|
+
A: Yes! Add custom skills to `.claude/skills/my-skill/SKILL.md`.
|
|
256
|
+
|
|
257
|
+
**Q: How do I update skills?**
|
|
258
|
+
A: Re-run `cc init` or manually update files in `.claude/skills/`.
|
|
259
|
+
|
|
260
|
+
## Requirements
|
|
261
|
+
|
|
262
|
+
- **Node.js** 18.0.0 or higher
|
|
263
|
+
- **Claude Code** installed and configured
|
|
264
|
+
|
|
265
|
+
## Links
|
|
266
|
+
|
|
267
|
+
- [Claude Code Documentation](https://docs.anthropic.com/en/docs/claude-code)
|
|
268
|
+
- [Skills Repository](https://github.com/claude-collective/skills)
|
|
269
|
+
- [Issue Tracker](https://github.com/claude-collective/cli/issues)
|
|
270
|
+
- [Changelog](CHANGELOG.md)
|
|
271
|
+
|
|
272
|
+
## Contributing
|
|
273
|
+
|
|
274
|
+
We welcome contributions! Please open an issue or PR on GitHub.
|
|
275
|
+
|
|
276
|
+
## License
|
|
277
|
+
|
|
278
|
+
MIT - see [LICENSE](LICENSE) for details.
|