paqad-ai 0.0.5 → 0.1.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 (352) hide show
  1. package/README.md +167 -63
  2. package/dist/cli/index.js +8192 -3052
  3. package/dist/cli/index.js.map +1 -1
  4. package/dist/index.d.ts +1287 -147
  5. package/dist/index.js +10446 -3389
  6. package/dist/index.js.map +1 -1
  7. package/package.json +2 -2
  8. package/runtime/{domains/_shared → base}/agents/adversarial-reviewer.md +1 -1
  9. package/runtime/{domains/_shared → base}/agents/doc-maintainer.md +1 -1
  10. package/runtime/{domains/_shared → base}/agents/gap-detector.md +1 -1
  11. package/runtime/{domains/_shared → base}/agents/market-researcher.md +1 -1
  12. package/runtime/{domains/_shared → base}/agents/requirement-analyst.md +2 -2
  13. package/runtime/base/agents/router.md +49 -0
  14. package/runtime/{domains/_shared → base}/agents/story-designer.md +1 -1
  15. package/runtime/{domains/_shared → base}/agents/test-planner.md +1 -1
  16. package/runtime/base/rules/constitution.md +15 -0
  17. package/runtime/{domains/_shared → base}/rules/documentation.md +1 -1
  18. package/runtime/base/skills/acceptance-criteria-gen/SKILL.md +61 -0
  19. package/runtime/base/skills/acceptance-criteria-gen/agents/openai.yaml +3 -0
  20. package/runtime/base/skills/acceptance-criteria-gen/references/criteria-template.md +10 -0
  21. package/runtime/base/skills/adversarial-review/SKILL.md +65 -0
  22. package/runtime/base/skills/adversarial-review/agents/openai.yaml +3 -0
  23. package/runtime/base/skills/adversarial-review/references/review-dimensions.md +11 -0
  24. package/runtime/base/skills/api-doc-maintainer/SKILL.md +63 -0
  25. package/runtime/base/skills/api-doc-maintainer/agents/openai.yaml +3 -0
  26. package/runtime/base/skills/api-doc-maintainer/references/api-entry-requirements.md +10 -0
  27. package/runtime/base/skills/canonical-doc-sync/SKILL.md +65 -0
  28. package/runtime/base/skills/canonical-doc-sync/agents/openai.yaml +3 -0
  29. package/runtime/base/skills/canonical-doc-sync/references/drift-triage.md +9 -0
  30. package/runtime/base/skills/diff-doc-sync/SKILL.md +66 -0
  31. package/runtime/base/skills/diff-doc-sync/agents/openai.yaml +3 -0
  32. package/runtime/base/skills/diff-doc-sync/references/diff-sync-rules.md +5 -0
  33. package/runtime/base/skills/documentation-workflow/SKILL.md +64 -0
  34. package/runtime/base/skills/documentation-workflow/agents/openai.yaml +4 -0
  35. package/runtime/base/skills/documentation-workflow/references/workflow-stages.md +9 -0
  36. package/runtime/base/skills/edge-case-detection/SKILL.md +61 -0
  37. package/runtime/base/skills/edge-case-detection/agents/openai.yaml +3 -0
  38. package/runtime/base/skills/edge-case-detection/references/edge-case-categories.md +10 -0
  39. package/runtime/base/skills/error-catalog-maintainer/SKILL.md +62 -0
  40. package/runtime/base/skills/error-catalog-maintainer/agents/openai.yaml +3 -0
  41. package/runtime/base/skills/error-catalog-maintainer/references/error-entry-fields.md +11 -0
  42. package/runtime/base/skills/existing-doc-checker/SKILL.md +66 -0
  43. package/runtime/base/skills/existing-doc-checker/agents/openai.yaml +3 -0
  44. package/runtime/base/skills/existing-doc-checker/references/doc-scan-order.md +8 -0
  45. package/runtime/base/skills/glossary-maintainer/SKILL.md +63 -0
  46. package/runtime/base/skills/glossary-maintainer/agents/openai.yaml +3 -0
  47. package/runtime/base/skills/glossary-maintainer/references/term-guidelines.md +10 -0
  48. package/runtime/base/skills/integration-doc-maintainer/SKILL.md +62 -0
  49. package/runtime/base/skills/integration-doc-maintainer/agents/openai.yaml +3 -0
  50. package/runtime/base/skills/integration-doc-maintainer/references/integration-contract-fields.md +10 -0
  51. package/runtime/base/skills/request-classifier/SKILL.md +71 -0
  52. package/runtime/base/skills/request-classifier/agents/openai.yaml +3 -0
  53. package/runtime/base/skills/request-classifier/references/decision-rules.md +9 -0
  54. package/runtime/base/skills/requirement-enrichment/SKILL.md +61 -0
  55. package/runtime/base/skills/requirement-enrichment/agents/openai.yaml +3 -0
  56. package/runtime/base/skills/requirement-enrichment/references/enrichment-checklist.md +9 -0
  57. package/runtime/base/skills/scope-check/SKILL.md +63 -0
  58. package/runtime/base/skills/scope-check/agents/openai.yaml +3 -0
  59. package/runtime/base/skills/scope-check/references/scope-rules.md +5 -0
  60. package/runtime/base/skills/sequence-planner/SKILL.md +66 -0
  61. package/runtime/base/skills/sequence-planner/agents/openai.yaml +3 -0
  62. package/runtime/base/skills/sequence-planner/references/sequencing-rules.md +11 -0
  63. package/runtime/base/skills/session-resume/SKILL.md +69 -0
  64. package/runtime/base/skills/session-resume/agents/openai.yaml +3 -0
  65. package/runtime/base/skills/session-resume/references/resume-template.md +5 -0
  66. package/runtime/base/skills/spec-diff/SKILL.md +63 -0
  67. package/runtime/base/skills/spec-diff/agents/openai.yaml +3 -0
  68. package/runtime/base/skills/spec-diff/references/spec-diff-rules.md +5 -0
  69. package/runtime/base/skills/story-and-solution-writer/SKILL.md +65 -0
  70. package/runtime/base/skills/story-and-solution-writer/agents/openai.yaml +3 -0
  71. package/runtime/base/skills/story-and-solution-writer/references/story-template.md +10 -0
  72. package/runtime/base/skills/test-per-ac-planner/SKILL.md +61 -0
  73. package/runtime/base/skills/test-per-ac-planner/agents/openai.yaml +3 -0
  74. package/runtime/base/skills/test-per-ac-planner/references/verification-mapping.md +8 -0
  75. package/runtime/{domains → capabilities}/coding/agents/database-expert.md +1 -1
  76. package/runtime/{domains → capabilities}/coding/agents/solution-architect.md +1 -1
  77. package/runtime/capabilities/coding/skills/database-design-review/SKILL.md +64 -0
  78. package/runtime/capabilities/coding/skills/database-design-review/agents/openai.yaml +3 -0
  79. package/runtime/capabilities/coding/skills/database-design-review/references/database-review-rubric.md +7 -0
  80. package/runtime/capabilities/coding/skills/index-optimization/SKILL.md +64 -0
  81. package/runtime/capabilities/coding/skills/index-optimization/agents/openai.yaml +3 -0
  82. package/runtime/capabilities/coding/skills/index-optimization/references/index-review-guide.md +10 -0
  83. package/runtime/capabilities/coding/skills/query-pattern-analysis/SKILL.md +63 -0
  84. package/runtime/capabilities/coding/skills/query-pattern-analysis/agents/openai.yaml +3 -0
  85. package/runtime/capabilities/coding/skills/query-pattern-analysis/references/query-risk-guide.md +8 -0
  86. package/runtime/capabilities/coding/skills/root-cause-analysis/SKILL.md +59 -0
  87. package/runtime/capabilities/coding/skills/root-cause-analysis/agents/openai.yaml +3 -0
  88. package/runtime/capabilities/coding/skills/root-cause-analysis/references/rca-sections.md +15 -0
  89. package/runtime/capabilities/coding/skills/ui-doc-maintainer/SKILL.md +64 -0
  90. package/runtime/capabilities/coding/skills/ui-doc-maintainer/agents/openai.yaml +3 -0
  91. package/runtime/capabilities/coding/skills/ui-doc-maintainer/references/ui-doc-fields.md +9 -0
  92. package/runtime/capabilities/coding/skills/user-flow-generation/SKILL.md +64 -0
  93. package/runtime/capabilities/coding/skills/user-flow-generation/agents/openai.yaml +3 -0
  94. package/runtime/capabilities/coding/skills/user-flow-generation/references/user-flow-sections.md +9 -0
  95. package/runtime/capabilities/coding/skills/ux-design-research/SKILL.md +64 -0
  96. package/runtime/capabilities/coding/skills/ux-design-research/agents/openai.yaml +3 -0
  97. package/runtime/capabilities/coding/skills/ux-design-research/references/research-capture-format.md +9 -0
  98. package/runtime/capabilities/coding/skills/ux-heuristic-evaluation/SKILL.md +64 -0
  99. package/runtime/capabilities/coding/skills/ux-heuristic-evaluation/agents/openai.yaml +3 -0
  100. package/runtime/capabilities/coding/skills/ux-heuristic-evaluation/references/heuristic-rubric.md +10 -0
  101. package/runtime/capabilities/coding/skills/ux-state-machine/SKILL.md +64 -0
  102. package/runtime/capabilities/coding/skills/ux-state-machine/agents/openai.yaml +3 -0
  103. package/runtime/capabilities/coding/skills/ux-state-machine/references/state-inventory-template.md +9 -0
  104. package/runtime/capabilities/coding/stacks/_shared/skills/regression-test-gen/SKILL.md +64 -0
  105. package/runtime/capabilities/coding/stacks/_shared/skills/regression-test-gen/agents/openai.yaml +3 -0
  106. package/runtime/capabilities/coding/stacks/_shared/skills/regression-test-gen/references/regression-layer-map.md +8 -0
  107. package/runtime/capabilities/coding/stacks/angular/pack.yaml +44 -0
  108. package/runtime/capabilities/coding/stacks/angular/references/tools/security-review-checklist.md +7 -0
  109. package/runtime/capabilities/coding/stacks/angular/references/tools/testing.md +16 -0
  110. package/runtime/capabilities/coding/stacks/angular/references/tools-catalog.md +4 -0
  111. package/runtime/capabilities/coding/stacks/angular/rules/conventions.md +4 -0
  112. package/runtime/capabilities/coding/stacks/astro/pack.yaml +44 -0
  113. package/runtime/capabilities/coding/stacks/astro/references/tools/security-review-checklist.md +7 -0
  114. package/runtime/capabilities/coding/stacks/astro/references/tools/testing.md +17 -0
  115. package/runtime/capabilities/coding/stacks/astro/references/tools-catalog.md +4 -0
  116. package/runtime/capabilities/coding/stacks/astro/rules/conventions.md +4 -0
  117. package/runtime/capabilities/coding/stacks/django/pack.yaml +44 -0
  118. package/runtime/capabilities/coding/stacks/django/references/tools/security-review-checklist.md +7 -0
  119. package/runtime/capabilities/coding/stacks/django/references/tools/testing.md +16 -0
  120. package/runtime/capabilities/coding/stacks/django/references/tools-catalog.md +4 -0
  121. package/runtime/capabilities/coding/stacks/django/rules/conventions.md +4 -0
  122. package/runtime/capabilities/coding/stacks/express/pack.yaml +44 -0
  123. package/runtime/capabilities/coding/stacks/express/references/tools/security-review-checklist.md +7 -0
  124. package/runtime/capabilities/coding/stacks/express/references/tools/testing.md +16 -0
  125. package/runtime/capabilities/coding/stacks/express/references/tools-catalog.md +4 -0
  126. package/runtime/capabilities/coding/stacks/express/rules/conventions.md +4 -0
  127. package/runtime/capabilities/coding/stacks/fastapi/pack.yaml +44 -0
  128. package/runtime/capabilities/coding/stacks/fastapi/references/tools/security-review-checklist.md +7 -0
  129. package/runtime/capabilities/coding/stacks/fastapi/references/tools/testing.md +16 -0
  130. package/runtime/capabilities/coding/stacks/fastapi/references/tools-catalog.md +4 -0
  131. package/runtime/capabilities/coding/stacks/fastapi/rules/conventions.md +4 -0
  132. package/runtime/capabilities/coding/stacks/flutter/pack.yaml +46 -0
  133. package/runtime/{domains → capabilities}/coding/stacks/flutter/references/tools/flutter-quality-gate.md +4 -0
  134. package/runtime/capabilities/coding/stacks/go-web/pack.yaml +44 -0
  135. package/runtime/capabilities/coding/stacks/go-web/references/tools/security-review-checklist.md +7 -0
  136. package/runtime/capabilities/coding/stacks/go-web/references/tools/testing.md +16 -0
  137. package/runtime/capabilities/coding/stacks/go-web/references/tools-catalog.md +4 -0
  138. package/runtime/capabilities/coding/stacks/go-web/rules/conventions.md +4 -0
  139. package/runtime/capabilities/coding/stacks/laravel/capabilities/boost/mcp/boost-mcp.md +3 -0
  140. package/runtime/capabilities/coding/stacks/laravel/capabilities/boost/rules/boost.md +10 -0
  141. package/runtime/capabilities/coding/stacks/laravel/capabilities/inertia/rules/inertia.md +12 -0
  142. package/runtime/capabilities/coding/stacks/laravel/capabilities/react/rules/react.md +12 -0
  143. package/runtime/capabilities/coding/stacks/laravel/capabilities/tailwind/rules/tailwind.md +11 -0
  144. package/runtime/capabilities/coding/stacks/laravel/capabilities/vue/rules/vue.md +15 -0
  145. package/runtime/capabilities/coding/stacks/laravel/pack.yaml +93 -0
  146. package/runtime/{domains → capabilities}/coding/stacks/laravel/references/tools/artisan.md +2 -0
  147. package/runtime/{domains → capabilities}/coding/stacks/laravel/references/tools/sail.md +1 -0
  148. package/runtime/capabilities/coding/stacks/laravel/references/tools/security-review-checklist.md +6 -0
  149. package/runtime/{domains → capabilities}/coding/stacks/laravel/references/tools/testing.md +2 -0
  150. package/runtime/{domains → capabilities}/coding/stacks/laravel/references/tools-catalog.md +1 -0
  151. package/runtime/capabilities/coding/stacks/rails/pack.yaml +44 -0
  152. package/runtime/capabilities/coding/stacks/rails/references/tools/security-review-checklist.md +7 -0
  153. package/runtime/capabilities/coding/stacks/rails/references/tools/testing.md +15 -0
  154. package/runtime/capabilities/coding/stacks/rails/references/tools-catalog.md +4 -0
  155. package/runtime/capabilities/coding/stacks/rails/rules/conventions.md +4 -0
  156. package/runtime/capabilities/coding/stacks/react/capabilities/gatsby/rules/gatsby.md +7 -0
  157. package/runtime/capabilities/coding/stacks/react/capabilities/next/rules/next.md +7 -0
  158. package/runtime/capabilities/coding/stacks/react/capabilities/remix/rules/remix.md +7 -0
  159. package/runtime/capabilities/coding/stacks/react/capabilities/vite-spa/rules/vite-spa.md +7 -0
  160. package/runtime/capabilities/coding/stacks/react/pack.yaml +83 -0
  161. package/runtime/capabilities/coding/stacks/react/references/tools/code-quality.md +10 -0
  162. package/runtime/capabilities/coding/stacks/react/references/tools/package-manager.md +10 -0
  163. package/runtime/capabilities/coding/stacks/react/references/tools/playwright.md +10 -0
  164. package/runtime/capabilities/coding/stacks/react/references/tools/security-review-checklist.md +6 -0
  165. package/runtime/capabilities/coding/stacks/react/references/tools/testing.md +16 -0
  166. package/runtime/capabilities/coding/stacks/react/references/tools-catalog.md +7 -0
  167. package/runtime/capabilities/coding/stacks/react/rules/architecture.md +7 -0
  168. package/runtime/capabilities/coding/stacks/react/rules/conventions/guide.md +4 -0
  169. package/runtime/capabilities/coding/stacks/react/rules/documentation/guide.md +4 -0
  170. package/runtime/capabilities/coding/stacks/react/rules/environment.md +7 -0
  171. package/runtime/capabilities/coding/stacks/react/rules/foundation/guide.md +4 -0
  172. package/runtime/capabilities/coding/stacks/react/rules/localization.md +7 -0
  173. package/runtime/capabilities/coding/stacks/react/rules/modules.md +7 -0
  174. package/runtime/capabilities/coding/stacks/react/rules/performance/guide.md +4 -0
  175. package/runtime/capabilities/coding/stacks/react/rules/security/guide.md +4 -0
  176. package/runtime/capabilities/coding/stacks/react/rules/testing/guide.md +4 -0
  177. package/runtime/capabilities/coding/stacks/react/rules/ui-safety.md +7 -0
  178. package/runtime/capabilities/coding/stacks/rust-web/pack.yaml +44 -0
  179. package/runtime/capabilities/coding/stacks/rust-web/references/tools/security-review-checklist.md +7 -0
  180. package/runtime/capabilities/coding/stacks/rust-web/references/tools/testing.md +16 -0
  181. package/runtime/capabilities/coding/stacks/rust-web/references/tools-catalog.md +4 -0
  182. package/runtime/capabilities/coding/stacks/rust-web/rules/conventions.md +4 -0
  183. package/runtime/capabilities/coding/stacks/spring-boot/pack.yaml +44 -0
  184. package/runtime/capabilities/coding/stacks/spring-boot/references/tools/security-review-checklist.md +7 -0
  185. package/runtime/capabilities/coding/stacks/spring-boot/references/tools/testing.md +21 -0
  186. package/runtime/capabilities/coding/stacks/spring-boot/references/tools-catalog.md +4 -0
  187. package/runtime/capabilities/coding/stacks/spring-boot/rules/conventions.md +4 -0
  188. package/runtime/capabilities/coding/stacks/svelte/pack.yaml +44 -0
  189. package/runtime/capabilities/coding/stacks/svelte/references/tools/security-review-checklist.md +7 -0
  190. package/runtime/capabilities/coding/stacks/svelte/references/tools/testing.md +16 -0
  191. package/runtime/capabilities/coding/stacks/svelte/references/tools-catalog.md +4 -0
  192. package/runtime/capabilities/coding/stacks/svelte/rules/conventions.md +4 -0
  193. package/runtime/capabilities/coding/stacks/vue/capabilities/nuxt/rules/nuxt.md +7 -0
  194. package/runtime/capabilities/coding/stacks/vue/capabilities/quasar/rules/quasar.md +7 -0
  195. package/runtime/capabilities/coding/stacks/vue/capabilities/vite-spa/rules/vite-spa.md +7 -0
  196. package/runtime/capabilities/coding/stacks/vue/pack.yaml +78 -0
  197. package/runtime/capabilities/coding/stacks/vue/references/tools/code-quality.md +10 -0
  198. package/runtime/capabilities/coding/stacks/vue/references/tools/package-manager.md +10 -0
  199. package/runtime/capabilities/coding/stacks/vue/references/tools/playwright.md +10 -0
  200. package/runtime/capabilities/coding/stacks/vue/references/tools/security-review-checklist.md +6 -0
  201. package/runtime/capabilities/coding/stacks/vue/references/tools/testing.md +16 -0
  202. package/runtime/capabilities/coding/stacks/vue/references/tools-catalog.md +7 -0
  203. package/runtime/capabilities/coding/stacks/vue/rules/architecture.md +7 -0
  204. package/runtime/capabilities/coding/stacks/vue/rules/conventions/guide.md +4 -0
  205. package/runtime/capabilities/coding/stacks/vue/rules/documentation/guide.md +4 -0
  206. package/runtime/capabilities/coding/stacks/vue/rules/environment.md +7 -0
  207. package/runtime/capabilities/coding/stacks/vue/rules/foundation/guide.md +4 -0
  208. package/runtime/capabilities/coding/stacks/vue/rules/localization.md +7 -0
  209. package/runtime/capabilities/coding/stacks/vue/rules/modules.md +7 -0
  210. package/runtime/capabilities/coding/stacks/vue/rules/performance/guide.md +4 -0
  211. package/runtime/capabilities/coding/stacks/vue/rules/security/guide.md +4 -0
  212. package/runtime/capabilities/coding/stacks/vue/rules/testing/guide.md +4 -0
  213. package/runtime/capabilities/coding/stacks/vue/rules/ui-safety.md +7 -0
  214. package/runtime/capabilities/content/rules/attribution.md +5 -0
  215. package/runtime/capabilities/content/rules/code-snippets.md +6 -0
  216. package/runtime/capabilities/content/rules/markdown.md +6 -0
  217. package/runtime/capabilities/content/rules/writing.md +9 -0
  218. package/runtime/capabilities/content/skills/content-planner/SKILL.md +6 -0
  219. package/runtime/capabilities/content/skills/content-reviewer/SKILL.md +6 -0
  220. package/runtime/capabilities/content/skills/content-writer/SKILL.md +7 -0
  221. package/runtime/capabilities/content/skills/script-writer/SKILL.md +6 -0
  222. package/runtime/capabilities/content/skills/seo-optimizer/SKILL.md +6 -0
  223. package/runtime/capabilities/content/skills/style-enforcer/SKILL.md +6 -0
  224. package/runtime/capabilities/security/skills/business-logic-abuse-review/SKILL.md +61 -0
  225. package/runtime/capabilities/security/skills/business-logic-abuse-review/agents/openai.yaml +3 -0
  226. package/runtime/capabilities/security/skills/business-logic-abuse-review/references/abuse-cases.md +7 -0
  227. package/runtime/capabilities/security/skills/dependency-advisory-triage/SKILL.md +63 -0
  228. package/runtime/capabilities/security/skills/dependency-advisory-triage/agents/openai.yaml +3 -0
  229. package/runtime/capabilities/security/skills/dependency-advisory-triage/references/advisory-normalization.md +5 -0
  230. package/runtime/capabilities/security/skills/finding-normalizer/SKILL.md +56 -0
  231. package/runtime/capabilities/security/skills/finding-normalizer/agents/openai.yaml +3 -0
  232. package/runtime/capabilities/security/skills/finding-normalizer/references/finding-fields.md +5 -0
  233. package/runtime/capabilities/security/skills/permission-boundary-review/SKILL.md +62 -0
  234. package/runtime/capabilities/security/skills/permission-boundary-review/agents/openai.yaml +3 -0
  235. package/runtime/capabilities/security/skills/permission-boundary-review/references/boundary-checklist.md +5 -0
  236. package/runtime/capabilities/security/skills/retest-verification/SKILL.md +60 -0
  237. package/runtime/capabilities/security/skills/retest-verification/agents/openai.yaml +3 -0
  238. package/runtime/capabilities/security/skills/retest-verification/references/retest-status-rules.md +5 -0
  239. package/runtime/capabilities/security/skills/runtime-surface-probing/SKILL.md +59 -0
  240. package/runtime/capabilities/security/skills/runtime-surface-probing/agents/openai.yaml +3 -0
  241. package/runtime/capabilities/security/skills/runtime-surface-probing/references/runtime-surface-checks.md +5 -0
  242. package/runtime/hooks/context-budget-check.sh +29 -0
  243. package/runtime/hooks/conversation-summarize.sh +24 -0
  244. package/runtime/hooks/post-destructive-approved.sh +31 -0
  245. package/runtime/hooks/pre-compact-preserve.mjs +21 -0
  246. package/runtime/hooks/pre-compact-preserve.sh +1 -12
  247. package/runtime/hooks/reset-doc-progress.sh +51 -0
  248. package/runtime/hooks/skill-index-gen.mjs +51 -0
  249. package/runtime/hooks/stale-doc-detector.sh +44 -0
  250. package/runtime/templates/agent-configs/agents.md.hbs +3 -1
  251. package/runtime/templates/agent-configs/claude.md.hbs +3 -1
  252. package/runtime/templates/agent-configs/gemini.md.hbs +3 -1
  253. package/runtime/templates/agent-configs/junie.md.hbs +3 -2
  254. package/runtime/templates/runner-scripts/analyze-context-hits.sh.hbs +1 -1
  255. package/runtime/templates/runner-scripts/pentest-audit-dependencies.sh.hbs +33 -0
  256. package/runtime/templates/runner-scripts/pentest-db-readonly.sh.hbs +35 -0
  257. package/runtime/templates/runner-scripts/pentest-enumerate-surface.sh.hbs +45 -0
  258. package/runtime/templates/runner-scripts/pentest-retest.sh.hbs +32 -0
  259. package/runtime/templates/runner-scripts/pentest-runtime-checks.sh.hbs +53 -0
  260. package/runtime/templates/runner-scripts/pentest-scan-secrets.sh.hbs +38 -0
  261. package/runtime/templates/runner-scripts/refresh-registry-diff.sh.hbs +1 -1
  262. package/runtime/domains/_shared/agents/router.md +0 -18
  263. package/runtime/domains/_shared/rules/constitution.md +0 -11
  264. package/runtime/domains/_shared/skills/acceptance-criteria-gen/SKILL.md +0 -21
  265. package/runtime/domains/_shared/skills/adversarial-review/SKILL.md +0 -21
  266. package/runtime/domains/_shared/skills/api-doc-maintainer/SKILL.md +0 -38
  267. package/runtime/domains/_shared/skills/canonical-doc-sync/SKILL.md +0 -23
  268. package/runtime/domains/_shared/skills/documentation-workflow/SKILL.md +0 -28
  269. package/runtime/domains/_shared/skills/edge-case-detection/SKILL.md +0 -21
  270. package/runtime/domains/_shared/skills/error-catalog-maintainer/SKILL.md +0 -39
  271. package/runtime/domains/_shared/skills/existing-doc-checker/SKILL.md +0 -23
  272. package/runtime/domains/_shared/skills/glossary-maintainer/SKILL.md +0 -23
  273. package/runtime/domains/_shared/skills/integration-doc-maintainer/SKILL.md +0 -38
  274. package/runtime/domains/_shared/skills/request-classifier/SKILL.md +0 -21
  275. package/runtime/domains/_shared/skills/requirement-enrichment/SKILL.md +0 -21
  276. package/runtime/domains/_shared/skills/sequence-planner/SKILL.md +0 -21
  277. package/runtime/domains/_shared/skills/story-and-solution-writer/SKILL.md +0 -21
  278. package/runtime/domains/_shared/skills/test-per-ac-planner/SKILL.md +0 -21
  279. package/runtime/domains/coding/skills/database-design-review/SKILL.md +0 -24
  280. package/runtime/domains/coding/skills/index-optimization/SKILL.md +0 -24
  281. package/runtime/domains/coding/skills/query-pattern-analysis/SKILL.md +0 -23
  282. package/runtime/domains/coding/skills/ui-doc-maintainer/SKILL.md +0 -23
  283. package/runtime/domains/coding/skills/user-flow-generation/SKILL.md +0 -23
  284. package/runtime/domains/coding/skills/ux-design-research/SKILL.md +0 -22
  285. package/runtime/domains/coding/skills/ux-heuristic-evaluation/SKILL.md +0 -23
  286. package/runtime/domains/coding/skills/ux-state-machine/SKILL.md +0 -23
  287. package/runtime/domains/coding/stacks/_shared/skills/regression-test-gen/SKILL.md +0 -23
  288. /package/runtime/{domains/_shared → base}/agents/context-curator.md +0 -0
  289. /package/runtime/{domains/_shared → base}/agents/final-reviewer.md +0 -0
  290. /package/runtime/{domains/_shared → base}/agents/product-owner.md +0 -0
  291. /package/runtime/{domains/_shared → base}/agents/verifier.md +0 -0
  292. /package/runtime/{domains/_shared → base}/checklists/definition-of-done.md +0 -0
  293. /package/runtime/{domains/_shared → base}/checklists/definition-of-ready.md +0 -0
  294. /package/runtime/{domains/_shared → base}/checklists/human-escalation.md +0 -0
  295. /package/runtime/{domains/_shared → base}/rules/canonical-docs.md +0 -0
  296. /package/runtime/{domains/_shared → base}/rules/observability.md +0 -0
  297. /package/runtime/{domains/_shared → base}/rules/performance.md +0 -0
  298. /package/runtime/{domains/_shared → base}/rules/pipeline.md +0 -0
  299. /package/runtime/{domains/_shared → base}/rules/security.md +0 -0
  300. /package/runtime/{domains/_shared → base}/rules/testing.md +0 -0
  301. /package/runtime/{domains → capabilities}/coding/agents/ux-ui-analyst.md +0 -0
  302. /package/runtime/{domains → capabilities}/coding/benchmarks/patterns/authentication-flows.md +0 -0
  303. /package/runtime/{domains → capabilities}/coding/benchmarks/patterns/empty-states.md +0 -0
  304. /package/runtime/{domains → capabilities}/coding/benchmarks/patterns/error-handling.md +0 -0
  305. /package/runtime/{domains → capabilities}/coding/benchmarks/patterns/form-patterns.md +0 -0
  306. /package/runtime/{domains → capabilities}/coding/benchmarks/patterns/loading-patterns.md +0 -0
  307. /package/runtime/{domains → capabilities}/coding/benchmarks/patterns/navigation-patterns.md +0 -0
  308. /package/runtime/{domains → capabilities}/coding/benchmarks/patterns/search-patterns.md +0 -0
  309. /package/runtime/{domains → capabilities}/coding/benchmarks/patterns/table-data-display.md +0 -0
  310. /package/runtime/{domains → capabilities}/coding/checklists/database-review-20pt.md +0 -0
  311. /package/runtime/{domains → capabilities}/coding/checklists/edge-cases-coding.md +0 -0
  312. /package/runtime/{domains → capabilities}/coding/rules/architecture.md +0 -0
  313. /package/runtime/{domains → capabilities}/coding/rules/code-quality.md +0 -0
  314. /package/runtime/{domains → capabilities}/coding/rules/code-review.md +0 -0
  315. /package/runtime/{domains → capabilities}/coding/stacks/_shared/rules/api-design.md +0 -0
  316. /package/runtime/{domains → capabilities}/coding/stacks/_shared/rules/ci-cd.md +0 -0
  317. /package/runtime/{domains → capabilities}/coding/stacks/_shared/rules/environment.md +0 -0
  318. /package/runtime/{domains → capabilities}/coding/stacks/_shared/rules/git.md +0 -0
  319. /package/runtime/{domains → capabilities}/coding/stacks/flutter/mcp/dart-mcp-config.md +0 -0
  320. /package/runtime/{domains → capabilities}/coding/stacks/flutter/references/tools/easy-localization.md +0 -0
  321. /package/runtime/{domains → capabilities}/coding/stacks/flutter/references/tools/environment-loading.md +0 -0
  322. /package/runtime/{domains → capabilities}/coding/stacks/flutter/references/tools/playwright.md +0 -0
  323. /package/runtime/{domains → capabilities}/coding/stacks/flutter/references/tools/security-review-checklist.md +0 -0
  324. /package/runtime/{domains → capabilities}/coding/stacks/flutter/references/tools-catalog.md +0 -0
  325. /package/runtime/{domains → capabilities}/coding/stacks/flutter/rules/architecture.md +0 -0
  326. /package/runtime/{domains → capabilities}/coding/stacks/flutter/rules/conventions/guide.md +0 -0
  327. /package/runtime/{domains → capabilities}/coding/stacks/flutter/rules/database/guide.md +0 -0
  328. /package/runtime/{domains → capabilities}/coding/stacks/flutter/rules/documentation/guide.md +0 -0
  329. /package/runtime/{domains → capabilities}/coding/stacks/flutter/rules/environment.md +0 -0
  330. /package/runtime/{domains → capabilities}/coding/stacks/flutter/rules/foundation/guide.md +0 -0
  331. /package/runtime/{domains → capabilities}/coding/stacks/flutter/rules/localization.md +0 -0
  332. /package/runtime/{domains → capabilities}/coding/stacks/flutter/rules/performance/guide.md +0 -0
  333. /package/runtime/{domains → capabilities}/coding/stacks/flutter/rules/security/guide.md +0 -0
  334. /package/runtime/{domains → capabilities}/coding/stacks/flutter/rules/testing/guide.md +0 -0
  335. /package/runtime/{domains → capabilities}/coding/stacks/flutter/rules/theming.md +0 -0
  336. /package/runtime/{domains → capabilities}/coding/stacks/flutter/rules/ui-platform.md +0 -0
  337. /package/runtime/{domains → capabilities}/coding/stacks/laravel/mcp/boost-mcp-config.md +0 -0
  338. /package/runtime/{domains → capabilities}/coding/stacks/laravel/references/tools/boost.md +0 -0
  339. /package/runtime/{domains → capabilities}/coding/stacks/laravel/references/tools/code-quality.md +0 -0
  340. /package/runtime/{domains → capabilities}/coding/stacks/laravel/references/tools/playwright.md +0 -0
  341. /package/runtime/{domains → capabilities}/coding/stacks/laravel/rules/api.md +0 -0
  342. /package/runtime/{domains → capabilities}/coding/stacks/laravel/rules/conventions/guide.md +0 -0
  343. /package/runtime/{domains → capabilities}/coding/stacks/laravel/rules/database/guide.md +0 -0
  344. /package/runtime/{domains → capabilities}/coding/stacks/laravel/rules/documentation/guide.md +0 -0
  345. /package/runtime/{domains → capabilities}/coding/stacks/laravel/rules/foundation/guide.md +0 -0
  346. /package/runtime/{domains → capabilities}/coding/stacks/laravel/rules/laravel.md +0 -0
  347. /package/runtime/{domains → capabilities}/coding/stacks/laravel/rules/localization.md +0 -0
  348. /package/runtime/{domains → capabilities}/coding/stacks/laravel/rules/modules.md +0 -0
  349. /package/runtime/{domains → capabilities}/coding/stacks/laravel/rules/performance/guide.md +0 -0
  350. /package/runtime/{domains → capabilities}/coding/stacks/laravel/rules/security/guide.md +0 -0
  351. /package/runtime/{domains → capabilities}/coding/stacks/laravel/rules/testing/guide.md +0 -0
  352. /package/runtime/{domains → capabilities}/coding/stacks/laravel/rules/ui-safety.md +0 -0
