specdx 0.6.0 → 0.6.1

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "specdx",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "Spec-driven development skills for Claude Code",
5
5
  "author": {
6
6
  "name": "umxr",
package/README.md CHANGED
@@ -1,23 +1,48 @@
1
1
  # specdx
2
2
 
3
- > Keep AI coding sessions grounded in specs your team actually maintains.
3
+ > Find the stale parts of the documents your coding agent reads.
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/specdx)](https://www.npmjs.com/package/specdx)
6
6
  [![license](https://img.shields.io/npm/l/specdx)](LICENSE)
7
7
  [![CI](https://github.com/umxr/specdx/actions/workflows/ci.yml/badge.svg)](https://github.com/umxr/specdx/actions/workflows/ci.yml)
8
8
 
9
- specdx gives your PRDs, technical designs, user stories and API contracts a
10
- schema, lints them for the gaps an LLM will trip over, and packs the relevant
11
- ones into a token budget before you start coding. No LLM calls in the pipeline,
12
- no API key, deterministic enough to gate a pull request on.
9
+ specdx is a linter for the documents an AI coding agent reads: your `CLAUDE.md`
10
+ and `AGENTS.md` today, and a suite of specs if you keep one. No LLM calls in the
11
+ pipeline, no API key, deterministic enough to gate a pull request on.
12
+
13
+ ## Try it on a repo you already have
14
+
15
+ No install, no config. In any repository with a `CLAUDE.md` or an `AGENTS.md`:
13
16
 
14
17
  ```bash
15
- npm install -D specdx
18
+ npx specdx lint
19
+ ```
20
+
16
21
  ```
22
+ ⚠ warn AGENTS.md refers to "../VERSIONING.md", which does not exist. An agent
23
+ told to look there will not find it. (agents/stale-references)
24
+ AGENTS.md:134
25
+ ```
26
+
27
+ It checks that every path the file names still exists, that the file is
28
+ organised under headings, and that it fits a token budget. The first check is
29
+ the one that matters: an instruction file that points at a file which moved
30
+ sends every agent session to the wrong place.
17
31
 
18
- ## Quick start
32
+ The rule is tuned on the instruction files of twelve public repositories, and it
33
+ is not perfect. It leaves alone git refs, import specifiers, container images,
34
+ paths git ignores, and paths a line reports as removed. It cannot tell a deleted
35
+ file from one that exists only at run time, so read a finding before you act on
36
+ it. [More on what it checks](#linting-agentsmd-and-claudemd).
37
+
38
+ ## Add a spec suite
39
+
40
+ specdx also gives PRDs, technical designs, user stories and API contracts a
41
+ schema, lints them for the gaps an LLM will trip over, and packs the relevant
42
+ ones into a token budget before you start coding.
19
43
 
20
44
  ```bash
45
+ npm install -D specdx
21
46
  npx specdx init --template lightweight # scaffold specs/ and spec.config.yaml
22
47
  npx specdx lint # find the gaps
23
48
  ```
@@ -281,6 +306,13 @@ Accuracy feedback is what graduates these to stable.
281
306
 
282
307
  ## How it compares
283
308
 
309
+ **Spec Kit, BMAD, Kiro, OpenSpec** are workflows. They take you from an idea to
310
+ a spec to a task list, and an LLM writes most of it. specdx is not a workflow and
311
+ does not write specs. It is a check with no model in it, for the part those
312
+ tools leave to a second LLM pass: is this document still true, and is it fit to
313
+ build from. It reads its own spec format; it does not read a Spec Kit or Kiro
314
+ feature folder. The `CLAUDE.md` and `AGENTS.md` lint works beside any of them.
315
+
284
316
  **Markdown linters** (markdownlint, remark-lint) check formatting. specdx checks
285
317
  semantics: required sections by spec type, cross-reference validity, dependency
286
318
  cycles, downstream staleness.
@@ -1,8 +1,8 @@
1
1
  // package.json
2
2
  var package_default = {
3
3
  name: "specdx",
4
- version: "0.6.0",
5
- description: "Spec-driven development toolchain. Validate, lint, pack, and ship specs for LLM-assisted workflows.",
4
+ version: "0.6.1",
5
+ description: "Lint the documents your coding agent reads: CLAUDE.md, AGENTS.md and specs. Deterministic, no LLM calls, no config needed.",
6
6
  type: "module",
7
7
  license: "MIT",
8
8
  author: "Umar Gora (https://github.com/umxr)",
@@ -16,6 +16,9 @@ var package_default = {
16
16
  url: "https://github.com/umxr/specdx/issues"
17
17
  },
18
18
  keywords: [
19
+ "claude-md",
20
+ "agents-md",
21
+ "linter",
19
22
  "spec",
20
23
  "specification",
21
24
  "prd",
@@ -101,4 +104,4 @@ var package_default = {
101
104
  export {
102
105
  package_default
103
106
  };
104
- //# sourceMappingURL=chunk-QAJZCJUJ.js.map
107
+ //# sourceMappingURL=chunk-6S2OQMUH.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../package.json"],"sourcesContent":["{\n \"name\": \"specdx\",\n \"version\": \"0.6.1\",\n \"description\": \"Lint the documents your coding agent reads: CLAUDE.md, AGENTS.md and specs. Deterministic, no LLM calls, no config needed.\",\n \"type\": \"module\",\n \"license\": \"MIT\",\n \"author\": \"Umar Gora (https://github.com/umxr)\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/umxr/specdx.git\",\n \"directory\": \"packages/cli\"\n },\n \"homepage\": \"https://github.com/umxr/specdx#readme\",\n \"bugs\": {\n \"url\": \"https://github.com/umxr/specdx/issues\"\n },\n \"keywords\": [\n \"claude-md\",\n \"agents-md\",\n \"linter\",\n \"spec\",\n \"specification\",\n \"prd\",\n \"technical-design\",\n \"api-contract\",\n \"lint\",\n \"validation\",\n \"llm\",\n \"ai\",\n \"context-packing\",\n \"spec-driven-development\",\n \"claude-code\"\n ],\n \"engines\": {\n \"node\": \">=18.0.0\"\n },\n \"bin\": {\n \"specdx\": \"./dist/main.js\"\n },\n \"exports\": {\n \".\": {\n \"types\": \"./dist/index.d.ts\",\n \"import\": \"./dist/index.js\"\n }\n },\n \"files\": [\n \"dist\",\n \"skills\",\n \".claude-plugin\",\n \"hooks\",\n \"README.md\"\n ],\n \"scripts\": {\n \"build\": \"node ../../scripts/sync-plugin-skills.mjs && tsup\",\n \"typecheck\": \"tsc --noEmit\",\n \"test\": \"vitest run\",\n \"clean\": \"rm -rf dist *.tsbuildinfo\"\n },\n \"dependencies\": {\n \"@modelcontextprotocol/sdk\": \"^1.27.0\",\n \"ajv\": \"^8.18.0\",\n \"ajv-formats\": \"^3.0.1\",\n \"citty\": \"^0.2.1\",\n \"consola\": \"^3.4.0\",\n \"gray-matter\": \"^4.0.3\",\n \"js-tiktoken\": \"^1.0.18\",\n \"remark-parse\": \"^11.0.0\",\n \"tinyglobby\": \"^0.2.12\",\n \"unified\": \"^11.0.0\",\n \"unist-util-visit\": \"^5.0.0\",\n \"yaml\": \"^2.7.0\",\n \"zod\": \"^3.23.0\"\n },\n \"devDependencies\": {\n \"@specdx/check\": \"workspace:*\",\n \"@specdx/core\": \"workspace:*\",\n \"@specdx/diff\": \"workspace:*\",\n \"@specdx/lint\": \"workspace:*\",\n \"@specdx/mcp\": \"workspace:*\",\n \"@specdx/pack\": \"workspace:*\",\n \"@specdx/schema\": \"workspace:*\",\n \"@specdx/skills\": \"workspace:*\",\n \"tsup\": \"^8.5.1\",\n \"typescript\": \"^5.7.0\"\n },\n \"publishConfig\": {\n \"access\": \"public\"\n },\n \"peerDependencies\": {\n \"ts-morph\": \">=20\",\n \"@anthropic-ai/sdk\": \">=0.30\"\n },\n \"peerDependenciesMeta\": {\n \"ts-morph\": {\n \"optional\": true\n },\n \"@anthropic-ai/sdk\": {\n \"optional\": true\n }\n }\n}\n"],"mappings":";AAAA;AAAA,EACE,MAAQ;AAAA,EACR,SAAW;AAAA,EACX,aAAe;AAAA,EACf,MAAQ;AAAA,EACR,SAAW;AAAA,EACX,QAAU;AAAA,EACV,YAAc;AAAA,IACZ,MAAQ;AAAA,IACR,KAAO;AAAA,IACP,WAAa;AAAA,EACf;AAAA,EACA,UAAY;AAAA,EACZ,MAAQ;AAAA,IACN,KAAO;AAAA,EACT;AAAA,EACA,UAAY;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAAA,EACA,SAAW;AAAA,IACT,MAAQ;AAAA,EACV;AAAA,EACA,KAAO;AAAA,IACL,QAAU;AAAA,EACZ;AAAA,EACA,SAAW;AAAA,IACT,KAAK;AAAA,MACH,OAAS;AAAA,MACT,QAAU;AAAA,IACZ;AAAA,EACF;AAAA,EACA,OAAS;AAAA,IACP;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAAA,EACA,SAAW;AAAA,IACT,OAAS;AAAA,IACT,WAAa;AAAA,IACb,MAAQ;AAAA,IACR,OAAS;AAAA,EACX;AAAA,EACA,cAAgB;AAAA,IACd,6BAA6B;AAAA,IAC7B,KAAO;AAAA,IACP,eAAe;AAAA,IACf,OAAS;AAAA,IACT,SAAW;AAAA,IACX,eAAe;AAAA,IACf,eAAe;AAAA,IACf,gBAAgB;AAAA,IAChB,YAAc;AAAA,IACd,SAAW;AAAA,IACX,oBAAoB;AAAA,IACpB,MAAQ;AAAA,IACR,KAAO;AAAA,EACT;AAAA,EACA,iBAAmB;AAAA,IACjB,iBAAiB;AAAA,IACjB,gBAAgB;AAAA,IAChB,gBAAgB;AAAA,IAChB,gBAAgB;AAAA,IAChB,eAAe;AAAA,IACf,gBAAgB;AAAA,IAChB,kBAAkB;AAAA,IAClB,kBAAkB;AAAA,IAClB,MAAQ;AAAA,IACR,YAAc;AAAA,EAChB;AAAA,EACA,eAAiB;AAAA,IACf,QAAU;AAAA,EACZ;AAAA,EACA,kBAAoB;AAAA,IAClB,YAAY;AAAA,IACZ,qBAAqB;AAAA,EACvB;AAAA,EACA,sBAAwB;AAAA,IACtB,YAAY;AAAA,MACV,UAAY;AAAA,IACd;AAAA,IACA,qBAAqB;AAAA,MACnB,UAAY;AAAA,IACd;AAAA,EACF;AACF;","names":[]}
@@ -173,13 +173,13 @@ var subCommands = {
173
173
  check: bucketed("check", () => import("./check-5EA2MTNN.js").then((m) => m.default)),
174
174
  ready: bucketed("ready", () => import("./ready-5OFSV2OD.js").then((m) => m.default)),
175
175
  update: bucketed("update", () => import("./update-NFXC45UT.js").then((m) => m.default)),
176
- generate: bucketed("generate", () => import("./generate-M6YKXUDE.js").then((m) => m.default)),
176
+ generate: bucketed("generate", () => import("./generate-PTDHGDR2.js").then((m) => m.default)),
177
177
  migrate: bucketed("migrate", () => import("./migrate-VASWPA3L.js").then((m) => m.default)),
178
- mcp: bucketed("mcp", () => import("./mcp-VQAYNJQ7.js").then((m) => m.default))
178
+ mcp: bucketed("mcp", () => import("./mcp-PIVG3LEF.js").then((m) => m.default))
179
179
  };
180
180
 
181
181
  export {
182
182
  labelled,
183
183
  subCommands
184
184
  };
185
- //# sourceMappingURL=chunk-BZL2XXMA.js.map
185
+ //# sourceMappingURL=chunk-WSLIO2ZD.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  labelled
3
- } from "./chunk-BZL2XXMA.js";
3
+ } from "./chunk-WSLIO2ZD.js";
4
4
  import "./chunk-XRWLPU24.js";
5
5
  import "./chunk-5WRI5ZAA.js";
6
6
 
@@ -18,4 +18,4 @@ var generate_default = defineCommand({
18
18
  export {
19
19
  generate_default as default
20
20
  };
21
- //# sourceMappingURL=generate-M6YKXUDE.js.map
21
+ //# sourceMappingURL=generate-PTDHGDR2.js.map
package/dist/main.js CHANGED
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  package_default
4
- } from "./chunk-QAJZCJUJ.js";
4
+ } from "./chunk-6S2OQMUH.js";
5
5
  import {
6
6
  subCommands
7
- } from "./chunk-BZL2XXMA.js";
7
+ } from "./chunk-WSLIO2ZD.js";
8
8
  import "./chunk-XRWLPU24.js";
9
9
  import "./chunk-5WRI5ZAA.js";
10
10
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  package_default
3
- } from "./chunk-QAJZCJUJ.js";
3
+ } from "./chunk-6S2OQMUH.js";
4
4
  import "./chunk-5WRI5ZAA.js";
5
5
 
6
6
  // src/commands/core/mcp.ts
@@ -32,4 +32,4 @@ var mcp_default = defineCommand({
32
32
  export {
33
33
  mcp_default as default
34
34
  };
35
- //# sourceMappingURL=mcp-VQAYNJQ7.js.map
35
+ //# sourceMappingURL=mcp-PIVG3LEF.js.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "specdx",
3
- "version": "0.6.0",
4
- "description": "Spec-driven development toolchain. Validate, lint, pack, and ship specs for LLM-assisted workflows.",
3
+ "version": "0.6.1",
4
+ "description": "Lint the documents your coding agent reads: CLAUDE.md, AGENTS.md and specs. Deterministic, no LLM calls, no config needed.",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "author": "Umar Gora (https://github.com/umxr)",
@@ -15,6 +15,9 @@
15
15
  "url": "https://github.com/umxr/specdx/issues"
16
16
  },
17
17
  "keywords": [
18
+ "claude-md",
19
+ "agents-md",
20
+ "linter",
18
21
  "spec",
19
22
  "specification",
20
23
  "prd",
@@ -65,14 +68,14 @@
65
68
  "devDependencies": {
66
69
  "tsup": "^8.5.1",
67
70
  "typescript": "^5.7.0",
68
- "@specdx/core": "0.0.1",
71
+ "@specdx/check": "0.0.1",
69
72
  "@specdx/diff": "0.0.1",
70
- "@specdx/mcp": "0.0.1",
73
+ "@specdx/core": "0.0.1",
71
74
  "@specdx/lint": "0.1.0",
72
- "@specdx/check": "0.0.1",
75
+ "@specdx/mcp": "0.0.1",
73
76
  "@specdx/pack": "0.0.1",
74
- "@specdx/schema": "0.0.1",
75
- "@specdx/skills": "0.0.1"
77
+ "@specdx/skills": "0.0.1",
78
+ "@specdx/schema": "0.0.1"
76
79
  },
77
80
  "publishConfig": {
78
81
  "access": "public"
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../package.json"],"sourcesContent":["{\n \"name\": \"specdx\",\n \"version\": \"0.6.0\",\n \"description\": \"Spec-driven development toolchain. Validate, lint, pack, and ship specs for LLM-assisted workflows.\",\n \"type\": \"module\",\n \"license\": \"MIT\",\n \"author\": \"Umar Gora (https://github.com/umxr)\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/umxr/specdx.git\",\n \"directory\": \"packages/cli\"\n },\n \"homepage\": \"https://github.com/umxr/specdx#readme\",\n \"bugs\": {\n \"url\": \"https://github.com/umxr/specdx/issues\"\n },\n \"keywords\": [\n \"spec\",\n \"specification\",\n \"prd\",\n \"technical-design\",\n \"api-contract\",\n \"lint\",\n \"validation\",\n \"llm\",\n \"ai\",\n \"context-packing\",\n \"spec-driven-development\",\n \"claude-code\"\n ],\n \"engines\": {\n \"node\": \">=18.0.0\"\n },\n \"bin\": {\n \"specdx\": \"./dist/main.js\"\n },\n \"exports\": {\n \".\": {\n \"types\": \"./dist/index.d.ts\",\n \"import\": \"./dist/index.js\"\n }\n },\n \"files\": [\n \"dist\",\n \"skills\",\n \".claude-plugin\",\n \"hooks\",\n \"README.md\"\n ],\n \"scripts\": {\n \"build\": \"node ../../scripts/sync-plugin-skills.mjs && tsup\",\n \"typecheck\": \"tsc --noEmit\",\n \"test\": \"vitest run\",\n \"clean\": \"rm -rf dist *.tsbuildinfo\"\n },\n \"dependencies\": {\n \"@modelcontextprotocol/sdk\": \"^1.27.0\",\n \"ajv\": \"^8.18.0\",\n \"ajv-formats\": \"^3.0.1\",\n \"citty\": \"^0.2.1\",\n \"consola\": \"^3.4.0\",\n \"gray-matter\": \"^4.0.3\",\n \"js-tiktoken\": \"^1.0.18\",\n \"remark-parse\": \"^11.0.0\",\n \"tinyglobby\": \"^0.2.12\",\n \"unified\": \"^11.0.0\",\n \"unist-util-visit\": \"^5.0.0\",\n \"yaml\": \"^2.7.0\",\n \"zod\": \"^3.23.0\"\n },\n \"devDependencies\": {\n \"@specdx/check\": \"workspace:*\",\n \"@specdx/core\": \"workspace:*\",\n \"@specdx/diff\": \"workspace:*\",\n \"@specdx/lint\": \"workspace:*\",\n \"@specdx/mcp\": \"workspace:*\",\n \"@specdx/pack\": \"workspace:*\",\n \"@specdx/schema\": \"workspace:*\",\n \"@specdx/skills\": \"workspace:*\",\n \"tsup\": \"^8.5.1\",\n \"typescript\": \"^5.7.0\"\n },\n \"publishConfig\": {\n \"access\": \"public\"\n },\n \"peerDependencies\": {\n \"ts-morph\": \">=20\",\n \"@anthropic-ai/sdk\": \">=0.30\"\n },\n \"peerDependenciesMeta\": {\n \"ts-morph\": {\n \"optional\": true\n },\n \"@anthropic-ai/sdk\": {\n \"optional\": true\n }\n }\n}\n"],"mappings":";AAAA;AAAA,EACE,MAAQ;AAAA,EACR,SAAW;AAAA,EACX,aAAe;AAAA,EACf,MAAQ;AAAA,EACR,SAAW;AAAA,EACX,QAAU;AAAA,EACV,YAAc;AAAA,IACZ,MAAQ;AAAA,IACR,KAAO;AAAA,IACP,WAAa;AAAA,EACf;AAAA,EACA,UAAY;AAAA,EACZ,MAAQ;AAAA,IACN,KAAO;AAAA,EACT;AAAA,EACA,UAAY;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAAA,EACA,SAAW;AAAA,IACT,MAAQ;AAAA,EACV;AAAA,EACA,KAAO;AAAA,IACL,QAAU;AAAA,EACZ;AAAA,EACA,SAAW;AAAA,IACT,KAAK;AAAA,MACH,OAAS;AAAA,MACT,QAAU;AAAA,IACZ;AAAA,EACF;AAAA,EACA,OAAS;AAAA,IACP;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAAA,EACA,SAAW;AAAA,IACT,OAAS;AAAA,IACT,WAAa;AAAA,IACb,MAAQ;AAAA,IACR,OAAS;AAAA,EACX;AAAA,EACA,cAAgB;AAAA,IACd,6BAA6B;AAAA,IAC7B,KAAO;AAAA,IACP,eAAe;AAAA,IACf,OAAS;AAAA,IACT,SAAW;AAAA,IACX,eAAe;AAAA,IACf,eAAe;AAAA,IACf,gBAAgB;AAAA,IAChB,YAAc;AAAA,IACd,SAAW;AAAA,IACX,oBAAoB;AAAA,IACpB,MAAQ;AAAA,IACR,KAAO;AAAA,EACT;AAAA,EACA,iBAAmB;AAAA,IACjB,iBAAiB;AAAA,IACjB,gBAAgB;AAAA,IAChB,gBAAgB;AAAA,IAChB,gBAAgB;AAAA,IAChB,eAAe;AAAA,IACf,gBAAgB;AAAA,IAChB,kBAAkB;AAAA,IAClB,kBAAkB;AAAA,IAClB,MAAQ;AAAA,IACR,YAAc;AAAA,EAChB;AAAA,EACA,eAAiB;AAAA,IACf,QAAU;AAAA,EACZ;AAAA,EACA,kBAAoB;AAAA,IAClB,YAAY;AAAA,IACZ,qBAAqB;AAAA,EACvB;AAAA,EACA,sBAAwB;AAAA,IACtB,YAAY;AAAA,MACV,UAAY;AAAA,IACd;AAAA,IACA,qBAAqB;AAAA,MACnB,UAAY;AAAA,IACd;AAAA,EACF;AACF;","names":[]}