paqad-ai 0.2.2 → 0.3.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.
Files changed (39) hide show
  1. package/README.md +34 -1
  2. package/dist/cli/index.js +8647 -5148
  3. package/dist/cli/index.js.map +1 -1
  4. package/dist/index.d.ts +1073 -1
  5. package/dist/index.js +13031 -8729
  6. package/dist/index.js.map +1 -1
  7. package/package.json +1 -1
  8. package/runtime/base/skills/spec-quality-review/SKILL.md +56 -0
  9. package/runtime/base/skills/spec-quality-review/agents/openai.yaml +4 -0
  10. package/runtime/base/skills/spec-quality-review/references/spec-defect-checklist.md +8 -0
  11. package/runtime/capabilities/coding/stacks/angular/pack.yaml +4 -0
  12. package/runtime/capabilities/coding/stacks/astro/pack.yaml +4 -0
  13. package/runtime/capabilities/coding/stacks/django/pack.yaml +7 -0
  14. package/runtime/capabilities/coding/stacks/express/pack.yaml +4 -0
  15. package/runtime/capabilities/coding/stacks/fastapi/pack.yaml +7 -0
  16. package/runtime/capabilities/coding/stacks/flutter/pack.yaml +4 -0
  17. package/runtime/capabilities/coding/stacks/go-web/pack.yaml +5 -0
  18. package/runtime/capabilities/coding/stacks/go-web/rules/architecture.md +7 -0
  19. package/runtime/capabilities/coding/stacks/go-web/rules/documentation/guide.md +6 -0
  20. package/runtime/capabilities/coding/stacks/go-web/rules/environment.md +6 -0
  21. package/runtime/capabilities/coding/stacks/go-web/rules/foundation/guide.md +6 -0
  22. package/runtime/capabilities/coding/stacks/go-web/rules/performance/guide.md +7 -0
  23. package/runtime/capabilities/coding/stacks/go-web/rules/security/guide.md +7 -0
  24. package/runtime/capabilities/coding/stacks/laravel/pack.yaml +13 -0
  25. package/runtime/capabilities/coding/stacks/node-cli/pack.yaml +8 -0
  26. package/runtime/capabilities/coding/stacks/node-library/pack.yaml +8 -0
  27. package/runtime/capabilities/coding/stacks/node-service/pack.yaml +8 -0
  28. package/runtime/capabilities/coding/stacks/rails/pack.yaml +5 -0
  29. package/runtime/capabilities/coding/stacks/react/pack.yaml +10 -0
  30. package/runtime/capabilities/coding/stacks/rust-web/pack.yaml +4 -0
  31. package/runtime/capabilities/coding/stacks/rust-web/rules/architecture.md +7 -0
  32. package/runtime/capabilities/coding/stacks/rust-web/rules/documentation/guide.md +6 -0
  33. package/runtime/capabilities/coding/stacks/rust-web/rules/environment.md +6 -0
  34. package/runtime/capabilities/coding/stacks/rust-web/rules/foundation/guide.md +6 -0
  35. package/runtime/capabilities/coding/stacks/rust-web/rules/performance/guide.md +7 -0
  36. package/runtime/capabilities/coding/stacks/rust-web/rules/security/guide.md +7 -0
  37. package/runtime/capabilities/coding/stacks/spring-boot/pack.yaml +6 -0
  38. package/runtime/capabilities/coding/stacks/svelte/pack.yaml +4 -0
  39. package/runtime/capabilities/coding/stacks/vue/pack.yaml +10 -0
package/README.md CHANGED
@@ -63,10 +63,11 @@ npx paqad-ai onboard
63
63
  | **Documentation** | Stack, architecture, design-system, registry, and module documentation flows |
64
64
  | **Hybrid RAG** | Optional vector indexing, hybrid retrieval, reranking, evals, and benchmarks |
65
65
  | **Security** | OWASP-mapped pentest workflow with incremental retests |
66
+ | **Spec compliance** | Obligation extraction, test evidence checks, and failing skeleton generation |
66
67
  | **Built-in agent roles** | 20 internal specialist roles for routing, review, design, verification, and security |
67
68
  | **Context controls** | Chunking, scoring, dedup, summarization, and budget enforcement |
68
69
  | **Pack system** | Built-in and custom stack packs for framework-specific behavior |
69
- | **Operations** | `doctor`, `refresh`, `update`, `patterns`, and capability toggles |
70
+ | **Operations** | `doctor`, `compliance`, `refresh`, `update`, `patterns`, and capability toggles |
70
71
 