package/README.md CHANGED
@@ -1,92 +1,105 @@
1
1
  # paqad-ai
2
2
 
3
- `paqad-ai` is a documentation-first AI agency framework for Laravel and Flutter workflows. It scaffolds project rules, documentation, registries, health checks, and agent-facing entry files so teams can run a consistent workflow across Claude Code, Codex CLI, Gemini CLI, and Junie.
3
+ 🚀 `paqad-ai` is a documentation-first AI workflow framework for capability-driven repositories. It scaffolds project rules, stack-aware docs, MCP configuration, health checks, and agent entry files so teams can work consistently across Claude Code, Codex CLI, Gemini CLI, and Junie.
4
4
 
5
- ## About paqad-ai
5
+ ## What It Solves
6
6
 
7
- Modern AI-assisted delivery breaks down when every repository invents its own prompts, rules, and folder conventions. `paqad-ai` standardizes that layer by generating framework-owned project artifacts that keep implementation, documentation, and verification aligned.
7
+ Modern AI-assisted delivery breaks down when every repository invents its own prompts, rules, and folder structure. `paqad-ai` standardizes that layer by generating framework-managed artifacts that keep implementation, documentation, and verification aligned.
8
8
 
9
- The framework is designed to help teams:
9
+ With `paqad-ai`, a repo can:
10
10
 
