@nolrm/contextkit 0.9.6 → 0.9.7

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
@@ -161,6 +161,7 @@ ContextKit installs reusable slash commands for supported platforms:
161
161
  | `/squad-review` | Review the full pipeline and give a verdict |
162
162
  | `/squad-batch` | Kick off multiple tasks at once (batch PO specs) |
163
163
  | `/squad-run` | Auto-run the remaining pipeline for batch tasks |
164
+ | `/ck` | Health check — verify setup, standards, and integrations |
164
165
 
165
166
  **Claude Code** — available as `/analyze`, `/review`, etc. in `.claude/commands/`
166
167
  **Cursor** — available as slash commands in Chat via `.cursor/prompts/`
@@ -638,6 +638,7 @@ Run \`ck analyze\` to generate this content, or manually add your API pattern be
638
638
  await this.createCorrectionsLog();
639
639
  await this.createMetaInstructions();
640
640
  await this.createPolicyFile();
641
+ await this.createHealthCheckCommand();
641
642
 
642
643
  // Install platform integrations
643
644
  await this.installPlatformIntegrations(detectedTools);
@@ -1461,6 +1462,58 @@ enforcement:
1461
1462
  console.log(chalk.green('✅ Policy file created'));
1462
1463
  }
1463
1464
 
1465
+ async createHealthCheckCommand() {
1466
+ const healthCheckContent = `# ContextKit Health Check
1467
+
1468
+ Check this project's ContextKit setup and report status.
1469
+
1470
+ ## Steps
1471
+
1472
+ 1. Check if \`.contextkit/\` directory exists. If not → STOP and tell user: "Run \`ck install\` to set up ContextKit."
1473
+
1474
+ 2. Read \`.contextkit/config.yml\` and check the \`last_analyzed\` field.
1475
+
1476
+ 3. Check each standards file for skeleton markers. Read these files and check if they contain \`<!-- Content will be generated by running: ck analyze -->\`:
1477
+ - \`.contextkit/standards/code-style.md\`
1478
+ - \`.contextkit/standards/testing.md\`
1479
+ - \`.contextkit/standards/architecture.md\`
1480
+ - \`.contextkit/standards/ai-guidelines.md\`
1481
+ - \`.contextkit/standards/workflows.md\`
1482
+ - \`.contextkit/standards/glossary.md\`
1483
+
1484
+ 4. Check product files for placeholder content (e.g., \`[ELEVATOR_PITCH_FROM_MISSION_MD]\`):
1485
+ - \`.contextkit/product/mission-lite.md\`
1486
+ - \`.contextkit/product/decisions.md\`
1487
+ - \`.contextkit/product/roadmap.md\`
1488
+
1489
+ 5. Check which platform integrations exist:
1490
+ - \`CLAUDE.md\` → Claude Code
1491
+ - \`.cursor/rules/\` → Cursor
1492
+ - \`AGENTS.md\` → Codex
1493
+ - \`GEMINI.md\` → Gemini
1494
+ - \`CONVENTIONS.md\` → Aider
1495
+ - \`.windsurfrules\` → Windsurf
1496
+ - \`.github/copilot-instructions.md\` → Copilot
1497
+
1498
+ 6. Report findings as a status summary table and list recommended next steps.
1499
+
1500
+ ## Output Format
1501
+
1502
+ | Area | Status | Action |
1503
+ |------|--------|--------|
1504
+ | Installation | OK/Missing | \`ck install\` |
1505
+ | Standards | Populated/Skeleton | \`ck analyze\` or \`/analyze\` |
1506
+ | Product context | Populated/Placeholder | Edit \`.contextkit/product/\` files |
1507
+ | Integrations | List active | \`ck <platform>\` to add more |
1508
+
1509
+ ## Token Note
1510
+
1511
+ If standards are still skeletons, warn that @imports in CLAUDE.md are loading empty files — wasting context tokens. Run \`/analyze\` to populate them.
1512
+ `;
1513
+
1514
+ await fs.writeFile('.contextkit/commands/health-check.md', healthCheckContent);
1515
+ }
1516
+
1464
1517
  showSuccessMessage(hookChoices, detectedTools = {}, projectType = '', packageManager = '') {
1465
1518
  console.log('');
1466
1519
  console.log(chalk.green('🎉 ContextKit v1.0.0 successfully installed!'));
@@ -24,6 +24,7 @@ class ClaudeIntegration extends BaseIntegration {
24
24
  '.claude/commands/squad-review.md',
25
25
  '.claude/commands/squad-batch.md',
26
26
  '.claude/commands/squad-run.md',
27
+ '.claude/commands/ck.md',
27
28
  ];
28
29
  this.platformDir = '.claude/rules';
29
30
  }
