@nolrm/contextkit 0.12.7 → 0.12.8
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
CHANGED
|
@@ -165,6 +165,7 @@ ContextKit installs reusable slash commands for supported platforms:
|
|
|
165
165
|
| `/refactor` | Refactor code with safety checks |
|
|
166
166
|
| `/test` | Generate comprehensive tests |
|
|
167
167
|
| `/doc` | Add documentation |
|
|
168
|
+
| `/spec` | Write a component spec (MD-first) before any code is created |
|
|
168
169
|
| `/squad` | Kick off a squad task — write the PO spec |
|
|
169
170
|
| `/squad-architect` | Design the technical plan from the PO spec |
|
|
170
171
|
| `/squad-dev` | Implement code following the architect plan |
|
package/lib/commands/install.js
CHANGED
|
@@ -577,6 +577,10 @@ Run \`ck analyze\` to generate this content, or manually add your API pattern be
|
|
|
577
577
|
`${this.repoUrl}/commands/create-component.md`,
|
|
578
578
|
'.contextkit/commands/create-component.md'
|
|
579
579
|
);
|
|
580
|
+
await this.downloadManager.downloadFile(
|
|
581
|
+
`${this.repoUrl}/commands/spec.md`,
|
|
582
|
+
'.contextkit/commands/spec.md'
|
|
583
|
+
);
|
|
580
584
|
|
|
581
585
|
// Download squad commands
|
|
582
586
|
await this.downloadManager.downloadFile(
|
package/lib/commands/update.js
CHANGED
|
@@ -248,6 +248,10 @@ class UpdateCommand {
|
|
|
248
248
|
`${this.repoUrl}/commands/create-component.md`,
|
|
249
249
|
'.contextkit/commands/create-component.md'
|
|
250
250
|
);
|
|
251
|
+
await this.downloadManager.downloadFile(
|
|
252
|
+
`${this.repoUrl}/commands/spec.md`,
|
|
253
|
+
'.contextkit/commands/spec.md'
|
|
254
|
+
);
|
|
251
255
|
|
|
252
256
|
// Download squad commands
|
|
253
257
|
await this.downloadManager.downloadFile(
|
|
@@ -25,6 +25,7 @@ class ClaudeIntegration extends BaseIntegration {
|
|
|
25
25
|
'.claude/commands/squad-batch.md',
|
|
26
26
|
'.claude/commands/squad-run.md',
|
|
27
27
|
'.claude/commands/squad-run-agents.md',
|
|
28
|
+
'.claude/commands/spec.md',
|
|
28
29
|
'.claude/commands/ck.md',
|
|
29
30
|
];
|
|
30
31
|
this.platformDir = '.claude/rules';
|
|
@@ -192,6 +193,13 @@ Generate or run tests for the specified code, covering happy paths, edge cases,
|
|
|
192
193
|
Read \`.contextkit/commands/add-documentation.md\` and execute the documentation workflow.
|
|
193
194
|
|
|
194
195
|
Add inline docs, README sections, and usage examples for the specified code.
|
|
196
|
+
`);
|
|
197
|
+
|
|
198
|
+
await this.writeGeneratedFile('.claude/commands/spec.md', `# Spec
|
|
199
|
+
|
|
200
|
+
Read \`.contextkit/commands/spec.md\` and execute the spec workflow.
|
|
201
|
+
|
|
202
|
+
Write a component spec (MD-first) before any code is created. Scaffold the spec file colocated with the component and wait for review before coding begins.
|
|
195
203
|
`);
|
|
196
204
|
|
|
197
205
|
// Squad slash commands
|
|
@@ -134,6 +134,7 @@ Reference: @.contextkit/standards/code-style.md
|
|
|
134
134
|
## Commands
|
|
135
135
|
|
|
136
136
|
- @.contextkit/commands/create-component.md — Create component workflow
|
|
137
|
+
- @.contextkit/commands/spec.md — Write a component spec before coding
|
|
137
138
|
`;
|
|
138
139
|
await this.writeGeneratedFile('.cursor/rules/contextkit-components.mdc', componentsRule);
|
|
139
140
|
|
|
@@ -249,6 +250,13 @@ Create handoff files for multiple tasks and write PO specs for each one. Pass al
|
|
|
249
250
|
Read \`.contextkit/commands/squad-run.md\` and execute the pipeline runner workflow.
|
|
250
251
|
|
|
251
252
|
Process all batch tasks through the remaining pipeline steps (Architect, Dev, Test, Review) sequentially.
|
|
253
|
+
`);
|
|
254
|
+
|
|
255
|
+
await this.writeGeneratedFile('.cursor/prompts/spec.md', `# Spec
|
|
256
|
+
|
|
257
|
+
Read \`.contextkit/commands/spec.md\` and execute the spec workflow.
|
|
258
|
+
|
|
259
|
+
Write a component spec (MD-first) before any code is created. Scaffold the spec file colocated with the component and wait for review before coding begins.
|
|
252
260
|
`);
|
|
253
261
|
|
|
254
262
|
await this.writeGeneratedFile('.cursor/prompts/ck.md', `# ContextKit Health Check
|
|
@@ -271,6 +279,7 @@ Check project setup, standards status, and integrations. Report what needs atten
|
|
|
271
279
|
console.log(chalk.dim(' /refactor — Refactor code structure'));
|
|
272
280
|
console.log(chalk.dim(' /test — Generate or run tests'));
|
|
273
281
|
console.log(chalk.dim(' /doc — Add documentation'));
|
|
282
|
+
console.log(chalk.dim(' /spec — Write a component spec before coding'));
|
|
274
283
|
console.log(chalk.dim(''));
|
|
275
284
|
console.log(chalk.dim(' Squad (multi-agent workflow):'));
|
|
276
285
|
console.log(chalk.dim(' /squad "task" — Kickoff: create handoff + PO spec'));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nolrm/contextkit",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.8",
|
|
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": {
|