Commit Graph
4 Commits
Author SHA1 Message Date
Giancarmine SalucciandClaude Opus 4.8 81b33fff26 refactor: report-only skill — actionable findings, no apply/modes
The skill no longer modifies code. It emits exactly two artifacts under simplify/:
findings.json (machine-actionable ledger) + a ranked report. Every finding now REQUIRES
title/action/verify (locked in ledger.schema.json) so each is independently executable by
the calling agent. Removed: apply/report modes, Track A autofix execution, baseline gate,
verify-each-change loop, the include-tests switch (tests excluded by default). Reframed
SKILL.md, README, PATTERNS (deterministic/judgment), DETECTION, OPTIMIZATION (judge-only
model tiering), PORTABILITY, SVELTE, CONSOLIDATION accordingly.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-23 02:53:19 +02:00
Giancarmine SalucciandClaude Opus 4.8 4b80117933 feat: Pass B — consolidation & AI anti-pattern analysis (report-only)
Adds the cross-file analysis pass on top of v1's per-node simplification:
- F1 consolidation: duplicate enums/labels (ast-grep+LLM cluster), near-duplicate
  functions (cpd exact + ast-grep skeleton for renamed), untyped repeated DTOs.
- F2 reinventing-the-wheel: ast-grep signature index + judge.
- F3 lint enrichment: bundled Biome (JS/TS) + ruff (Python), read-only, mapped to ledger
  (defer to linters, don't reimplement).
- F4 metrics: scc + ast-grep-derived; flags god/long functions.

Engines bundled as standalone single binaries (manifest + checksums + LFS): ast-grep,
cpd, scc, biome, ruff. Qlty REJECTED at the non-intrusiveness gate (requires `qlty init`
writing .qlty/ into the target) → contingency cpd+scc. Pass B is report-only with a
mandatory model judge + AHA guardrails (validated on software-house: 5 enum clusters incl.
a latent bug, 7 near-dup fn clusters, biome 148 diags, scc flags dispatch.ts cx=698).

Docs: references/CONSOLIDATION.md, references/ANTIPATTERNS.md, docs/PLAN-v2-antipatterns.md;
SKILL.md Pass B section; ledger schema consolidation kind. linux-x64 binaries bundled;
other platforms via manifest fetch+verify.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-23 02:29:40 +02:00
Giancarmine SalucciandClaude Opus 4.8 c14d8bf411 feat(scope): exclude test files by default, add include-tests switch
Test files carry intentional literals/structure, so they were the dominant
remaining magic-number noise source on real projects. Step 1 now filters common
test globs (per-language) from the candidate set by default; the user can opt in
with "include tests / --include-tests". Recorded in ledger config.include_tests.
On software-house: 73/283 TS files are tests; findings 235 -> 180 by default.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-23 01:38:03 +02:00
Giancarmine SalucciandClaude Opus 4.8 3f6f642f6b feat: portable cross-runtime code-simplification skill
ast-grep-driven detection + ranking into a JSON ledger, two-track apply
(deterministic autofix + model span-edits), configurable report/apply modes.
Rule packs for JS/TS, Python, Go, Rust, Java; Svelte/SvelteKit support via
project tooling + opt-in grammar. Runtime-neutral SKILL.md (Agent Skills spec).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-23 00:54:40 +02:00