@@ -240,6 +241,13 @@ Create handoff files for multiple tasks and write PO specs for each one. Pass al
240
241
  Read \`.contextkit/commands/squad-run.md\` and execute the pipeline runner workflow.
241
242
 
242
243
  Process all batch tasks through the remaining pipeline steps (Architect, Dev, Test, Review) sequentially.
244
+ `);
245
+
246
+ await this.writeGeneratedFile('.claude/commands/ck.md', `# ContextKit Health Check
247
+
248
+ Read \`.contextkit/commands/health-check.md\` and execute the health check workflow.
249
+
250
+ Check project setup, standards status, and integrations. Report what needs attention.
243
251
  `);
244
252
  }
245
253
 
@@ -265,6 +273,9 @@ Process all batch tasks through the remaining pipeline steps (Architect, Dev, Te
265
273
  console.log(chalk.dim(' /squad-review — Review and write verdict'));
266
274
  console.log(chalk.dim(' /squad-batch — Batch kickoff: PO specs for multiple tasks'));
267
275
  console.log(chalk.dim(' /squad-run — Auto-run pipeline for batch tasks'));
276
+ console.log(chalk.dim(''));
277
+ console.log(chalk.dim(' Health check:'));
278
+ console.log(chalk.dim(' /ck — Check project setup and standards status'));
268
279
  }
269
280
  }
270
281
 
@@ -25,6 +25,7 @@ class CursorIntegration extends BaseIntegration {
25
25
  '.cursor/prompts/squad-review.md',
26
26
  '.cursor/prompts/squad-batch.md',
27
27
  '.cursor/prompts/squad-run.md',
28
+ '.cursor/prompts/ck.md',
28
29
  ];
29
30
  this.bridgeFiles = [];
30
31
  this.platformDir = '.cursor/rules';
@@ -248,6 +249,13 @@ Create handoff files for multiple tasks and write PO specs for each one. Pass al
248
249
  Read \`.contextkit/commands/squad-run.md\` and execute the pipeline runner workflow.
249
250
 
250
251
  Process all batch tasks through the remaining pipeline steps (Architect, Dev, Test, Review) sequentially.
252
+ `);
253
+
254
+ await this.writeGeneratedFile('.cursor/prompts/ck.md', `# ContextKit Health Check
255
+
256
+ Read \`.contextkit/commands/health-check.md\` and execute the health check workflow.
257
+
258
+ Check project setup, standards status, and integrations. Report what needs attention.
251
259
  `);
252
260
  }
253
261
 
@@ -272,6 +280,9 @@ Process all batch tasks through the remaining pipeline steps (Architect, Dev, Te
272
280
  console.log(chalk.dim(' /squad-review — Review and write verdict'));
273
281
  console.log(chalk.dim(' /squad-batch — Batch kickoff: PO specs for multiple tasks'));
274
282
  console.log(chalk.dim(' /squad-run — Auto-run pipeline for batch tasks'));
283
+ console.log(chalk.dim(''));
284
+ console.log(chalk.dim(' Health check:'));
285
+ console.log(chalk.dim(' /ck — Check project setup and standards status'));
275
286
  }
276
287
  }
277
288
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nolrm/contextkit",
3
- "version": "0.9.6",
3
+ "version": "0.9.7",
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": {