scip-query 0.19.5 → 0.19.8

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 (421) hide show
  1. package/CHANGELOG.md +85 -1
  2. package/README.md +259 -53
  3. package/dist/augment-vue-worker.js +1 -1
  4. package/dist/chunk-2465DLHK.js +3 -0
  5. package/dist/{chunk-7GXM52MI.js → chunk-24GTWJ3N.js} +2 -2
  6. package/dist/{chunk-NH5ALKPW.js → chunk-2SNGN6U4.js} +2 -2
  7. package/dist/{chunk-3SVWW4PN.js → chunk-2U3OLUNJ.js} +2 -2
  8. package/dist/{chunk-XLTP42QA.js → chunk-33KUO7CG.js} +2 -2
  9. package/dist/{chunk-54HA4ZXH.js → chunk-33XTHFKR.js} +2 -2
  10. package/dist/{chunk-ZGZUZ7XE.js → chunk-3EDFLQ6A.js} +2 -2
  11. package/dist/chunk-3ZSJ3PWF.js +16 -0
  12. package/dist/{chunk-F6O7AAC3.js → chunk-43KC6EQZ.js} +2 -2
  13. package/dist/{chunk-I5RJM53C.js → chunk-464PLI5O.js} +2 -2
  14. package/dist/chunk-46XGSFNI.js +2 -0
  15. package/dist/{chunk-M7AIS73L.js → chunk-47BU5Z4T.js} +2 -2
  16. package/dist/chunk-4BV4QAZJ.js +5 -0
  17. package/dist/chunk-4YTUWQ6M.js +18 -0
  18. package/dist/{chunk-RV2FQIX3.js → chunk-5ML2BNRH.js} +2 -2
  19. package/dist/{chunk-6NSFJYRC.js → chunk-5YLUDDAF.js} +2 -2
  20. package/dist/chunk-67QRR5YC.js +6 -0
  21. package/dist/{chunk-GPBBJ5Y4.js → chunk-6GXYN7YA.js} +3 -3
  22. package/dist/{chunk-4333ETTV.js → chunk-6M7RONVB.js} +2 -2
  23. package/dist/chunk-6YTSKJJ3.js +2 -0
  24. package/dist/{chunk-QDV6RDCP.js → chunk-7FT5Y65S.js} +2 -2
  25. package/dist/{chunk-XTX6QHOF.js → chunk-7KYNAMMH.js} +2 -2
  26. package/dist/{chunk-DZ74OMG6.js → chunk-7LSVMFX7.js} +2 -2
  27. package/dist/{chunk-VTKGCT3V.js → chunk-7QHY3H7P.js} +2 -2
  28. package/dist/{chunk-MITTUCEH.js → chunk-7RAG65VK.js} +2 -2
  29. package/dist/{chunk-25LPM4DG.js → chunk-7SWJEWJF.js} +2 -2
  30. package/dist/{chunk-52ZYCAEO.js → chunk-7VCOXZH3.js} +2 -2
  31. package/dist/chunk-A2TNXAXO.js +8 -0
  32. package/dist/{chunk-IUFDSKGG.js → chunk-A3QXWFBK.js} +2 -2
  33. package/dist/{chunk-4T3LTWUS.js → chunk-AA4UWRNL.js} +2 -2
  34. package/dist/{chunk-4SALD7RU.js → chunk-ACAM6O5R.js} +2 -2
  35. package/dist/chunk-APMMR5Y2.js +2 -0
  36. package/dist/chunk-AQOFWNQJ.js +1 -0
  37. package/dist/chunk-AZFUMCQB.js +2 -0
  38. package/dist/{chunk-M7MTH5NR.js → chunk-BDOIKGDI.js} +2 -2
  39. package/dist/{chunk-BTEE5NZQ.js → chunk-BNXICU42.js} +2 -2
  40. package/dist/chunk-C5Q44Q5D.js +3 -0
  41. package/dist/{chunk-EOOJGLDU.js → chunk-CTF2GDEX.js} +2 -2
  42. package/dist/chunk-DHEQMPLW.js +2 -0
  43. package/dist/{chunk-IZKFSVBV.js → chunk-DQBCO2UY.js} +2 -2
  44. package/dist/{chunk-7B3UPBVA.js → chunk-DQGSM7RZ.js} +2 -2
  45. package/dist/chunk-E2LAW7SL.js +30 -0
  46. package/dist/chunk-E3HYEQO7.js +2 -0
  47. package/dist/chunk-E4NFOAD4.js +6 -0
  48. package/dist/chunk-E5HNT4X2.js +3 -0
  49. package/dist/{chunk-J77UIT3I.js → chunk-ELLMY7XJ.js} +2 -2
  50. package/dist/chunk-FD3HFKXR.js +5 -0
  51. package/dist/{chunk-SOAT6NLA.js → chunk-FIJCV235.js} +2 -2
  52. package/dist/{chunk-H7UKLTWJ.js → chunk-FJ5UDTQF.js} +2 -2
  53. package/dist/{chunk-HEXVUYFQ.js → chunk-GHKEJTCE.js} +2 -2
  54. package/dist/{chunk-LBMJEAEW.js → chunk-GLZTVKAB.js} +3 -3
  55. package/dist/{chunk-FWUUZTIO.js → chunk-GNC4JVAN.js} +2 -2
  56. package/dist/chunk-HIB452NU.js +949 -0
  57. package/dist/{chunk-NRCXJDHL.js → chunk-HZYDQPNY.js} +2 -2
  58. package/dist/chunk-IF6FP6B2.js +66 -0
  59. package/dist/{chunk-4RSI5EMG.js → chunk-JAY7YWS3.js} +2 -2
  60. package/dist/{chunk-STOL2BTL.js → chunk-JHF3E4YM.js} +2 -2
  61. package/dist/chunk-JORHF5AL.js +108 -0
  62. package/dist/{chunk-A2EZV2UM.js → chunk-K2WO7XY7.js} +2 -2
  63. package/dist/chunk-KFZNKUNT.js +2 -0
  64. package/dist/{chunk-YVVCVR2L.js → chunk-KJ2IIBZN.js} +2 -2
  65. package/dist/{chunk-QGXBRIM5.js → chunk-KKME5ZAI.js} +2 -2
  66. package/dist/chunk-KSGTULOS.js +9 -0
  67. package/dist/{chunk-UOAV44HR.js → chunk-KXDJAG4N.js} +3 -3
  68. package/dist/{chunk-UKZBVX4U.js → chunk-L4S2A7BV.js} +2 -2
  69. package/dist/chunk-LP3ARJKF.js +8 -0
  70. package/dist/chunk-LSOR3LQG.js +3 -0
  71. package/dist/{chunk-Q4IIEGXJ.js → chunk-MLFZP76A.js} +2 -2
  72. package/dist/{chunk-WQTAC523.js → chunk-MNSTUIDD.js} +2 -2
  73. package/dist/{chunk-VXQNNXJE.js → chunk-MSBDMFER.js} +2 -2
  74. package/dist/{chunk-X6D5IC6I.js → chunk-MZZBAITE.js} +5 -5
  75. package/dist/{chunk-I5AWSI2G.js → chunk-NE3TZUCI.js} +2 -2
  76. package/dist/{chunk-6E7UTQY7.js → chunk-NTUMF2X3.js} +2 -2
  77. package/dist/{chunk-S44IULR6.js → chunk-O23I56NA.js} +2 -2
  78. package/dist/{chunk-CFMXJPHH.js → chunk-O3O4XXO6.js} +2 -2
  79. package/dist/{chunk-IG7N5ZIK.js → chunk-OUBAF226.js} +2 -2
  80. package/dist/chunk-P3UO3EH3.js +2 -0
  81. package/dist/{chunk-YNRNA5LK.js → chunk-QGGLL3UH.js} +2 -2
  82. package/dist/chunk-QIQ63BHW.js +16 -0
  83. package/dist/{chunk-VGRICIQI.js → chunk-QJIVBYEK.js} +2 -2
  84. package/dist/chunk-QOXBSI6G.js +20 -0
  85. package/dist/chunk-QXK6UUSM.js +2 -0
  86. package/dist/{chunk-XYADIZHU.js → chunk-RA3AYNWP.js} +2 -2
  87. package/dist/chunk-RJMDJR3A.js +2 -0
  88. package/dist/{chunk-NSS46APD.js → chunk-RLH5VUMG.js} +2 -2
  89. package/dist/{chunk-GBQ5NYPR.js → chunk-S4S2WOIX.js} +6 -6
  90. package/dist/{chunk-YIJ7ZAA4.js → chunk-SERUIGV5.js} +2 -2
  91. package/dist/{chunk-FECYOO5O.js → chunk-SMQWE25B.js} +2 -2
  92. package/dist/{chunk-R4FQGQ4X.js → chunk-TAVELHYR.js} +2 -2
  93. package/dist/{chunk-U6WNH5GC.js → chunk-TWMJ3Y3G.js} +2 -2
  94. package/dist/chunk-VAXNI5NE.js +146 -0
  95. package/dist/chunk-VVY2G5ET.js +2 -0
  96. package/dist/{chunk-WER3B7MI.js → chunk-W3DBTGL4.js} +2 -2
  97. package/dist/{chunk-CNKAGUPL.js → chunk-WANA4KAQ.js} +2 -2
  98. package/dist/chunk-WJL2L6MV.js +60 -0
  99. package/dist/chunk-WUW7YUAH.js +11 -0
  100. package/dist/{chunk-QVWS2VWZ.js → chunk-WWKWUPSU.js} +2 -2
  101. package/dist/{chunk-ABMYA4TN.js → chunk-WY45BHKQ.js} +2 -2
  102. package/dist/chunk-X4FR5BZF.js +9 -0
  103. package/dist/chunk-X6RKPDY7.js +2 -0
  104. package/dist/{chunk-ZXJYMGD3.js → chunk-YLFORA5G.js} +2 -2
  105. package/dist/{chunk-KP6XRY5Z.js → chunk-YTVWB7YJ.js} +2 -2
  106. package/dist/{chunk-4XTA5OMB.js → chunk-ZCEJ63SP.js} +2 -2
  107. package/dist/{chunk-HKEHS2AS.js → chunk-ZJ5CBXK3.js} +2 -2
  108. package/dist/chunk-ZL2OGDCD.js +2 -0
  109. package/dist/cli.js +8 -3
  110. package/dist/command-descriptors-ZW5J4ZEM.js +631 -0
  111. package/dist/{config-types-D20KuvvZ.d.ts → config-types-B6MEoRNy.d.ts} +8 -0
  112. package/dist/{db-G_II8yXU.d.ts → db-DYLKr9Wn.d.ts} +18 -1
  113. package/dist/direct-navigation-42YHQPOI.js +3 -0
  114. package/dist/{health-oblXYgkF.d.ts → health-DgxIDXJC.d.ts} +1 -1
  115. package/dist/index.d.ts +2 -2
  116. package/dist/index.js +1 -1
  117. package/dist/postinstall.js +1 -1
  118. package/dist/queries/affected.d.ts +2 -2
  119. package/dist/queries/affected.js +1 -1
  120. package/dist/queries/architecture.d.ts +2 -2
  121. package/dist/queries/architecture.js +1 -1
  122. package/dist/queries/bottlenecks.d.ts +2 -2
  123. package/dist/queries/bottlenecks.js +1 -1
  124. package/dist/queries/by-kind.d.ts +2 -2
  125. package/dist/queries/by-kind.js +1 -1
  126. package/dist/queries/call-graph.d.ts +2 -2
  127. package/dist/queries/call-graph.js +1 -1
  128. package/dist/queries/change-surface.d.ts +2 -2
  129. package/dist/queries/change-surface.js +1 -1
  130. package/dist/queries/cleanup-plan.d.ts +2 -2
  131. package/dist/queries/cleanup-plan.js +1 -1
  132. package/dist/queries/co-change.d.ts +2 -2
  133. package/dist/queries/co-change.js +1 -1
  134. package/dist/queries/code.d.ts +2 -2
  135. package/dist/queries/code.js +1 -1
  136. package/dist/queries/complexity-hotspots.d.ts +2 -2
  137. package/dist/queries/complexity-hotspots.js +1 -1
  138. package/dist/queries/complexity.d.ts +2 -2
  139. package/dist/queries/complexity.js +1 -1
  140. package/dist/queries/convergence.d.ts +2 -2
  141. package/dist/queries/convergence.js +1 -1
  142. package/dist/queries/coupling.d.ts +2 -2
  143. package/dist/queries/coupling.js +1 -1
  144. package/dist/queries/cycles.d.ts +2 -2
  145. package/dist/queries/cycles.js +1 -1
  146. package/dist/queries/dataflow.d.ts +2 -2
  147. package/dist/queries/dataflow.js +1 -1
  148. package/dist/queries/dead.d.ts +2 -2
  149. package/dist/queries/dead.js +1 -1
  150. package/dist/queries/decorative-checkers.d.ts +3 -3
  151. package/dist/queries/decorative-checkers.js +1 -1
  152. package/dist/queries/deep-chains.d.ts +2 -2
  153. package/dist/queries/deep-chains.js +1 -1
  154. package/dist/queries/deps.d.ts +2 -2
  155. package/dist/queries/deps.js +1 -1
  156. package/dist/queries/diff-gate.d.ts +30 -2
  157. package/dist/queries/diff-gate.js +1 -1
  158. package/dist/queries/diff-impact.d.ts +2 -2
  159. package/dist/queries/diff-impact.js +1 -1
  160. package/dist/queries/doc-drift.d.ts +2 -2
  161. package/dist/queries/doc-drift.js +1 -1
  162. package/dist/queries/drift.d.ts +2 -2
  163. package/dist/queries/drift.js +1 -1
  164. package/dist/queries/duplicate-bodies.d.ts +2 -2
  165. package/dist/queries/duplicate-bodies.js +1 -1
  166. package/dist/queries/extract-candidates.d.ts +2 -2
  167. package/dist/queries/extract-candidates.js +1 -1
  168. package/dist/queries/fan.d.ts +2 -2
  169. package/dist/queries/fan.js +1 -1
  170. package/dist/queries/files.d.ts +2 -2
  171. package/dist/queries/health.d.ts +3 -3
  172. package/dist/queries/health.js +1 -1
  173. package/dist/queries/hierarchy.d.ts +2 -2
  174. package/dist/queries/hierarchy.js +1 -1
  175. package/dist/queries/hotspots.d.ts +2 -2
  176. package/dist/queries/hotspots.js +1 -1
  177. package/dist/queries/imports.d.ts +2 -2
  178. package/dist/queries/imports.js +1 -1
  179. package/dist/queries/incomplete-migration.d.ts +2 -2
  180. package/dist/queries/incomplete-migration.js +1 -1
  181. package/dist/queries/index.d.ts +17 -3
  182. package/dist/queries/index.js +1 -1
  183. package/dist/queries/isolated.d.ts +2 -2
  184. package/dist/queries/isolated.js +1 -1
  185. package/dist/queries/locality-candidates.d.ts +2 -2
  186. package/dist/queries/locality-candidates.js +1 -1
  187. package/dist/queries/members.d.ts +2 -2
  188. package/dist/queries/members.js +1 -1
  189. package/dist/queries/methods.d.ts +2 -2
  190. package/dist/queries/methods.js +1 -1
  191. package/dist/queries/not-implemented.d.ts +3 -3
  192. package/dist/queries/not-implemented.js +1 -1
  193. package/dist/queries/outline.d.ts +2 -2
  194. package/dist/queries/outline.js +1 -1
  195. package/dist/queries/passthrough-candidates.d.ts +2 -2
  196. package/dist/queries/passthrough-candidates.js +1 -1
  197. package/dist/queries/plan-context.d.ts +2 -2
  198. package/dist/queries/plan-context.js +1 -1
  199. package/dist/queries/react-component-duplicates.d.ts +2 -2
  200. package/dist/queries/react-component-duplicates.js +1 -1
  201. package/dist/queries/react-hook-candidates.d.ts +2 -2
  202. package/dist/queries/react-hook-candidates.js +1 -1
  203. package/dist/queries/react-large-component-pressure.d.ts +2 -2
  204. package/dist/queries/react-large-component-pressure.js +1 -1
  205. package/dist/queries/recent-duplicates.d.ts +2 -2
  206. package/dist/queries/recent-duplicates.js +1 -1
  207. package/dist/queries/redundant-reexports.d.ts +2 -2
  208. package/dist/queries/redundant-reexports.js +1 -1
  209. package/dist/queries/refs.d.ts +2 -2
  210. package/dist/queries/refs.js +1 -1
  211. package/dist/queries/self-audit.d.ts +2 -2
  212. package/dist/queries/self-audit.js +1 -1
  213. package/dist/queries/similar-chains.d.ts +2 -2
  214. package/dist/queries/similar-chains.js +1 -1
  215. package/dist/queries/similar-files.d.ts +2 -2
  216. package/dist/queries/similar-files.js +1 -1
  217. package/dist/queries/similar-signatures.d.ts +2 -2
  218. package/dist/queries/similar-signatures.js +1 -1
  219. package/dist/queries/similar.d.ts +2 -2
  220. package/dist/queries/similar.js +1 -1
  221. package/dist/queries/slice.d.ts +2 -2
  222. package/dist/queries/slice.js +1 -1
  223. package/dist/queries/stale-abstractions.d.ts +2 -2
  224. package/dist/queries/stale-abstractions.js +1 -1
  225. package/dist/queries/stats.d.ts +2 -2
  226. package/dist/queries/stats.js +1 -1
  227. package/dist/queries/surface.d.ts +2 -2
  228. package/dist/queries/surface.js +1 -1
  229. package/dist/queries/symbols.d.ts +2 -2
  230. package/dist/queries/symbols.js +1 -1
  231. package/dist/queries/system.d.ts +2 -2
  232. package/dist/queries/system.js +1 -1
  233. package/dist/queries/test-quality.d.ts +2 -2
  234. package/dist/queries/test-quality.js +1 -1
  235. package/dist/queries/trace.d.ts +2 -2
  236. package/dist/queries/trace.js +1 -1
  237. package/dist/queries/twin-ab.d.ts +3 -3
  238. package/dist/queries/twin-ab.js +1 -1
  239. package/dist/queries/twin-drift.d.ts +2 -2
  240. package/dist/queries/twin-drift.js +1 -1
  241. package/dist/queries/unused-imports.d.ts +2 -2
  242. package/dist/queries/unused-imports.js +1 -1
  243. package/dist/queries/unused-params.d.ts +2 -2
  244. package/dist/queries/unused-params.js +1 -1
  245. package/dist/queries/vue-component-duplicates.d.ts +2 -2
  246. package/dist/queries/vue-component-duplicates.js +1 -1
  247. package/dist/queries/vue-composable-candidates.d.ts +2 -2
  248. package/dist/queries/vue-composable-candidates.js +1 -1
  249. package/dist/queries/vue-large-view-pressure.d.ts +2 -2
  250. package/dist/queries/vue-large-view-pressure.js +1 -1
  251. package/dist/queries/wrapper-candidates.d.ts +2 -2
  252. package/dist/queries/wrapper-candidates.js +1 -1
  253. package/dist/reindex-worker.js +26 -26
  254. package/dist/reindex.d.ts +14 -4
  255. package/dist/reindex.js +34 -38
  256. package/dist/runtime.d.ts +167 -18
  257. package/dist/runtime.js +3 -2
  258. package/dist/rust-semantic-session-server.js +1 -1
  259. package/dist/rust-semantic-session-worker.js +1 -1
  260. package/dist/rust-semantic-worker.js +1 -1
  261. package/dist/{scip-cli-kRpaexVJ.d.ts → scip-cli-Cc6c00-a.d.ts} +6 -2
  262. package/dist/watch-server.js +5 -5
  263. package/docs/AGENT_GUIDE.md +20 -4
  264. package/docs/AI_FAILURE_MODES.md +17 -17
  265. package/docs/API_EVOLUTION.md +71 -0
  266. package/docs/CLI_JSON_OUTPUT.md +168 -0
  267. package/docs/COMMAND_REFERENCE.md +10 -6
  268. package/docs/COMMITTED_RECORD_COMPATIBILITY.md +117 -0
  269. package/docs/CONFIGURATION_WRITE_SAFETY.md +130 -0
  270. package/docs/DETECTOR_GUIDE.md +46 -46
  271. package/docs/DURABILITY.md +103 -0
  272. package/docs/INDEX_GENERATIONS.md +121 -0
  273. package/docs/LOCK_PROTOCOL.md +133 -0
  274. package/docs/MAILBOX_LIFECYCLE.md +197 -0
  275. package/docs/REINDEX_METADATA_COMPATIBILITY.md +84 -0
  276. package/docs/RUST_DURABLE_SESSION_PROTOCOL.md +126 -0
  277. package/docs/SECURITY_MODEL.md +129 -0
  278. package/docs/TELEMETRY_RETENTION.md +77 -0
  279. package/docs/TIME_SEMANTICS.md +77 -0
  280. package/docs/WATCH_REFRESH_REQUESTS.md +110 -0
  281. package/docs/WINDOWS_SIDECAR_RELEASE.md +298 -0
  282. package/docs/analyzer-validation-ledger.md +24 -23
  283. package/docs/schemas/cli-json-envelope.schema.json +53 -0
  284. package/docs/schemas/cli-output-page.schema.json +104 -0
  285. package/docs/schemas/npm-release-state.schema.json +146 -0
  286. package/docs/schemas/outcome-event-record.schema.json +39 -0
  287. package/docs/schemas/project-config.schema.json +247 -0
  288. package/docs/schemas/suppression-record.schema.json +31 -0
  289. package/docs/schemas/windows-sidecar-provenance.schema.json +137 -0
  290. package/package.json +21 -10
  291. package/scripts/build-scip-windows.mjs +180 -61
  292. package/scripts/scip-windows-provenance.mjs +364 -0
  293. package/scripts/verify-scip-windows.mjs +29 -0
  294. package/skills/_shared/SKILL.md +90 -229
  295. package/skills/_shared/agents/openai.yaml +1 -1
  296. package/skills/_shared/references/agent-contract-catalog.md +105 -0
  297. package/skills/_shared/references/command-catalog.md +118 -0
  298. package/skills/_shared/references/detector-precision-and-diffgate.md +59 -0
  299. package/skills/_shared/references/evidence-and-dead-code.md +25 -0
  300. package/skills/scip-audit/SKILL.md +77 -0
  301. package/skills/scip-audit/agents/openai.yaml +4 -0
  302. package/skills/scip-audit/references/claims.md +98 -0
  303. package/skills/scip-audit/references/cleanup.md +101 -0
  304. package/skills/scip-audit/references/directory.md +222 -0
  305. package/skills/scip-audit/references/frontend.md +130 -0
  306. package/skills/scip-audit/references/integrity.md +154 -0
  307. package/skills/scip-audit/references/maintainability.md +162 -0
  308. package/skills/scip-audit/references/twin-drift.md +104 -0
  309. package/skills/scip-diagnose/SKILL.md +52 -0
  310. package/skills/scip-diagnose/agents/openai.yaml +4 -0
  311. package/skills/scip-diagnose/references/debug.md +117 -0
  312. package/skills/{scip-probe-reachability/SKILL.md → scip-diagnose/references/probe-reachability.md} +11 -27
  313. package/skills/scip-diagnose/references/root-cause.md +145 -0
  314. package/skills/scip-diagnose/references/triage.md +119 -0
  315. package/skills/scip-explore/SKILL.md +54 -85
  316. package/skills/scip-explore/agents/openai.yaml +2 -2
  317. package/skills/scip-explore/references/diagrams.md +40 -0
  318. package/skills/scip-explore/references/language-playbook.md +49 -0
  319. package/skills/scip-improve/SKILL.md +56 -0
  320. package/skills/scip-improve/agents/openai.yaml +4 -0
  321. package/skills/scip-improve/references/cleanup-batches.md +53 -0
  322. package/skills/scip-improve/references/directory-moves.md +53 -0
  323. package/skills/scip-improve/references/doc-reconcile.md +30 -0
  324. package/skills/scip-improve/references/frontend-extraction.md +39 -0
  325. package/skills/scip-improve/references/maintainability-mechanism.md +43 -0
  326. package/skills/scip-improve/references/twin-drift.md +35 -0
  327. package/skills/scip-plan/SKILL.md +68 -0
  328. package/skills/scip-plan/agents/openai.yaml +4 -0
  329. package/skills/scip-plan/references/api-impact.md +19 -0
  330. package/skills/scip-plan/references/conductor.md +41 -0
  331. package/skills/scip-plan/references/high-assurance.md +43 -0
  332. package/skills/scip-plan/references/hyper-optimization.md +50 -0
  333. package/skills/scip-plan/references/tla-model.md +88 -0
  334. package/skills/scip-query/SKILL.md +53 -98
  335. package/skills/scip-query/agents/openai.yaml +2 -2
  336. package/skills/scip-setup/SKILL.md +69 -181
  337. package/skills/scip-setup/agents/openai.yaml +3 -3
  338. package/skills/scip-setup/references/bootstrap-workflow.md +120 -0
  339. package/skills/scip-setup/references/language-verification.md +61 -0
  340. package/skills/scip-setup/references/lifecycle-commands.md +119 -0
  341. package/skills/scip-setup/references/per-repo-triage.md +24 -0
  342. package/skills/scip-verify/SKILL.md +126 -84
  343. package/skills/scip-verify/agents/openai.yaml +2 -2
  344. package/skills/scip-verify/references/calibrate-detectors.md +170 -0
  345. package/dist/chunk-2CTX5CMX.js +0 -4
  346. package/dist/chunk-2Y373BDD.js +0 -2
  347. package/dist/chunk-2YU7I3QO.js +0 -2
  348. package/dist/chunk-3MJ5YA4Y.js +0 -16
  349. package/dist/chunk-64RFXJT5.js +0 -16
  350. package/dist/chunk-7UY7SD7D.js +0 -927
  351. package/dist/chunk-B5NLK2B3.js +0 -6
  352. package/dist/chunk-C2QSK7E7.js +0 -2
  353. package/dist/chunk-C7NIYIQ4.js +0 -67
  354. package/dist/chunk-D4U5Q3FT.js +0 -7
  355. package/dist/chunk-DGAGY7RJ.js +0 -60
  356. package/dist/chunk-DLWR3NUU.js +0 -5
  357. package/dist/chunk-K2ERX4UT.js +0 -3
  358. package/dist/chunk-KHE7J5ZN.js +0 -3
  359. package/dist/chunk-L7SPDE73.js +0 -84
  360. package/dist/chunk-LHMNRHGV.js +0 -3
  361. package/dist/chunk-LM72NQ7T.js +0 -3
  362. package/dist/chunk-MSWVMDAH.js +0 -122
  363. package/dist/chunk-NH7WNNQC.js +0 -20
  364. package/dist/chunk-NPKYOIFM.js +0 -18
  365. package/dist/chunk-NZL2DBT7.js +0 -2
  366. package/dist/chunk-OMPZHGHO.js +0 -2
  367. package/dist/chunk-P2PC2WGR.js +0 -2
  368. package/dist/chunk-Q3AFUTGB.js +0 -8
  369. package/dist/chunk-QRGV2F7L.js +0 -2
  370. package/dist/chunk-TW4OG5FC.js +0 -4
  371. package/dist/chunk-U7DSEKOM.js +0 -30
  372. package/dist/chunk-V27BEQJN.js +0 -7
  373. package/dist/chunk-XAGAZSFE.js +0 -6
  374. package/dist/chunk-XBN5VO53.js +0 -2
  375. package/dist/chunk-YGAGTIDK.js +0 -11
  376. package/dist/command-descriptors-N2TL4XM2.js +0 -613
  377. package/dist/direct-navigation-DUCZCTOE.js +0 -3
  378. package/skills/scip-api-impact/SKILL.md +0 -140
  379. package/skills/scip-api-impact/agents/openai.yaml +0 -4
  380. package/skills/scip-calibrate/SKILL.md +0 -131
  381. package/skills/scip-calibrate/agents/openai.yaml +0 -4
  382. package/skills/scip-claim-audit/SKILL.md +0 -107
  383. package/skills/scip-claim-audit/agents/openai.yaml +0 -4
  384. package/skills/scip-cleanup-audit/SKILL.md +0 -130
  385. package/skills/scip-cleanup-audit/agents/openai.yaml +0 -4
  386. package/skills/scip-cleanup-improve/SKILL.md +0 -85
  387. package/skills/scip-cleanup-improve/agents/openai.yaml +0 -4
  388. package/skills/scip-concrete-plan/HIGH_ASSURANCE.md +0 -317
  389. package/skills/scip-concrete-plan/SKILL.md +0 -105
  390. package/skills/scip-concrete-plan/agents/openai.yaml +0 -4
  391. package/skills/scip-conductor/SKILL.md +0 -133
  392. package/skills/scip-conductor/agents/openai.yaml +0 -4
  393. package/skills/scip-debug/SKILL.md +0 -130
  394. package/skills/scip-debug/agents/openai.yaml +0 -4
  395. package/skills/scip-diagram/SKILL.md +0 -110
  396. package/skills/scip-diagram/agents/openai.yaml +0 -4
  397. package/skills/scip-directory-architecture/SKILL.md +0 -266
  398. package/skills/scip-directory-architecture/agents/openai.yaml +0 -4
  399. package/skills/scip-doc-reconcile/SKILL.md +0 -89
  400. package/skills/scip-doc-reconcile/agents/openai.yaml +0 -4
  401. package/skills/scip-hyper-optimization/SKILL.md +0 -156
  402. package/skills/scip-hyper-optimization/agents/openai.yaml +0 -4
  403. package/skills/scip-integrity-audit/SKILL.md +0 -152
  404. package/skills/scip-integrity-audit/agents/openai.yaml +0 -4
  405. package/skills/scip-language-playbook/SKILL.md +0 -106
  406. package/skills/scip-language-playbook/agents/openai.yaml +0 -4
  407. package/skills/scip-maintainability/SKILL.md +0 -158
  408. package/skills/scip-maintainability/agents/openai.yaml +0 -4
  409. package/skills/scip-probe-reachability/agents/openai.yaml +0 -4
  410. package/skills/scip-react-maintainability/SKILL.md +0 -101
  411. package/skills/scip-react-maintainability/agents/openai.yaml +0 -4
  412. package/skills/scip-root-cause/SKILL.md +0 -151
  413. package/skills/scip-root-cause/agents/openai.yaml +0 -4
  414. package/skills/scip-tla-model-system/SKILL.md +0 -148
  415. package/skills/scip-tla-model-system/agents/openai.yaml +0 -4
  416. package/skills/scip-triage-issue/SKILL.md +0 -133
  417. package/skills/scip-triage-issue/agents/openai.yaml +0 -4
  418. package/skills/scip-twin-drift/SKILL.md +0 -109
  419. package/skills/scip-twin-drift/agents/openai.yaml +0 -4
  420. package/skills/scip-vue-maintainability/SKILL.md +0 -107
  421. package/skills/scip-vue-maintainability/agents/openai.yaml +0 -4
