@claude-collective/cli 0.1.0 → 0.1.3
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 +31 -0
- package/README.md +60 -225
- package/dist/cli/index.js +191 -139
- package/dist/cli/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,37 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.1.3] - 2026-01-30
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- `--output` option for eject command to specify custom output directory
|
|
13
|
+
- Remote schema fetching for skill validation from GitHub
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
|
|
17
|
+
- Plugin manifest no longer includes agents field (Claude Code discovers automatically)
|
|
18
|
+
- Source loader now supports source-provided skills matrix
|
|
19
|
+
|
|
20
|
+
[0.1.3]: https://github.com/claude-collective/cli/releases/tag/v0.1.3
|
|
21
|
+
|
|
22
|
+
## [0.1.2] - 2026-01-30
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
|
|
26
|
+
- Removed local dev files from repo (.claude, CLAUDE.md)
|
|
27
|
+
|
|
28
|
+
[0.1.2]: https://github.com/claude-collective/cli/releases/tag/v0.1.2
|
|
29
|
+
|
|
30
|
+
## [0.1.1] - 2026-01-30
|
|
31
|
+
|
|
32
|
+
### Fixed
|
|
33
|
+
|
|
34
|
+
- `GITHUB_REPO` const now points to correct repo
|
|
35
|
+
- README agent names match actual stack config
|
|
36
|
+
|
|
37
|
+
[0.1.1]: https://github.com/claude-collective/cli/releases/tag/v0.1.1
|
|
38
|
+
|
|
8
39
|
## [0.1.0] - 2026-01-30
|
|
9
40
|
|
|
10
41
|
### Added
|
package/README.md
CHANGED
|
@@ -1,278 +1,113 @@
|
|
|
1
1
|
# Claude Collective CLI
|
|
2
2
|
|
|
3
|
-
|
|
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.**
|
|
3
|
+
the CLI for working with Claude Collective skills. it's the entry point for everything: installing skills, creating stacks, and creating custom skills and subagents
|
|
10
4
|
|
|
11
5
|
```bash
|
|
12
6
|
npx @claude-collective/cli init
|
|
13
7
|
```
|
|
14
8
|
|
|
15
|
-
##
|
|
9
|
+
## what this does
|
|
16
10
|
|
|
17
|
-
|
|
11
|
+
Claude Code is okay out of the box, but it doesn't know your stack. the skills repository has 80+ in-depth modules covering react, hono, drizzle, posthog, and a lot more. each skill is atomic, comprehensive, and composable into agents and stacks
|
|
18
12
|
|
|
19
|
-
|
|
13
|
+
the CLI is how you work with all of it:
|
|
20
14
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
| **Agents** | Specialized roles (frontend-developer, backend-reviewer, etc.) |
|
|
15
|
+
- **install skills** as plugins or locally into your project
|
|
16
|
+
- **create stacks** by bundling skills with a modular agent approach
|
|
17
|
+
- **scaffold new skills** when you need something custom
|
|
18
|
+
- **set up your own marketplace** if you're building for a team or org
|
|
26
19
|
|
|
27
|
-
##
|
|
20
|
+
## getting started
|
|
28
21
|
|
|
29
22
|
```bash
|
|
30
|
-
#
|
|
23
|
+
# run the wizard - picks skills, sets up agents
|
|
31
24
|
npx @claude-collective/cli init
|
|
32
25
|
|
|
33
|
-
#
|
|
26
|
+
# or install globally
|
|
34
27
|
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
28
|
```
|
|
39
29
|
|
|
40
|
-
|
|
30
|
+
requires node 18+ and [Claude Code](https://docs.anthropic.com/en/docs/claude-code).
|
|
41
31
|
|
|
42
|
-
##
|
|
32
|
+
## commands
|
|
43
33
|
|
|
44
34
|
```bash
|
|
45
|
-
#
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
#
|
|
50
|
-
#
|
|
51
|
-
# ? Include agents? > Yes
|
|
52
|
-
|
|
53
|
-
# 3. Done! Skills installed to .claude/skills/
|
|
35
|
+
cc init # interactive setup - pick skills, configure agents
|
|
36
|
+
cc edit # modify your skill selection
|
|
37
|
+
cc compile # recompile agents after changes
|
|
38
|
+
cc list # show what's installed
|
|
39
|
+
cc config # manage settings
|
|
40
|
+
cc validate # check your setup is correct
|
|
54
41
|
```
|
|
55
42
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
```bash
|
|
59
|
-
# Initialize with a specific stack directly
|
|
60
|
-
cc init --stack nextjs-fullstack
|
|
61
|
-
```
|
|
43
|
+
## how skills work
|
|
62
44
|
|
|
63
|
-
|
|
45
|
+
a skill is focused knowledge for one technology. not surface-level docs but actual patterns, edge cases, the things you'd normally have to explain repeatedly
|
|
64
46
|
|
|
65
|
-
|
|
47
|
+
skills live in the [claude-collective/skills](https://github.com/claude-collective/skills) repository, organized by category:
|
|
66
48
|
|
|
67
|
-
|
|
49
|
+
| category | what's there |
|
|
50
|
+
| -------- | ----------------------------------------------------------------------------------- |
|
|
51
|
+
| web | react 19, next.js, remix, vue, angular, solidjs, scss-modules, zustand, react-query |
|
|
52
|
+
| api | hono, drizzle, better-auth, posthog, resend, axiom+pino+sentry |
|
|
53
|
+
| mobile | react-native, expo |
|
|
54
|
+
| cli | commander.js, clack prompts |
|
|
55
|
+
| infra | turborepo, github-actions, env config |
|
|
56
|
+
| security | auth patterns, xss prevention, secrets |
|
|
57
|
+
| meta | code reviewing, research methodology |
|
|
68
58
|
|
|
69
|
-
|
|
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
|
|
59
|
+
## stacks
|
|
73
60
|
|
|
74
|
-
|
|
61
|
+
stacks bundle skills together with pre-configured agents. instead of picking 20 skills individually, grab a stack that matches your setup:
|
|
75
62
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
63
|
+
- **nextjs-fullstack** - next.js app router + hono + drizzle + posthog
|
|
64
|
+
- **react-native-stack** - react native with expo
|
|
65
|
+
- **vue-stack** - vue 3 + nuxt
|
|
66
|
+
- **angular-stack** - angular 17+ standalone
|
|
67
|
+
- **remix-stack** - remix with loaders/actions
|
|
68
|
+
- **solidjs-stack** - solidjs fine-grained reactivity
|
|
69
|
+
- **nuxt-stack** - nuxt 3 with nitro
|
|
82
70
|
|
|
83
|
-
|
|
71
|
+
each stack includes agents like `web-developer`, `api-reviewer`, `web-tester` - roles that use the right skills for the job.
|
|
84
72
|
|
|
85
|
-
|
|
73
|
+
## installation options
|
|
86
74
|
|
|
87
|
-
|
|
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 |
|
|
75
|
+
**as a plugin** (recommended for personal use):
|
|
116
76
|
|
|
117
77
|
```bash
|
|
118
|
-
|
|
119
|
-
|
|
78
|
+
cc init
|
|
79
|
+
# installs to ~/.claude/plugins/claude-collective/
|
|
120
80
|
```
|
|
121
81
|
|
|
122
|
-
|
|
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
|
|
82
|
+
**locally in your project** (for team sharing):
|
|
130
83
|
|
|
131
84
|
```bash
|
|
132
|
-
|
|
133
|
-
|
|
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
|
-
|
|
85
|
+
cc init --local
|
|
86
|
+
# installs to ./.claude/ in your repo
|
|
171
87
|
```
|
|
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
88
|
|
|
214
|
-
|
|
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:
|
|
89
|
+
**your own marketplace** (for orgs):
|
|
225
90
|
|
|
226
91
|
```bash
|
|
227
|
-
|
|
92
|
+
cc init --marketplace
|
|
93
|
+
# scaffolds a marketplace you can customize and host
|
|
228
94
|
```
|
|
229
95
|
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
<details>
|
|
233
|
-
<summary><strong>"cc" command not found after install?</strong></summary>
|
|
96
|
+
## creating custom skills
|
|
234
97
|
|
|
235
|
-
|
|
98
|
+
if the existing skills don't cover what you need:
|
|
236
99
|
|
|
237
100
|
```bash
|
|
238
|
-
|
|
239
|
-
npm config get prefix
|
|
240
|
-
|
|
241
|
-
# Add to PATH (add to ~/.bashrc or ~/.zshrc)
|
|
242
|
-
export PATH="$(npm config get prefix)/bin:$PATH"
|
|
101
|
+
cc new skill my-custom-skill
|
|
243
102
|
```
|
|
244
103
|
|
|
245
|
-
|
|
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)
|
|
104
|
+
this scaffolds the structure. a skill is just markdown with examples - no special tooling required.
|
|
271
105
|
|
|
272
|
-
##
|
|
106
|
+
## links
|
|
273
107
|
|
|
274
|
-
|
|
108
|
+
- [skills repository](https://github.com/claude-collective/skills) - all the skills and stacks
|
|
109
|
+
- [Claude Code docs](https://docs.anthropic.com/en/docs/claude-code) - the tool this extends
|
|
275
110
|
|
|
276
|
-
##
|
|
111
|
+
## license
|
|
277
112
|
|
|
278
|
-
MIT
|
|
113
|
+
MIT
|