code-quality-scan

Installation
SKILL.md

Code Quality Scan

Process

  1. Detect build system and tools. See ./references/tool-guidance.md for the full tool matrix per language.

    • If flake.nix exists: use nix build, nix flake check, nix run .#test, nix run .#lint
    • Else if go.mod exists: use go build ./..., go vet ./..., go test ./...
    • Else: detect from the table in tool-guidance.md
  2. Run the build command. If it fails, every build error is a Critical finding.

  3. Run the lint command. For Go: golangci-lint run ./... (or go vet ./... as fallback). Map each finding to a severity using the classification in tool-guidance.md.

  4. Run the duplicate code finder.

    • Use art-dupl --type-aware --sort total-tokens -t 5 --html for Go
    • If art-dupl is not installed, fall back to jscpd
    • See ./references/tool-guidance.md → Go duplication
  5. Collect and classify all findings by severity (Critical / High / Medium / Low).

Installs
19
First Seen
May 2, 2026