@@ -1,222 +1,110 @@
1
1
  ---
2
2
  name: scip-setup
3
- description: Set up or repair scip-query in a repository. Use for bootstrapping, onboarding, refreshing indexes, project-local hooks, agent guidance, capability diagnostics, health dossiers, .scipquery.json, or setup cleanup handoff.
3
+ description: Use to adopt, onboard, repair, or diagnose scip-query ITSELF in a repo — first index, config, capability and dependency checks, installing or uninstalling agent skills, agent guidance blocks, project hooks, CI wiring. Wins over scip-verify for first-time adoption; calibration comes afterward.
4
4
  commands:
5
- - template: 'scip-query setup --json'
6
- when: 'Run setup: install skills, refresh the index, report health.'
7
- - template: 'scip-query doctor'
8
- when: 'Resolve blockers: human diagnostic for config, index, and dependencies.'
9
- - template: 'scip-query status --json'
10
- when: 'Resolve blockers: machine surface for freshness and config.'
11
- - template: 'scip-query capabilities --matrix'
12
- when: 'Resolve blockers: which evidence/verification capabilities are available.'
13
- - template: 'scip-query config-validate --json'
14
- when: 'Resolve blockers: validate .scipquery.json.'
15
- - template: 'scip-query init'
16
- when: 'Calibrate config: create .scipquery.json only when absent and needed.'
5
+ - template: "scip-query setup --json"
6
+ when: "Bootstrap or repair the complete repository setup."
7
+ - template: "scip-query doctor"
8
+ when: "Diagnose configuration, index, dependency, or capability failures."
9
+ - template: "scip-query status --capabilities"
10
+ when: "Confirm freshness and the exact evidence capabilities available."
17
11
  ---