11
- - onboard projects into a repeatable AI workflow
12
- - keep project rules and architecture guidance visible to coding agents
13
- - generate structured documentation scaffolds instead of ad hoc notes
14
- - wire in stack-aware MCP defaults for supported environments
15
- - run health checks and refresh framework-managed artifacts safely
11
+ - onboard into a repeatable AI workflow
12
+ - keep architecture and rules visible to coding agents
13
+ - generate structured documentation instead of ad hoc notes
14
+ - wire stack-aware MCP defaults into supported adapters
15
+ - run health and refresh flows safely over framework-managed artifacts
16
16
 
17
- ## Supported Adapters
17
+ ## 🧩 Supported Adapters
18
18
 
19
- `paqad-ai` currently supports:
19
+ | Adapter | Status | Notes |
20
+ | ----------- | ------------ | ------------------------------------------------------- |
21
+ | Claude Code | ✅ Supported | Generates `CLAUDE.md` plus MCP config |
22
+ | Codex CLI | ✅ Supported | Generates `AGENTS.md` plus MCP config |
23
+ | Gemini CLI | ✅ Supported | Generates `GEMINI.md` plus MCP config |
24
+ | Junie | ✅ Supported | Limited to `.junie/AGENTS.md` and `.junie/mcp/mcp.json` |
20
25
 
