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.
- package/CHANGELOG.md +85 -1
- package/README.md +259 -53
- package/dist/augment-vue-worker.js +1 -1
- package/dist/chunk-2465DLHK.js +3 -0
- package/dist/{chunk-7GXM52MI.js → chunk-24GTWJ3N.js} +2 -2
- package/dist/{chunk-NH5ALKPW.js → chunk-2SNGN6U4.js} +2 -2
- package/dist/{chunk-3SVWW4PN.js → chunk-2U3OLUNJ.js} +2 -2
- package/dist/{chunk-XLTP42QA.js → chunk-33KUO7CG.js} +2 -2
- package/dist/{chunk-54HA4ZXH.js → chunk-33XTHFKR.js} +2 -2
- package/dist/{chunk-ZGZUZ7XE.js → chunk-3EDFLQ6A.js} +2 -2
- package/dist/chunk-3ZSJ3PWF.js +16 -0
- package/dist/{chunk-F6O7AAC3.js → chunk-43KC6EQZ.js} +2 -2
- package/dist/{chunk-I5RJM53C.js → chunk-464PLI5O.js} +2 -2
- package/dist/chunk-46XGSFNI.js +2 -0
- package/dist/{chunk-M7AIS73L.js → chunk-47BU5Z4T.js} +2 -2
- package/dist/chunk-4BV4QAZJ.js +5 -0
- package/dist/chunk-4YTUWQ6M.js +18 -0
- package/dist/{chunk-RV2FQIX3.js → chunk-5ML2BNRH.js} +2 -2
- package/dist/{chunk-6NSFJYRC.js → chunk-5YLUDDAF.js} +2 -2
- package/dist/chunk-67QRR5YC.js +6 -0
- package/dist/{chunk-GPBBJ5Y4.js → chunk-6GXYN7YA.js} +3 -3
- package/dist/{chunk-4333ETTV.js → chunk-6M7RONVB.js} +2 -2
- package/dist/chunk-6YTSKJJ3.js +2 -0
- package/dist/{chunk-QDV6RDCP.js → chunk-7FT5Y65S.js} +2 -2
- package/dist/{chunk-XTX6QHOF.js → chunk-7KYNAMMH.js} +2 -2
- package/dist/{chunk-DZ74OMG6.js → chunk-7LSVMFX7.js} +2 -2
- package/dist/{chunk-VTKGCT3V.js → chunk-7QHY3H7P.js} +2 -2
- package/dist/{chunk-MITTUCEH.js → chunk-7RAG65VK.js} +2 -2
- package/dist/{chunk-25LPM4DG.js → chunk-7SWJEWJF.js} +2 -2
- package/dist/{chunk-52ZYCAEO.js → chunk-7VCOXZH3.js} +2 -2
- package/dist/chunk-A2TNXAXO.js +8 -0
- package/dist/{chunk-IUFDSKGG.js → chunk-A3QXWFBK.js} +2 -2
- package/dist/{chunk-4T3LTWUS.js → chunk-AA4UWRNL.js} +2 -2
- package/dist/{chunk-4SALD7RU.js → chunk-ACAM6O5R.js} +2 -2
- package/dist/chunk-APMMR5Y2.js +2 -0
- package/dist/chunk-AQOFWNQJ.js +1 -0
- package/dist/chunk-AZFUMCQB.js +2 -0
- package/dist/{chunk-M7MTH5NR.js → chunk-BDOIKGDI.js} +2 -2
- package/dist/{chunk-BTEE5NZQ.js → chunk-BNXICU42.js} +2 -2
- package/dist/chunk-C5Q44Q5D.js +3 -0
- package/dist/{chunk-EOOJGLDU.js → chunk-CTF2GDEX.js} +2 -2
- package/dist/chunk-DHEQMPLW.js +2 -0
- package/dist/{chunk-IZKFSVBV.js → chunk-DQBCO2UY.js} +2 -2
- package/dist/{chunk-7B3UPBVA.js → chunk-DQGSM7RZ.js} +2 -2
- package/dist/chunk-E2LAW7SL.js +30 -0
- package/dist/chunk-E3HYEQO7.js +2 -0
- package/dist/chunk-E4NFOAD4.js +6 -0
- package/dist/chunk-E5HNT4X2.js +3 -0
- package/dist/{chunk-J77UIT3I.js → chunk-ELLMY7XJ.js} +2 -2
- package/dist/chunk-FD3HFKXR.js +5 -0
- package/dist/{chunk-SOAT6NLA.js → chunk-FIJCV235.js} +2 -2
- package/dist/{chunk-H7UKLTWJ.js → chunk-FJ5UDTQF.js} +2 -2
- package/dist/{chunk-HEXVUYFQ.js → chunk-GHKEJTCE.js} +2 -2
- package/dist/{chunk-LBMJEAEW.js → chunk-GLZTVKAB.js} +3 -3
- package/dist/{chunk-FWUUZTIO.js → chunk-GNC4JVAN.js} +2 -2
- package/dist/chunk-HIB452NU.js +949 -0
- package/dist/{chunk-NRCXJDHL.js → chunk-HZYDQPNY.js} +2 -2
- package/dist/chunk-IF6FP6B2.js +66 -0
- package/dist/{chunk-4RSI5EMG.js → chunk-JAY7YWS3.js} +2 -2
- package/dist/{chunk-STOL2BTL.js → chunk-JHF3E4YM.js} +2 -2
- package/dist/chunk-JORHF5AL.js +108 -0
- package/dist/{chunk-A2EZV2UM.js → chunk-K2WO7XY7.js} +2 -2
- package/dist/chunk-KFZNKUNT.js +2 -0
- package/dist/{chunk-YVVCVR2L.js → chunk-KJ2IIBZN.js} +2 -2
- package/dist/{chunk-QGXBRIM5.js → chunk-KKME5ZAI.js} +2 -2
- package/dist/chunk-KSGTULOS.js +9 -0
- package/dist/{chunk-UOAV44HR.js → chunk-KXDJAG4N.js} +3 -3
- package/dist/{chunk-UKZBVX4U.js → chunk-L4S2A7BV.js} +2 -2
- package/dist/chunk-LP3ARJKF.js +8 -0
- package/dist/chunk-LSOR3LQG.js +3 -0
- package/dist/{chunk-Q4IIEGXJ.js → chunk-MLFZP76A.js} +2 -2
- package/dist/{chunk-WQTAC523.js → chunk-MNSTUIDD.js} +2 -2
- package/dist/{chunk-VXQNNXJE.js → chunk-MSBDMFER.js} +2 -2
- package/dist/{chunk-X6D5IC6I.js → chunk-MZZBAITE.js} +5 -5
- package/dist/{chunk-I5AWSI2G.js → chunk-NE3TZUCI.js} +2 -2
- package/dist/{chunk-6E7UTQY7.js → chunk-NTUMF2X3.js} +2 -2
- package/dist/{chunk-S44IULR6.js → chunk-O23I56NA.js} +2 -2
- package/dist/{chunk-CFMXJPHH.js → chunk-O3O4XXO6.js} +2 -2
- package/dist/{chunk-IG7N5ZIK.js → chunk-OUBAF226.js} +2 -2
- package/dist/chunk-P3UO3EH3.js +2 -0
- package/dist/{chunk-YNRNA5LK.js → chunk-QGGLL3UH.js} +2 -2
- package/dist/chunk-QIQ63BHW.js +16 -0
- package/dist/{chunk-VGRICIQI.js → chunk-QJIVBYEK.js} +2 -2
- package/dist/chunk-QOXBSI6G.js +20 -0
- package/dist/chunk-QXK6UUSM.js +2 -0
- package/dist/{chunk-XYADIZHU.js → chunk-RA3AYNWP.js} +2 -2
- package/dist/chunk-RJMDJR3A.js +2 -0
- package/dist/{chunk-NSS46APD.js → chunk-RLH5VUMG.js} +2 -2
- package/dist/{chunk-GBQ5NYPR.js → chunk-S4S2WOIX.js} +6 -6
- package/dist/{chunk-YIJ7ZAA4.js → chunk-SERUIGV5.js} +2 -2
- package/dist/{chunk-FECYOO5O.js → chunk-SMQWE25B.js} +2 -2
- package/dist/{chunk-R4FQGQ4X.js → chunk-TAVELHYR.js} +2 -2
- package/dist/{chunk-U6WNH5GC.js → chunk-TWMJ3Y3G.js} +2 -2
- package/dist/chunk-VAXNI5NE.js +146 -0
- package/dist/chunk-VVY2G5ET.js +2 -0
- package/dist/{chunk-WER3B7MI.js → chunk-W3DBTGL4.js} +2 -2
- package/dist/{chunk-CNKAGUPL.js → chunk-WANA4KAQ.js} +2 -2
- package/dist/chunk-WJL2L6MV.js +60 -0
- package/dist/chunk-WUW7YUAH.js +11 -0
- package/dist/{chunk-QVWS2VWZ.js → chunk-WWKWUPSU.js} +2 -2
- package/dist/{chunk-ABMYA4TN.js → chunk-WY45BHKQ.js} +2 -2
- package/dist/chunk-X4FR5BZF.js +9 -0
- package/dist/chunk-X6RKPDY7.js +2 -0
- package/dist/{chunk-ZXJYMGD3.js → chunk-YLFORA5G.js} +2 -2
- package/dist/{chunk-KP6XRY5Z.js → chunk-YTVWB7YJ.js} +2 -2
- package/dist/{chunk-4XTA5OMB.js → chunk-ZCEJ63SP.js} +2 -2
- package/dist/{chunk-HKEHS2AS.js → chunk-ZJ5CBXK3.js} +2 -2
- package/dist/chunk-ZL2OGDCD.js +2 -0
- package/dist/cli.js +8 -3
- package/dist/command-descriptors-ZW5J4ZEM.js +631 -0
- package/dist/{config-types-D20KuvvZ.d.ts → config-types-B6MEoRNy.d.ts} +8 -0
- package/dist/{db-G_II8yXU.d.ts → db-DYLKr9Wn.d.ts} +18 -1
- package/dist/direct-navigation-42YHQPOI.js +3 -0
- package/dist/{health-oblXYgkF.d.ts → health-DgxIDXJC.d.ts} +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/postinstall.js +1 -1
- package/dist/queries/affected.d.ts +2 -2
- package/dist/queries/affected.js +1 -1
- package/dist/queries/architecture.d.ts +2 -2
- package/dist/queries/architecture.js +1 -1
- package/dist/queries/bottlenecks.d.ts +2 -2
- package/dist/queries/bottlenecks.js +1 -1
- package/dist/queries/by-kind.d.ts +2 -2
- package/dist/queries/by-kind.js +1 -1
- package/dist/queries/call-graph.d.ts +2 -2
- package/dist/queries/call-graph.js +1 -1
- package/dist/queries/change-surface.d.ts +2 -2
- package/dist/queries/change-surface.js +1 -1
- package/dist/queries/cleanup-plan.d.ts +2 -2
- package/dist/queries/cleanup-plan.js +1 -1
- package/dist/queries/co-change.d.ts +2 -2
- package/dist/queries/co-change.js +1 -1
- package/dist/queries/code.d.ts +2 -2
- package/dist/queries/code.js +1 -1
- package/dist/queries/complexity-hotspots.d.ts +2 -2
- package/dist/queries/complexity-hotspots.js +1 -1
- package/dist/queries/complexity.d.ts +2 -2
- package/dist/queries/complexity.js +1 -1
- package/dist/queries/convergence.d.ts +2 -2
- package/dist/queries/convergence.js +1 -1
- package/dist/queries/coupling.d.ts +2 -2
- package/dist/queries/coupling.js +1 -1
- package/dist/queries/cycles.d.ts +2 -2
- package/dist/queries/cycles.js +1 -1
- package/dist/queries/dataflow.d.ts +2 -2
- package/dist/queries/dataflow.js +1 -1
- package/dist/queries/dead.d.ts +2 -2
- package/dist/queries/dead.js +1 -1
- package/dist/queries/decorative-checkers.d.ts +3 -3
- package/dist/queries/decorative-checkers.js +1 -1
- package/dist/queries/deep-chains.d.ts +2 -2
- package/dist/queries/deep-chains.js +1 -1
- package/dist/queries/deps.d.ts +2 -2
- package/dist/queries/deps.js +1 -1
- package/dist/queries/diff-gate.d.ts +30 -2
- package/dist/queries/diff-gate.js +1 -1
- package/dist/queries/diff-impact.d.ts +2 -2
- package/dist/queries/diff-impact.js +1 -1
- package/dist/queries/doc-drift.d.ts +2 -2
- package/dist/queries/doc-drift.js +1 -1
- package/dist/queries/drift.d.ts +2 -2
- package/dist/queries/drift.js +1 -1
- package/dist/queries/duplicate-bodies.d.ts +2 -2
- package/dist/queries/duplicate-bodies.js +1 -1
- package/dist/queries/extract-candidates.d.ts +2 -2
- package/dist/queries/extract-candidates.js +1 -1
- package/dist/queries/fan.d.ts +2 -2
- package/dist/queries/fan.js +1 -1
- package/dist/queries/files.d.ts +2 -2
- package/dist/queries/health.d.ts +3 -3
- package/dist/queries/health.js +1 -1
- package/dist/queries/hierarchy.d.ts +2 -2
- package/dist/queries/hierarchy.js +1 -1
- package/dist/queries/hotspots.d.ts +2 -2
- package/dist/queries/hotspots.js +1 -1
- package/dist/queries/imports.d.ts +2 -2
- package/dist/queries/imports.js +1 -1
- package/dist/queries/incomplete-migration.d.ts +2 -2
- package/dist/queries/incomplete-migration.js +1 -1
- package/dist/queries/index.d.ts +17 -3
- package/dist/queries/index.js +1 -1
- package/dist/queries/isolated.d.ts +2 -2
- package/dist/queries/isolated.js +1 -1
- package/dist/queries/locality-candidates.d.ts +2 -2
- package/dist/queries/locality-candidates.js +1 -1
- package/dist/queries/members.d.ts +2 -2
- package/dist/queries/members.js +1 -1
- package/dist/queries/methods.d.ts +2 -2
- package/dist/queries/methods.js +1 -1
- package/dist/queries/not-implemented.d.ts +3 -3
- package/dist/queries/not-implemented.js +1 -1
- package/dist/queries/outline.d.ts +2 -2
- package/dist/queries/outline.js +1 -1
- package/dist/queries/passthrough-candidates.d.ts +2 -2
- package/dist/queries/passthrough-candidates.js +1 -1
- package/dist/queries/plan-context.d.ts +2 -2
- package/dist/queries/plan-context.js +1 -1
- package/dist/queries/react-component-duplicates.d.ts +2 -2
- package/dist/queries/react-component-duplicates.js +1 -1
- package/dist/queries/react-hook-candidates.d.ts +2 -2
- package/dist/queries/react-hook-candidates.js +1 -1
- package/dist/queries/react-large-component-pressure.d.ts +2 -2
- package/dist/queries/react-large-component-pressure.js +1 -1
- package/dist/queries/recent-duplicates.d.ts +2 -2
- package/dist/queries/recent-duplicates.js +1 -1
- package/dist/queries/redundant-reexports.d.ts +2 -2
- package/dist/queries/redundant-reexports.js +1 -1
- package/dist/queries/refs.d.ts +2 -2
- package/dist/queries/refs.js +1 -1
- package/dist/queries/self-audit.d.ts +2 -2
- package/dist/queries/self-audit.js +1 -1
- package/dist/queries/similar-chains.d.ts +2 -2
- package/dist/queries/similar-chains.js +1 -1
- package/dist/queries/similar-files.d.ts +2 -2
- package/dist/queries/similar-files.js +1 -1
- package/dist/queries/similar-signatures.d.ts +2 -2
- package/dist/queries/similar-signatures.js +1 -1
- package/dist/queries/similar.d.ts +2 -2
- package/dist/queries/similar.js +1 -1
- package/dist/queries/slice.d.ts +2 -2
- package/dist/queries/slice.js +1 -1
- package/dist/queries/stale-abstractions.d.ts +2 -2
- package/dist/queries/stale-abstractions.js +1 -1
- package/dist/queries/stats.d.ts +2 -2
- package/dist/queries/stats.js +1 -1
- package/dist/queries/surface.d.ts +2 -2
- package/dist/queries/surface.js +1 -1
- package/dist/queries/symbols.d.ts +2 -2
- package/dist/queries/symbols.js +1 -1
- package/dist/queries/system.d.ts +2 -2
- package/dist/queries/system.js +1 -1
- package/dist/queries/test-quality.d.ts +2 -2
- package/dist/queries/test-quality.js +1 -1
- package/dist/queries/trace.d.ts +2 -2
- package/dist/queries/trace.js +1 -1
- package/dist/queries/twin-ab.d.ts +3 -3
- package/dist/queries/twin-ab.js +1 -1
- package/dist/queries/twin-drift.d.ts +2 -2
- package/dist/queries/twin-drift.js +1 -1
- package/dist/queries/unused-imports.d.ts +2 -2
- package/dist/queries/unused-imports.js +1 -1
- package/dist/queries/unused-params.d.ts +2 -2
- package/dist/queries/unused-params.js +1 -1
- package/dist/queries/vue-component-duplicates.d.ts +2 -2
- package/dist/queries/vue-component-duplicates.js +1 -1
- package/dist/queries/vue-composable-candidates.d.ts +2 -2
- package/dist/queries/vue-composable-candidates.js +1 -1
- package/dist/queries/vue-large-view-pressure.d.ts +2 -2
- package/dist/queries/vue-large-view-pressure.js +1 -1
- package/dist/queries/wrapper-candidates.d.ts +2 -2
- package/dist/queries/wrapper-candidates.js +1 -1
- package/dist/reindex-worker.js +26 -26
- package/dist/reindex.d.ts +14 -4
- package/dist/reindex.js +34 -38
- package/dist/runtime.d.ts +167 -18
- package/dist/runtime.js +3 -2
- package/dist/rust-semantic-session-server.js +1 -1
- package/dist/rust-semantic-session-worker.js +1 -1
- package/dist/rust-semantic-worker.js +1 -1
- package/dist/{scip-cli-kRpaexVJ.d.ts → scip-cli-Cc6c00-a.d.ts} +6 -2
- package/dist/watch-server.js +5 -5
- package/docs/AGENT_GUIDE.md +20 -4
- package/docs/AI_FAILURE_MODES.md +17 -17
- package/docs/API_EVOLUTION.md +71 -0
- package/docs/CLI_JSON_OUTPUT.md +168 -0
- package/docs/COMMAND_REFERENCE.md +10 -6
- package/docs/COMMITTED_RECORD_COMPATIBILITY.md +117 -0
- package/docs/CONFIGURATION_WRITE_SAFETY.md +130 -0
- package/docs/DETECTOR_GUIDE.md +46 -46
- package/docs/DURABILITY.md +103 -0
- package/docs/INDEX_GENERATIONS.md +121 -0
- package/docs/LOCK_PROTOCOL.md +133 -0
- package/docs/MAILBOX_LIFECYCLE.md +197 -0
- package/docs/REINDEX_METADATA_COMPATIBILITY.md +84 -0
- package/docs/RUST_DURABLE_SESSION_PROTOCOL.md +126 -0
- package/docs/SECURITY_MODEL.md +129 -0
- package/docs/TELEMETRY_RETENTION.md +77 -0
- package/docs/TIME_SEMANTICS.md +77 -0
- package/docs/WATCH_REFRESH_REQUESTS.md +110 -0
- package/docs/WINDOWS_SIDECAR_RELEASE.md +298 -0
- package/docs/analyzer-validation-ledger.md +24 -23
- package/docs/schemas/cli-json-envelope.schema.json +53 -0
- package/docs/schemas/cli-output-page.schema.json +104 -0
- package/docs/schemas/npm-release-state.schema.json +146 -0
- package/docs/schemas/outcome-event-record.schema.json +39 -0
- package/docs/schemas/project-config.schema.json +247 -0
- package/docs/schemas/suppression-record.schema.json +31 -0
- package/docs/schemas/windows-sidecar-provenance.schema.json +137 -0
- package/package.json +21 -10
- package/scripts/build-scip-windows.mjs +180 -61
- package/scripts/scip-windows-provenance.mjs +364 -0
- package/scripts/verify-scip-windows.mjs +29 -0
- package/skills/_shared/SKILL.md +90 -229
- package/skills/_shared/agents/openai.yaml +1 -1
- package/skills/_shared/references/agent-contract-catalog.md +105 -0
- package/skills/_shared/references/command-catalog.md +118 -0
- package/skills/_shared/references/detector-precision-and-diffgate.md +59 -0
- package/skills/_shared/references/evidence-and-dead-code.md +25 -0
- package/skills/scip-audit/SKILL.md +77 -0
- package/skills/scip-audit/agents/openai.yaml +4 -0
- package/skills/scip-audit/references/claims.md +98 -0
- package/skills/scip-audit/references/cleanup.md +101 -0
- package/skills/scip-audit/references/directory.md +222 -0
- package/skills/scip-audit/references/frontend.md +130 -0
- package/skills/scip-audit/references/integrity.md +154 -0
- package/skills/scip-audit/references/maintainability.md +162 -0
- package/skills/scip-audit/references/twin-drift.md +104 -0
- package/skills/scip-diagnose/SKILL.md +52 -0
- package/skills/scip-diagnose/agents/openai.yaml +4 -0
- package/skills/scip-diagnose/references/debug.md +117 -0
- package/skills/{scip-probe-reachability/SKILL.md → scip-diagnose/references/probe-reachability.md} +11 -27
- package/skills/scip-diagnose/references/root-cause.md +145 -0
- package/skills/scip-diagnose/references/triage.md +119 -0
- package/skills/scip-explore/SKILL.md +54 -85
- package/skills/scip-explore/agents/openai.yaml +2 -2
- package/skills/scip-explore/references/diagrams.md +40 -0
- package/skills/scip-explore/references/language-playbook.md +49 -0
- package/skills/scip-improve/SKILL.md +56 -0
- package/skills/scip-improve/agents/openai.yaml +4 -0
- package/skills/scip-improve/references/cleanup-batches.md +53 -0
- package/skills/scip-improve/references/directory-moves.md +53 -0
- package/skills/scip-improve/references/doc-reconcile.md +30 -0
- package/skills/scip-improve/references/frontend-extraction.md +39 -0
- package/skills/scip-improve/references/maintainability-mechanism.md +43 -0
- package/skills/scip-improve/references/twin-drift.md +35 -0
- package/skills/scip-plan/SKILL.md +68 -0
- package/skills/scip-plan/agents/openai.yaml +4 -0
- package/skills/scip-plan/references/api-impact.md +19 -0
- package/skills/scip-plan/references/conductor.md +41 -0
- package/skills/scip-plan/references/high-assurance.md +43 -0
- package/skills/scip-plan/references/hyper-optimization.md +50 -0
- package/skills/scip-plan/references/tla-model.md +88 -0
- package/skills/scip-query/SKILL.md +53 -98
- package/skills/scip-query/agents/openai.yaml +2 -2
- package/skills/scip-setup/SKILL.md +69 -181
- package/skills/scip-setup/agents/openai.yaml +3 -3
- package/skills/scip-setup/references/bootstrap-workflow.md +120 -0
- package/skills/scip-setup/references/language-verification.md +61 -0
- package/skills/scip-setup/references/lifecycle-commands.md +119 -0
- package/skills/scip-setup/references/per-repo-triage.md +24 -0
- package/skills/scip-verify/SKILL.md +126 -84
- package/skills/scip-verify/agents/openai.yaml +2 -2
- package/skills/scip-verify/references/calibrate-detectors.md +170 -0
- package/dist/chunk-2CTX5CMX.js +0 -4
- package/dist/chunk-2Y373BDD.js +0 -2
- package/dist/chunk-2YU7I3QO.js +0 -2
- package/dist/chunk-3MJ5YA4Y.js +0 -16
- package/dist/chunk-64RFXJT5.js +0 -16
- package/dist/chunk-7UY7SD7D.js +0 -927
- package/dist/chunk-B5NLK2B3.js +0 -6
- package/dist/chunk-C2QSK7E7.js +0 -2
- package/dist/chunk-C7NIYIQ4.js +0 -67
- package/dist/chunk-D4U5Q3FT.js +0 -7
- package/dist/chunk-DGAGY7RJ.js +0 -60
- package/dist/chunk-DLWR3NUU.js +0 -5
- package/dist/chunk-K2ERX4UT.js +0 -3
- package/dist/chunk-KHE7J5ZN.js +0 -3
- package/dist/chunk-L7SPDE73.js +0 -84
- package/dist/chunk-LHMNRHGV.js +0 -3
- package/dist/chunk-LM72NQ7T.js +0 -3
- package/dist/chunk-MSWVMDAH.js +0 -122
- package/dist/chunk-NH7WNNQC.js +0 -20
- package/dist/chunk-NPKYOIFM.js +0 -18
- package/dist/chunk-NZL2DBT7.js +0 -2
- package/dist/chunk-OMPZHGHO.js +0 -2
- package/dist/chunk-P2PC2WGR.js +0 -2
- package/dist/chunk-Q3AFUTGB.js +0 -8
- package/dist/chunk-QRGV2F7L.js +0 -2
- package/dist/chunk-TW4OG5FC.js +0 -4
- package/dist/chunk-U7DSEKOM.js +0 -30
- package/dist/chunk-V27BEQJN.js +0 -7
- package/dist/chunk-XAGAZSFE.js +0 -6
- package/dist/chunk-XBN5VO53.js +0 -2
- package/dist/chunk-YGAGTIDK.js +0 -11
- package/dist/command-descriptors-N2TL4XM2.js +0 -613
- package/dist/direct-navigation-DUCZCTOE.js +0 -3
- package/skills/scip-api-impact/SKILL.md +0 -140
- package/skills/scip-api-impact/agents/openai.yaml +0 -4
- package/skills/scip-calibrate/SKILL.md +0 -131
- package/skills/scip-calibrate/agents/openai.yaml +0 -4
- package/skills/scip-claim-audit/SKILL.md +0 -107
- package/skills/scip-claim-audit/agents/openai.yaml +0 -4
- package/skills/scip-cleanup-audit/SKILL.md +0 -130
- package/skills/scip-cleanup-audit/agents/openai.yaml +0 -4
- package/skills/scip-cleanup-improve/SKILL.md +0 -85
- package/skills/scip-cleanup-improve/agents/openai.yaml +0 -4
- package/skills/scip-concrete-plan/HIGH_ASSURANCE.md +0 -317
- package/skills/scip-concrete-plan/SKILL.md +0 -105
- package/skills/scip-concrete-plan/agents/openai.yaml +0 -4
- package/skills/scip-conductor/SKILL.md +0 -133
- package/skills/scip-conductor/agents/openai.yaml +0 -4
- package/skills/scip-debug/SKILL.md +0 -130
- package/skills/scip-debug/agents/openai.yaml +0 -4
- package/skills/scip-diagram/SKILL.md +0 -110
- package/skills/scip-diagram/agents/openai.yaml +0 -4
- package/skills/scip-directory-architecture/SKILL.md +0 -266
- package/skills/scip-directory-architecture/agents/openai.yaml +0 -4
- package/skills/scip-doc-reconcile/SKILL.md +0 -89
- package/skills/scip-doc-reconcile/agents/openai.yaml +0 -4
- package/skills/scip-hyper-optimization/SKILL.md +0 -156
- package/skills/scip-hyper-optimization/agents/openai.yaml +0 -4
- package/skills/scip-integrity-audit/SKILL.md +0 -152
- package/skills/scip-integrity-audit/agents/openai.yaml +0 -4
- package/skills/scip-language-playbook/SKILL.md +0 -106
- package/skills/scip-language-playbook/agents/openai.yaml +0 -4
- package/skills/scip-maintainability/SKILL.md +0 -158
- package/skills/scip-maintainability/agents/openai.yaml +0 -4
- package/skills/scip-probe-reachability/agents/openai.yaml +0 -4
- package/skills/scip-react-maintainability/SKILL.md +0 -101
- package/skills/scip-react-maintainability/agents/openai.yaml +0 -4
- package/skills/scip-root-cause/SKILL.md +0 -151
- package/skills/scip-root-cause/agents/openai.yaml +0 -4
- package/skills/scip-tla-model-system/SKILL.md +0 -148
- package/skills/scip-tla-model-system/agents/openai.yaml +0 -4
- package/skills/scip-triage-issue/SKILL.md +0 -133
- package/skills/scip-triage-issue/agents/openai.yaml +0 -4
- package/skills/scip-twin-drift/SKILL.md +0 -109
- package/skills/scip-twin-drift/agents/openai.yaml +0 -4
- package/skills/scip-vue-maintainability/SKILL.md +0 -107
- 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,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,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,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.
|