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,130 +0,0 @@
1
- ---
2
- name: scip-debug
3
- description: Debug why something is broken, does not work, crashes, fails a test, returns wrong data, or regressed. Uses scip-query to trace the runtime path and data flow, separate rival causes, and make the smallest verified fix.
4
- commands:
5
- - template: 'scip-query files <feature-or-error-term>'
6
- when: 'Find the entry point from a feature name or error term.'
7
- - template: 'scip-query trace <candidate-symbol>'
8
- when: 'Find the entry point: definition plus every reference.'
9
- - template: 'scip-query call-graph <entry-symbol>'
10
- when: 'Follow execution: callers and callees along the failing path.'
11
- - template: 'scip-query dataflow <symbol-or-variable>'
12
- when: 'Follow data: producers, consumers, and usage sites.'
13
- - template: 'scip-query similar <suspect-symbol> --json --full'
14
- when: 'Compare nearby implementations for missing guards or handling.'
15
- - template: 'scip-query change-surface <suspect-file> --json --full'
16
- when: 'Bound the fix: exports, consumers, and blast-radius risk.'
17
- ---
18
-
19
- # scip-debug
20
-
21
- Use this skill to move from a reported failure to a minimal verified fix. A bug is a mismatch between expected behavior and observed behavior in a concrete execution path. A root cause is the earliest code fact in that path that explains the mismatch.
22
-
23
- Load shared mechanics from [`../_shared/SKILL.md`](../_shared/SKILL.md).
24
-
25
- <!-- BEGIN GENERATED SKILL COMMANDS -->
26
- ## Commands for this skill
27
-
28
- | Command | Purpose | Returns | Coverage | When |
29
- | --- | --- | --- | --- | --- |
30
- | `scip-query files <feature-or-error-term>` | Find files matching a pattern | matching file paths | `complete` | Find the entry point from a feature name or error term. |
31
- | `scip-query trace <candidate-symbol>` | Trace a symbol: definition + all references | definition sites with source and signature; referencing files with line numbers | `bounded` | Find the entry point: definition plus every reference. |
32
- | `scip-query call-graph <entry-symbol>` | Show incoming callers and outgoing callees for a symbol | caller and callee symbol identities with files | `bounded` | Follow execution: callers and callees along the failing path. |
33
- | `scip-query dataflow <symbol-or-variable>` | Reference-level dataflow: definition sites, usage sites, producers, consumers | definition sites, usage sites, producer symbols, and consumer symbols | `bounded` | Follow data: producers, consumers, and usage sites. |
34
- | `scip-query similar <suspect-symbol> --json --full` | Find heuristic function similarity candidates from callee fingerprints | symbol pairs, similarity scores, and shared evidence | `bounded` | Compare nearby implementations for missing guards or handling. |
35
- | `scip-query change-surface <suspect-file> --json --full` | Pre-change briefing: exports, consumers, and blast-radius risk | defined symbols, external consumer counts, and risk levels | `bounded` | Bound the fix: exports, consumers, and blast-radius risk. |
36
-
37
- Use this shortlist first. Open [`../_shared/SKILL.md`](../_shared/SKILL.md) only when it is insufficient.
38
- <!-- END GENERATED SKILL COMMANDS -->
39
-
40
- ## Rules
41
-
42
- 1. Reproduce or restate the failure before editing.
43
- 2. Use scip-query to find entry points, call paths, data flow, and blast radius.
44
- 3. Prefer one narrow fix over broad cleanup.
45
- 4. Verify with the narrowest repo test or smoke command, then invoke `scip-verify`.
46
- 5. A root-cause claim whose fix crosses a file boundary requires a rival: state the next-most-plausible explanation for the same symptom and run the observation that separates them. A root cause with no rival considered is a guess with confidence.
47
-
48
- ## Workflow
49
-
50
- ### 1. Pin the failure
51
-
52
- Record observed behavior, expected behavior, reproducing command/route/UI action/test/job/file, error text or wrong output, and regression window if known.
53
-
54
- If no reproduction is provided, build the smallest runnable reproduction from existing tests, scripts, CLI, or app entry points.
55
-
56
- This step is complete only when the mismatch is concrete enough to test or the missing external fact is named.
57
-
58
- ### 2. Find the entry point
59
-
60
- ```bash
61
- scip-query files <feature-or-error-term>
62
- scip-query outline <candidate-file>
63
- scip-query trace <candidate-symbol>
64
- scip-query code <candidate-symbol>
65
- ```
66
-
67
- Use `kind-counts` or `by-kind` when the codebase is unfamiliar.
68
-
69
- This step is complete only when the failing path has a plausible entry point with source evidence.
70
-
71
- ### 3. Follow execution and data
72
-
73
- ```bash
74
- scip-query call-graph <entry-symbol>
75
- scip-query code <callee-symbol>
76
- scip-query refs <state-or-api-symbol>
77
- scip-query fan-in <suspect-symbol>
78
- scip-query fan-out <suspect-file>
79
- scip-query dataflow <symbol-or-variable>
80
- scip-query slice <symbol-or-variable>
81
- scip-query slice <symbol-or-variable> --forward
82
- ```
83
-
84
- Stop expanding when the first code fact that can cause the symptom is found.
85
-
86
- When a candidate cause emerges, state it as a hypothesis alongside one rival — the next-most-plausible explanation for the same symptom. Name the observation that distinguishes them (a log line, a probe, a narrower test) and execute it. Choose the discriminator that is cheapest to run, not the one most likely to confirm.
87
-
88
- This step is complete only when the path explains the symptom or the missing evidence is explicit.
89
-
90
- ### 4. Compare nearby implementations
91
-
92
- ```bash
93
- scip-query similar <suspect-symbol> --json --full
94
- scip-query similar <suspect-symbol> <similar-symbol> --plan
95
- scip-query similar-files <suspect-file> --json --full
96
- ```
97
-
98
- Use comparisons to find missing guards, conversions, lifecycle steps, or error handling. Preserve essential differences.
99
-
100
- This step is complete only when comparisons either support the fix or are rejected with a reason.
101
-
102
- ### 5. Bound and fix
103
-
104
- ```bash
105
- scip-query change-surface <suspect-file> --json --full
106
- scip-query affected <suspect-symbol> --json
107
- ```
108
-
109
- Make the smallest code change that fixes the root cause.
110
-
111
- This step is complete only when the changed symbol/file is justified by blast-radius evidence.
112
-
113
- ### 6. Verify
114
-
115
- Run the reproduction, narrow test or smoke command, and invoke `scip-verify`.
116
-
117
- ## Report
118
-
119
- ```markdown
120
- Bug:
121
- Entry point:
122
- Root cause:
123
- Rival considered:
124
- Discriminator: <the executed observation that separated them>
125
- Fix:
126
- Verification:
127
- Remaining risk:
128
- ```
129
-
130
- Do not present a guess as a root cause. A root cause with no rival considered and no executed discriminator is a guess. If no root cause is proven, report the missing evidence.
@@ -1,4 +0,0 @@
1
- interface:
2
- display_name: "SCIP Debug"
3
- short_description: "Root-cause bugs with scip-query evidence"
4
- default_prompt: "Use scip-query to trace a bug from entry point to root cause, propose a minimal fix, and verify the blast radius."
@@ -1,110 +0,0 @@
1
- ---
2
- name: scip-diagram
3
- description: Diagram code with scip-query evidence. Use for code flow diagrams, architecture diagrams, data-flow maps, dependency maps, blast-radius visuals, module maps, or HTML artifacts explaining a system.
4
- commands:
5
- - template: 'scip-query system <module>'
6
- when: 'Collect evidence: module map for a dependency or architecture diagram.'
7
- - template: 'scip-query trace <symbol>'
8
- when: 'Collect evidence: definition plus references for a call-flow diagram.'
9
- - template: 'scip-query call-graph <symbol>'
10
- when: 'Collect evidence: callers/callees for a call-flow diagram.'
11
- - template: 'scip-query dataflow <symbol>'
12
- when: 'Collect evidence: producers/consumers for a data-flow diagram.'
13
- - template: 'scip-query affected <symbol> --json'
14
- when: 'Collect evidence: blast-radius nodes and edges.'
15
- - template: 'scip-query change-surface <file> --json --full'
16
- when: 'Collect evidence: exports and consumers for a change-surface map.'
17
- ---
18
-
19
- # scip-diagram
20
-
21
- Use this skill to build a visual explanation from compiler-resolved facts. A code diagram is an HTML artifact that turns source units, calls, dependencies, data flow, or blast radius into a visual map; every node and edge must trace to scip-query evidence.
22
-
23
- Load shared mechanics from [`../_shared/SKILL.md`](../_shared/SKILL.md).
24
-
25
- <!-- BEGIN GENERATED SKILL COMMANDS -->
26
- ## Commands for this skill
27
-
28
- | Command | Purpose | Returns | Coverage | When |
29
- | --- | --- | --- | --- | --- |
30
- | `scip-query system <module>` | Full module map: files, symbols, deps in/out | module file paths; exported symbols with line ranges; internal dependencies; reverse dependencies | `complete` | Collect evidence: module map for a dependency or architecture diagram. |
31
- | `scip-query trace <symbol>` | Trace a symbol: definition + all references | definition sites with source and signature; referencing files with line numbers | `bounded` | Collect evidence: definition plus references for a call-flow diagram. |
32
- | `scip-query call-graph <symbol>` | Show incoming callers and outgoing callees for a symbol | caller and callee symbol identities with files | `bounded` | Collect evidence: callers/callees for a call-flow diagram. |
33
- | `scip-query dataflow <symbol>` | Reference-level dataflow: definition sites, usage sites, producers, consumers | definition sites, usage sites, producer symbols, and consumer symbols | `bounded` | Collect evidence: producers/consumers for a data-flow diagram. |
34
- | `scip-query affected <symbol> --json` | Transitive closure of symbols that could break if this symbol changes | affected symbol identities, files, and traversal depths | `bounded` | Collect evidence: blast-radius nodes and edges. |
35
- | `scip-query change-surface <file> --json --full` | Pre-change briefing: exports, consumers, and blast-radius risk | defined symbols, external consumer counts, and risk levels | `bounded` | Collect evidence: exports and consumers for a change-surface map. |
36
-
37
- Use this shortlist first. Open [`../_shared/SKILL.md`](../_shared/SKILL.md) only when it is insufficient.
38
- <!-- END GENERATED SKILL COMMANDS -->
39
-
40
- ## Rules
41
-
42
- 1. Run evidence before drawing.
43
- 2. Default to a self-contained HTML file.
44
- 3. Include command provenance in the artifact.
45
- 4. Scope large graphs into clusters instead of rendering a hairball.
46
- 5. Verify the HTML opens and the diagram is nonblank.
47
-
48
- ## Workflow
49
-
50
- ### 1. Pick diagram type
51
-
52
- | User wants | Diagram |
53
- | -------------------------- | -------------------------------- |
54
- | Feature flow | Call flow |
55
- | Value origin or mutation | Data flow |
56
- | Dependents | Blast radius |
57
- | Module architecture | Dependency map |
58
- | Hard-to-change explanation | Change surface or bottleneck map |
59
- | Classes or ownership | Hierarchy and surface map |
60
-
61
- This step is complete only when the diagram's node and edge types are chosen.
62
-
63
- ### 2. Collect evidence
64
-
65
- Use only commands needed for the chosen diagram:
66
-
67
- ```bash
68
- scip-query system <module>
69
- scip-query surface <module>
70
- scip-query outline <file>
71
- scip-query trace <symbol>
72
- scip-query code <symbol>
73
- scip-query call-graph <symbol>
74
- scip-query dataflow <symbol>
75
- scip-query slice <symbol>
76
- scip-query slice <symbol> --forward
77
- scip-query deps <file>
78
- scip-query rdeps <file>
79
- scip-query affected <symbol> --json
80
- scip-query change-surface <file> --json --full
81
- scip-query hierarchy <symbol> --json
82
- scip-query fan-out <file> --json
83
- ```
84
-
85
- This step is complete only when every planned node and edge has a source command.
86
-
87
- ### 3. Build the artifact
88
-
89
- Write to:
90
-
91
- ```text
92
- docs/scip-query/diagrams/YYYY-MM-DD-<scope>.html
93
- ```
94
-
95
- Include title, scope, summary, visual diagram, legend, evidence table, omitted/collapsed nodes, and unavailable capabilities.
96
-
97
- Use inline CSS and semantic HTML or inline SVG. Give stable dimensions, wrapping labels, accessible colors, and distinct edge styles for calls, data, dependencies, and risk.
98
-
99
- This step is complete only when the HTML contains the visual and provenance table.
100
-
101
- ### 4. Verify
102
-
103
- Open the file locally or use a browser/screenshot tool when available. Confirm:
104
-
105
- - diagram is nonblank;
106
- - labels do not overlap badly;
107
- - major nodes and edges trace to evidence;
108
- - `scip-verify` has been invoked when this is part of a docs/code change.
109
-
110
- End with the file path and what the diagram proves.
@@ -1,4 +0,0 @@
1
- interface:
2
- display_name: "SCIP Diagram"
3
- short_description: "Create HTML code-flow diagrams from scip-query"
4
- default_prompt: "Generate an HTML diagram that explains this code path using scip-query evidence and command provenance."
@@ -1,266 +0,0 @@
1
- ---
2
- name: scip-directory-architecture
3
- description: Review directory architecture with scip-query evidence. Use to evaluate, design, reorganize, or migrate folder structure, ownership boundaries, locality config, messy repos, AI-generated layout, or safe file-move slices.
4
- commands:
5
- - template: 'scip-query system <scope>'
6
- when: 'Inventory evidence: files, symbols, deps in/out for the scope.'
7
- - template: 'scip-query locality-candidates --json --full'
8
- when: 'Inventory evidence: directory-locality candidates from consumer ownership.'
9
- - template: 'scip-query similar-files --full --json'
10
- when: 'Inventory evidence: files with overlapping dependency profiles.'
11
- - template: 'scip-query cycles'
12
- when: 'Inventory evidence: circular dependency chains between files.'
13
- - template: 'scip-query architecture --json'
14
- when: 'Measure configured boundaries, actual dependency traffic, forbidden edges, reciprocal pairs, and boundary cycles.'
15
- - template: 'scip-query drift --architecture'
16
- when: 'Review direct drift findings together with boundary coverage and architecture signals.'
17
- - template: 'scip-query co-change --json --full'
18
- when: 'Inventory evidence: hidden file-level coupling from git history.'
19
- - template: 'scip-query health --write-baseline'
20
- when: 'Record reviewed existing debt before enabling architecture regression enforcement.'
21
- - template: 'scip-query diff-gate'
22
- when: 'Verify that the current diff introduces no new declared architecture violation.'
23
- - template: 'scip-query config-validate --json'
24
- when: 'Implement a slice: validate locality config after a move.'
25
- ---
26
-
27
- # scip-directory-architecture
28
-
29
- Use this skill to answer where code should live. Directory architecture is the filesystem arrangement of source files by their main reason to change; what distinguishes a good structure is that a maintainer can predict where a concept belongs before reading every import.
30
-
31
- Load shared mechanics from [`../_shared/SKILL.md`](../_shared/SKILL.md).
32
-
33
- <!-- BEGIN GENERATED SKILL COMMANDS -->
34
- ## Commands for this skill
35
-
36
- | Command | Purpose | Returns | Coverage | When |
37
- | --- | --- | --- | --- | --- |
38
- | `scip-query system <scope>` | Full module map: files, symbols, deps in/out | module file paths; exported symbols with line ranges; internal dependencies; reverse dependencies | `complete` | Inventory evidence: files, symbols, deps in/out for the scope. |
39
- | `scip-query locality-candidates --json --full` | Find directory-locality and ancestry candidates from consumer ownership | symbols, current homes, consumer locality, and suggested homes | `bounded` | Inventory evidence: directory-locality candidates from consumer ownership. |
40
- | `scip-query similar-files --full --json` | Find heuristic similar-file candidates from dependency profiles | file pairs with similarity scores and shared symbols | `bounded` | Inventory evidence: files with overlapping dependency profiles. |
41
- | `scip-query cycles` | Detect circular dependency chains between files | dependency-cycle file chains | `bounded` | Inventory evidence: circular dependency chains between files. |
42
- | `scip-query architecture --json` | Evaluate project-owned architectural boundaries and dependency rules | boundary coverage and dependency-rule violations | `complete` | Measure configured boundaries, actual dependency traffic, forbidden edges, reciprocal pairs, and boundary cycles. |
43
- | `scip-query drift --architecture` | Detect drift candidates: unused imports and declared architecture violations; pass --architecture for boundary context | drifted symbol families, files, and evidence | `bounded` | Review direct drift findings together with boundary coverage and architecture signals. |
44
- | `scip-query co-change --json --full` | Files that change together in git history without a dependency edge — hidden coupling candidates | file pairs, co-change counts, confidence, and history context | `bounded` | Inventory evidence: hidden file-level coupling from git history. |
45
- | `scip-query health --write-baseline` | Composite codebase health report with prioritized action list | health score, findings, priorities, baselines, and coverage notes | `bounded` | Record reviewed existing debt before enabling architecture regression enforcement. |
46
- | `scip-query diff-gate` | Gate the current diff: architecture regressions plus echo, migration, coordination, doc-drift, unused-param, and new-dead candidates; exit 1 on blocking findings | blocking findings with check id, message, and remediation; advisory findings; root-cause groups; changed file and symbol counts; process exit status (1 when blocking findings exist) | `bounded` | Verify that the current diff introduces no new declared architecture violation. |
47
- | `scip-query config-validate --json` | Validate .scipquery.json, including structured suppressions and declared coupling groups | validation diagnostics with config paths | `complete` | Implement a slice: validate locality config after a move. |
48
-
49
- Use this shortlist first. Open [`../_shared/SKILL.md`](../_shared/SKILL.md) only when it is insufficient.
50
- <!-- END GENERATED SKILL COMMANDS -->
51
-
52
- ## Terms
53
-
54
- An ownership boundary is a folder, package, module, or convention that groups code around one stable responsibility.
55
-
56
- A dependency edge points from code that relies on something to the code it relies on. For imports, `A -> B` means A imports B.
57
-
58
- A forbidden edge is an actual cross-boundary dependency rejected by an explicit project rule. Directory distance or an unusual import does not make an edge forbidden by itself.
59
-
60
- A layer is a responsibility ordered by dependency direction, such as presentation depending on application. A subsystem is a responsibility that owns an end-to-end capability, such as authentication or rendering. A package is a publication or build unit. A service is an independently running unit. Do not force all four into one layer hierarchy.
61
-
62
- A reciprocal dependency is dependency traffic in both directions between two boundaries. It is a review signal because the boundaries exert mutual change pressure, not proof that either import is wrong.
63
-
64
- An architecture ratchet is an enforcement rule that records existing violations while preventing new ones, allowing a large codebase to improve without a speculative rewrite.
65
-
66
- A target structure is a proposed future layout that expresses an ownership model, not merely a prettier tree.
67
-
68
- A migration slice is the smallest set of file moves and import updates that can be verified independently.
69
-
70
- A slop codebase is a codebase whose files are arranged by accident, convenience, or recent edits rather than stable ownership rules.
71
-
72
- ## Rules
73
-
74
- 1. Start with evidence, not taste.
75
- 2. Separate review from migration; do not move files unless asked.
76
- 3. Preserve broad boundaries when evidence shows they are intentional.
77
- 4. Do not reward generic `shared` unless the shared concept has a name, owner, and cross-boundary consumers.
78
- 5. For messy repos, produce a discovery map and decisions instead of pretending the target is obvious.
79
- 6. Prefer small verified moves.
80
- 7. Configure descriptive boundaries before closing dependency rules.
81
- 8. Treat graph shape as evidence about responsibilities, never as a substitute for identifying them.
82
-
83
- ## Workflow
84
-
85
- ### 1. Bound the question
86
-
87
- Classify the request: review, target structure, locality config, migration plan, or implementation.
88
-
89
- This step is complete only when the scope and deliverable are explicit.
90
-
91
- ### 2. Inventory evidence
92
-
93
- ```bash
94
- scip-query stats
95
- scip-query system <scope>
96
- scip-query files <pattern>
97
- scip-query surface <scope>
98
- scip-query deps <file>
99
- scip-query rdeps <file>
100
- scip-query change-surface <file>
101
- scip-query plan-context <file-or-symbol>
102
- scip-query locality-candidates --json --full
103
- scip-query cycles
104
- scip-query architecture --json
105
- scip-query drift --architecture
106
- scip-query co-change
107
- scip-query similar-files --min-similarity 0.6 --min-deps 3
108
- scip-query similar-chains --min-similarity 0.5
109
- scip-query recent-duplicates
110
- scip-query drift
111
- ```
112
-
113
- Also read durable project guidance that names architecture, modules, ownership, routes, workflows, contracts, or domains.
114
-
115
- This step is complete only when each folder under review has evidence for exports, entry points, consumers, tests, co-change partners, and claimed ownership rules.
116
-
117
- ### 3. Classify boundary maturity
118
-
119
- Classify each candidate:
120
-
121
- - Mature: repeated, documented, and enforced by imports, tests, routes, packages, standards, or review history.
122
- - Emerging: meaningful and partly repeated, but not consistent enough to configure.
123
- - Accidental: convenience bucket, legacy pile, generated artifact, recent edit cluster, or mixed reasons to change.
124
-
125
- This step is complete only when mature, emerging, and accidental boundaries are separated.
126
-
127
- ### 4. Build a descriptive architecture model
128
-
129
- For a large existing codebase, identify real system units before calling them layers. Inventory:
130
-
131
- - workspace packages and public exports;
132
- - applications, services, and deployable entry points;
133
- - domain capabilities and end-to-end subsystems;
134
- - persistence, network, rendering, compiler, and other technical responsibilities;
135
- - tests, routes, contracts, and ownership or architecture documentation;
136
- - dependency and co-change evidence that shows which files already move as a unit.
137
-
138
- Add mature boundary path patterns to `.scipquery.json` without `allowedDependencies` rows first:
139
-
140
- ```json
141
- {
142
- "architecture": {
143
- "boundaries": [
144
- { "name": "domain", "paths": ["src/domain/**"] },
145
- { "name": "runtime", "paths": ["src/runtime/**"] }
146
- ]
147
- }
148
- }
149
- ```
150
-
151
- Then run:
152
-
153
- ```bash
154
- scip-query config-validate --json
155
- scip-query architecture --json
156
- ```
157
-
158
- Use unmapped and ambiguous files to repair boundary membership. Use actual boundary edges, reciprocal pairs, and strongly connected groups to test whether the names describe real separation.
159
-
160
- This step is complete only when every configured boundary has a stated responsibility and the mapping gaps are understood.
161
-
162
- ### 5. Declare only supported dependency rules
163
-
164
- An `allowedDependencies` row is closed: an outgoing target omitted from a present row is forbidden. A missing row makes no dependency claim.
165
-
166
- ```json
167
- {
168
- "architecture": {
169
- "boundaries": [
170
- { "name": "domain", "paths": ["src/domain/**"] },
171
- { "name": "runtime", "paths": ["src/runtime/**"] }
172
- ],
173
- "allowedDependencies": {
174
- "domain": [],
175
- "runtime": ["domain"]
176
- },
177
- "requireAcyclic": true
178
- }
179
- }
180
- ```
181
-
182
- For each closed row, record the evidence for its intended direction. Do not copy the current dependency graph into the allow-list merely to obtain zero findings. Leave emerging or disputed rows undeclared.
183
-
184
- This step is complete only when every forbidden edge is understood as either implementation debt, a false boundary, or a policy mistake.
185
-
186
- ### 6. Propose structure or decisions
187
-
188
- Use this shape:
189
-
190
- ```markdown
191
- # Directory Architecture Review
192
-
193
- ## Scope
194
-
195
- ## Current Structure Map
196
-
197
- ## Boundary Maturity
198
-
199
- ## Descriptive Architecture Model
200
-
201
- ## Dependency Rules
202
-
203
- ## Forbidden-Edge Ledger
204
-
205
- ## Reciprocal and Cycle Review
206
-
207
- ## Target Structure
208
-
209
- ## Move Ledger
210
-
211
- ## Locality Config
212
-
213
- ## No-Move Decisions
214
-
215
- ## Deferred Decisions
216
-
217
- ## Migration Order
218
- ```
219
-
220
- List no-move decisions when broad consumers, route/package/contract surfaces, infrastructure roles, generic shared risk, or weak evidence make a move harmful.
221
-
222
- This step is complete only when every proposed move has a reason and verification path.
223
-
224
- ### 7. Ratchet, then implement one slice when asked
225
-
226
- For a large repository with existing violations, review the direct findings and
227
- write the shared health baseline:
228
-
229
- ```bash
230
- scip-query drift --architecture
231
- scip-query health --write-baseline
232
- ```
233
-
234
- The baseline records stable architecture identities by boundary pair, not by
235
- whichever example file happens to sort first. The default `scip-query
236
- diff-gate` architecture check then compares only architecture identities; it
237
- does not run every health detector. `diff-gate --baseline` remains the opt-in
238
- full health ratchet and does not duplicate architecture findings.
239
-
240
- Commit `.scipquery-baseline.json` with `.scipquery.json`. A missing baseline
241
- causes the architecture gate to report that enforcement is not enabled; it
242
- does not silently treat the current graph as accepted.
243
-
244
- Prefer inspecting the least-broad edge inside a boundary cycle first, but
245
- determine whether the repair is a move, dependency inversion, named shared
246
- contract, boundary merge, or policy correction.
247
-
248
- Before editing, state files to move, imports/exports/tests/docs to update, expected verification, and rollback risk. Then move the smallest high-confidence slice and run:
249
-
250
- ```bash
251
- scip-query incomplete-migration
252
- scip-query recent-duplicates
253
- scip-query co-change <moved-file-or-config>
254
- ```
255
-
256
- Also run project tests or typecheck for the affected workspace. If `.scipquery.json` locality changed, run:
257
-
258
- ```bash
259
- scip-query config-validate
260
- scip-query locality-candidates --json --full
261
- scip-query architecture --json
262
- scip-query drift --architecture
263
- scip-query diff-gate
264
- ```
265
-
266
- Then invoke `scip-verify`. The implementation is complete only when imports, tests, locality signals, and verification are checked.
@@ -1,4 +0,0 @@
1
- interface:
2
- display_name: "SCIP Directory Architecture"
3
- short_description: "Review and propose source folder boundaries"
4
- default_prompt: "Use $scip-directory-architecture to review this repository directory structure and propose safer ownership boundaries."
@@ -1,89 +0,0 @@
1
- ---
2
- name: scip-doc-reconcile
3
- description: Reconcile living docs with current code using scip-query doc-drift. Use for stale standards, broken file references, docs that cite moved code, agent guidance, or normative contradictions between documentation and implementation.
4
- commands:
5
- - template: 'scip-query doc-drift --json --full'
6
- when: 'Build the worklist: every stale-doc candidate, ranked.'
7
- - template: 'scip-query doc-drift <doc>'
8
- when: 'Reconcile one doc: staleness detail for a single target.'
9
- - template: 'scip-query outline <subject-file>'
10
- when: 'Reconcile one doc: current shape of the code the doc describes.'
11
- - template: 'scip-query trace <symbol>'
12
- when: 'Reconcile one doc: verify a symbol the doc mentions still exists as described.'
13
- - template: 'scip-query code <symbol>'
14
- when: 'Reconcile one doc: re-derive a snippet from current source.'
15
- ---
16
-
17
- # scip-doc-reconcile
18
-
19
- Use this skill to make living documentation true again. A living doc is documentation agents or maintainers use to make present-day changes, such as AGENTS.md, CLAUDE.md, standards, command docs, or workflow docs.
20
-
21
- Load shared mechanics from [`../_shared/SKILL.md`](../_shared/SKILL.md).
22
-
23
- <!-- BEGIN GENERATED SKILL COMMANDS -->
24
- ## Commands for this skill
25
-
26
- | Command | Purpose | Returns | Coverage | When |
27
- | --- | --- | --- | --- | --- |
28
- | `scip-query doc-drift --json --full` | Stale-doc candidates: code the doc references or co-changed with kept changing after the doc stopped | document paths, coupled code subjects, and history evidence | `bounded` | Build the worklist: every stale-doc candidate, ranked. |
29
- | `scip-query doc-drift <doc>` | Stale-doc candidates: code the doc references or co-changed with kept changing after the doc stopped | document paths, coupled code subjects, and history evidence | `bounded` | Reconcile one doc: staleness detail for a single target. |
30
- | `scip-query outline <subject-file>` | Tree view of symbols in a file, with line ranges | symbol names, nesting, and line ranges | `complete` | Reconcile one doc: current shape of the code the doc describes. |
31
- | `scip-query trace <symbol>` | Trace a symbol: definition + all references | definition sites with source and signature; referencing files with line numbers | `bounded` | Reconcile one doc: verify a symbol the doc mentions still exists as described. |
32
- | `scip-query code <symbol>` | Read the source code for a symbol (bounded to its definition range) | definition identity, source, and line range | `complete` | Reconcile one doc: re-derive a snippet from current source. |
33
-
34
- Use this shortlist first. Open [`../_shared/SKILL.md`](../_shared/SKILL.md) only when it is insufficient.
35
- <!-- END GENERATED SKILL COMMANDS -->
36
-
37
- ## Rule
38
-
39
- Separate statement types:
40
-
41
- - Descriptive claims say what the code currently does or where it lives. Update them when code moves.
42
- - Normative claims say what code must or should do. If code violates them, fix the code or escalate the contradiction; do not weaken the standard silently.
43
-
44
- This distinction is the core of doc reconciliation.
45
-
46
- ## Workflow
47
-
48
- ### 1. Build the worklist
49
-
50
- ```bash
51
- scip-query doc-drift --json --full
52
- scip-query doc-drift <doc-or-tree>
53
- ```
54
-
55
- Prioritize broken references, highest staleness, then docs agents read most. Do not reconcile archival records such as dated plans, ADRs, or reports — list them in `.scipquery.json` `docs.snapshotPaths` so `doc-drift` excludes them with a labeled exclusion instead of resurfacing them every sweep.
56
-
57
- This step is complete only when each target doc is selected for a current-use reason.
58
-
59
- ### 2. Reconcile one doc
60
-
61
- For each doc:
62
-
63
- ```bash
64
- scip-query doc-drift <doc>
65
- scip-query outline <subject-file>
66
- scip-query system <module>
67
- scip-query trace <symbol-the-doc-mentions>
68
- scip-query code <symbol>
69
- ```
70
-
71
- Use Git history only to understand why a subject changed, not as a substitute for current code evidence.
72
-
73
- Fix broken references by finding the current code or deleting the obsolete claim. Rewrite stale descriptive claims from current source evidence. Re-derive snippets from `scip-query code`. Record normative contradictions instead of changing standards to bless drifted code.
74
-
75
- This step is complete only when every edited claim is supported by evidence from this session.
76
-
77
- ### 3. Verify
78
-
79
- ```bash
80
- scip-query doc-drift <doc>
81
- ```
82
-
83
- Invoke `scip-verify` when the documentation change is part of a codebase diff. The doc is complete only when staleness drops to zero or the remaining contradiction is explicitly reported.
84
-
85
- ### 4. Report
86
-
87
- Report staleness before and after, broken references fixed, claims updated, normative contradictions, and docs recommended for deletion.
88
-
89
- Do not claim reconciliation is done until `doc-drift` has been rerun.
@@ -1,4 +0,0 @@
1
- interface:
2
- display_name: "SCIP Doc Reconcile"
3
- short_description: "Repair docs that drift from code"
4
- default_prompt: "Use $scip-doc-reconcile to reconcile this documentation with current SCIP-backed code evidence."