21
- - Claude Code
22
- - Codex CLI
23
- - Gemini CLI
24
- - Junie for JetBrains IDEs and Junie CLI
26
+ ## 🛠️ Installation
25
27
 
26
- Junie support is intentionally limited to the documented repo-managed surface:
28
+ ### Prerequisites
27
29
 
28
- - `.junie/AGENTS.md`
29
- - `.junie/mcp/mcp.json`
30
+ | Requirement | Version |
31
+ | ----------- | --------------------------- |
32
+ | Node.js | `25+` |
33
+ | pnpm | `10+` for local development |
30
34
 
31
- ## Installation
32
-
33
- Install globally:
35
+ ### Install globally
34
36
 
35
37
  ```bash
36
38
  npm install -g paqad-ai
37
39
  ```
38
40
 
39
- Or run it directly with `npx`:
41
+ ### Or run with `npx`
40
42
 
41
43
  ```bash
42
44
  npx paqad-ai install
43
45
  ```
44
46
 
45
- ## Quick Start
47
+ ## Quick Start
46
48
 
47
- Bootstrap the framework into an existing project:
49
+ ### 1. Onboard a repository
48
50
 
49
51
  ```bash
50
52
  paqad-ai onboard --project-root .
51
53
  ```
52
54
 
53
- Run framework health checks:
55
+ ### 2. Check project health
54
56
 
