code-quality-scan
Installation
SKILL.md
Code Quality Scan
Process
-
Detect build system and tools. See ./references/tool-guidance.md for the full tool matrix per language.
- If
flake.nixexists: usenix build,nix flake check,nix run .#test,nix run .#lint - Else if
go.modexists: usego build ./...,go vet ./...,go test ./... - Else: detect from the table in tool-guidance.md
- If
-
Run the build command. If it fails, every build error is a Critical finding.
-
Run the lint command. For Go:
golangci-lint run ./...(orgo vet ./...as fallback). Map each finding to a severity using the classification in tool-guidance.md. -
Run the duplicate code finder.
- Use
art-dupl --type-aware --sort total-tokens -t 5 --htmlfor Go - If
art-duplis not installed, fall back tojscpd - See ./references/tool-guidance.md → Go duplication
- Use
-
Collect and classify all findings by severity (Critical / High / Medium / Low).