18
12
 
19
13
  # scip-setup
20
14
 
21
- Use this skill to make a repository a reliable scip-query workspace: indexed, diagnosed, documented for agents, and honest about unavailable capabilities.
15
+ ## Purpose
22
16
 
23
- Load shared mechanics from [`../_shared/SKILL.md`](../_shared/SKILL.md).
17
+ Make a repository a reliable scip-query workspace: indexed, diagnosed,
18
+ documented for agents, and honest about unavailable capabilities. Covers
19
+ first-time adoption, repair after drift, capability/dependency diagnosis, and
20
+ the lifecycle commands that install, refresh, or remove scip-query's footprint
21
+ (skills, agent guidance, hooks, CI).
22
+
23
+ Load shared mechanics from [`../_shared/SKILL.md`](../_shared/SKILL.md). Use
24
24
 
25
25
  <!-- BEGIN GENERATED SKILL COMMANDS -->
26
26
  ## Commands for this skill
27
27
 
28
28
  | Command | Purpose | Returns | Coverage | When |
29
29
  | --- | --- | --- | --- | --- |
30
- | `scip-query setup --json` | Bootstrap this project: enable automatic indexing, install agent skills, refresh the index, verify capabilities, and report health | setup step outcomes, files, capabilities, smoke tests, and warnings | `complete` | Run setup: install skills, refresh the index, report health. |
31
- | `scip-query doctor` | Diagnose config, index freshness, dependency readiness, and project capabilities | config, freshness, dependency, and capability diagnostics | `complete` | Resolve blockers: human diagnostic for config, index, and dependencies. |
32
- | `scip-query status --json` | Show index status for this project | freshness, generation, language shards, watcher, and optional capabilities | `complete` | Resolve blockers: machine surface for freshness and config. |
33
- | `scip-query capabilities --matrix` | Report which evidence and verification capabilities are available in this project | capability matrix with availability and reasons | `complete` | Resolve blockers: which evidence/verification capabilities are available. |
34
- | `scip-query config-validate --json` | Validate .scipquery.json, including structured suppressions and declared coupling groups | validation diagnostics with config paths | `complete` | Resolve blockers: validate .scipquery.json. |
35
- | `scip-query init` | Create a .scipquery.json config file for this project | configuration path and creation outcome | `complete` | Calibrate config: create .scipquery.json only when absent and needed. |
30
+ | `scip-query setup --json` | Bootstrap this project: enable automatic indexing, install agent skills, refresh the index, verify capabilities, and report health | setup step outcomes, files, capabilities, smoke tests, and warnings | `complete` | Bootstrap or repair the complete repository setup. |
31
+ | `scip-query doctor` | Diagnose config, index freshness, dependency readiness, and project capabilities | config, freshness, dependency, and capability diagnostics | `complete` | Diagnose configuration, index, dependency, or capability failures. |
32
+ | `scip-query status --capabilities` | Show index status for this project | freshness, generation, language shards, watcher, and optional capabilities | `complete` | Confirm freshness and the exact evidence capabilities available. |
36
33
 