55
57
  ```bash
56
58
  paqad-ai doctor --project-root .
57
59
  ```
58
60
 
59
- Refresh framework-managed artifacts:
61
+ ### 3. Refresh framework-managed artifacts
60
62
 
61
63
  ```bash
62
64
  paqad-ai update --project-root .
63
65
  ```
64
66
 
65
- ## What paqad-ai Generates
67
+ ## 📦 What `paqad-ai` Generates
68
+
69
+ Depending on detected capabilities, stack packs, and selected providers, `paqad-ai` can generate:
66
70
 
67
- Depending on the detected stack and selected options, `paqad-ai` can generate:
71
+ - provider entry files such as `CLAUDE.md`, `AGENTS.md`, `GEMINI.md`, and `.junie/AGENTS.md`
72
+ - framework-managed state under `.paqad/`
73
+ - copied instruction bundles under `docs/instructions/rules/` and `docs/instructions/tools/`
74
+ - stack snapshot docs under `docs/instructions/stack/`
75
+ - architecture and module documentation under `docs/instructions/` and `docs/modules/`
76
+ - adapter-specific MCP configuration
68
77
 
69
- - adapter entry files such as `CLAUDE.md`, `AGENTS.md`, `GEMINI.md`, and `.junie/AGENTS.md`
70
- - project profile and onboarding metadata under `.agency/`
71
- - project rules under `docs/rules/`
72
- - module scaffolds and registries under `docs/`
73
- - design-system and architecture guidance
74
- - stack-aware MCP configuration for supported adapters
75
- - runnable project health-check scripts
78
+ ## 🧠 Documentation Workflow
76
79
 
