Reviews code changes against accessibility, responsiveness, performance, and security standards. Triggers on PR review or after non-trivial changes to app/, components/, or lib/.
4 stars
0 votes
0 copies
1 view
Added October 10, 2026
ai-agentsgosqlgitapidatabasesecurityperformance
Works with
cli
api
Security analysis
A92/100
mediumInstalls packages at runtime which could introduce malicious dependencies
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Quality Check?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/hsnice16-quality-check)
---
name: quality-check
description: Reviews code changes against accessibility, responsiveness, performance, and security standards. Triggers on PR review or after non-trivial changes to app/, components/, or lib/.
---
# Quality check — a11y, responsive, performant, secure
Run the four checks below on any diff affecting UI or I/O. Report findings grouped by dimension.
## Accessibility
- **Landmarks**: one `<main>`, one `<h1>` per page, `<nav aria-label>` on every nav.
- **Semantic HTML**: `<button>` for buttons, `<a>` for links, `<form>` for forms. No `<div onClick>`.
- **aria-label** on every icon-only interactive element (hamburger button, external-link icon, medal chips, score bars).
- **Keyboard reachability**: every interactive element is focusable and visibly shows focus. The global `*:focus-visible` ring covers most cases; verify for custom controls.
- **Color contrast AA**: `text-muted` on `bg-surface` and `bg-surface-2` must hit 4.5:1 for body text (3:1 for large). Run the numbers if you change color tokens.
- **Reduced motion**: transitions/animations respect `@media (prefers-reduced-motion: reduce)`.
- **Form labels**: every input has an associated `<label>` (visible or `sr-only`).
## Responsive
- Viewport sizes to verify: **320 px**, **640 px** (sm), **768 px** (md), **1080 px+** (container max).
- **Nav**: collapses to `<MobileNav>` hamburger below md.
- **Tables**: in `table-wrap`, which scrolls sideways — never force horizontal page scroll.
- **Hero / headings**: scale with `sm:` or `md:` prefix.
- **Grids**: fall back to `grid-cols-1` on narrow.
- **Flex rows** that hold long content: `flex-col sm:flex-row` to stack on mobile.
- **Hero paragraph and body text**: max ~70ch to keep line length readable.
## Performance
- **Server components by default.** Client components only when necessary, or as a markup-heavy `*View` fed trimmed data to keep the RSC payload small (AGENTS.md → Conventions); check that the view adds no server module to the browser chunks.
- **Third-party scripts** load after hydration: `next/script` `afterInteractive` (`GoogleAnalytics.tsx`), or injected on consent (`lib/clarity.ts`). Each origin needs a CSP entry in `next.config.ts`.
- **No client-side data fetching** for rendering — use the DB in a Server Component or API route. Exception: a board re-cut (search, filter, sort) reads the static `/api/board` in `BoardClient`, because the boards are prerendered.
- **Images**: `next/image` for local images; plain `<img loading="lazy">` only for remote badge SVGs.
- **Bundle weight**: flag any new dep > 50 KB gzipped. Justify or use a smaller alternative.
- **Database queries** are `prepare`d once and reused where hot.
## Security
- **SQL parameterisation**: every query uses `?` placeholders. No string concatenation.
- **`dangerouslySetInnerHTML`** only in `components/JsonLd.tsx` (server-built JSON-LD, `<` escaped) and the constant pre-paint script in `components/BoardPendingScript.tsx`. Reject any other use.
- **External URLs** in `<a target="_blank">` always include `rel="noopener noreferrer"`.
- **User input at every boundary** is validated: `parseRepoUrl` for repo URLs, `Number.isInteger` and `> 0` for ids, length caps on search strings.
- **Clone safety**: `git clone --depth 1 --single-branch`; never execute code from a clone (no `bun install`, no `npm install`, no post-clone scripts); `-c credential.helper=` so stored credentials never clone a private repo.
- **Secrets never in code**. `.env.example` documents required vars; `.env.local` is gitignored.
- **Operational gaps** (flag, don't block): no rate limit on the public API or `/score/*`; the cloner isn't sandboxed.
## Response format
For each dimension, list:
- **Pass** items (short, one line each).
- **Fail** items with file:line + the fix.
- **Needs manual check** items (e.g. "contrast pass requires a visual check at these two color pairings").
If everything passes, say so plainly. Don't invent issues to look thorough.