snap-squad 0.1.0 → 0.4.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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 paulyuk
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.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 paulyuk
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 CHANGED
@@ -1,129 +1,133 @@
1
- # Snap Squad
2
-
3
- **Get started with [Squad](https://github.com/bradygaster/squad) in seconds.**
4
-
5
- > Skip the interview. Start building.
6
-
7
- ## What Is Squad?
8
-
9
- [Squad](https://github.com/bradygaster/squad) gives you AI agent teams for any project — a multi-agent runtime built on GitHub Copilot. You define your team, route work to specialists, and ship faster.
10
-
11
- The catch? Setting up a new squad takes time. You interview agents, define roles, configure routing. For a big project, that's worth it. For a quick POC or a workflow you've done before? It's friction.
12
-
13
- ## What Snap Squad Does
14
-
15
- Snap Squad gives you **ready-to-hire squads trained by builders at CoreAI**. These aren't blank templates — they're squad configurations shaped by real project experience, with tested routing rules, proven agent roles, and practical defaults.
16
-
17
- ```bash
18
- npx snap-squad init --type dash
19
- # → .squad/ created with a speed-focused team
20
- # → Hook chain (AGENTS.md, CLAUDE.md, copilot-instructions) wired up
21
- # Ready for squad up
22
- ```
23
-
24
- One command, full squad, zero interview. Built by people who actually ship with Squad.
25
-
26
- ## Presets
27
-
28
- | Preset | Vibe | Best For |
29
- |--------|------|----------|
30
- | **neighbors** | Generalist | General-purpose projects, reliable building |
31
- | **dash** | Speed | Rapid POCs, hackathons, zero fluff |
32
- | **sages** | Mentor | Learning, best practices, architecture review |
33
- | **artisans** | Precision | Niche specialization, DB tuning, security hardening |
34
-
35
- ## Quick Start
36
-
37
- Starting from an empty folder — no installs needed:
38
-
39
- ```bash
40
- mkdir my-project && cd my-project
41
- npx snap-squad init I need a fast team for a hackathon
42
- ```
43
-
44
- That's it. One command does everything:
45
- 1. Downloads snap-squad temporarily (no global install)
46
- 2. Picks the right squad preset from your description (`dash` for speed)
47
- 3. Creates the full `.squad/` directory with agents, routing, and decisions
48
- 4. Writes the hook chain (`AGENTS.md`, `CLAUDE.md`, `.github/copilot-instructions.md`)
49
- 5. Runs `squad up` to start your team
50
-
51
- If Squad isn't installed yet, snap-squad tells you exactly what to do:
52
-
53
- ```
54
- Note: Squad CLI not found. Install it to run your squad:
55
- npm install -g @bradygaster/squad-cli
56
- squad up
57
- ```
58
-
59
- ### After Bootstrap: Plain English Works
60
-
61
- Once snap-squad has run, your AI assistant knows your squad. In Copilot CLI or any AI tool:
62
-
63
- ```
64
- > switch my squad to the sages preset
65
- > add a security specialist to my team
66
- > show me my squad routing rules
67
- ```
68
-
69
- The generated copilot-instructions teach the assistant how to manage your squad.
70
-
71
- ### More Examples
72
-
73
- ```bash
74
- npx snap-squad init help me learn best practices # → sages
75
- npx snap-squad init database security hardening # → artisans
76
- npx snap-squad init # → neighbors (default)
77
- npx snap-squad init --type dash # pick directly
78
- npx snap-squad list # see all presets
79
- ```
80
-
81
- ## What Gets Created
82
-
83
- ```
84
- your-project/
85
- ├── .squad/
86
- │ ├── team.md # Who's on the team
87
- │ ├── routing.md # How work gets routed
88
- │ ├── decisions.md # Decision log
89
- │ ├── mcp-config.md # MCP tool config
90
- │ └── agents/
91
- │ ├── blueprint/charter.md
92
- │ ├── wrench/charter.md
93
- │ └── ...
94
- ├── AGENTS.md # AI agent instructions (any tool)
95
- ├── CLAUDE.md # Claude/Copilot CLI session memory
96
- └── .github/
97
- └── copilot-instructions.md # GitHub Copilot instructions
98
- ```
99
-
100
- The hook chain (`AGENTS.md` + `CLAUDE.md` + `copilot-instructions.md`) makes every AI session squad-aware — regardless of which tool opens your workspace.
101
-
102
- ## List Presets
103
-
104
- ```bash
105
- npx snap-squad list
106
- ```
107
-
108
- ## Why Not Just Use Squad Directly?
109
-
110
- You should! Squad's built-in setup is great for tailored teams. Snap Squad is for when you want to:
111
-
112
- - **Start fast** POC in minutes, not an hour
113
- - **Learn from others** — Presets are trained by builders at CoreAI who ship with Squad daily
114
- - **Reuse patterns** Same team shape across multiple projects
115
- - **Onboard people** — Give someone a working squad without the interview
116
-
117
- The goal is to contribute these presets upstream to Squad if the maintainer agrees.
118
-
119
- ## Status
120
-
121
- 🚧 **Alpha** Built by its own squad (dogfooding FTW).
122
-
123
- ## How This Was Built
124
-
125
- This project was built with AI assistance, steered by a human builder. The full story — every steering moment, key decision, and evolution arc — is in the [build journal](JOURNAL.md).
126
-
127
- ## License
128
-
129
- MIT
1
+ # Snap Squad
2
+
3
+ > Skip the interview. Start building.
4
+
5
+ **Get a working [Squad](https://github.com/bradygaster/squad) in one command.** No setup. No interviews. Just a team that's ready to ship.
6
+
7
+ ## Quick Start
8
+
9
+ ```bash
10
+ mkdir my-project && cd my-project
11
+ npx snap-squad init
12
+ ```
13
+
14
+ That's it. You now have the **Neighbors** squad — a reliable generalist team with routing rules, agent charters, and decision logging. Open Copilot and start building:
15
+
16
+ ```bash
17
+ copilot
18
+ # Or open VS Code — your squad is already wired in
19
+ ```
20
+
21
+ ### Need speed instead?
22
+
23
+ ```bash
24
+ npx snap-squad init I need a fast team for a hackathon
25
+ ```
26
+
27
+ Snap Squad reads your description and picks **Dash** — a speed-focused squad built for rapid POCs. No fluff, no ceremony, just velocity.
28
+
29
+ ### Describe what you need. Get the right team.
30
+
31
+ ```bash
32
+ npx snap-squad init help me learn best practices # Sages (mentor)
33
+ npx snap-squad init database security hardening # Specialists (precision)
34
+ npx snap-squad init something is on fire debug help # → Specialists (Chuck is already on his way)
35
+ npx snap-squad init # → Neighbors (default)
36
+ npx snap-squad init --type dash # → pick directly
37
+ ```
38
+
39
+ ---
40
+
41
+ ## What Is Squad?
42
+
43
+ [Squad](https://github.com/bradygaster/squad) gives you AI agent teams for any project — a multi-agent runtime built on GitHub Copilot. You define your team, route work to specialists, and ship faster.
44
+
45
+ The catch? Setting up a new squad takes time. Interviews, charters, routing config. For a big project, that's worth it. For a quick POC? It's friction.
46
+
47
+ **Snap Squad removes the friction.** One command, full squad, zero interview.
48
+
49
+ ## Presets
50
+
51
+ | Preset | Vibe | Agents | Best For |
52
+ |--------|------|--------|----------|
53
+ | [**neighbors**](docs/presets/neighbors.md) | Generalist | Blueprint *(architect)*, Wrench *(dev)*, Lens *(QA)*, Quill *(docs)*, Mosaic *(prompts)*, Relay *(GitOps)*, Val *(light evals)*, Scout *(researcher)*, Ledger *(historian)* | General-purpose projects, reliable building |
54
+ | [**dash**](docs/presets/dash.md) | Speed | Turbo *(architect)*, Bolt *(full-stack)*, Flash *(test + docs)* | Rapid POCs, hackathons, zero fluff |
55
+ | [**sages**](docs/presets/sages.md) | Mentor | Oracle *(architect)*, Scriptor *(mentor dev)*, Proof *(test mentor)*, Chronicle *(docs)*, Pattern *(prompts)*, Measure *(evals)*, Scout *(researcher)*, Ledger *(historian)* | Learning, best practices, architecture review |
56
+ | [**specialists**](docs/presets/specialists.md) | Precision | Chuck 🥋 *(debugger)*, Forge *(architect)*, Anvil *(data)*, Chisel *(security)*, Prism *(UI/UX)*, Loom *(infra)*, Caliber *(deep evals)*, Sensei *(skill audit)*, Waza *(skill bench)*, Blitz *(mass ops)*, Recon *(deep research)*, Ledger *(historian)* | DB tuning, security hardening, mass ops, troubleshooting |
57
+
58
+ > **Neighbors** does light evals (Val spots-checks baselines). Need a full eval pipeline? **Specialists** brings Caliber for deep eval architecture plus Sensei and Waza for skill benchmarking.
59
+
60
+ Click any preset name above to see the full roster — every agent's role, personality, routing rules, and when to use them.
61
+
62
+ These aren't blank templates. They're squad configurations shaped by real project experience at CoreAI — tested routing rules, proven agent roles, and practical defaults.
63
+
64
+ ## What Gets Created
65
+
66
+ ```
67
+ your-project/
68
+ ├── .squad/
69
+ │ ├── team.md # Who's on the team
70
+ │ ├── routing.md # How work gets routed
71
+ │ ├── decisions.md # Decision log
72
+ │ ├── mcp-config.md # MCP tool config
73
+ │ └── agents/
74
+ │ ├── blueprint/charter.md
75
+ │ ├── wrench/charter.md
76
+ │ └── ...
77
+ ├── AGENTS.md # AI agent instructions (any tool)
78
+ ├── CLAUDE.md # Claude/Copilot CLI session memory
79
+ └── .github/
80
+ └── copilot-instructions.md # GitHub Copilot instructions
81
+ ```
82
+
83
+ The hook chain (`AGENTS.md` + `CLAUDE.md` + `copilot-instructions.md`) makes every AI session squad-aware — regardless of which tool opens your workspace.
84
+
85
+ ## After Bootstrap: Plain English
86
+
87
+ Once your squad is initialized, just talk to it:
88
+
89
+ ```
90
+ > switch my squad to the sages preset
91
+ > add a security specialist to my team
92
+ > show me my squad routing rules
93
+ ```
94
+
95
+ The generated instructions teach your AI how to manage the squad. No special syntax needed.
96
+
97
+ ## Browse Presets
98
+
99
+ ```bash
100
+ npx snap-squad list
101
+ ```
102
+
103
+ ## Want the Full Squad Runtime?
104
+
105
+ Snap Squad gets you started. The [Squad CLI](https://github.com/bradygaster/squad) takes it further — interactive shell, triage, hire, and more:
106
+
107
+ ```bash
108
+ npm install -g @bradygaster/squad-cli
109
+ squad
110
+ ```
111
+
112
+ ## Why Not Just Use Squad Directly?
113
+
114
+ You should! Squad's built-in setup is great for tailored teams. Snap Squad is for when you want to:
115
+
116
+ - **Start in seconds** — working squad before your coffee gets cold
117
+ - **Learn from others** presets shaped by builders who ship with Squad daily
118
+ - **Reuse patterns** — same team shape across multiple projects
119
+ - **Onboard people** — give someone a working squad without the interview
120
+
121
+ The goal is to contribute these presets upstream to Squad.
122
+
123
+ ## Status
124
+
125
+ 🚧 **Alpha** Built by its own squad (dogfooding FTW).
126
+
127
+ ## How This Was Built
128
+
129
+ This project was built with AI assistance, steered by a human builder. The full story — every steering moment, key decision, and evolution arc — is in the [build journal](JOURNAL.md).
130
+
131
+ ## License
132
+
133
+ MIT
package/dist/cli.js CHANGED
@@ -1,27 +1,32 @@
1
1
  #!/usr/bin/env node
2
2
  import { Command } from 'commander';
3
- import { existsSync } from 'node:fs';
4
- import { resolve } from 'node:path';
5
- import { execSync } from 'node:child_process';
3
+ import { existsSync, readFileSync } from 'node:fs';
4
+ import { resolve, dirname, join } from 'node:path';
5
+ import { fileURLToPath } from 'node:url';
6
6
  import chalk from 'chalk';
7
7
  import { loadPreset, listPresets } from './registry/loader.js';
8
8
  import { generateSquad } from './generator/index.js';
9
9
  import { matchPreset } from './matcher.js';
10
+ const __filename = fileURLToPath(import.meta.url);
11
+ const __dirname = dirname(__filename);
12
+ const pkg = JSON.parse(readFileSync(join(__dirname, '..', 'package.json'), 'utf-8'));
13
+ const availablePresets = listPresets();
10
14
  const program = new Command();
11
15
  program
12
16
  .name('snap-squad')
13
17
  .description('Get started with Squad faster — ready-made squad presets')
14
- .version('0.1.0');
18
+ .version(pkg.version);
15
19
  program
16
20
  .command('init')
17
21
  .description('Initialize a squad — describe what you need or pick a preset')
18
22
  .argument('[description...]', 'describe your project in plain English')
19
- .option('-t, --type <preset>', 'pick a preset directly (neighbors, dash, sages, artisans)')
23
+ .option('-t, --type <preset>', `pick a preset directly (${availablePresets.join(', ')})`)
20
24
  .option('-d, --dir <directory>', 'target directory', '.')
21
25
  .option('-n, --name <name>', 'project name')
22
26
  .option('-o, --owner <owner>', 'project owner')
23
27
  .option('-f, --force', 'overwrite existing .squad/ directory', false)
24
- .option('--no-up', 'skip running squad up after init')
28
+ .option('--explain', 'show why a preset was chosen')
29
+ .option('--dry-run', 'show what would be created without writing files')
25
30
  .action((descriptionWords, opts) => {
26
31
  const targetDir = resolve(opts.dir);
27
32
  const squadDir = resolve(targetDir, '.squad');
@@ -39,18 +44,33 @@ program
39
44
  const match = matchPreset(description);
40
45
  presetName = match.preset;
41
46
  console.log(chalk.dim(` "${description}" → ${chalk.bold(match.preset)} (${match.why})\n`));
47
+ if (opts.explain && match.matchedKeywords.length > 0) {
48
+ console.log(chalk.dim(' Matched keywords:'));
49
+ for (const kw of match.matchedKeywords) {
50
+ console.log(chalk.dim(` • "${kw.keyword}" → ${kw.preset} (+${kw.weight})`));
51
+ }
52
+ console.log();
53
+ }
42
54
  }
43
55
  else {
44
- presetName = 'neighbors';
56
+ presetName = availablePresets.includes('neighbors') ? 'neighbors' : availablePresets[0] ?? 'neighbors';
45
57
  }
46
58
  let preset;
47
59
  try {
48
60
  preset = loadPreset(presetName);
49
61
  }
50
62
  catch (err) {
51
- console.error(chalk.red(`✗ ${err.message}`));
63
+ const message = err instanceof Error ? err.message : String(err);
64
+ console.error(chalk.red(`✗ ${message}`));
52
65
  process.exit(1);
53
66
  }
67
+ if (opts.dryRun) {
68
+ console.log(chalk.blue(`🔍 Dry run: would create ${chalk.bold(preset.displayName)} squad\n`));
69
+ console.log(chalk.dim(` Agents: ${preset.agents.map(a => a.name).join(', ')}`));
70
+ console.log(chalk.dim(` Files: .squad/, AGENTS.md, CLAUDE.md, JOURNAL.md, .github/copilot-instructions.md`));
71
+ console.log(chalk.dim(` Target: ${targetDir}\n`));
72
+ return;
73
+ }
54
74
  console.log(chalk.blue(`⚡ Snapping in ${chalk.bold(preset.displayName)}...`));
55
75
  const created = generateSquad({
56
76
  targetDir,
@@ -63,20 +83,7 @@ program
63
83
  for (const file of created) {
64
84
  console.log(chalk.dim(` ${file}`));
65
85
  }
66
- // Run squad up unless --no-up
67
- if (opts.up !== false) {
68
- try {
69
- execSync('squad --version', { stdio: 'ignore' });
70
- console.log(chalk.blue(`\n🚀 Running ${chalk.bold('squad up')}...\n`));
71
- execSync('squad up', { cwd: targetDir, stdio: 'inherit' });
72
- }
73
- catch {
74
- console.log(`\n${chalk.yellow('Note:')} Squad CLI not found. Install it to run your squad:\n`);
75
- console.log(chalk.dim(' npm install -g @bradygaster/squad-cli'));
76
- console.log(chalk.dim(` cd ${targetDir}`));
77
- console.log(chalk.dim(' squad up\n'));
78
- }
79
- }
86
+ console.log(`\n${chalk.yellow('Next:')} Open ${chalk.bold('Copilot CLI')} or ${chalk.bold('VS Code')} in this folder — your AI is already squad-aware.\n`);
80
87
  });
81
88
  program
82
89
  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AI,CAAC,sBAAsB,CAAC,CAAC,CAAC;IAChD,KAAK,MAAM,IAAI,IAAI,OAAO,EAAE,CAAC;QAC3B,IAAI,CAAC;YACH,MAAM,CAAC,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC;YAC3B,OAAO,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;QAC1D,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACvC,CAAC;IACH,CAAC;IACD,OAAO,CAAC,GAAG,EAAE,CAAC;AAChB,CAAC,CAAC,CAAC;AAEL,OAAO,CAAC,KAAK,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generator/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAS,MAAM,uBAAuB,CAAC;AAE3D,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,eAAe,GAAG,MAAM,EAAE,CA4DhE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generator/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAS,MAAM,uBAAuB,CAAC;AAG3D,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAOD,wBAAgB,aAAa,CAAC,OAAO,EAAE,eAAe,GAAG,MAAM,EAAE,CAsDhE"}