37
34
  Use this shortlist first. Open [`../_shared/SKILL.md`](../_shared/SKILL.md) only when it is insufficient.
38
35
  <!-- END GENERATED SKILL COMMANDS -->
36
+ this skill's own command shortlist first; open the shared file only when it is
37
+ insufficient.
39
38
 
40
- ## Per-Repo Triage (once, after setup)
41
-
42
- New repos surface standing findings that are intentional. Encode them once so
43
- every later gate run is precise:
44
-
45
- 1. Sweep initial findings (`health --json`, `diff-gate --json`) and, for each accepted one, `suppress <id> --reason <why>` — reasons are required and audited.
46
- 2. Declare files that legitimately change together in `.scipquery.json` `declaredCouplings`.
47
- 3. List dated snapshot docs (benchmarks, validation ledgers, historical plans/reviews) in `docs.snapshotPaths` so doc checks skip them with a labeled exclusion instead of recurring findings.
48
- 4. Seed `coverageContracts` for every hand-maintained enumeration (policy maps, capability tables, registry lists) so enumeration rot fails the gate the day it happens.
49
- 5. Set a hygiene cadence: run `scip-twin-drift` and `scip-claim-audit` after large refactor campaigns or quarterly — the gate only sees diffs; these lenses see accumulated state.
50
-
51
- This step is complete only when a clean working tree produces a finding-free `diff-gate` and every suppression carries a reason a reviewer would accept.
52
-
53
- ## Rules
54
-
55
- 1. Prefer the single setup command over hand-running its internals.
56
- 2. Do not run `scip-query setup-ci` unless the user explicitly asks for CI setup.
57
- 3. Treat unavailable capabilities as unproven, not clean.
58
- 4. Keep `.scipquery.json` minimal and evidence-backed.
59
- 5. Let setup install detected AST parser packages and supported indexers; do not
60
- make users reproduce package-manager commands unless setup reports a blocker.
61
- 6. A demand-started service or Rust helper in `stopped` state can still be
62
- correctly configured. Availability comes from capabilities; lifecycle state
63
- only says whether work currently keeps the helper awake.
64
-
65
- ## What Setup Owns
66
-
67
- `scip-query setup` is the bootstrap orchestrator. In a terminal it opens an
68
- interactive checklist by default. For an agent or script, `scip-query setup
69
- --json` runs the recommended non-interactive path and returns every result.
70
-
71
- The command:
72
-
73
- - detects supported project languages and lets a terminal user select them;
74
- - installs or repairs supported language indexers when a safe installer exists;
75
- - installs the Tree-sitter runtime and detected language grammars from the
76
- versions pinned by the installed scip-query package;
77
- - installs bundled agent skills and checkout-local Codex/Claude hooks unless
78
- explicitly skipped;
79
- - enables demand-started automatic incremental indexing unless the repository
80
- has or selects an explicit opt-out;
81
- - builds or reuses language/project shards and publishes one atomic SQLite
82
- generation with recovery state;
83
- - starts or reuses the clean-idle project service and verifies its lifecycle;
84
- - checks TypeScript and Rust semantic readiness, compiler/checker readiness,
85
- representative commands, and optional health output;
86
- - reports repository, checkout, user-environment, and rebuildable runtime state
87
- separately.
88
-
89
- Do not manually install AST grammar packages before trying setup. If npm uses
90
- script approval and native packages remain unavailable, report the pending
91
- packages and ask the user to approve them; a package must not approve its own
92
- install scripts.
39
+ ## Triage: which scenario applies
93
40
 