71
72
  ---
72
73
 
@@ -276,6 +277,19 @@ Conditional steps, parallel execution, failure handling (`abort` / `skip` / `ret
276
277
 
277
278
  Verified solutions stored globally at `~/.paqad/patterns/`. Scored by framework overlap + keyword match, staleness penalty after 180 days.
278
279
 
280
+ ### Spec compliance verification
281
+
282
+ Structured feature specs can be turned into executable obligation artifacts before implementation starts.
283
+
284
+ | Workflow | What it does |
285
+ | ------------------------- | --------------------------------------------------------------------------- |
286
+ | **Obligation extraction** | Parses structured Markdown specs into deterministic obligation indexes |
287
+ | **Compliance checking** | Scans tests for explicit obligation evidence and reports coverage gaps |
288
+ | **Skeleton generation** | Creates failing Vitest stubs from obligations before implementation begins |
289
+ | **Index doctoring** | Validates schema version and duplicate IDs before checks or skeleton output |
290
+
291
+ Compliance artifacts live under `.paqad/compliance/` and are designed so the durable module docs can outlive the original feature spec once the behavior is implemented.
292
+
279
293
  ### Health, refresh, and update workflows
280
294
 
281
295
  The operational side matters too: paqad-ai keeps generated artifacts and project state from quietly drifting.
@@ -285,6 +299,7 @@ The operational side matters too: paqad-ai keeps generated artifacts and project
285
299
  | **Doctor** | Validates framework artifacts, copied instructions, MCP config, docs, and RAG state |
286
300
  | **Refresh** | Re-detects stack and regenerates stack or design-system outputs |
287
301
  | **Update** | Rewrites framework-managed artifacts against the current package version |
302
+ | **Compliance** | Extracts spec obligations, checks evidence, generates skeletons, validates indexes |
288
303
  | **Capabilities** | Toggles active capability layers with dependency rules |
289
304
  | **Patterns** | Lists, prunes, and exports the global pattern library |
290
305
 
@@ -368,6 +383,22 @@ paqad-ai doctor
368
383
 
369
384
  Exits `1` on failure, `0` on pass.
370
385
 
386
+ ### `paqad-ai compliance`
387
+
388
+ Spec verification and test-evidence tooling.
389
+
390
+ ```bash
391
+ paqad-ai compliance extract --spec docs/features/spec-compliance-verification.md
392
+ paqad-ai compliance check
393
+ paqad-ai compliance review docs/features/spec-compliance-verification.md
394
+ paqad-ai compliance skeleton --out tests/compliance-skeletons
395
+ paqad-ai compliance doctor
396
+ paqad-ai compliance boundary
397
+ paqad-ai compliance patterns
398
+ ```
399
+
400
+ Use it to persist an obligation index, run spec-quality review, check tests for explicit `@obligation` evidence, generate failing Vitest skeletons, validate index/report health, and run boundary/pattern gap tooling before CI or review.
401
+
371
402
  ### `paqad-ai refresh`
372
403
 
373
404
  Re-detects stack and regenerates derived artifacts without full re-onboarding.
@@ -496,6 +527,7 @@ your-project/
496
527
  ├── rag.ignore.yaml # Optional RAG corpus include/exclude rules
497
528
  ├── secrets.env # Optional API keys for remote RAG providers
498
529
  ├── audit.log # Build, fallback, and provider mismatch events
530
+ ├── compliance/ # Obligation indexes and related compliance artifacts
499
531
  ├── doc-progress.json
500
532
  ├── pentest/runs/ # generated when pentest workflows run
501
533
  ├── session/ # Handoff, budget, dedup stats
@@ -515,6 +547,7 @@ Entry files stay thin. Knowledge lives in shared instruction bundles that extern
515
547
  | -------------------- | -------------------------------------- | --------------------------------------------------------- |
516
548
  | **Onboarding** | `paqad-ai onboard` | Detect stack → confirm → generate everything |
517
549
  | **Health check** | `paqad-ai doctor` | Validate artifacts, config, docs |
550
+ | **Spec compliance** | `paqad-ai compliance ...` | Extract obligations, check evidence, generate skeletons |
518
551
  | **Refresh** | `paqad-ai refresh` | Re-detect stack, update derived docs |
519
552
  | **Update** | `paqad-ai update` | Regenerate framework files after version bump |
520
553
  | **RAG** | `paqad-ai rag ...` | Build, inspect, clear, and benchmark hybrid retrieval |