@nolrm/contextkit 0.18.0 → 0.21.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/README.md +69 -12
- package/lib/commands/install.js +40 -8
- package/lib/commands/update.js +42 -7
- package/lib/integrations/claude-integration.js +19 -20
- package/lib/integrations/cursor-integration.js +0 -12
- package/package.json +10 -3
package/README.md
CHANGED
|
@@ -1,24 +1,31 @@
|
|
|
1
1
|
# ContextKit
|
|
2
2
|
|
|
3
|
-
> Context Engineering
|
|
3
|
+
> Context Engineering + Agentic AI Pipelines
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
ContextKit gives your AI assistants (Cursor, Claude, Copilot, Codex, OpenCode, Gemini, Aider, Continue, Windsurf) structured context through markdown files—and gives you a multi-role autonomous pipeline (PO → Architect → Dev → Test → Review → Doc) to execute work with those same agents. The context layer is what keeps the pipeline grounded: agents read your standards, so they never hallucinate your conventions.
|
|
6
6
|
|
|
7
|
-
ContextKit is a CLI tool
|
|
7
|
+
ContextKit is a CLI tool with two capabilities: **context engineering** (`.contextkit/standards/` + platform bridge files so every AI tool reads your project conventions automatically) and **squad pipelines** (a six-role agentic workflow grounded by those same standards).
|
|
8
8
|
|
|
9
9
|
**[Read the full documentation](https://contextkit-docs.vercel.app/)** · **[How context works](https://contextkit-docs.vercel.app/docs/how-context-works)**
|
|
10
10
|
|
|
11
11
|
## Why ContextKit?
|
|
12
12
|
|
|
13
|
-
**The problem:** LLMs are
|
|
13
|
+
**The problem:** LLMs are good at syntax, not at _your_ conventions — and multi-agent pipelines amplify that. An autonomous dev agent that doesn't know your architecture, naming, or testing patterns will produce code you have to fully rewrite.
|
|
14
14
|
|
|
15
|
-
**The solution
|
|
15
|
+
**The solution — two pillars that reinforce each other:**
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
- **
|
|
19
|
-
- **
|
|
17
|
+
**Pillar 1: Context engineering**
|
|
18
|
+
- **Glossary** — project terminology and domain-specific entity names
|
|
19
|
+
- **Standards** — code style, testing patterns, architecture rules
|
|
20
|
+
- **Templates** — canonical component shapes
|
|
21
|
+
- **Platform bridges** — auto-generated `CLAUDE.md`, `AGENTS.md`, `.windsurfrules`, etc. so every AI tool reads the same context without manual setup
|
|
20
22
|
|
|
21
|
-
|
|
23
|
+
**Pillar 2: Agentic squad pipeline**
|
|
24
|
+
- A six-role pipeline (PO → Architect → Dev → Tester → Reviewer → Doc Writer) runs in a single AI session
|
|
25
|
+
- Each role reads the context layer before acting — no hallucinated conventions
|
|
26
|
+
- Run `/squad "add dark mode"` then `/squad-auto` and walk away
|
|
27
|
+
|
|
28
|
+
Update your `.md` standards as your project evolves; every agent that runs after picks up the change automatically.
|
|
22
29
|
|
|
23
30
|
## Multi-Platform Support
|
|
24
31
|
|
|
@@ -111,7 +118,6 @@ Each platform generates bridge files that the AI tool auto-reads. If a bridge fi
|
|
|
111
118
|
```
|
|
112
119
|
/analyze # scan codebase and generate standards
|
|
113
120
|
/review # code review with checklist
|
|
114
|
-
/fix # diagnose and fix bugs
|
|
115
121
|
```
|
|
116
122
|
|
|
117
123
|
**Claude Code** — `CLAUDE.md` uses `@` imports to auto-load all standards into context every session (no manual reads needed, saves tokens). Skills in `.claude/skills/`. Also writes a PostToolUse hook to `.claude/settings.json` that runs format+lint after every file edit — auto-detected for Node.js (npm/pnpm/yarn/bun), Go, and Python.
|
|
@@ -150,14 +156,14 @@ ContextKit installs reusable slash commands for supported platforms:
|
|
|
150
156
|
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
|
|
151
157
|
| `/analyze` | Scan codebase and generate standards content |
|
|
152
158
|
| `/review` | Code review with checklist |
|
|
153
|
-
| `/fix` | Diagnose and fix bugs |
|
|
154
159
|
| `/refactor` | Refactor code with safety checks |
|
|
155
160
|
| `/test` | Generate comprehensive tests |
|
|
156
161
|
| `/doc` | Add documentation |
|
|
157
162
|
| `/doc-arch` | Generate architecture docs — stack-aware (Level 1). Output: `docs/<topic>.md`, or `docs/architecture.md` if no topic given. Pass a topic name, PR number, or leave blank to infer from branch. |
|
|
158
163
|
| `/doc-feature` | Generate feature-level docs (`docs/features/<name>.md`) — stack-aware (Level 2) |
|
|
159
164
|
| `/doc-component` | Generate component-level docs colocated with the target file — stack-aware (Level 3) |
|
|
160
|
-
| `/spec` |
|
|
165
|
+
| `/spec` | Turn a product overview into an implementation-ready spec — UX flows, DB schema, API contracts, and phased build plan |
|
|
166
|
+
| `/spec-component` | Write a component spec (MD-first) before any code is created |
|
|
161
167
|
| `/squad` | Kick off a squad task — one task or many (auto-detects batch mode). Pushes back with clarifying questions if the task is vague. |
|
|
162
168
|
| `/squad-architect` | Design the technical plan from the PO spec |
|
|
163
169
|
| `/squad-dev` | Implement code following the architect plan |
|
|
@@ -269,6 +275,57 @@ If you have a screenshot, mockup, or design image relevant to the task, paste or
|
|
|
269
275
|
|
|
270
276
|
---
|
|
271
277
|
|
|
278
|
+
## Spec Pipeline
|
|
279
|
+
|
|
280
|
+
The spec pipeline turns a high-level product overview into an implementation-ready spec. It runs before the squad — producing the UX flows, DB schema, API contracts, and phased build plan that make stories possible.
|
|
281
|
+
|
|
282
|
+
```bash
|
|
283
|
+
/spec # Start or continue — picks up the next unchecked scope automatically
|
|
284
|
+
/spec 02-jobs # Run a specific scope by name
|
|
285
|
+
/spec --redo 01-identity-auth # Re-run a completed scope from scratch
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
### How It Works
|
|
289
|
+
|
|
290
|
+
`/spec` reads a product overview file (`PROJECT_OVERVIEW.md`, `OVERVIEW.md`, `BRIEF.md`, or any `.md` file you point it to) and runs a multi-round pipeline for each scope:
|
|
291
|
+
|
|
292
|
+
| Round | Who runs | What happens |
|
|
293
|
+
|-------|----------|-------------|
|
|
294
|
+
| 0 — Brief | CTO | Reads the overview, defines scope boundaries, writes a brief all agents share |
|
|
295
|
+
| 1 — Domain experts | UX, Data, Systems, Planner (parallel) | Each produces their section independently from the brief |
|
|
296
|
+
| 2 — Challenges | CTO | Reads all four sections, writes challenges — gaps, contradictions, missing decisions |
|
|
297
|
+
| 3 — Revisions | UX, Data, Systems, Planner (parallel) | Each addresses the CTO's challenges, flags unresolvable items as OPEN DECISIONs |
|
|
298
|
+
| Final — Author | CTO | Resolves open decisions, writes the unified `SPEC.md` |
|
|
299
|
+
|
|
300
|
+
### Output Structure
|
|
301
|
+
|
|
302
|
+
Each scope produces a folder with all working artifacts and a final `SPEC.md`:
|
|
303
|
+
|
|
304
|
+
```
|
|
305
|
+
spec/
|
|
306
|
+
PROGRESS.md ← scope checklist, updated after each run
|
|
307
|
+
INDEX.md ← master TOC linking all SPEC.md files
|
|
308
|
+
|
|
309
|
+
01-identity-auth/
|
|
310
|
+
00-brief.md ← CTO's scoping brief
|
|
311
|
+
01-ux.md ← UX flows and screens
|
|
312
|
+
02-data.md ← DB schema and relationships
|
|
313
|
+
03-systems.md ← API contracts and services
|
|
314
|
+
04-plan.md ← build phases and stories
|
|
315
|
+
05-challenges.md ← CTO's Round 2 challenges
|
|
316
|
+
SPEC.md ← final unified spec for this scope
|
|
317
|
+
```
|
|
318
|
+
|
|
319
|
+
Run `/spec` once per scope. Each run appends to `spec/INDEX.md`. When all scopes are done, feed individual `SPEC.md` files into `/squad` as implementation tasks.
|
|
320
|
+
|
|
321
|
+
### First Run
|
|
322
|
+
|
|
323
|
+
On the first run, the CTO reads the entire overview and identifies all logical scopes — ordering them by dependency (identity before marketplace, invoicing before tax). This produces `spec/PROGRESS.md` which acts as the checklist for all subsequent runs.
|
|
324
|
+
|
|
325
|
+
If no standard overview file is found, `/spec` lists all `.md` files in the directory and asks you to pick.
|
|
326
|
+
|
|
327
|
+
---
|
|
328
|
+
|
|
272
329
|
## Hooks & Quality Gates
|
|
273
330
|
|
|
274
331
|
ContextKit installs two kinds of hooks. **Git hooks** (pre-push, commit-msg) enforce quality at push time for the whole team. For **Claude Code** installs, a **PostToolUse hook** is also written to `.claude/settings.json` — it runs format+lint after every file edit in a Claude Code session, catching failures immediately rather than at push time.
|
package/lib/commands/install.js
CHANGED
|
@@ -899,10 +899,6 @@ Any design decisions, trade-offs, or open questions to resolve before coding.
|
|
|
899
899
|
`${this.repoUrl}/commands/dev/review.md`,
|
|
900
900
|
'.contextkit/commands/dev/review.md'
|
|
901
901
|
);
|
|
902
|
-
await this.downloadManager.downloadFile(
|
|
903
|
-
`${this.repoUrl}/commands/dev/fix.md`,
|
|
904
|
-
'.contextkit/commands/dev/fix.md'
|
|
905
|
-
);
|
|
906
902
|
await this.downloadManager.downloadFile(
|
|
907
903
|
`${this.repoUrl}/commands/dev/refactor.md`,
|
|
908
904
|
'.contextkit/commands/dev/refactor.md'
|
|
@@ -928,8 +924,8 @@ Any design decisions, trade-offs, or open questions to resolve before coding.
|
|
|
928
924
|
'.contextkit/commands/dev/create-component.md'
|
|
929
925
|
);
|
|
930
926
|
await this.downloadManager.downloadFile(
|
|
931
|
-
`${this.repoUrl}/commands/dev/spec.md`,
|
|
932
|
-
'.contextkit/commands/dev/spec.md'
|
|
927
|
+
`${this.repoUrl}/commands/dev/spec-component.md`,
|
|
928
|
+
'.contextkit/commands/dev/spec-component.md'
|
|
933
929
|
);
|
|
934
930
|
|
|
935
931
|
// Download squad commands
|
|
@@ -982,6 +978,44 @@ Any design decisions, trade-offs, or open questions to resolve before coding.
|
|
|
982
978
|
'.contextkit/commands/dev/health-check.md'
|
|
983
979
|
);
|
|
984
980
|
|
|
981
|
+
// Download spec pipeline commands
|
|
982
|
+
await this.downloadManager.downloadFile(
|
|
983
|
+
`${this.repoUrl}/commands/spec/spec.md`,
|
|
984
|
+
'.contextkit/commands/spec/spec.md'
|
|
985
|
+
);
|
|
986
|
+
await this.downloadManager.downloadFile(
|
|
987
|
+
`${this.repoUrl}/commands/spec/spec-init.md`,
|
|
988
|
+
'.contextkit/commands/spec/spec-init.md'
|
|
989
|
+
);
|
|
990
|
+
await this.downloadManager.downloadFile(
|
|
991
|
+
`${this.repoUrl}/commands/spec/spec-brief.md`,
|
|
992
|
+
'.contextkit/commands/spec/spec-brief.md'
|
|
993
|
+
);
|
|
994
|
+
await this.downloadManager.downloadFile(
|
|
995
|
+
`${this.repoUrl}/commands/spec/spec-ux.md`,
|
|
996
|
+
'.contextkit/commands/spec/spec-ux.md'
|
|
997
|
+
);
|
|
998
|
+
await this.downloadManager.downloadFile(
|
|
999
|
+
`${this.repoUrl}/commands/spec/spec-data.md`,
|
|
1000
|
+
'.contextkit/commands/spec/spec-data.md'
|
|
1001
|
+
);
|
|
1002
|
+
await this.downloadManager.downloadFile(
|
|
1003
|
+
`${this.repoUrl}/commands/spec/spec-systems.md`,
|
|
1004
|
+
'.contextkit/commands/spec/spec-systems.md'
|
|
1005
|
+
);
|
|
1006
|
+
await this.downloadManager.downloadFile(
|
|
1007
|
+
`${this.repoUrl}/commands/spec/spec-planner.md`,
|
|
1008
|
+
'.contextkit/commands/spec/spec-planner.md'
|
|
1009
|
+
);
|
|
1010
|
+
await this.downloadManager.downloadFile(
|
|
1011
|
+
`${this.repoUrl}/commands/spec/spec-challenge.md`,
|
|
1012
|
+
'.contextkit/commands/spec/spec-challenge.md'
|
|
1013
|
+
);
|
|
1014
|
+
await this.downloadManager.downloadFile(
|
|
1015
|
+
`${this.repoUrl}/commands/spec/spec-author.md`,
|
|
1016
|
+
'.contextkit/commands/spec/spec-author.md'
|
|
1017
|
+
);
|
|
1018
|
+
|
|
985
1019
|
// Download doc family commands
|
|
986
1020
|
await this.downloadManager.downloadFile(
|
|
987
1021
|
`${this.repoUrl}/commands/docs/doc-arch.md`,
|
|
@@ -1112,7 +1146,6 @@ claude "read .contextkit/context.md to see available standards, then create a bu
|
|
|
1112
1146
|
### Commands
|
|
1113
1147
|
- \`.contextkit/commands/dev/analyze.md\` - Analyze & customize standards
|
|
1114
1148
|
- \`.contextkit/commands/dev/review.md\` - Code review
|
|
1115
|
-
- \`.contextkit/commands/dev/fix.md\` - Diagnose and fix bugs
|
|
1116
1149
|
- \`.contextkit/commands/dev/refactor.md\` - Refactor code structure
|
|
1117
1150
|
- \`.contextkit/commands/dev/run-tests.md\` - Generate or run tests
|
|
1118
1151
|
- \`.contextkit/commands/docs/add-documentation.md\` - Add documentation
|
|
@@ -1241,7 +1274,6 @@ esac
|
|
|
1241
1274
|
commands: {
|
|
1242
1275
|
analyze: '@.contextkit/commands/dev/analyze.md',
|
|
1243
1276
|
review: '@.contextkit/commands/dev/review.md',
|
|
1244
|
-
fix: '@.contextkit/commands/dev/fix.md',
|
|
1245
1277
|
refactor: '@.contextkit/commands/dev/refactor.md',
|
|
1246
1278
|
run_tests: '@.contextkit/commands/dev/run-tests.md',
|
|
1247
1279
|
add_docs: '@.contextkit/commands/docs/add-documentation.md',
|
package/lib/commands/update.js
CHANGED
|
@@ -263,10 +263,6 @@ class UpdateCommand {
|
|
|
263
263
|
`${this.repoUrl}/commands/dev/review.md`,
|
|
264
264
|
'.contextkit/commands/dev/review.md'
|
|
265
265
|
);
|
|
266
|
-
await this.downloadManager.downloadFile(
|
|
267
|
-
`${this.repoUrl}/commands/dev/fix.md`,
|
|
268
|
-
'.contextkit/commands/dev/fix.md'
|
|
269
|
-
);
|
|
270
266
|
await this.downloadManager.downloadFile(
|
|
271
267
|
`${this.repoUrl}/commands/dev/refactor.md`,
|
|
272
268
|
'.contextkit/commands/dev/refactor.md'
|
|
@@ -292,8 +288,8 @@ class UpdateCommand {
|
|
|
292
288
|
'.contextkit/commands/dev/create-component.md'
|
|
293
289
|
);
|
|
294
290
|
await this.downloadManager.downloadFile(
|
|
295
|
-
`${this.repoUrl}/commands/dev/spec.md`,
|
|
296
|
-
'.contextkit/commands/dev/spec.md'
|
|
291
|
+
`${this.repoUrl}/commands/dev/spec-component.md`,
|
|
292
|
+
'.contextkit/commands/dev/spec-component.md'
|
|
297
293
|
);
|
|
298
294
|
|
|
299
295
|
// Download squad commands
|
|
@@ -346,6 +342,44 @@ class UpdateCommand {
|
|
|
346
342
|
'.contextkit/commands/dev/health-check.md'
|
|
347
343
|
);
|
|
348
344
|
|
|
345
|
+
// Download spec pipeline commands
|
|
346
|
+
await this.downloadManager.downloadFile(
|
|
347
|
+
`${this.repoUrl}/commands/spec/spec.md`,
|
|
348
|
+
'.contextkit/commands/spec/spec.md'
|
|
349
|
+
);
|
|
350
|
+
await this.downloadManager.downloadFile(
|
|
351
|
+
`${this.repoUrl}/commands/spec/spec-init.md`,
|
|
352
|
+
'.contextkit/commands/spec/spec-init.md'
|
|
353
|
+
);
|
|
354
|
+
await this.downloadManager.downloadFile(
|
|
355
|
+
`${this.repoUrl}/commands/spec/spec-brief.md`,
|
|
356
|
+
'.contextkit/commands/spec/spec-brief.md'
|
|
357
|
+
);
|
|
358
|
+
await this.downloadManager.downloadFile(
|
|
359
|
+
`${this.repoUrl}/commands/spec/spec-ux.md`,
|
|
360
|
+
'.contextkit/commands/spec/spec-ux.md'
|
|
361
|
+
);
|
|
362
|
+
await this.downloadManager.downloadFile(
|
|
363
|
+
`${this.repoUrl}/commands/spec/spec-data.md`,
|
|
364
|
+
'.contextkit/commands/spec/spec-data.md'
|
|
365
|
+
);
|
|
366
|
+
await this.downloadManager.downloadFile(
|
|
367
|
+
`${this.repoUrl}/commands/spec/spec-systems.md`,
|
|
368
|
+
'.contextkit/commands/spec/spec-systems.md'
|
|
369
|
+
);
|
|
370
|
+
await this.downloadManager.downloadFile(
|
|
371
|
+
`${this.repoUrl}/commands/spec/spec-planner.md`,
|
|
372
|
+
'.contextkit/commands/spec/spec-planner.md'
|
|
373
|
+
);
|
|
374
|
+
await this.downloadManager.downloadFile(
|
|
375
|
+
`${this.repoUrl}/commands/spec/spec-challenge.md`,
|
|
376
|
+
'.contextkit/commands/spec/spec-challenge.md'
|
|
377
|
+
);
|
|
378
|
+
await this.downloadManager.downloadFile(
|
|
379
|
+
`${this.repoUrl}/commands/spec/spec-author.md`,
|
|
380
|
+
'.contextkit/commands/spec/spec-author.md'
|
|
381
|
+
);
|
|
382
|
+
|
|
349
383
|
// Download doc family commands
|
|
350
384
|
await this.downloadManager.downloadFile(
|
|
351
385
|
`${this.repoUrl}/commands/docs/doc-arch.md`,
|
|
@@ -464,7 +498,6 @@ paths:
|
|
|
464
498
|
commands:
|
|
465
499
|
analyze: "${config.commands?.analyze || '@.contextkit/commands/dev/analyze.md'}"
|
|
466
500
|
review: "${config.commands?.review || '@.contextkit/commands/dev/review.md'}"
|
|
467
|
-
fix: "${config.commands?.fix || '@.contextkit/commands/dev/fix.md'}"
|
|
468
501
|
refactor: "${config.commands?.refactor || '@.contextkit/commands/dev/refactor.md'}"
|
|
469
502
|
run_tests: "${config.commands?.run_tests || '@.contextkit/commands/dev/run-tests.md'}"
|
|
470
503
|
add_docs: "${config.commands?.add_docs || '@.contextkit/commands/docs/add-documentation.md'}"
|
|
@@ -506,6 +539,8 @@ commands:
|
|
|
506
539
|
'.contextkit/commands/analyze.md',
|
|
507
540
|
'.contextkit/commands/review.md',
|
|
508
541
|
'.contextkit/commands/fix.md',
|
|
542
|
+
// Removed in 0.20.0 — /fix replaced by /squad for bug workflows
|
|
543
|
+
'.contextkit/commands/dev/fix.md',
|
|
509
544
|
'.contextkit/commands/refactor.md',
|
|
510
545
|
'.contextkit/commands/run-tests.md',
|
|
511
546
|
'.contextkit/commands/add-documentation.md',
|
|
@@ -13,7 +13,6 @@ class ClaudeIntegration extends BaseIntegration {
|
|
|
13
13
|
'.claude/rules/contextkit-code-style.md',
|
|
14
14
|
'.claude/skills/analyze/SKILL.md',
|
|
15
15
|
'.claude/skills/review/SKILL.md',
|
|
16
|
-
'.claude/skills/fix/SKILL.md',
|
|
17
16
|
'.claude/skills/refactor/SKILL.md',
|
|
18
17
|
'.claude/skills/test/SKILL.md',
|
|
19
18
|
'.claude/skills/doc/SKILL.md',
|
|
@@ -28,6 +27,7 @@ class ClaudeIntegration extends BaseIntegration {
|
|
|
28
27
|
'.claude/skills/squad-doc/SKILL.md',
|
|
29
28
|
'.claude/skills/squad-go/SKILL.md',
|
|
30
29
|
'.claude/skills/spec/SKILL.md',
|
|
30
|
+
'.claude/skills/spec-component/SKILL.md',
|
|
31
31
|
'.claude/skills/ck/SKILL.md',
|
|
32
32
|
'.claude/skills/doc-arch/SKILL.md',
|
|
33
33
|
'.claude/skills/doc-feature/SKILL.md',
|
|
@@ -86,7 +86,6 @@ class ClaudeIntegration extends BaseIntegration {
|
|
|
86
86
|
// Migrated to .claude/skills/ in 0.15.0
|
|
87
87
|
'.claude/commands/analyze.md',
|
|
88
88
|
'.claude/commands/review.md',
|
|
89
|
-
'.claude/commands/fix.md',
|
|
90
89
|
'.claude/commands/refactor.md',
|
|
91
90
|
'.claude/commands/test.md',
|
|
92
91
|
'.claude/commands/doc.md',
|
|
@@ -251,21 +250,6 @@ Review current changes for correctness, standards compliance, and potential issu
|
|
|
251
250
|
`
|
|
252
251
|
);
|
|
253
252
|
|
|
254
|
-
await this.writeGeneratedFile(
|
|
255
|
-
'.claude/skills/fix/SKILL.md',
|
|
256
|
-
`---
|
|
257
|
-
description: Diagnose root cause and implement a minimal bug fix with regression test
|
|
258
|
-
argument-hint: "<description of the bug>"
|
|
259
|
-
allowed-tools: Read, Edit, Write, Glob, Grep, Bash
|
|
260
|
-
effort: normal
|
|
261
|
-
---
|
|
262
|
-
|
|
263
|
-
Read \`.contextkit/commands/dev/fix.md\` and execute the bug fix workflow.
|
|
264
|
-
|
|
265
|
-
Diagnose the root cause, implement the minimal fix, and add a regression test.
|
|
266
|
-
`
|
|
267
|
-
);
|
|
268
|
-
|
|
269
253
|
await this.writeGeneratedFile(
|
|
270
254
|
'.claude/skills/refactor/SKILL.md',
|
|
271
255
|
`---
|
|
@@ -312,7 +296,7 @@ Add inline docs, README sections, and usage examples for the specified code.
|
|
|
312
296
|
);
|
|
313
297
|
|
|
314
298
|
await this.writeGeneratedFile(
|
|
315
|
-
'.claude/skills/spec/SKILL.md',
|
|
299
|
+
'.claude/skills/spec-component/SKILL.md',
|
|
316
300
|
`---
|
|
317
301
|
description: Write a component spec (MD-first) before coding begins
|
|
318
302
|
argument-hint: "<component or feature name>"
|
|
@@ -320,12 +304,28 @@ allowed-tools: Read, Write, Glob, Grep
|
|
|
320
304
|
effort: normal
|
|
321
305
|
---
|
|
322
306
|
|
|
323
|
-
Read \`.contextkit/commands/dev/spec.md\` and execute the spec workflow.
|
|
307
|
+
Read \`.contextkit/commands/dev/spec-component.md\` and execute the component spec workflow.
|
|
324
308
|
|
|
325
309
|
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.
|
|
326
310
|
`
|
|
327
311
|
);
|
|
328
312
|
|
|
313
|
+
await this.writeGeneratedFile(
|
|
314
|
+
'.claude/skills/spec/SKILL.md',
|
|
315
|
+
`---
|
|
316
|
+
description: Turn a product overview into an implementation-ready spec — UX flows, DB schema, API contracts, and build plan
|
|
317
|
+
argument-hint: "[scope-name] | --redo <scope> | --reset"
|
|
318
|
+
allowed-tools: Read, Write, Glob, Grep, Task
|
|
319
|
+
effort: high
|
|
320
|
+
context: fork
|
|
321
|
+
---
|
|
322
|
+
|
|
323
|
+
Read \`.contextkit/commands/spec/spec.md\` and execute the spec pipeline workflow.
|
|
324
|
+
|
|
325
|
+
Reads a product overview file, breaks it into logical scopes, and runs a multi-round pipeline for each scope: CTO briefs → 4 domain experts in parallel → CTO challenges → domain revisions → CTO authors final SPEC.md. Produces a structured \`spec/\` folder. Run once per scope — \`/spec\` picks up where you left off.
|
|
326
|
+
`
|
|
327
|
+
);
|
|
328
|
+
|
|
329
329
|
await this.writeGeneratedFile(
|
|
330
330
|
'.claude/skills/ck/SKILL.md',
|
|
331
331
|
`---
|
|
@@ -595,7 +595,6 @@ Load and apply the project's ContextKit standards before taking action in an age
|
|
|
595
595
|
console.log(chalk.dim(' Slash commands:'));
|
|
596
596
|
console.log(chalk.dim(' /analyze — Analyze project and generate standards'));
|
|
597
597
|
console.log(chalk.dim(' /review — Review current changes'));
|
|
598
|
-
console.log(chalk.dim(' /fix — Diagnose and fix a bug'));
|
|
599
598
|
console.log(chalk.dim(' /refactor — Refactor code structure'));
|
|
600
599
|
console.log(chalk.dim(' /test — Generate or run tests'));
|
|
601
600
|
console.log(chalk.dim(' /doc — Add documentation'));
|
|
@@ -14,7 +14,6 @@ class CursorIntegration extends BaseIntegration {
|
|
|
14
14
|
'.cursor/rules/contextkit-api.mdc',
|
|
15
15
|
'.cursor/prompts/analyze.md',
|
|
16
16
|
'.cursor/prompts/review.md',
|
|
17
|
-
'.cursor/prompts/fix.md',
|
|
18
17
|
'.cursor/prompts/refactor.md',
|
|
19
18
|
'.cursor/prompts/test.md',
|
|
20
19
|
'.cursor/prompts/doc.md',
|
|
@@ -179,16 +178,6 @@ Review current changes for correctness, standards compliance, and potential issu
|
|
|
179
178
|
`
|
|
180
179
|
);
|
|
181
180
|
|
|
182
|
-
await this.writeGeneratedFile(
|
|
183
|
-
'.cursor/prompts/fix.md',
|
|
184
|
-
`# Fix Bug
|
|
185
|
-
|
|
186
|
-
Read \`.contextkit/commands/dev/fix.md\` and execute the bug fix workflow.
|
|
187
|
-
|
|
188
|
-
Diagnose the root cause, implement the minimal fix, and add a regression test.
|
|
189
|
-
`
|
|
190
|
-
);
|
|
191
|
-
|
|
192
181
|
await this.writeGeneratedFile(
|
|
193
182
|
'.cursor/prompts/refactor.md',
|
|
194
183
|
`# Refactor
|
|
@@ -309,7 +298,6 @@ Check project setup, standards status, and integrations. Report what needs atten
|
|
|
309
298
|
console.log(chalk.dim(' Slash commands (in Cursor Chat):'));
|
|
310
299
|
console.log(chalk.dim(' /analyze — Analyze project and generate standards'));
|
|
311
300
|
console.log(chalk.dim(' /review — Review current changes'));
|
|
312
|
-
console.log(chalk.dim(' /fix — Diagnose and fix a bug'));
|
|
313
301
|
console.log(chalk.dim(' /refactor — Refactor code structure'));
|
|
314
302
|
console.log(chalk.dim(' /test — Generate or run tests'));
|
|
315
303
|
console.log(chalk.dim(' /doc — Add documentation'));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nolrm/contextkit",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "ContextKit - Context Engineering
|
|
3
|
+
"version": "0.21.0",
|
|
4
|
+
"description": "ContextKit - Context Engineering + Agentic AI Pipelines. Scaffold structured standards for AI assistants and run autonomous multi-role pipelines (PO → Architect → Dev → Test → Review → Doc) grounded by that same context layer. Works with Cursor, Claude Code, Copilot, Codex, Gemini, Aider, and more.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"contextkit": "bin/contextkit.js",
|
|
@@ -45,7 +45,14 @@
|
|
|
45
45
|
"structured-context",
|
|
46
46
|
"markdown-standards",
|
|
47
47
|
"project-standards",
|
|
48
|
-
"code-patterns"
|
|
48
|
+
"code-patterns",
|
|
49
|
+
"agentic-pipeline",
|
|
50
|
+
"agentic-ai",
|
|
51
|
+
"squad-workflow",
|
|
52
|
+
"ai-agents",
|
|
53
|
+
"autonomous-agents",
|
|
54
|
+
"multi-agent",
|
|
55
|
+
"claude-code"
|
|
49
56
|
],
|
|
50
57
|
"author": {
|
|
51
58
|
"name": "Marlon Maniti",
|