94
- ## Workflow
41
+ | Situation | Go to |
42
+ | --- | --- |
43
+ | First time running scip-query in this repo, or repairing a broken setup | [Bootstrap workflow](references/bootstrap-workflow.md) — `setup` |
44
+ | `setup` reported a blocker, or index/capabilities look wrong | [Bootstrap workflow §3](references/bootstrap-workflow.md#3-resolve-blockers) — `doctor`, `status`, `capabilities`, `config-validate` |
45
+ | Confirming TypeScript/Vue or Rust semantic readiness specifically | [Language verification](references/language-verification.md) |
46
+ | Need to (re)install skills, agent guidance, hooks, or CI without a full bootstrap | [Lifecycle commands](references/lifecycle-commands.md) |
47
+ | Removing scip-query's footprint from a repo | [Lifecycle commands § uninstall](references/lifecycle-commands.md#uninstall) |
48
+ | New repo has standing findings that are intentional (naming conventions, snapshot docs, coupled files) | [Per-repo triage](references/per-repo-triage.md) |
49
+ | Setup is done and clean; user wants a cleanup report or autonomous cleanup | Hand off to `scip-audit` (report) or `scip-improve` (autonomous) |
95
50
 
96
- ### 1. Confirm the root
51
+ ## The core scenario
97
52
 
98
- ```bash
99
- pwd
100
- git rev-parse --show-toplevel
101
- scip-query --version
102
- ```
103
-
104
- This step is complete only when the repository root and runnable `scip-query` command are known, or the install/link blocker is reported.
105
-
106
- ### 2. Run setup
53
+ When a repository is new to scip-query, or its setup is suspect, run:
107
54
 
108
55
  ```bash
109
56
  scip-query setup --json
110
57
  ```
111
58
 
112
- When a human is operating the terminal, prefer plain `scip-query setup` so they
113
- can review the checklist with arrow keys and Space. Use `scip-query setup --yes`
114
- to accept recommended defaults without prompting. JSON mode is intentionally
115
- non-interactive and suitable for agents.
116
-
117
- Use `scip-query setup --no-hooks --json` when project-local Codex or Claude Code lifecycle hooks should not be written. Use `scip-query setup --git-hook --json` only when the user wants the local pre-commit diff gate.
118
-
119
- This step is complete only when setup reports ready, partial, or blocked and names every written, skipped, or blocked artifact.
120
-
121
- ### 3. Resolve blockers
122
-
123
- ```bash
124
- scip-query doctor
125
- scip-query status --json
126
- scip-query capabilities --matrix
127
- scip-query config-validate --json
128
- ```
129
-
130
- `doctor` is the human diagnostic surface. `status --json` is the machine surface for freshness and config. Fix missing indexers, stale indexes, invalid config, or unavailable verification only when the fix is safe; otherwise record the exact external action.
131
-
132
- This step is complete only when each blocker is fixed, unavailable with reason, or waiting on a named external action.
133
-
134
- ### 4. Verify the language-specific optimal path
135
-
136
- #### TypeScript, JavaScript, and Vue
137
-
138
- Require all applicable capability rows to explain their state:
139
-
140
- - `scip-typescript` is runnable for SCIP indexing;
141
- - the detected Tree-sitter TypeScript/JavaScript parser is available for source
142
- facts;
143
- - ts-morph semantic readiness is available for TypeScript;
144
- - the demand-started service is enabled and status exposes TypeScript semantic
145
- and TypeScript index session counters.
146
-
147
- For a real multi-project TypeScript monorepo, set
148
- `indexer.typescript.projectMode: "workspace"`. This makes project/tsconfig
149
- boundaries the sub-shards: a changed project and its project-reference,
150
- workspace-package, or tsconfig-path dependents rebuild while unrelated project
151
- shards are reused. Use `indexer.typescript.projects` only when automatic
152
- discovery is too broad; a non-empty list is authoritative. Do not enable
153
- workspace mode for a single-project repository merely to seek speed—the normal
154
- incremental document producer and persistent ts-morph service already reuse
155
- unchanged work.
156
-
157
- #### Rust
158
-
159
- Require these distinct facts:
160
-
161
- - `rust-analyzer` is runnable and supports `rust-analyzer scip` for indexing;
162
- - the Tree-sitter Rust grammar is available for source facts;
163
- - Rust semantic readiness is available for compiler-backed references,
164
- callees, signatures, and module/use evidence;
165
- - status reports the durable Rust transport with worker fallback. `stopped` is
166
- healthy when no semantic request currently needs the clean-idle helper.
167
-
168
- If rust-analyzer is missing and rustup is available, setup can run `rustup
169
- component add rust-analyzer`. `SCIP_RUST_SEMANTIC_DURABLE_SESSION=0` is an
170
- explicit worker-only fallback, not the optimal default.
171
-
172
- #### Other languages
173
-
174
- Trust the capability matrix, not a language name. Setup may install supported
175
- indexers automatically (for example Python or Go), may provide only source
176
- facts through a detected Tree-sitter grammar, or may report a manual install
177
- URL. A missing semantic provider must be reported as unsupported, never as a
178
- clean semantic analysis.
179
-
180
- Verification:
181
-
182
- ```bash
183
- scip-query status --capabilities
184
- scip-query reindex --json
185
- scip-query watch --status --json
186
- ```
187
-
188
- This step is complete only when every selected language has an explicit
189
- indexing/source/semantic/checker verdict and the published generation is fresh.
190
-
191
- ### 5. Calibrate config only when needed
192
-
193
- Run `scip-query init` only when `.scipquery.json` is absent and the project needs config. Add settings only for observed repo facts: explicit languages, indexer projects, entry roots, declared couplings, locality boundaries, or accepted suppressions.
194
-
195
- For TypeScript monorepos, prefer `indexer.typescript.projectMode: "workspace"` when multiple project shards are real. Add `indexerConcurrency` only when measured cold-index timing or memory pressure justifies it. Keep `watch.enabled: true` for the designed demand-started lifecycle unless the user explicitly opts out.
196
-
197
- This step is complete only when config validates and every setting has a reason.
198
-
199
- ### 6. Hand off cleanup
200
-
201
- After setup, invoke `scip-cleanup-audit` when the user wants a report or `scip-cleanup-improve` when the user wants autonomous cleanup.
59
+ `setup` is the bootstrap orchestrator: it installs/repairs language indexers,
60
+ installs Tree-sitter grammars, installs bundled agent skills and hooks,
61
+ enables demand-started incremental indexing, builds SQLite shards, starts the
62
+ project service, checks semantic readiness, and reports repository/checkout/
63
+ environment/runtime state separately. Prefer this single command over
64
+ hand-running its internals. Full step-by-step handling — including what to do
65
+ when it reports `partial` or `blocked` — is in
66
+ [Bootstrap workflow](references/bootstrap-workflow.md).
67
+
68
+ Do not manually install AST grammar packages before trying `setup`. If npm's
69
+ script-approval gate blocks a native package, report the pending packages and
70
+ ask the user to approve them — a package must not approve its own install
71
+ scripts.
72
+
73
+ ## Rules (apply across every scenario)
74
+
75
+ 1. Prefer the single `setup` command over hand-running its internals.
76
+ 2. Do not run `scip-query setup-ci` unless the user explicitly asks for CI
77
+ setup.
78
+ 3. Treat unavailable capabilities as unproven, not clean. A missing semantic
79
+ provider is "unsupported," never "clean semantic analysis."
80
+ 4. Keep `.scipquery.json` minimal and evidence-backed — add a setting only for
81
+ an observed repo fact, with a reason.
82
+ 5. Let `setup` install detected AST parser packages and supported indexers; do
83
+ not make users reproduce package-manager commands unless `setup` reports a
84
+ blocker.
85
+ 6. A demand-started service or Rust helper in `stopped` state can still be
86
+ correctly configured. Availability comes from capabilities; lifecycle state
87
+ only says whether current work keeps the helper awake.
202
88
 
203
- Report:
89
+ ## Report template
204
90
 
205
91
  ```markdown
206
92
  Setup: ready/partial/blocked
207
93
  Capabilities:
208
-
209
94
  - available:
210
95
  - unavailable:
211
- Health:
96
+ Health:
212
97
  - score:
213
98
  - dossier:
214
- Written or changed:
99
+ Written or changed:
215
100
  - files:
216
- Runtime:
101
+ Runtime:
217
102
  - automatic indexing:
218
103
  - TypeScript project/index sessions:
219
104
  - Rust semantic transport/lifecycle:
220
- Next:
105
+ Next:
221
106
  - cleanup audit/improve, CI setup, or external blocker
222
107
  ```
108
+
109
+ Fill this in as the closing report for any bootstrap or repair pass — it is
110
+ the fixed template regardless of which reference scenario you used.
@@ -1,4 +1,4 @@
1
1
  interface:
2
- display_name: "scip-query setup"
3
- short_description: "Bootstrap or repair scip-query indexing, diagnostics, hooks, guidance, and health dossiers"
4
- default_prompt: "Set up or repair scip-query in this repository, report readiness and blockers, and hand off the next cleanup step."
2
+ display_name: "SCIP Setup"
3
+ short_description: "Bootstrap or repair scip-query in a repo"
4
+ default_prompt: "Use $scip-setup to adopt, repair or diagnose scip-query itself in this repository."
@@ -0,0 +1,120 @@
1
+ # Bootstrap workflow
2
+
3
+ Six ordered steps. Each has a completion condition — do not treat the step as
4
+ done until the condition is met.
5
+
6
+ ## 1. Confirm the root
7
+
8
+ ```bash
9
+ pwd
10
+ git rev-parse --show-toplevel
11
+ scip-query --version
12
+ ```
13
+
14
+ Complete only when the repository root and a runnable `scip-query` command
15
+ are known, or the install/link blocker is reported.
16
+
17
+ ## 2. Run setup
18
+
19
+ ```bash
20
+ scip-query setup --json
21
+ ```
22
+
23
+ `scip-query setup` is the bootstrap orchestrator. In a terminal it opens an
24
+ interactive checklist by default. For an agent or script, `scip-query setup
25
+ --json` runs the recommended non-interactive path and returns every result —
26
+ JSON mode is intentionally non-interactive and suitable for agents. When a
27
+ human is operating the terminal, prefer plain `scip-query setup` (no `--json`)
28
+ so they can review the checklist with arrow keys and Space. Use `scip-query
29
+ setup --yes` to accept recommended defaults without prompting.
30
+
31
+ Use `scip-query setup --no-hooks --json` when project-local Codex or Claude
32
+ Code lifecycle hooks should not be written. Use `scip-query setup --git-hook
33
+ --json` only when the user wants the local pre-commit diff gate.
34
+
35
+ The command, in full:
36
+
37
+ - detects supported project languages and lets a terminal user select them;
38
+ - installs or repairs supported language indexers when a safe installer
39
+ exists;
40
+ - installs the Tree-sitter runtime and detected language grammars from the
41
+ versions pinned by the installed scip-query package;
42
+ - installs bundled agent skills and checkout-local Codex/Claude hooks unless
43
+ explicitly skipped;
44
+ - enables demand-started automatic incremental indexing unless the repository
45
+ has or selects an explicit opt-out;
46
+ - builds or reuses language/project shards and publishes one atomic SQLite
47
+ generation with recovery state;
48
+ - starts or reuses the clean-idle project service and verifies its lifecycle;
49
+ - checks TypeScript and Rust semantic readiness, compiler/checker readiness,
50
+ representative commands, and optional health output;
51
+ - reports repository, checkout, user-environment, and rebuildable runtime
52
+ state separately.
53
+
54
+ Complete only when `setup` reports `ready`, `partial`, or `blocked` and names
55
+ every written, skipped, or blocked artifact.
56
+
57
+ ## 3. Resolve blockers
58
+
59
+ ```bash
60
+ scip-query doctor
61
+ scip-query status --json
62
+ scip-query capabilities --matrix
63
+ scip-query config-validate --json
64
+ ```
65
+
66
+ `doctor` is the human diagnostic surface for config, index freshness, and
67
+ dependency readiness. `status --json` is the machine surface for freshness
68
+ and config. `capabilities --matrix` reports which evidence/verification
69
+ capabilities are available. `config-validate --json` validates
70
+ `.scipquery.json`.
71
+
72
+ Fix missing indexers, stale indexes, invalid config, or unavailable
73
+ verification only when the fix is safe; otherwise record the exact external
74
+ action needed (e.g. "user must approve npm install scripts for
75
+ tree-sitter-rust").
76
+
77
+ Complete only when each blocker is fixed, reported unavailable with a reason,
78
+ or waiting on a named external action.
79
+
80
+ ## 4. Verify the language-specific optimal path
81
+
82
+ See [Language verification](language-verification.md) for what to check per
83
+ language and how to interpret `stopped`/idle service states.
84
+
85
+ ```bash
86
+ scip-query status --capabilities
87
+ scip-query reindex --json
88
+ scip-query watch --status --json
89
+ ```
90
+
91
+ Complete only when every selected language has an explicit
92
+ indexing/source/semantic/checker verdict and the published generation is
93
+ fresh.
94
+
95
+ ## 5. Calibrate config only when needed
96
+
97
+ Run `scip-query init` only when `.scipquery.json` is absent and the project
98
+ needs config — it creates the config file. Add settings only for observed
99
+ repo facts: explicit languages, indexer projects, entry roots, declared
100
+ couplings, locality boundaries, or accepted suppressions.
101
+
102
+ - For TypeScript monorepos, prefer `indexer.typescript.projectMode:
103
+ "workspace"` when multiple project shards are real (see
104
+ [Language verification](language-verification.md) for when this earns its
105
+ keep).
106
+ - Add `indexerConcurrency` only when measured cold-index timing or memory
107
+ pressure justifies it.
108
+ - Keep `watch.enabled: true` for the designed demand-started lifecycle unless
109
+ the user explicitly opts out.
110
+
111
+ Complete only when config validates and every setting has a stated reason.
112
+
113
+ ## 6. Hand off
114
+
115
+ After setup, invoke `scip-audit` when the user wants a report, or
116
+ `scip-improve` when the user wants autonomous cleanup. If the repo is
117
+ new to scip-query, also route through [Per-repo triage](per-repo-triage.md)
118
+ so standing findings get encoded once rather than recurring on every gate run.
119
+
120
+ Close with the report template in the top-level `SKILL.md`.
@@ -0,0 +1,61 @@
1
+ # Language-specific verification
2
+
3
+ Used in bootstrap workflow step 4, and any time an index or capability report
4
+ looks wrong for a specific language.
5
+
6
+ ## TypeScript, JavaScript, and Vue
7
+
8
+ Require these capability rows to explain their state:
9
+
10
+ - `scip-typescript` is runnable for SCIP indexing;
11
+ - the detected Tree-sitter TypeScript/JavaScript parser is available for
12
+ source facts;
13
+ - ts-morph semantic readiness is available for TypeScript;
14
+ - the demand-started service is enabled and status exposes TypeScript
15
+ semantic and TypeScript index session counters.
16
+
17
+ For a real multi-project TypeScript monorepo, set
18
+ `indexer.typescript.projectMode: "workspace"`. This makes project/tsconfig
19
+ boundaries the sub-shards, so a changed project and its project-reference,
20
+ workspace-package, or tsconfig-path dependents rebuild while unrelated
21
+ project shards are reused. Use `indexer.typescript.projects` only when
22
+ automatic discovery is too broad; a non-empty list there is authoritative.
23
+
24
+ Do not enable TypeScript workspace mode for a single-project repository
25
+ merely to seek speed — the normal incremental document producer and
26
+ persistent ts-morph service already reuse unchanged work.
27
+
28
+ ## Rust
29
+
30
+ Require these distinct facts:
31
+
32
+ - `rust-analyzer` is runnable and supports `rust-analyzer scip` for indexing;
33
+ - the Tree-sitter Rust grammar is available for source facts;
34
+ - Rust semantic readiness is available for compiler-backed references,
35
+ callees, signatures, and module/use evidence;
36
+ - status reports the durable Rust transport with worker fallback.
37
+
38
+ A `stopped` state for the Rust transport (or any demand-started helper) is
39
+ healthy when no semantic request currently needs the clean-idle helper —
40
+ lifecycle state is not the same signal as capability availability.
41
+
42
+ If `rust-analyzer` is missing and `rustup` is available, `setup` can run
43
+ `rustup component add rust-analyzer`. `SCIP_RUST_SEMANTIC_DURABLE_SESSION=0`
44
+ is an explicit worker-only fallback, not the optimal default — do not set it
45
+ as a default recommendation.
46
+
47
+ ## Other languages
48
+
49
+ Trust the capability matrix, not a language name. `setup` may install
50
+ supported indexers automatically (for example Python or Go), may provide only
51
+ source facts through a detected Tree-sitter grammar, or may report a manual
52
+ install URL. A missing semantic provider must be reported as unsupported,
53
+ never as a clean semantic analysis.
54
+
55
+ ## Verification commands
56
+
57
+ ```bash
58
+ scip-query status --capabilities
59
+ scip-query reindex --json
60
+ scip-query watch --status --json
61
+ ```
@@ -0,0 +1,119 @@
1
+ # Lifecycle commands
2
+
3
+ `setup` runs most of these internally during a full bootstrap. Reach for one
4
+ directly when only a slice of the footprint needs installing, refreshing, or
5
+ removing — not a full re-bootstrap.
6
+
7
+ ## install-skills
8
+
9
+ ```bash
10
+ scip-query install-skills
11
+ ```
12
+
13
+ When: bundled skills are missing, out of date after a scip-query upgrade, or
14
+ a new agent root (Claude Code, Codex, or a shared agent root) needs the skill
15
+ set that another root already has. Installs `_shared`, `scip-query`,
16
+ `scip-setup`, and the consolidated workflow family into Claude Code, Codex, and
17
+ shared agent roots.
18
+
19
+ Output to check: the list of skills written or linked per root. Confirm no
20
+ root was silently skipped — an agent root present in the repo but absent from
21
+ the output means that root did not get the skills.
22
+
23
+ ## setup-agent
24
+
25
+ ```bash
26
+ scip-query setup-agent
27
+ ```
28
+
29
+ When: `AGENTS.md`/`CLAUDE.md` has no block pointing agents at the scip-query
30
+ skills and diff gate, or the block is stale relative to the installed
31
+ version. Seeds that guidance block, plus an optional git pre-commit backstop.
32
+
33
+ Output to check: the diff to `AGENTS.md`/`CLAUDE.md` — confirm the block was
34
+ added or refreshed in place rather than duplicated.
35
+
36
+ ## setup-hooks
37
+
38
+ ```bash
39
+ scip-query setup-hooks
40
+ ```
41
+
42
+ When: project-local Codex or Claude Code lifecycle hooks are missing (never
43
+ installed, or wiped by a settings reset) or need refreshing after a
44
+ scip-query upgrade changed hook contracts.
45
+
46
+ Output to check: which hook files were written per tool; treat a tool with no
47
+ hook file as not covered.
48
+
49
+ ## setup-ci
50
+
51
+ ```bash
52
+ scip-query setup-ci
53
+ ```
54
+
55
+ When: the user explicitly asks for CI setup — do not run this unless asked.
56
+ Writes a GitHub Actions workflow that runs `scip-query reindex` and
57
+ `diff-gate` on pull requests.
58
+
59
+ Output to check: the workflow file path written. Tell the user to commit it
60
+ and confirm it triggers on the next PR; this command only writes the file, it
61
+ does not verify the workflow runs.
62
+
63
+ ## check-deps
64
+
65
+ ```bash
66
+ scip-query check-deps
67
+ ```
68
+
69
+ When: you need a fast preflight on whether scip-query and the detected
70
+ language indexers are actually runnable, without running the full `setup`
71
+ sequence — for example, diagnosing a `doctor` complaint about a specific
72
+ indexer, or confirming an environment before a CI run.
73
+
74
+ Output to check: per-indexer runnable/not-runnable verdicts. A "not runnable"
75
+ verdict here is the reason to go fix that indexer before trusting any index
76
+ built from it.
77
+
78
+ ## augment-sources
79
+
80
+ ```bash
81
+ scip-query augment-sources
82
+ ```
83
+
84
+ When: files are missing from the index even after a clean `reindex`, because
85
+ the upstream SCIP indexer for that language skips them (common for
86
+ non-source files, generated files it doesn't recognize, or files outside its
87
+ project graph). Adds those source files to the SQLite documents table
88
+ directly so source-fact queries can see them.
89
+
90
+ Output to check: the count and list of files added. If a file you expected is
91
+ still absent, it means the indexer skip reason is not one `augment-sources`
92
+ covers — investigate the specific file rather than re-running the command.
93
+
94
+ ## capability-matrix
95
+
96
+ ```bash
97
+ scip-query capability-matrix
98
+ ```
99
+
100
+ Deprecated alias for `capabilities --matrix`. If you see this in an older
101
+ script or muscle memory, prefer `scip-query capabilities --matrix` directly —
102
+ same output, current name.
103
+
104
+ ## uninstall
105
+
106
+ ```bash
107
+ scip-query uninstall
108
+ ```
109
+
110
+ When: the user wants scip-query's footprint removed from the repo —
111
+ decommissioning, or before trying an alternative tool. Removes
112
+ scip-query-owned skill links, project hooks, and managed agent setup blocks.
113
+
114
+ Output to check: confirm the removal list covers every artifact `setup`
115
+ reported writing (skills, hooks, agent guidance blocks). Anything `setup`
116
+ wrote that `uninstall` doesn't list as removed needs manual follow-up — for
117
+ example config files (`.scipquery.json`) and the SQLite index are
118
+ intentionally left in place since they may hold data the user still wants;
119
+ tell the user explicitly if they want those gone too.
@@ -0,0 +1,24 @@
1
+ # Per-repo triage (once, after setup)
2
+
3
+ New repos surface standing findings that are intentional. Encode them once so
4
+ every later gate run is precise, instead of re-litigating the same findings
5
+ every time `diff-gate` runs.
6
+
7
+ 1. Sweep initial findings with `health --json` and `diff-gate --json`. For
8
+ each accepted finding, run `suppress <id> --reason <why>` — reasons are
9
+ required and audited.
10
+ 2. Declare files that legitimately change together in `.scipquery.json`
11
+ `declaredCouplings`.
12
+ 3. List dated snapshot docs (benchmarks, validation ledgers, historical
13
+ plans/reviews) in `docs.snapshotPaths` so doc checks skip them with a
14
+ labeled exclusion instead of recurring findings.
15
+ 4. Seed `coverageContracts` for every hand-maintained enumeration (policy
16
+ maps, capability tables, registry lists) so enumeration rot fails the gate
17
+ the day it happens.
18
+ 5. Set a hygiene cadence: run the twin-drift and claim scenarios in
19
+ `scip-audit` after
20
+ large refactor campaigns or quarterly. The gate only sees diffs; these
21
+ lenses see accumulated state.
22
+
23
+ Complete only when a clean working tree produces a finding-free `diff-gate`
24
+ and every suppression carries a reason a reviewer would accept.