astcount-refactor
Installation
SKILL.md
Refactor once with astcount
Make one cohesive refactor that reduces Tree-sitter named-node count without changing behavior.
Measure
Infer the measurement scope from the request, defaulting to the repository.
Resolve one astcount command before measuring, in this order:
- Use
astcountwhen it is already installed. - Otherwise, use
bunx astcount@0.2.0when Bun is available. - Otherwise, use
nix run github:wokalski/astcount/v0.2.0 --when Nix is available. - If none is available, stop and tell the user that Bun or Nix is required.