astcount-refactor-loop
Installation
SKILL.md
Run an astcount refactor loop
Keep finding and applying readable, behavior-preserving simplifications that reduce Tree-sitter named-node count. Do not stop after the first successful decrease or ask whether to continue merely because candidates succeeded.
Establish the measurement
Infer the scope from the request, defaulting to the repository. Resolve one
astcount command, run it with --version, and reuse that exact invocation:
- When
command -v nixsucceeds, usenix run github:wokalski/astcount/v0.3.0 --. - Otherwise, use
bunx astcount@0.3.0when Bun is available. - Otherwise, use
npx --yes astcount@0.3.0when npx is available. - Stop if none is available.