scip-query 0.19.4 → 0.19.5
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 +27 -0
- package/README.md +1 -1
- package/dist/{chunk-SVLTAG5O.js → chunk-7UY7SD7D.js} +119 -119
- package/dist/{chunk-VMNZB6WI.js → chunk-TW4OG5FC.js} +2 -2
- package/dist/chunk-XAGAZSFE.js +6 -0
- package/dist/cli.js +3 -3
- package/dist/command-descriptors-N2TL4XM2.js +613 -0
- package/dist/direct-navigation-DUCZCTOE.js +3 -0
- package/docs/AI_FAILURE_MODES.md +1 -1
- package/docs/COMMAND_REFERENCE.md +5 -5
- package/docs/DETECTOR_GUIDE.md +1 -1
- package/package.json +1 -1
- package/skills/_shared/SKILL.md +6 -16
- package/skills/scip-api-impact/SKILL.md +22 -21
- package/skills/scip-claim-audit/SKILL.md +18 -17
- package/skills/scip-cleanup-audit/SKILL.md +24 -20
- package/skills/scip-cleanup-improve/SKILL.md +19 -18
- package/skills/scip-concrete-plan/HIGH_ASSURANCE.md +317 -0
- package/skills/scip-concrete-plan/SKILL.md +70 -227
- package/skills/scip-conductor/SKILL.md +14 -14
- package/skills/scip-debug/SKILL.md +21 -21
- package/skills/scip-diagram/SKILL.md +27 -27
- package/skills/scip-directory-architecture/SKILL.md +44 -32
- package/skills/scip-doc-reconcile/SKILL.md +17 -17
- package/skills/scip-explore/SKILL.md +23 -23
- package/skills/scip-hyper-optimization/SKILL.md +23 -23
- package/skills/scip-language-playbook/SKILL.md +34 -34
- package/skills/scip-maintainability/SKILL.md +21 -21
- package/skills/scip-probe-reachability/SKILL.md +10 -9
- package/skills/scip-query/SKILL.md +39 -39
- package/skills/scip-react-maintainability/SKILL.md +21 -21
- package/skills/scip-root-cause/SKILL.md +21 -20
- package/skills/scip-setup/SKILL.md +25 -24
- package/skills/scip-tla-model-system/SKILL.md +7 -7
- package/skills/scip-triage-issue/SKILL.md +27 -20
- package/skills/scip-twin-drift/SKILL.md +18 -16
- package/skills/scip-verify/SKILL.md +25 -9
- package/skills/scip-vue-maintainability/SKILL.md +21 -21
- package/dist/chunk-ZAIILQNP.js +0 -5
- package/dist/command-descriptors-MFU4BCJ7.js +0 -612
- package/dist/direct-navigation-MRMQFIRB.js +0 -3
package/docs/AI_FAILURE_MODES.md
CHANGED
|
@@ -301,7 +301,7 @@ scip-query setup-agent --git-hook # pre-commit backstop: fires whoever wrote
|
|
|
301
301
|
| `co-change-partner` | Historically coupled files that usually change together but are missing from this diff. | Default diff gate. |
|
|
302
302
|
| `twin-partner` | A changed symbol has a same-(near-)name twin (identical or already-divergent) elsewhere that this diff left untouched. | Default diff gate. Advisory: findings print but never cause a nonzero exit by themselves. |
|
|
303
303
|
| `coverage-contract` | A configured `coverageContracts` entry (.scipquery.json) drifted: its declared key set no longer matches its ground-truth source. | Default diff gate, only when either side of a configured contract changed. |
|
|
304
|
-
| `architecture` | A declared architecture boundary rule has a violation absent from the committed health baseline. | Default diff gate when closed dependency rows, requireCompletePolicy, requireAcyclic, requireResolvedBoundaries, requireMinimalPolicy, maxBoundaryFanOut
|
|
304
|
+
| `architecture` | A declared architecture boundary rule has a violation absent from the committed health baseline. | Default diff gate when closed dependency rows, requireCompletePolicy, requireAcyclic, requireResolvedBoundaries, requireMinimalPolicy, maxBoundaryFanOut/maxBoundaryFiles, or testPaths are configured and a baseline exists. |
|
|
305
305
|
| `doc-reference` | Docs that cite changed files and may need a matching update. Dated snapshot docs (docs.snapshotPaths) are excluded by policy. | Default diff gate. Advisory (21.2) for bare file-mention citations; blocking when the citation has a line anchor or the cited file was deleted/renamed. |
|
|
306
306
|
| `unused-params` | Fresh trailing parameters or options that no changed body uses. | Default diff gate. |
|
|
307
307
|
| `new-dead` | Changed production symbols with zero indexed consumers. | Default diff gate. |
|
|
@@ -24,11 +24,11 @@ This syntax summary is generated from the CLI command descriptors. Keep workflow
|
|
|
24
24
|
|---|---|---|
|
|
25
25
|
| `files <pattern>` | Find files matching a pattern | `--json` |
|
|
26
26
|
| `methods <className>` | List methods of a class (with line ranges) | `--json` |
|
|
27
|
-
| `refs <symbol>` | Find all files referencing a symbol | `--full`<br>`--json` |
|
|
28
|
-
| `trace <symbol>` | Trace a symbol: definition + all references | `--full`<br>`--json` |
|
|
27
|
+
| `refs <symbol>` | Find all files referencing a symbol | `--full`<br>`-n, --limit <n>`<br>`--cursor <cursor>`<br>`--json`<br>`--compact` |
|
|
28
|
+
| `trace <symbol>` | Trace a symbol: definition + all references | `--full`<br>`--compact`<br>`--json` |
|
|
29
29
|
| `deps <file>` | Files this file depends on (internal) | `--json` |
|
|
30
30
|
| `rdeps <file>` | Files that depend on this file/module | `--json` |
|
|
31
|
-
| `system <module>` | Full module map: files, symbols, deps in/out | `--json` |
|
|
31
|
+
| `system <module>` | Full module map: files, symbols, deps in/out | `--compact`<br>`--json` |
|
|
32
32
|
| `surface <module>` | What symbols consumers actually use from this module | `--json` |
|
|
33
33
|
| `imports <file>` | What symbols does this file import? | `--full`<br>`--json` |
|
|
34
34
|
| `imported-by <symbol>` | Which files import this symbol? | `--json` |
|
|
@@ -100,7 +100,7 @@ This syntax summary is generated from the CLI command descriptors. Keep workflow
|
|
|
100
100
|
| `affected <symbol>` | Transitive closure of symbols that could break if this symbol changes | `--max-depth <n>`<br>`-s, --scope <path>`<br>`--json` |
|
|
101
101
|
| `change-surface <file>` | Pre-change briefing: exports, consumers, and blast-radius risk | `--full`<br>`--json` |
|
|
102
102
|
| `co-change [file]` | Files that change together in git history without a dependency edge — hidden coupling candidates | `--min-together <n>`<br>`-n, --limit <n>`<br>`--all`<br>`--full`<br>`--json` |
|
|
103
|
-
| `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 | `--base <ref>`<br>`--min-together <n>`<br>`--max-echo-checks <n>`<br>`--max-helpers <n>`<br>`--baseline`<br>`--full`<br>`--skip <check>`<br>`--hook`<br>`--json` |
|
|
103
|
+
| `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 | `--base <ref>`<br>`--min-together <n>`<br>`--max-echo-checks <n>`<br>`--max-helpers <n>`<br>`--baseline`<br>`--full`<br>`--skip <check>`<br>`--hook`<br>`--json`<br>`--compact` |
|
|
104
104
|
| `incomplete-migration` | Partially-completed extraction candidates: new helpers in the diff wired into some sites while similar un-migrated sites remain | `--base <ref>`<br>`--min-containment <n>`<br>`--max-helpers <n>`<br>`-n, --limit <n>`<br>`--full`<br>`--json` |
|
|
105
105
|
| `diff-impact` | Compute changed symbols and downstream consumers from current git diff | `--base <ref>`<br>`--json` |
|
|
106
106
|
|
|
@@ -114,7 +114,7 @@ This syntax summary is generated from the CLI command descriptors. Keep workflow
|
|
|
114
114
|
|
|
115
115
|
| Command | Description | Options |
|
|
116
116
|
|---|---|---|
|
|
117
|
-
| `plan-context <target>` | Pre-edit planning context for a symbol, file, or module | `--impact-depth <n>`<br>`--slice-depth <n>`<br>`-s, --scope <path>`<br>`-n, --limit <n>`<br>`--full`<br>`--json` |
|
|
117
|
+
| `plan-context <target>` | Pre-edit planning context for a symbol, file, or module | `--impact-depth <n>`<br>`--slice-depth <n>`<br>`-s, --scope <path>`<br>`-n, --limit <n>`<br>`--full`<br>`--json`<br>`--compact` |
|
|
118
118
|
|
|
119
119
|
### Health
|
|
120
120
|
|
package/docs/DETECTOR_GUIDE.md
CHANGED
|
@@ -92,7 +92,7 @@ coverage, reciprocity, and connected-group signals.
|
|
|
92
92
|
| `co-change-partner` | Historically coupled files that usually change together but are missing from this diff. | Default diff gate. |
|
|
93
93
|
| `twin-partner` | A changed symbol has a same-(near-)name twin (identical or already-divergent) elsewhere that this diff left untouched. | Default diff gate. Advisory: findings print but never cause a nonzero exit by themselves. |
|
|
94
94
|
| `coverage-contract` | A configured `coverageContracts` entry (.scipquery.json) drifted: its declared key set no longer matches its ground-truth source. | Default diff gate, only when either side of a configured contract changed. |
|
|
95
|
-
| `architecture` | A declared architecture boundary rule has a violation absent from the committed health baseline. | Default diff gate when closed dependency rows, requireCompletePolicy, requireAcyclic, requireResolvedBoundaries, requireMinimalPolicy, maxBoundaryFanOut
|
|
95
|
+
| `architecture` | A declared architecture boundary rule has a violation absent from the committed health baseline. | Default diff gate when closed dependency rows, requireCompletePolicy, requireAcyclic, requireResolvedBoundaries, requireMinimalPolicy, maxBoundaryFanOut/maxBoundaryFiles, or testPaths are configured and a baseline exists. |
|
|
96
96
|
| `doc-reference` | Docs that cite changed files and may need a matching update. Dated snapshot docs (docs.snapshotPaths) are excluded by policy. | Default diff gate. Advisory (21.2) for bare file-mention citations; blocking when the citation has a line anchor or the cited file was deleted/renamed. |
|
|
97
97
|
| `unused-params` | Fresh trailing parameters or options that no changed body uses. | Default diff gate. |
|
|
98
98
|
| `new-dead` | Changed production symbols with zero indexed consumers. | Default diff gate. |
|
package/package.json
CHANGED
package/skills/_shared/SKILL.md
CHANGED
|
@@ -26,7 +26,7 @@ If freshness is `fresh`, continue. If it is `stale`, `missing`, or `unknown`, ru
|
|
|
26
26
|
scip-query reindex
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
Match evidence to the claim. Native search and file reads establish literal text, exact local source, and unambiguous local logic. Use scip-query for compiler-resolved identity and whenever you claim a relationship set is complete — definitions, references, callers, dependencies, consumers, affected units, or public surface. State when a bounded result does not establish completeness.
|
|
30
30
|
|
|
31
31
|
## Lookup
|
|
32
32
|
|
|
@@ -216,19 +216,7 @@ measured precision, not by volume:
|
|
|
216
216
|
|
|
217
217
|
## Postchecks
|
|
218
218
|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
| Change made | Check |
|
|
222
|
-
| ------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
223
|
-
| Extracted a helper or abstraction | `scip-query incomplete-migration --json --full` |
|
|
224
|
-
| Added a helper, module, component, hook, composable, or adapter | `scip-query similar <symbol> --json --full` and `scip-query recent-duplicates --json --full` |
|
|
225
|
-
| Added parameters, options, props, config flags, or broad option objects | `scip-query unused-params --json --full` |
|
|
226
|
-
| Added a wrapper, facade, forwarding layer, alias, or re-export | `scip-query wrapper-candidates --json --full`, `scip-query passthrough-candidates --json --full`, and `scip-query redundant-reexports` when exports changed |
|
|
227
|
-
| Added an interface, base class, adapter contract, or type alias | `scip-query stale-abstractions --json --full` |
|
|
228
|
-
| Changed schema, config, generated files, public contracts, command descriptors, or docs-backed behavior | `scip-query co-change <file> --json --full` and `scip-query doc-drift --json --full` |
|
|
229
|
-
| Deleted code | `scip-query cleanup-plan --verify --json` |
|
|
230
|
-
| Changed React components or hooks | the React frontend commands above |
|
|
231
|
-
| Changed Vue SFCs or composables | the Vue frontend commands above |
|
|
219
|
+
The authoritative edit-to-postcheck table lives in [`../scip-verify/SKILL.md`](../scip-verify/SKILL.md). Invoke that skill after editing; do not maintain a second copy here.
|
|
232
220
|
|
|
233
221
|
Every implemented change ends with:
|
|
234
222
|
|
|
@@ -244,7 +232,9 @@ Fix findings or record a specific acceptance reason. Do not report success while
|
|
|
244
232
|
When a subagent is used for scip-query evidence, include these rules in its prompt:
|
|
245
233
|
|
|
246
234
|
```text
|
|
247
|
-
Use scip-query for
|
|
235
|
+
Use scip-query for compiler-resolved identity and for completeness claims. Native search and file reads are valid evidence for literal source content and local logic, including an unambiguous helper you can see in the same file. Use scip-query when you assert which symbol something resolves to, or that a set is complete — definitions, references, callers, dependencies, consumers, or affected units. Cite the evidence source appropriate to each claim, and say so when neither source establishes it completely.
|
|
248
236
|
```
|
|
249
237
|
|
|
250
|
-
|
|
238
|
+
The trigger is resolution or completeness, not whether execution crosses a call boundary. Asserting what `handler(x)` does without resolving `handler` is a resolution claim; reading a helper defined two lines down is not.
|
|
239
|
+
|
|
240
|
+
Reject subagent findings that source a resolution or completeness claim from text search. Do not reject a literal-content claim for citing a file read.
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: scip-api-impact
|
|
3
|
-
description:
|
|
3
|
+
description: Answer "what will break if I change this?" before editing an API, export, module boundary, schema, route, CLI command, config field, generated artifact, signature, documented behavior, or consumer migration.
|
|
4
4
|
commands:
|
|
5
|
-
- template:
|
|
6
|
-
when:
|
|
7
|
-
- template:
|
|
8
|
-
when:
|
|
9
|
-
- template:
|
|
10
|
-
when:
|
|
11
|
-
- template:
|
|
12
|
-
when:
|
|
13
|
-
- template:
|
|
14
|
-
when:
|
|
15
|
-
- template:
|
|
16
|
-
when:
|
|
5
|
+
- template: 'scip-query surface <module-or-package>'
|
|
6
|
+
when: 'Identify the surface: what consumers actually use from the module.'
|
|
7
|
+
- template: 'scip-query refs <symbol>'
|
|
8
|
+
when: 'Find consumers: every direct reference to the surface symbol.'
|
|
9
|
+
- template: 'scip-query affected <symbol> --json'
|
|
10
|
+
when: 'Find consumers: transitive blast radius of the change.'
|
|
11
|
+
- template: 'scip-query co-change <file> --json --full'
|
|
12
|
+
when: 'Find hidden partners: historically coupled files without a dependency edge.'
|
|
13
|
+
- template: 'scip-query doc-drift --json --full'
|
|
14
|
+
when: 'Find hidden partners: docs that describe the surface and may need an update.'
|
|
15
|
+
- template: 'scip-query unused-params --json --full'
|
|
16
|
+
when: 'Choose migration shape: reject speculative new parameters.'
|
|
17
17
|
---
|
|
18
18
|
|
|
19
19
|
# scip-api-impact
|
|
@@ -25,14 +25,14 @@ Load shared mechanics from [`../_shared/SKILL.md`](../_shared/SKILL.md).
|
|
|
25
25
|
<!-- BEGIN GENERATED SKILL COMMANDS -->
|
|
26
26
|
## Commands for this skill
|
|
27
27
|
|
|
28
|
-
| Command | Purpose | When |
|
|
29
|
-
| --- | --- | --- |
|
|
30
|
-
| `scip-query surface <module-or-package>` | What symbols consumers actually use from this module | Identify the surface: what consumers actually use from the module. |
|
|
31
|
-
| `scip-query refs <symbol>` | Find all files referencing a symbol | Find consumers: every direct reference to the surface symbol. |
|
|
32
|
-
| `scip-query affected <symbol> --json` | Transitive closure of symbols that could break if this symbol changes | Find consumers: transitive blast radius of the change. |
|
|
33
|
-
| `scip-query co-change <file> --json --full` | Files that change together in git history without a dependency edge — hidden coupling candidates | Find hidden partners: historically coupled files without a dependency edge. |
|
|
34
|
-
| `scip-query doc-drift --json --full` | Stale-doc candidates: code the doc references or co-changed with kept changing after the doc stopped | Find hidden partners: docs that describe the surface and may need an update. |
|
|
35
|
-
| `scip-query unused-params --json --full` | Speculative-generality candidates: trailing parameters no body ever uses (TS/JS) | Choose migration shape: reject speculative new parameters. |
|
|
28
|
+
| Command | Purpose | Returns | Coverage | When |
|
|
29
|
+
| --- | --- | --- | --- | --- |
|
|
30
|
+
| `scip-query surface <module-or-package>` | What symbols consumers actually use from this module | consumer paths and consumed symbol identities | `complete` | Identify the surface: what consumers actually use from the module. |
|
|
31
|
+
| `scip-query refs <symbol>` | Find all files referencing a symbol | referencing file paths; reference line numbers grouped by file | `bounded` | Find consumers: every direct reference to the surface symbol. |
|
|
32
|
+
| `scip-query affected <symbol> --json` | Transitive closure of symbols that could break if this symbol changes | affected symbol identities, files, and traversal depths | `bounded` | Find consumers: transitive blast radius of the change. |
|
|
33
|
+
| `scip-query co-change <file> --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` | Find hidden partners: historically coupled files without a dependency edge. |
|
|
34
|
+
| `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` | Find hidden partners: docs that describe the surface and may need an update. |
|
|
35
|
+
| `scip-query unused-params --json --full` | Speculative-generality candidates: trailing parameters no body ever uses (TS/JS) | candidate parameters with callable and file identities | `bounded` | Choose migration shape: reject speculative new parameters. |
|
|
36
36
|
|
|
37
37
|
Use this shortlist first. Open [`../_shared/SKILL.md`](../_shared/SKILL.md) only when it is insufficient.
|
|
38
38
|
<!-- END GENERATED SKILL COMMANDS -->
|
|
@@ -113,6 +113,7 @@ Consumer dispositions:
|
|
|
113
113
|
Required co-changes:
|
|
114
114
|
Migration:
|
|
115
115
|
Verification:
|
|
116
|
+
|
|
116
117
|
- targeted tests
|
|
117
118
|
- `scip-query diff-impact --json`
|
|
118
119
|
- invoke `scip-verify`
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
name: scip-claim-audit
|
|
3
3
|
description: Audit output-facing status claims for evidence with scip-query. Use to classify whether an "available", "verified", "safe", "PASS", or "complete" status word is derived from a real check, hedged as a candidate, or merely asserted without being probed.
|
|
4
4
|
commands:
|
|
5
|
-
- template:
|
|
6
|
-
when:
|
|
7
|
-
- template:
|
|
8
|
-
when:
|
|
9
|
-
- template:
|
|
10
|
-
when:
|
|
11
|
-
- template:
|
|
12
|
-
when:
|
|
13
|
-
- template:
|
|
14
|
-
when:
|
|
5
|
+
- template: 'scip-query files <pattern>'
|
|
6
|
+
when: 'Inventory: locate the renderer or status-producing module for a claim.'
|
|
7
|
+
- template: 'scip-query refs <symbol>'
|
|
8
|
+
when: 'Classify: find every producer and consumer of a status-bearing function.'
|
|
9
|
+
- template: 'scip-query code <symbol>'
|
|
10
|
+
when: 'Classify: read the producing function to see whether it computes or asserts.'
|
|
11
|
+
- template: 'scip-query trace <symbol>'
|
|
12
|
+
when: 'Classify: definition plus every reference for a status field or constant.'
|
|
13
|
+
- template: 'scip-query capabilities --matrix --json'
|
|
14
|
+
when: 'Spot-check: an already-known example of a fixed derived-status surface.'
|
|
15
15
|
---
|
|
16
16
|
|
|
17
17
|
# scip-claim-audit
|
|
@@ -23,13 +23,13 @@ Load shared mechanics from [`../_shared/SKILL.md`](../_shared/SKILL.md).
|
|
|
23
23
|
<!-- BEGIN GENERATED SKILL COMMANDS -->
|
|
24
24
|
## Commands for this skill
|
|
25
25
|
|
|
26
|
-
| Command | Purpose | When |
|
|
27
|
-
| --- | --- | --- |
|
|
28
|
-
| `scip-query files <pattern>` | Find files matching a pattern | Inventory: locate the renderer or status-producing module for a claim. |
|
|
29
|
-
| `scip-query refs <symbol>` | Find all files referencing a symbol | Classify: find every producer and consumer of a status-bearing function. |
|
|
30
|
-
| `scip-query code <symbol>` | Read the source code for a symbol (bounded to its definition range) | Classify: read the producing function to see whether it computes or asserts. |
|
|
31
|
-
| `scip-query trace <symbol>` | Trace a symbol: definition + all references | Classify: definition plus every reference for a status field or constant. |
|
|
32
|
-
| `scip-query capabilities --matrix --json` | Report which evidence and verification capabilities are available in this project | Spot-check: an already-known example of a fixed derived-status surface. |
|
|
26
|
+
| Command | Purpose | Returns | Coverage | When |
|
|
27
|
+
| --- | --- | --- | --- | --- |
|
|
28
|
+
| `scip-query files <pattern>` | Find files matching a pattern | matching file paths | `complete` | Inventory: locate the renderer or status-producing module for a claim. |
|
|
29
|
+
| `scip-query refs <symbol>` | Find all files referencing a symbol | referencing file paths; reference line numbers grouped by file | `bounded` | Classify: find every producer and consumer of a status-bearing function. |
|
|
30
|
+
| `scip-query code <symbol>` | Read the source code for a symbol (bounded to its definition range) | definition identity, source, and line range | `complete` | Classify: read the producing function to see whether it computes or asserts. |
|
|
31
|
+
| `scip-query trace <symbol>` | Trace a symbol: definition + all references | definition sites with source and signature; referencing files with line numbers | `bounded` | Classify: definition plus every reference for a status field or constant. |
|
|
32
|
+
| `scip-query capabilities --matrix --json` | Report which evidence and verification capabilities are available in this project | capability matrix with availability and reasons | `complete` | Spot-check: an already-known example of a fixed derived-status surface. |
|
|
33
33
|
|
|
34
34
|
Use this shortlist first. Open [`../_shared/SKILL.md`](../_shared/SKILL.md) only when it is insufficient.
|
|
35
35
|
<!-- END GENERATED SKILL COMMANDS -->
|
|
@@ -100,6 +100,7 @@ Claim table:
|
|
|
100
100
|
| --- | --- | --- | --- |
|
|
101
101
|
|
|
102
102
|
Fixed since last audit:
|
|
103
|
+
|
|
103
104
|
- <claim> — now derived via <probe>, no longer a finding.
|
|
104
105
|
```
|
|
105
106
|
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
name: scip-cleanup-audit
|
|
3
3
|
description: Audit and rank scip-query cleanup signals without editing code. Use for health reports, de-bloat reports, recent AI residue audits, score-framed cleanup queues, confirming raw findings, or preparing a cleanup plan.
|
|
4
4
|
commands:
|
|
5
|
-
- template:
|
|
6
|
-
when:
|
|
7
|
-
- template:
|
|
8
|
-
when:
|
|
9
|
-
- template:
|
|
10
|
-
when:
|
|
11
|
-
- template:
|
|
12
|
-
when:
|
|
13
|
-
- template:
|
|
14
|
-
when:
|
|
15
|
-
- template:
|
|
16
|
-
when:
|
|
5
|
+
- template: 'scip-query health --json'
|
|
6
|
+
when: 'Establish evidence: composite score and prioritized action list.'
|
|
7
|
+
- template: 'scip-query cleanup-plan --verify --json'
|
|
8
|
+
when: 'Sweep signals: compiler-verified deletion plan, batched.'
|
|
9
|
+
- template: 'scip-query duplicate-bodies --json --full'
|
|
10
|
+
when: 'Sweep signals: exact duplicate small-body candidates.'
|
|
11
|
+
- template: 'scip-query recent-duplicates --json --full'
|
|
12
|
+
when: 'Sweep signals: recent code that re-implements established code.'
|
|
13
|
+
- template: 'scip-query incomplete-migration --json --full'
|
|
14
|
+
when: 'Sweep signals: partially-completed extractions.'
|
|
15
|
+
- template: 'scip-query doc-drift --json --full'
|
|
16
|
+
when: 'Sweep signals: stale docs referencing changed code.'
|
|
17
17
|
---
|
|
18
18
|
|
|
19
19
|
# scip-cleanup-audit
|
|
@@ -25,14 +25,14 @@ Load shared mechanics from [`../_shared/SKILL.md`](../_shared/SKILL.md).
|
|
|
25
25
|
<!-- BEGIN GENERATED SKILL COMMANDS -->
|
|
26
26
|
## Commands for this skill
|
|
27
27
|
|
|
28
|
-
| Command | Purpose | When |
|
|
29
|
-
| --- | --- | --- |
|
|
30
|
-
| `scip-query health --json` | Composite codebase health report with prioritized action list | Establish evidence: composite score and prioritized action list. |
|
|
31
|
-
| `scip-query cleanup-plan --verify --json` | Ordered, batched deletion plan: graph-fact dead code plus the cascade candidates it unlocks | Sweep signals: compiler-verified deletion plan, batched. |
|
|
32
|
-
| `scip-query duplicate-bodies --json --full` | Find exact duplicate small-body candidates across files | Sweep signals: exact duplicate small-body candidates. |
|
|
33
|
-
| `scip-query recent-duplicates --json --full` | Directional duplicate candidates: recent code that re-implements established callable, React, or Vue code | Sweep signals: recent code that re-implements established code. |
|
|
34
|
-
| `scip-query incomplete-migration --json --full` | Partially-completed extraction candidates: new helpers in the diff wired into some sites while similar un-migrated sites remain | Sweep signals: partially-completed extractions. |
|
|
35
|
-
| `scip-query doc-drift --json --full` | Stale-doc candidates: code the doc references or co-changed with kept changing after the doc stopped | Sweep signals: stale docs referencing changed code. |
|
|
28
|
+
| Command | Purpose | Returns | Coverage | When |
|
|
29
|
+
| --- | --- | --- | --- | --- |
|
|
30
|
+
| `scip-query health --json` | Composite codebase health report with prioritized action list | health score, findings, priorities, baselines, and coverage notes | `bounded` | Establish evidence: composite score and prioritized action list. |
|
|
31
|
+
| `scip-query cleanup-plan --verify --json` | Ordered, batched deletion plan: graph-fact dead code plus the cascade candidates it unlocks | ordered cleanup batches, evidence, and optional verification outcomes | `bounded` | Sweep signals: compiler-verified deletion plan, batched. |
|
|
32
|
+
| `scip-query duplicate-bodies --json --full` | Find exact duplicate small-body candidates across files | callable groups with exact normalized-body identity | `bounded` | Sweep signals: exact duplicate small-body candidates. |
|
|
33
|
+
| `scip-query recent-duplicates --json --full` | Directional duplicate candidates: recent code that re-implements established callable, React, or Vue code | recent and established symbol pairs with similarity evidence | `bounded` | Sweep signals: recent code that re-implements established code. |
|
|
34
|
+
| `scip-query incomplete-migration --json --full` | Partially-completed extraction candidates: new helpers in the diff wired into some sites while similar un-migrated sites remain | new helpers and similar unmigrated call sites | `bounded` | Sweep signals: partially-completed extractions. |
|
|
35
|
+
| `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` | Sweep signals: stale docs referencing changed code. |
|
|
36
36
|
|
|
37
37
|
Use this shortlist first. Open [`../_shared/SKILL.md`](../_shared/SKILL.md) only when it is insufficient.
|
|
38
38
|
<!-- END GENERATED SKILL COMMANDS -->
|
|
@@ -111,15 +111,19 @@ Health score: N/100
|
|
|
111
111
|
Classification counts: <n> confirmed / <i> intentional / <fp> false positive / <b> blocked (must cover every collected signal)
|
|
112
112
|
|
|
113
113
|
Confirmed items:
|
|
114
|
+
|
|
114
115
|
- [priority] finding - evidence - first safe action
|
|
115
116
|
|
|
116
117
|
Unconfirmed signals:
|
|
118
|
+
|
|
117
119
|
- signal - evidence still needed
|
|
118
120
|
|
|
119
121
|
Unavailable or blocked checks:
|
|
122
|
+
|
|
120
123
|
- check - reason
|
|
121
124
|
|
|
122
125
|
Recommended first cleanup batch:
|
|
126
|
+
|
|
123
127
|
- batch - why safe now
|
|
124
128
|
```
|
|
125
129
|
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
name: scip-cleanup-improve
|
|
3
3
|
description: Improve scip-query health autonomously with verified cleanup. Use when the user asks to fix cleanup findings, raise health, keep cleaning, continue after setup, or work until no safe confirmed cleanup remains.
|
|
4
4
|
commands:
|
|
5
|
-
- template:
|
|
6
|
-
when:
|
|
7
|
-
- template:
|
|
8
|
-
when:
|
|
9
|
-
- template:
|
|
10
|
-
when:
|
|
11
|
-
- template:
|
|
12
|
-
when:
|
|
13
|
-
- template:
|
|
14
|
-
when:
|
|
5
|
+
- template: 'scip-query health --json'
|
|
6
|
+
when: 'Before editing: report current score and remaining signals.'
|
|
7
|
+
- template: 'scip-query cleanup-plan --verify --json'
|
|
8
|
+
when: 'Loop: confirm the next compiler-verified deletion batch.'
|
|
9
|
+
- template: 'scip-query cleanup-apply --verified --batch <n>'
|
|
10
|
+
when: 'Loop: apply one verified deletion batch.'
|
|
11
|
+
- template: 'scip-query duplicate-bodies --json --full'
|
|
12
|
+
when: 'Priority: exact duplicate small-body echoes to consolidate.'
|
|
13
|
+
- template: 'scip-query incomplete-migration --json --full'
|
|
14
|
+
when: 'Priority: un-migrated call sites left behind by a new helper.'
|
|
15
15
|
---
|
|
16
16
|
|
|
17
17
|
# scip-cleanup-improve
|
|
@@ -23,13 +23,13 @@ Load shared mechanics from [`../_shared/SKILL.md`](../_shared/SKILL.md).
|
|
|
23
23
|
<!-- BEGIN GENERATED SKILL COMMANDS -->
|
|
24
24
|
## Commands for this skill
|
|
25
25
|
|
|
26
|
-
| Command | Purpose | When |
|
|
27
|
-
| --- | --- | --- |
|
|
28
|
-
| `scip-query health --json` | Composite codebase health report with prioritized action list | Before editing: report current score and remaining signals. |
|
|
29
|
-
| `scip-query cleanup-plan --verify --json` | Ordered, batched deletion plan: graph-fact dead code plus the cascade candidates it unlocks | Loop: confirm the next compiler-verified deletion batch. |
|
|
30
|
-
| `scip-query cleanup-apply --verified --batch <n>` | Apply a compiler-verified cleanup-plan batch to the working tree | Loop: apply one verified deletion batch. |
|
|
31
|
-
| `scip-query duplicate-bodies --json --full` | Find exact duplicate small-body candidates across files | Priority: exact duplicate small-body echoes to consolidate. |
|
|
32
|
-
| `scip-query incomplete-migration --json --full` | Partially-completed extraction candidates: new helpers in the diff wired into some sites while similar un-migrated sites remain | Priority: un-migrated call sites left behind by a new helper. |
|
|
26
|
+
| Command | Purpose | Returns | Coverage | When |
|
|
27
|
+
| --- | --- | --- | --- | --- |
|
|
28
|
+
| `scip-query health --json` | Composite codebase health report with prioritized action list | health score, findings, priorities, baselines, and coverage notes | `bounded` | Before editing: report current score and remaining signals. |
|
|
29
|
+
| `scip-query cleanup-plan --verify --json` | Ordered, batched deletion plan: graph-fact dead code plus the cascade candidates it unlocks | ordered cleanup batches, evidence, and optional verification outcomes | `bounded` | Loop: confirm the next compiler-verified deletion batch. |
|
|
30
|
+
| `scip-query cleanup-apply --verified --batch <n>` | Apply a compiler-verified cleanup-plan batch to the working tree | applied files, deletions, verification, and refusal reasons | `bounded` | Loop: apply one verified deletion batch. |
|
|
31
|
+
| `scip-query duplicate-bodies --json --full` | Find exact duplicate small-body candidates across files | callable groups with exact normalized-body identity | `bounded` | Priority: exact duplicate small-body echoes to consolidate. |
|
|
32
|
+
| `scip-query incomplete-migration --json --full` | Partially-completed extraction candidates: new helpers in the diff wired into some sites while similar un-migrated sites remain | new helpers and similar unmigrated call sites | `bounded` | Priority: un-migrated call sites left behind by a new helper. |
|
|
33
33
|
|
|
34
34
|
Use this shortlist first. Open [`../_shared/SKILL.md`](../_shared/SKILL.md) only when it is insufficient.
|
|
35
35
|
<!-- END GENERATED SKILL COMMANDS -->
|
|
@@ -59,8 +59,9 @@ Before editing:
|
|
|
59
59
|
```markdown
|
|
60
60
|
Health score: N/100
|
|
61
61
|
First confirmed batch:
|
|
62
|
+
|
|
62
63
|
- finding - evidence - planned fix - verification
|
|
63
|
-
Remaining signals:
|
|
64
|
+
Remaining signals:
|
|
64
65
|
- signal - status
|
|
65
66
|
```
|
|
66
67
|
|