77
- ## Documentation Workflow
80
+ There is no standalone `document` command.
78
81
 
79
- `paqad-ai` no longer exposes a standalone `document` command.
82
+ After onboarding, documentation is created through the framework workflow. An active agent can receive a request like `create documentation`, and the workflow will:
80
83
 
81
- Documentation creation is handled through the framework workflow after onboarding. The active agent can receive a request such as "create documentation" and the workflow will:
84
+ 1. start from the onboarded project state in `.paqad/`
85
+ 2. re-check the live app from manifests, lockfiles, and stack signals
86
+ 3. update effective stack context if reality differs from stored onboarding data
87
+ 4. generate stack, architecture, and design-system docs first
88
+ 5. generate the remaining global instruction docs
89
+ 6. generate module docs, including `business.md` and `technical.md`
90
+ 7. track progress in `.paqad/doc-progress.json`
82
91
 
83
- - start from the onboarded project state in `.agency/`
84
- - re-check the real application from `composer.json`, `package.json`, and stack manifests
85
- - update the effective stack context if the live application disagrees with stored onboarding metadata
86
- - create canonical docs step by step
87
- - keep `.agency/doc-progress.json` as the canonical progress ledger
92
+ ## Quality Gates
88
93
 
89
- ## Command Reference
94
+ Local and CI verification use the same command:
95
+
96
+ ```bash
97
+ pnpm run ci
98
+ ```
99
+
100
+ This runs typecheck, lint, formatting checks, test coverage, and build validation. Coverage thresholds are currently enforced at `80%` for statements, lines, and functions, and `85%` for branches.
101
+
102
+ ## 📚 Command Reference
90
103
 
