quality-scan
// Updates dependencies, cleans up junk files, and performs comprehensive quality scans across codebase to identify critical bugs, logic errors, and workflow problems. Spawns specialized agents for targeted analysis and generates prioritized improvement tasks. Use when improving code quality, before re
$ git log --oneline --stat
stars:45
forks:9
updated:March 3, 2026
SKILL.mdreadonly
SKILL.md Frontmatter
namequality-scan
descriptionRuns comprehensive quality scans across the codebase using specialized agents to identify critical bugs, logic errors, caching issues, and workflow problems. Use when improving code quality, before releases, or investigating issues.
allowed-toolsTask, Skill, Read, Edit, Grep, Glob, AskUserQuestion, Bash(pnpm run check:*), Bash(pnpm run test:*), Bash(pnpm test:*), Bash(pnpm run fix:*), Bash(git status:*), Bash(git diff:*), Bash(git log:*), Bash(git add:*), Bash(git commit:*), Bash(rg:*), Bash(grep:*), Bash(find:*), Bash(ls:*)
quality-scan
<task> Performs comprehensive quality scans across the codebase, cleaning up junk files and spawning specialized agents for targeted analysis. Generates a prioritized report with actionable improvement tasks. </task> <constraints> - Analysis phase is read-only; do not fix issues during scan. - Must complete all enabled scans before reporting. - Findings prioritized by severity (Critical > High > Medium > Low). - All findings must include file:line references and suggested fixes. - Run `pnpm test` after each fix iteration. - Cap at 5 iterations; stop and report if issues persist. </constraints>Phases
- Validate Environment —
git status; follow_shared/env-check.md. - Update Dependencies —
pnpm run update; continue even if it fails. - Install External Tools — See
_shared/security-tools.mdfor zizmor; usepnpm run setup. - Repository Cleanup — Glob for junk files (SCREAMING_TEXT.md, temp files, editor backups); confirm before deletion.
- Structural Validation —
pnpm run check; report errors as Critical findings. - Determine Scan Scope — Ask user: all scans, critical only, or custom selection. CI mode runs all automatically.
- Execute Scans — Spawn agents sequentially via Agent tool using prompts from reference.md. Apply
agents/code-reviewer.mdrules for code scans,agents/security-reviewer.mdfor security scans. - Aggregate Findings — Deduplicate across scans, sort by severity then scan type.
- Generate Report — Summary table by severity + scan type, display to user.
- Fix All Issues — Apply fixes from Critical to Low; read each file before editing.
- Run Tests —
pnpm test; revert and exit iteration on failure. - Commit Fixes — Stage and commit with summary of fixed issue counts.
- Iteration Decision — Zero issues = done; otherwise loop back to Phase 7.
Available Scans
See reference.md for detailed agent prompts. Scan types:
- critical — Crashes, security vulnerabilities, resource leaks, data corruption
- logic — Algorithm errors, edge cases, type guards, off-by-one errors
- cache — Cache staleness, race conditions, invalidation bugs
- workflow — Build scripts, CI issues, cross-platform compatibility
- security — GitHub Actions workflow security via zizmor + credential exposure
- documentation — README accuracy, outdated docs, missing documentation
Scan Scope
Primary: src/, scripts/, test/, .github/workflows/
Excluded: node_modules/, dist/, .pnpm-store/
Error Recovery
- Scan agent failure: Log warning, continue remaining scans.
- Test failure after fixes:
git restore ., report failures, exit iteration. - Git commit failure: Display error, ask user to resolve.