@nolrm/contextkit 0.9.4 → 0.9.6
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/README.md +59 -2
- package/lib/commands/install.js +30 -0
- package/lib/commands/update.js +30 -0
- package/lib/integrations/claude-integration.js +106 -15
- package/lib/integrations/cursor-integration.js +66 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@ Update `.md` files as your project evolves; the AI follows.
|
|
|
23
23
|
|
|
24
24
|
Works with: **Cursor** • **Claude Code** • **GitHub Copilot** • **Codex CLI** • **Gemini CLI** • **Aider** • **Continue** • **Windsurf**
|
|
25
25
|
|
|
26
|
-
Each platform gets auto-loaded bridge files (`CLAUDE.md`, `AGENTS.md`, `GEMINI.md`, `.windsurfrules`, etc.) so your AI tools read project standards automatically.
|
|
26
|
+
Each platform gets auto-loaded bridge files (`CLAUDE.md`, `AGENTS.md`, `GEMINI.md`, `.windsurfrules`, etc.) so your AI tools read project standards automatically. Claude Code uses `@` imports in CLAUDE.md to load standards content directly into context — no extra token cost from manual file reads.
|
|
27
27
|
|
|
28
28
|
---
|
|
29
29
|
|
|
@@ -118,7 +118,7 @@ Each platform generates bridge files that the AI tool auto-reads. If a bridge fi
|
|
|
118
118
|
/fix # diagnose and fix bugs
|
|
119
119
|
```
|
|
120
120
|
|
|
121
|
-
**Claude Code** —
|
|
121
|
+
**Claude Code** — `CLAUDE.md` uses `@` imports to auto-load all standards into context every session (no manual reads needed, saves tokens). Slash commands in `.claude/commands/`.
|
|
122
122
|
```bash
|
|
123
123
|
/analyze # scan codebase and generate standards
|
|
124
124
|
/review # code review with checklist
|
|
@@ -154,6 +154,13 @@ ContextKit installs reusable slash commands for supported platforms:
|
|
|
154
154
|
| `/refactor` | Refactor code with safety checks |
|
|
155
155
|
| `/test` | Generate comprehensive tests |
|
|
156
156
|
| `/doc` | Add documentation |
|
|
157
|
+
| `/squad` | Kick off a squad task — write the PO spec |
|
|
158
|
+
| `/squad-architect` | Design the technical plan from the PO spec |
|
|
159
|
+
| `/squad-dev` | Implement code following the architect plan |
|
|
160
|
+
| `/squad-test` | Write and run tests against acceptance criteria |
|
|
161
|
+
| `/squad-review` | Review the full pipeline and give a verdict |
|
|
162
|
+
| `/squad-batch` | Kick off multiple tasks at once (batch PO specs) |
|
|
163
|
+
| `/squad-run` | Auto-run the remaining pipeline for batch tasks |
|
|
157
164
|
|
|
158
165
|
**Claude Code** — available as `/analyze`, `/review`, etc. in `.claude/commands/`
|
|
159
166
|
**Cursor** — available as slash commands in Chat via `.cursor/prompts/`
|
|
@@ -162,6 +169,56 @@ Both platforms delegate to the universal command files in `.contextkit/commands/
|
|
|
162
169
|
|
|
163
170
|
---
|
|
164
171
|
|
|
172
|
+
## Squad Workflow
|
|
173
|
+
|
|
174
|
+
The squad workflow turns a single AI session into a structured multi-role pipeline. Each role has its own slash command that reads and writes to a shared handoff file (`.contextkit/squad/handoff.md`), simulating a team of specialists.
|
|
175
|
+
|
|
176
|
+
### Pipeline Roles
|
|
177
|
+
|
|
178
|
+
| Step | Role | Command | What it does |
|
|
179
|
+
|------|------|---------|-------------|
|
|
180
|
+
| 1 | Product Owner | `/squad` | Writes a user story, acceptance criteria, edge cases, and scope |
|
|
181
|
+
| 2 | Architect | `/squad-architect` | Designs the technical approach, files to change, and implementation steps |
|
|
182
|
+
| 3 | Developer | `/squad-dev` | Implements the code following the architect's plan |
|
|
183
|
+
| 4 | Tester | `/squad-test` | Writes and runs tests against the PO's acceptance criteria |
|
|
184
|
+
| 5 | Reviewer | `/squad-review` | Reviews everything and gives a PASS or NEEDS-WORK verdict |
|
|
185
|
+
|
|
186
|
+
### Single-Task Flow
|
|
187
|
+
|
|
188
|
+
```bash
|
|
189
|
+
/squad "add dark mode support" # PO writes the spec
|
|
190
|
+
/squad-architect # Architect designs the plan
|
|
191
|
+
/squad-dev # Dev implements the code
|
|
192
|
+
/squad-test # Tester writes and runs tests
|
|
193
|
+
/squad-review # Reviewer gives the verdict
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
### Batch Flow
|
|
197
|
+
|
|
198
|
+
For multiple tasks, use batch mode to spec them all up front, then run the full pipeline automatically:
|
|
199
|
+
|
|
200
|
+
```bash
|
|
201
|
+
/squad-batch "add dark mode" "fix login bug" "refactor checkout"
|
|
202
|
+
# PO writes specs for all three tasks
|
|
203
|
+
|
|
204
|
+
/squad-run
|
|
205
|
+
# Runs Architect → Dev → Test → Review for each task sequentially
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
### Feedback Loop
|
|
209
|
+
|
|
210
|
+
Any downstream role can raise questions for an upstream role. When this happens, the pipeline pauses and directs you to the right command:
|
|
211
|
+
|
|
212
|
+
```
|
|
213
|
+
Reviewer has questions for Dev → run /squad-dev to clarify
|
|
214
|
+
Tester has questions for Architect → run /squad-architect to clarify
|
|
215
|
+
Architect has questions for PO → run /squad to clarify
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
After clarifications are added, re-run the asking role's command to continue. This prevents misunderstandings from compounding through the pipeline.
|
|
219
|
+
|
|
220
|
+
---
|
|
221
|
+
|
|
165
222
|
## Git Hooks & Quality Gates
|
|
166
223
|
|
|
167
224
|
ContextKit can optionally install Git hooks during `ck install`. Uses `git config core.hooksPath` to point Git at `.contextkit/hooks/` — no external dependencies like Husky required. Works in any git repo, not just Node.js projects.
|
package/lib/commands/install.js
CHANGED
|
@@ -551,6 +551,36 @@ Run \`ck analyze\` to generate this content, or manually add your API pattern be
|
|
|
551
551
|
'.contextkit/commands/create-component.md'
|
|
552
552
|
);
|
|
553
553
|
|
|
554
|
+
// Download squad commands
|
|
555
|
+
await this.downloadManager.downloadFile(
|
|
556
|
+
`${this.repoUrl}/commands/squad.md`,
|
|
557
|
+
'.contextkit/commands/squad.md'
|
|
558
|
+
);
|
|
559
|
+
await this.downloadManager.downloadFile(
|
|
560
|
+
`${this.repoUrl}/commands/squad-architect.md`,
|
|
561
|
+
'.contextkit/commands/squad-architect.md'
|
|
562
|
+
);
|
|
563
|
+
await this.downloadManager.downloadFile(
|
|
564
|
+
`${this.repoUrl}/commands/squad-dev.md`,
|
|
565
|
+
'.contextkit/commands/squad-dev.md'
|
|
566
|
+
);
|
|
567
|
+
await this.downloadManager.downloadFile(
|
|
568
|
+
`${this.repoUrl}/commands/squad-test.md`,
|
|
569
|
+
'.contextkit/commands/squad-test.md'
|
|
570
|
+
);
|
|
571
|
+
await this.downloadManager.downloadFile(
|
|
572
|
+
`${this.repoUrl}/commands/squad-review.md`,
|
|
573
|
+
'.contextkit/commands/squad-review.md'
|
|
574
|
+
);
|
|
575
|
+
await this.downloadManager.downloadFile(
|
|
576
|
+
`${this.repoUrl}/commands/squad-batch.md`,
|
|
577
|
+
'.contextkit/commands/squad-batch.md'
|
|
578
|
+
);
|
|
579
|
+
await this.downloadManager.downloadFile(
|
|
580
|
+
`${this.repoUrl}/commands/squad-run.md`,
|
|
581
|
+
'.contextkit/commands/squad-run.md'
|
|
582
|
+
);
|
|
583
|
+
|
|
554
584
|
// Download hooks (pre-push and commit-msg only, no pre-commit)
|
|
555
585
|
await this.downloadManager.downloadFile(
|
|
556
586
|
`${this.repoUrl}/hooks/pre-push`,
|
package/lib/commands/update.js
CHANGED
|
@@ -249,6 +249,36 @@ class UpdateCommand {
|
|
|
249
249
|
'.contextkit/commands/create-component.md'
|
|
250
250
|
);
|
|
251
251
|
|
|
252
|
+
// Download squad commands
|
|
253
|
+
await this.downloadManager.downloadFile(
|
|
254
|
+
`${this.repoUrl}/commands/squad.md`,
|
|
255
|
+
'.contextkit/commands/squad.md'
|
|
256
|
+
);
|
|
257
|
+
await this.downloadManager.downloadFile(
|
|
258
|
+
`${this.repoUrl}/commands/squad-architect.md`,
|
|
259
|
+
'.contextkit/commands/squad-architect.md'
|
|
260
|
+
);
|
|
261
|
+
await this.downloadManager.downloadFile(
|
|
262
|
+
`${this.repoUrl}/commands/squad-dev.md`,
|
|
263
|
+
'.contextkit/commands/squad-dev.md'
|
|
264
|
+
);
|
|
265
|
+
await this.downloadManager.downloadFile(
|
|
266
|
+
`${this.repoUrl}/commands/squad-test.md`,
|
|
267
|
+
'.contextkit/commands/squad-test.md'
|
|
268
|
+
);
|
|
269
|
+
await this.downloadManager.downloadFile(
|
|
270
|
+
`${this.repoUrl}/commands/squad-review.md`,
|
|
271
|
+
'.contextkit/commands/squad-review.md'
|
|
272
|
+
);
|
|
273
|
+
await this.downloadManager.downloadFile(
|
|
274
|
+
`${this.repoUrl}/commands/squad-batch.md`,
|
|
275
|
+
'.contextkit/commands/squad-batch.md'
|
|
276
|
+
);
|
|
277
|
+
await this.downloadManager.downloadFile(
|
|
278
|
+
`${this.repoUrl}/commands/squad-run.md`,
|
|
279
|
+
'.contextkit/commands/squad-run.md'
|
|
280
|
+
);
|
|
281
|
+
|
|
252
282
|
// Download hooks (pre-push and commit-msg only, no pre-commit)
|
|
253
283
|
await this.downloadManager.downloadFile(
|
|
254
284
|
`${this.repoUrl}/hooks/pre-push`,
|
|
@@ -17,6 +17,13 @@ class ClaudeIntegration extends BaseIntegration {
|
|
|
17
17
|
'.claude/commands/refactor.md',
|
|
18
18
|
'.claude/commands/test.md',
|
|
19
19
|
'.claude/commands/doc.md',
|
|
20
|
+
'.claude/commands/squad.md',
|
|
21
|
+
'.claude/commands/squad-architect.md',
|
|
22
|
+
'.claude/commands/squad-dev.md',
|
|
23
|
+
'.claude/commands/squad-test.md',
|
|
24
|
+
'.claude/commands/squad-review.md',
|
|
25
|
+
'.claude/commands/squad-batch.md',
|
|
26
|
+
'.claude/commands/squad-run.md',
|
|
20
27
|
];
|
|
21
28
|
this.platformDir = '.claude/rules';
|
|
22
29
|
}
|
|
@@ -42,6 +49,33 @@ class ClaudeIntegration extends BaseIntegration {
|
|
|
42
49
|
}
|
|
43
50
|
}
|
|
44
51
|
|
|
52
|
+
getStandardsBlock() {
|
|
53
|
+
return `## Project Standards
|
|
54
|
+
|
|
55
|
+
The following standards are auto-loaded into context via @imports:
|
|
56
|
+
|
|
57
|
+
- @.contextkit/standards/code-style.md — Coding conventions and style rules
|
|
58
|
+
- @.contextkit/standards/testing.md — Testing patterns and requirements
|
|
59
|
+
- @.contextkit/standards/architecture.md — Architecture decisions and patterns
|
|
60
|
+
- @.contextkit/standards/ai-guidelines.md — AI behavior and usage guidelines
|
|
61
|
+
- @.contextkit/standards/workflows.md — Development workflows and processes
|
|
62
|
+
- @.contextkit/standards/glossary.md — Project terminology and shortcuts
|
|
63
|
+
|
|
64
|
+
## Product Context
|
|
65
|
+
|
|
66
|
+
- @.contextkit/product/mission-lite.md — Product mission (condensed)
|
|
67
|
+
- @.contextkit/product/decisions.md — Architecture Decision Records
|
|
68
|
+
- @.contextkit/product/roadmap.md — Development roadmap
|
|
69
|
+
|
|
70
|
+
## Commands
|
|
71
|
+
|
|
72
|
+
- \`.contextkit/commands/analyze.md\` — Analyze and customize standards
|
|
73
|
+
- \`.contextkit/commands/create-component.md\` — Create components
|
|
74
|
+
- \`.contextkit/commands/create-feature.md\` — Create features
|
|
75
|
+
- \`.contextkit/commands/run-tests.md\` — Run tests
|
|
76
|
+
- \`.contextkit/commands/quality-check.md\` — Quality checks`;
|
|
77
|
+
}
|
|
78
|
+
|
|
45
79
|
async generateFiles() {
|
|
46
80
|
// Bridge file: CLAUDE.md (auto-loaded every session)
|
|
47
81
|
const bridgeContent = `# Project Standards (ContextKit)
|
|
@@ -52,7 +86,7 @@ ${this.getStandardsBlock()}
|
|
|
52
86
|
|
|
53
87
|
## Corrections Log
|
|
54
88
|
|
|
55
|
-
-
|
|
89
|
+
- @.contextkit/corrections.md — Track AI performance improvements
|
|
56
90
|
|
|
57
91
|
## Quick Reference
|
|
58
92
|
|
|
@@ -68,14 +102,14 @@ alwaysApply: true
|
|
|
68
102
|
|
|
69
103
|
# ContextKit Standards
|
|
70
104
|
|
|
71
|
-
This project uses ContextKit
|
|
105
|
+
This project uses ContextKit. Project standards are auto-loaded via CLAUDE.md imports.
|
|
72
106
|
|
|
73
|
-
|
|
74
|
-
-
|
|
75
|
-
-
|
|
76
|
-
-
|
|
77
|
-
-
|
|
78
|
-
-
|
|
107
|
+
Key areas to follow:
|
|
108
|
+
- Code style conventions (from code-style.md)
|
|
109
|
+
- Architecture patterns (from architecture.md)
|
|
110
|
+
- AI behavior rules (from ai-guidelines.md)
|
|
111
|
+
- Project terminology (from glossary.md)
|
|
112
|
+
- Product context (from mission-lite.md)
|
|
79
113
|
`;
|
|
80
114
|
await this.writeGeneratedFile('.claude/rules/contextkit-standards.md', standardsRule);
|
|
81
115
|
|
|
@@ -90,8 +124,7 @@ globs:
|
|
|
90
124
|
|
|
91
125
|
# Testing Standards
|
|
92
126
|
|
|
93
|
-
|
|
94
|
-
- \`.contextkit/standards/testing.md\` for test patterns and requirements
|
|
127
|
+
Follow the testing standards auto-loaded via CLAUDE.md (from testing.md).
|
|
95
128
|
- All test cases MUST use numbered descriptions (e.g., \`it("1. renders correctly")\`)
|
|
96
129
|
- Reference \`.contextkit/templates/test.md\` for test template patterns
|
|
97
130
|
`;
|
|
@@ -109,11 +142,10 @@ globs:
|
|
|
109
142
|
|
|
110
143
|
# Code Style
|
|
111
144
|
|
|
112
|
-
|
|
113
|
-
- \`.contextkit/
|
|
114
|
-
- \`.contextkit/templates/
|
|
115
|
-
- \`.contextkit/templates/
|
|
116
|
-
- \`.contextkit/templates/api.md\` for API service patterns
|
|
145
|
+
Follow the code style standards auto-loaded via CLAUDE.md (from code-style.md).
|
|
146
|
+
- Reference \`.contextkit/templates/component.md\` for component patterns
|
|
147
|
+
- Reference \`.contextkit/templates/hook.md\` for custom hook patterns
|
|
148
|
+
- Reference \`.contextkit/templates/api.md\` for API service patterns
|
|
117
149
|
`;
|
|
118
150
|
await this.writeGeneratedFile('.claude/rules/contextkit-code-style.md', codeStyleRule);
|
|
119
151
|
|
|
@@ -158,6 +190,56 @@ Generate or run tests for the specified code, covering happy paths, edge cases,
|
|
|
158
190
|
Read \`.contextkit/commands/add-documentation.md\` and execute the documentation workflow.
|
|
159
191
|
|
|
160
192
|
Add inline docs, README sections, and usage examples for the specified code.
|
|
193
|
+
`);
|
|
194
|
+
|
|
195
|
+
// Squad slash commands
|
|
196
|
+
await this.writeGeneratedFile('.claude/commands/squad.md', `# Squad — Kickoff
|
|
197
|
+
|
|
198
|
+
Read \`.contextkit/commands/squad.md\` and execute the squad kickoff workflow.
|
|
199
|
+
|
|
200
|
+
Create the handoff file and write the PO spec for the given task. Pass the user's task description as the input.
|
|
201
|
+
`);
|
|
202
|
+
|
|
203
|
+
await this.writeGeneratedFile('.claude/commands/squad-architect.md', `# Squad — Architect
|
|
204
|
+
|
|
205
|
+
Read \`.contextkit/commands/squad-architect.md\` and execute the architect workflow.
|
|
206
|
+
|
|
207
|
+
Read the PO spec from the handoff file, design the technical approach, and write the implementation plan.
|
|
208
|
+
`);
|
|
209
|
+
|
|
210
|
+
await this.writeGeneratedFile('.claude/commands/squad-dev.md', `# Squad — Dev
|
|
211
|
+
|
|
212
|
+
Read \`.contextkit/commands/squad-dev.md\` and execute the dev workflow.
|
|
213
|
+
|
|
214
|
+
Follow the architect's plan to implement the code changes.
|
|
215
|
+
`);
|
|
216
|
+
|
|
217
|
+
await this.writeGeneratedFile('.claude/commands/squad-test.md', `# Squad — Test
|
|
218
|
+
|
|
219
|
+
Read \`.contextkit/commands/squad-test.md\` and execute the test workflow.
|
|
220
|
+
|
|
221
|
+
Write and run tests against the PO's acceptance criteria.
|
|
222
|
+
`);
|
|
223
|
+
|
|
224
|
+
await this.writeGeneratedFile('.claude/commands/squad-review.md', `# Squad — Review
|
|
225
|
+
|
|
226
|
+
Read \`.contextkit/commands/squad-review.md\` and execute the review workflow.
|
|
227
|
+
|
|
228
|
+
Review the full handoff (spec, plan, implementation, tests) and write the final verdict.
|
|
229
|
+
`);
|
|
230
|
+
|
|
231
|
+
await this.writeGeneratedFile('.claude/commands/squad-batch.md', `# Squad Batch — Multi-Task Kickoff
|
|
232
|
+
|
|
233
|
+
Read \`.contextkit/commands/squad-batch.md\` and execute the batch kickoff workflow.
|
|
234
|
+
|
|
235
|
+
Create handoff files for multiple tasks and write PO specs for each one. Pass all task descriptions as the input.
|
|
236
|
+
`);
|
|
237
|
+
|
|
238
|
+
await this.writeGeneratedFile('.claude/commands/squad-run.md', `# Squad Run — Auto-Run Pipeline
|
|
239
|
+
|
|
240
|
+
Read \`.contextkit/commands/squad-run.md\` and execute the pipeline runner workflow.
|
|
241
|
+
|
|
242
|
+
Process all batch tasks through the remaining pipeline steps (Architect, Dev, Test, Review) sequentially.
|
|
161
243
|
`);
|
|
162
244
|
}
|
|
163
245
|
|
|
@@ -174,6 +256,15 @@ Add inline docs, README sections, and usage examples for the specified code.
|
|
|
174
256
|
console.log(chalk.dim(' /refactor — Refactor code structure'));
|
|
175
257
|
console.log(chalk.dim(' /test — Generate or run tests'));
|
|
176
258
|
console.log(chalk.dim(' /doc — Add documentation'));
|
|
259
|
+
console.log(chalk.dim(''));
|
|
260
|
+
console.log(chalk.dim(' Squad (multi-agent workflow):'));
|
|
261
|
+
console.log(chalk.dim(' /squad "task" — Kickoff: create handoff + PO spec'));
|
|
262
|
+
console.log(chalk.dim(' /squad-architect — Design the implementation plan'));
|
|
263
|
+
console.log(chalk.dim(' /squad-dev — Implement the code'));
|
|
264
|
+
console.log(chalk.dim(' /squad-test — Write and run tests'));
|
|
265
|
+
console.log(chalk.dim(' /squad-review — Review and write verdict'));
|
|
266
|
+
console.log(chalk.dim(' /squad-batch — Batch kickoff: PO specs for multiple tasks'));
|
|
267
|
+
console.log(chalk.dim(' /squad-run — Auto-run pipeline for batch tasks'));
|
|
177
268
|
}
|
|
178
269
|
}
|
|
179
270
|
|
|
@@ -18,6 +18,13 @@ class CursorIntegration extends BaseIntegration {
|
|
|
18
18
|
'.cursor/prompts/refactor.md',
|
|
19
19
|
'.cursor/prompts/test.md',
|
|
20
20
|
'.cursor/prompts/doc.md',
|
|
21
|
+
'.cursor/prompts/squad.md',
|
|
22
|
+
'.cursor/prompts/squad-architect.md',
|
|
23
|
+
'.cursor/prompts/squad-dev.md',
|
|
24
|
+
'.cursor/prompts/squad-test.md',
|
|
25
|
+
'.cursor/prompts/squad-review.md',
|
|
26
|
+
'.cursor/prompts/squad-batch.md',
|
|
27
|
+
'.cursor/prompts/squad-run.md',
|
|
21
28
|
];
|
|
22
29
|
this.bridgeFiles = [];
|
|
23
30
|
this.platformDir = '.cursor/rules';
|
|
@@ -191,6 +198,56 @@ Generate or run tests for the specified code, covering happy paths, edge cases,
|
|
|
191
198
|
Read \`.contextkit/commands/add-documentation.md\` and execute the documentation workflow.
|
|
192
199
|
|
|
193
200
|
Add inline docs, README sections, and usage examples for the specified code.
|
|
201
|
+
`);
|
|
202
|
+
|
|
203
|
+
// Squad prompts
|
|
204
|
+
await this.writeGeneratedFile('.cursor/prompts/squad.md', `# Squad — Kickoff
|
|
205
|
+
|
|
206
|
+
Read \`.contextkit/commands/squad.md\` and execute the squad kickoff workflow.
|
|
207
|
+
|
|
208
|
+
Create the handoff file and write the PO spec for the given task. Pass the user's task description as the input.
|
|
209
|
+
`);
|
|
210
|
+
|
|
211
|
+
await this.writeGeneratedFile('.cursor/prompts/squad-architect.md', `# Squad — Architect
|
|
212
|
+
|
|
213
|
+
Read \`.contextkit/commands/squad-architect.md\` and execute the architect workflow.
|
|
214
|
+
|
|
215
|
+
Read the PO spec from the handoff file, design the technical approach, and write the implementation plan.
|
|
216
|
+
`);
|
|
217
|
+
|
|
218
|
+
await this.writeGeneratedFile('.cursor/prompts/squad-dev.md', `# Squad — Dev
|
|
219
|
+
|
|
220
|
+
Read \`.contextkit/commands/squad-dev.md\` and execute the dev workflow.
|
|
221
|
+
|
|
222
|
+
Follow the architect's plan to implement the code changes.
|
|
223
|
+
`);
|
|
224
|
+
|
|
225
|
+
await this.writeGeneratedFile('.cursor/prompts/squad-test.md', `# Squad — Test
|
|
226
|
+
|
|
227
|
+
Read \`.contextkit/commands/squad-test.md\` and execute the test workflow.
|
|
228
|
+
|
|
229
|
+
Write and run tests against the PO's acceptance criteria.
|
|
230
|
+
`);
|
|
231
|
+
|
|
232
|
+
await this.writeGeneratedFile('.cursor/prompts/squad-review.md', `# Squad — Review
|
|
233
|
+
|
|
234
|
+
Read \`.contextkit/commands/squad-review.md\` and execute the review workflow.
|
|
235
|
+
|
|
236
|
+
Review the full handoff (spec, plan, implementation, tests) and write the final verdict.
|
|
237
|
+
`);
|
|
238
|
+
|
|
239
|
+
await this.writeGeneratedFile('.cursor/prompts/squad-batch.md', `# Squad Batch — Multi-Task Kickoff
|
|
240
|
+
|
|
241
|
+
Read \`.contextkit/commands/squad-batch.md\` and execute the batch kickoff workflow.
|
|
242
|
+
|
|
243
|
+
Create handoff files for multiple tasks and write PO specs for each one. Pass all task descriptions as the input.
|
|
244
|
+
`);
|
|
245
|
+
|
|
246
|
+
await this.writeGeneratedFile('.cursor/prompts/squad-run.md', `# Squad Run — Auto-Run Pipeline
|
|
247
|
+
|
|
248
|
+
Read \`.contextkit/commands/squad-run.md\` and execute the pipeline runner workflow.
|
|
249
|
+
|
|
250
|
+
Process all batch tasks through the remaining pipeline steps (Architect, Dev, Test, Review) sequentially.
|
|
194
251
|
`);
|
|
195
252
|
}
|
|
196
253
|
|
|
@@ -206,6 +263,15 @@ Add inline docs, README sections, and usage examples for the specified code.
|
|
|
206
263
|
console.log(chalk.dim(' /refactor — Refactor code structure'));
|
|
207
264
|
console.log(chalk.dim(' /test — Generate or run tests'));
|
|
208
265
|
console.log(chalk.dim(' /doc — Add documentation'));
|
|
266
|
+
console.log(chalk.dim(''));
|
|
267
|
+
console.log(chalk.dim(' Squad (multi-agent workflow):'));
|
|
268
|
+
console.log(chalk.dim(' /squad "task" — Kickoff: create handoff + PO spec'));
|
|
269
|
+
console.log(chalk.dim(' /squad-architect — Design the implementation plan'));
|
|
270
|
+
console.log(chalk.dim(' /squad-dev — Implement the code'));
|
|
271
|
+
console.log(chalk.dim(' /squad-test — Write and run tests'));
|
|
272
|
+
console.log(chalk.dim(' /squad-review — Review and write verdict'));
|
|
273
|
+
console.log(chalk.dim(' /squad-batch — Batch kickoff: PO specs for multiple tasks'));
|
|
274
|
+
console.log(chalk.dim(' /squad-run — Auto-run pipeline for batch tasks'));
|
|
209
275
|
}
|
|
210
276
|
}
|
|
211
277
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nolrm/contextkit",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.6",
|
|
4
4
|
"description": "ContextKit - Context Engineering for AI Development. Provide rich context to AI through structured MD files with standards, code guides, and documentation. Works with Cursor, Claude, Aider, VS Code Copilot, and more.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"bin": {
|