91
104
  ### `install`
92
105
 
@@ -108,32 +121,83 @@ Behavior:
108
121
 
109
122
  ### `onboard`
110
123
 
111
- Runs full project onboarding and generates the framework-managed scaffold.
124
+ Runs full project onboarding and generates the lean framework-managed baseline.
112
125
 
113
126
  ```bash
114
127
  paqad-ai onboard --project-root .
115
128
  ```
116
129
 
117
- Examples:
130
+ ### Interactive flow
131
+
132
+ When run without flags in an interactive terminal, `onboard` prompts for:
133
+
134
+ 1. **Providers** — multi-select: Codex, Claude Code, Gemini, Junie (one or more required).
135
+ 2. **Manifest-driven stack scan** — `composer.json`, `package.json`, lockfiles, and supported config files are scanned first.
136
+ 3. **Stack confirmation checkpoint** — the detected effective stack profile is shown and must be confirmed before onboarding continues in interactive mode.
137
+ 4. **Fallback stack details** — only shown when detection is missing, ambiguous, or the user chooses to revise. Laravel asks for Inertia, Frontend (None / React.js / Vue.js), Tailwind, Boost, plus Docker/Compose. React asks for app type, Tailwind, and Docker/Compose. Vue asks for app type, Tailwind, and Docker/Compose. Other coding stacks ask for Docker/Compose when supported.
138
+
139
+ ### Examples
118
140
 
119
141
  ```bash
120
- paqad-ai onboard --project-root . --domain coding --stack laravel --capability boost
121
- paqad-ai onboard --project-root . --domain coding --stack flutter
142
+ # Laravel with React and Tailwind, Claude Code only
143
+ paqad-ai onboard --project-root . --stack laravel --capability react tailwind --providers claude-code
144
+
145
+ # Flutter with all providers
146
+ paqad-ai onboard --project-root . --stack flutter
147
+
148
+ # Next.js with Tailwind
149
+ paqad-ai onboard --project-root . --stack react --capability next tailwind
150
+
151
+ # Plain Laravel
152
+ paqad-ai onboard --project-root . --stack laravel
122
153
  ```
123
154
 
124
- Options:
155
+ ### Options
125
156
 
126
157
  - `--project-root <path>`: target project directory. Defaults to the current working directory.
127
- - `--domain <domain>`: force the target domain. Current values are `coding` and `content`.
128
- - `--stack <stack>`: force the target stack. Current values are `laravel`, `flutter`, and `short-video`.
129
- - `--capability <capability...>`: add one or more capabilities such as `boost`.
130
-
131
- Behavior:
158
+ - `--stack <stack>`: fallback/manual override for the target stack. Values: `laravel`, `flutter`, `react`, `vue`, `django`, `fastapi`, `rails`, `spring-boot`, `express`, `angular`, `svelte`, `astro`, `go-web`, `rust-web`, `short-video`.
159
+ - `--capability <capability...>`: fallback/manual trait override `inertia`, `react`, `vue`, `tailwind`, `boost`, `next`, `remix`, `vite-spa`, `gatsby`, `nuxt`, `quasar`, `docker`, `compose`, `sail`, `pest`, `phpunit`.
160
+ - `--providers <provider...>`: one or more providers `codex-cli`, `claude-code`, `gemini-cli`, `junie`.
161
+
162
+ ### Stack capability matrix
163
+
164
+ | Stack | Capabilities |
165
+ | ----------- | ------------------------------------------------- |
166
+ | Laravel | `inertia`, `react`, `vue`, `tailwind`, `boost` |
167
+ | Flutter | `docker`, `compose` |
168
+ | React | `next`, `remix`, `vite-spa`, `gatsby`, `tailwind` |
169
+ | Vue | `nuxt`, `vite-spa`, `quasar`, `tailwind` |
170
+ | Django | `docker`, `compose` |
171
+ | FastAPI | `docker`, `compose` |
172
+ | Rails | `docker`, `compose` |
173
+ | Spring Boot | `docker`, `compose` |
174
+ | Express | `docker`, `compose` |
175
+ | Angular | `docker`, `compose` |
176
+ | Svelte | `docker`, `compose` |
177
+ | Astro | `docker`, `compose` |
178
+ | Go Web | `docker`, `compose` |
179
+ | Rust Web | `docker`, `compose` |
180
+
181
+ ### Notes
182
+
183
+ - `react` and `vue` are mutually exclusive. Select only one frontend framework.
184
+ - Standalone React and Vue projects are supported directly; Laravel continues to use `react` and `vue` as capabilities when paired with backend-driven frontend code.
185
+ - Empty or content-only repositories onboard without a domain prompt and persist `active_capabilities: [content]`.
186
+ - Standalone React/Vue onboarding copies the selected sub-stack rule bundle, so `next`, `remix`, `vite-spa`, `gatsby`, `nuxt`, and `quasar` each bring their own project rules when selected.
187
+ - Laravel testing commands now detect Pest and PHPUnit from Composer dependencies and write the matching defaults into the generated project profile.
188
+ - Docker, Docker Compose, and Laravel Sail are detected as environment traits and mirrored into `.paqad/stack-snapshot.json`.
189
+ - If no `--providers` flag is passed in a non-interactive context, files for all four providers are generated.
190
+ - Onboarding is idempotent: running it twice with the same selections produces the same output.
191
+
192
+ ### Behavior
132
193
 
133
194
  - runs project detection
134
- - resolves rules, agents, skills, MCP configs, templates, and scripts
135
- - generates adapter entry files including Junie support
136
- - writes `.agency/project-profile.yaml`, `.agency/onboarding-manifest.json`, and related framework artifacts
195
+ - in interactive mode, shows the effective detected stack profile and asks for confirmation before generation continues
196
+ - resolves rules, tool references, and MCP configs from the detected stack profile plus any fallback/manual overrides
197
+ - generates provider-specific entry files only for the selected providers
198
+ - copies rules into `docs/instructions/rules/**`
199
+ - copies stack tool/reference guides into `docs/instructions/tools/<stack>/**`
200
+ - writes `.paqad/project-profile.yaml`, `.paqad/onboarding-manifest.json`, `.paqad/stack-snapshot.json`, `.paqad/stack-drift.json`, and related framework artifacts
137
201
 
