Quality audit
Weekly code-quality review — knip (dead code), jscpd (duplication), coverage deltas, plus AI code review of recent changes. Use for /quality-audit or a code-health/maintainability review.From its SKILL.md
npx -y skills add arun9483/frontend-platform-kit --skill quality-auditAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.0 KB, as published. Nobody here has run it
Quality Audit
Weekly, advisory. The deterministic floor (ESLint strict, 100% unit coverage) already blocks; you look for decay: dead code accumulating, duplication creeping, coverage quietly eroding, architecture drift.
Steps
- Dead code & unused deps:
pnpm quality:knip(sandbox; summarize). For each finding decide: genuinely dead (propose deletion), false positive (add to knip config with a comment), or intentionally public API. - Duplication:
pnpm quality:dupes(jscpd). Target < 3%. For clones above the threshold, judge whether extraction is warranted (rule of three; don't force DRY on incidental similarity) and propose where the shared code should live per the repo's layered architecture (service vs lib vs component). - Coverage deltas: run unit + integration coverage; compare totals against the
last
docs/quality/baselines-*.md. Flag any package whose coverage dropped. - AI review of the recent window: review
git log --onelinesince the last audit; run/code-reviewon anything unreviewed or suspicious. Check for architecture violations (UI importing repositories, business logic in components, cross-feature imports). - Check the open
code-healthissues (gh issue list --label code-health): close ones that are fixed, comment progress on the rest.
Report format
# Quality Audit — <YYYY-MM-DD>
| Metric | Now | Last audit | Trend |
| knip findings | | | |
| duplication % | | | |
| unit coverage | | | |
| integration coverage | | | |
## Actions
- <delete X / extract Y to Z / add tests for W> (effort S/M/L, value)
Append the metrics row to docs/quality/baselines-<date>.md (new file per audit) so
/quality-digest can read the trend. File or update a code-health issue for actions
not taken immediately.