138
202
  ### `doctor`
139
203
 
@@ -149,7 +213,7 @@ Options:
149
213
 
150
214
  Behavior:
151
215
 
152
- - validates framework artifacts, profile schema, docs scaffold, indexes, scripts, hooks, adapter config, MCP config, and other generated assets
216
+ - validates framework artifacts, profile schema, copied instruction bundles, adapter config, MCP config, and post-documentation outputs when present
153
217
  - prints a JSON health report
154
218
  - exits with code `1` when overall status is `fail`, otherwise `0`
155
219
 
@@ -177,7 +241,7 @@ Options:
177
241
  Behavior:
178
242
 
179
243
  - refreshes design-system docs when enabled
180
- - refreshes stack introspection snapshots when enabled
244
+ - refreshes stack introspection snapshots and `docs/instructions/stack/**` when enabled
181
245
  - when no specific refresh flags are passed, both refresh paths run
182
246
 
183
247
  ### `update`
@@ -197,11 +261,51 @@ Behavior:
197
261
  - reads the existing project profile and onboarding manifest
198
262
  - regenerates framework-owned artifacts in a temporary workspace
199
263
  - updates auto-managed files in the target project
200
- - prints a JSON report with regenerated files, skipped files, and new scripts
264
+ - prints a JSON report with regenerated files and skipped files
201
265
 
202
266
  Use `update` when the package version changes or when framework-managed scaffolding needs to be refreshed without re-running project setup decisions.
203
267
 
204
- ## Development
268
+ ## 🌟 Feature Overview
269
+
270
+ | Feature | What it does |
271
+ | --------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
272
+ | 14 built-in coding packs | Ships first-party packs for `laravel`, `flutter`, `react`, `vue`, `django`, `fastapi`, `rails`, `spring-boot`, `express`, `angular`, `svelte`, `astro`, `go-web`, and `rust-web`. |
273
+ | Multi-provider support | Generates repo-managed output for Claude Code, Codex CLI, Gemini CLI, and Junie from the same framework state. |
274
+ | Capability-first onboarding | Starts every repo with `content`, activates `coding` and `security` from matched packs or explicit capability changes. |
275
+ | Stack Pack architecture | Uses `pack.yaml` manifests to drive detection, resolver behavior, MCP defaults, pentest mappings, and stack docs. |
276
+ | Thin provider entry files | Generates concise `AGENTS.md`, `CLAUDE.md`, `GEMINI.md`, and `.junie/AGENTS.md` files that point to project-owned docs. |
277
+ | Project-owned instruction bundles | Copies rules and stack references into `docs/instructions/**` so the repo owns the operational guidance. |
278
+ | Stack snapshot docs | Writes human-readable stack docs under `docs/instructions/stack/**` from detected manifests and lockfiles. |
279
+ | Documentation workflow | Builds architecture docs, design-system docs, and module docs from the real project state after onboarding. |
280
+ | Capability management CLI | Supports `capabilities list`, `available`, `add`, and `remove` with canonical capability normalization. |
281
+ | Health checks | Verifies framework artifacts, copied instructions, adapter output, MCP config, and documentation completeness. |
282
+ | Refresh and update flows | Regenerates framework-managed artifacts and records stack/capability drift without forcing a full re-onboard. |
283
+ | MCP integration | Enables stack-aware MCP defaults for supported adapters and pack-specific environments. |
284
+ | Pentest workflows | Ships canonical `pentest` and `pentest-retest` workflows with saved reports and resumable state. |
285
+ | Semantic context loader | Builds chunk indexes and load statistics so agents can pull targeted context instead of scanning whole repos. |
286
+ | Predictive skill cache | Tracks transition probabilities and cache metrics to prewarm likely skills between workflow steps. |
287
+ | Context budget optimizer | Enforces context budgets and records token savings from summarization and eviction. |
288
+ | Context deduplication | Replaces duplicate resolved artifacts with references and records dedup savings per session. |
289
+ | Smart handoff compression | Writes structured handoff artifacts and compression stats for resumable multi-step workflows. |
290
+ | Workflow engine | Runs canonical workflows plus user-defined `docs/instructions/workflows/*.yaml` templates with resumable state. |
291
+ | Pack management CLI | Supports `packs list`, `install`, `remove`, `validate`, and `create` for built-in, global, and project pack workflows. |
292
+
293
+ ## 🔄 Workflow Overview
294
+
295
+ | Workflow | Trigger | What it does |
296
+ | ------------------------- | -------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
297
+ | Onboarding | `paqad-ai onboard` | Detects the repo, confirms stack/capabilities, generates provider files, rules, references, MCP config, and framework metadata. |
298
+ | Health check | `paqad-ai doctor` | Verifies framework artifacts, copied instruction bundles, adapter output, MCP config, and documentation completeness. |
299
+ | Refresh | `paqad-ai refresh` | Rebuilds stack/design-system derived artifacts and updates stack snapshot docs without full re-onboarding. |
300
+ | Update | `paqad-ai update` | Regenerates framework-managed files for an already onboarded project after package or framework changes. |
301
+ | Documentation workflow | Agent request such as `create documentation` | Re-reads the real app state and generates stack docs, architecture docs, design-system docs, and module docs. |
302
+ | Pentest | Workflow request `pentest` | Runs the canonical pentest workflow and writes timestamped markdown and JSON reports plus resumable run state. |
303
+ | Pentest retest | Workflow request `pentest-retest` | Rechecks a prior pentest report, preserves finding IDs, and writes retest artifacts under `docs/pentest/retests/`. |
304
+ | Capability management | `paqad-ai capabilities ...` | Lists, adds, removes, and inspects active capabilities for the current project. |
305
+ | Pack management | `paqad-ai packs ...` | Lists, installs, validates, removes, and scaffolds stack packs for built-in, global, or project use. |
306
+ | Custom workflow templates | `docs/instructions/workflows/*.yaml` | Lets teams define resumable user-owned workflows that run through the workflow engine. |
307
+
308
+ ## 🔧 Development
205
309
 
206
310
  Install dependencies:
207
311
 
@@ -224,10 +328,10 @@ pnpm run lint
224
328
  pnpm run build
225
329
  ```
226
330
 
227
- ## Contributing
331
+ ## 🤝 Contributing
228
332
 
229
333
  Contributions that improve framework reliability, adapter support, documentation quality, or stack coverage are welcome. Keep changes aligned with the framework’s documentation-first approach and ensure generated artifacts, validation logic, and tests remain consistent.
230
334
 
231
- ## License
335
+ ## 📄 License
232
336
 
233
337
  `paqad-ai` is open-sourced software licensed under the [MIT license](LICENSE).