---
name: techboidesign-skill-pack
title: techboidesign skills
kind: skill-folder
description: 5 skills kept together in one folder, by Techboidesign.
skills: 5
updated: 2026-12-03
authored_by: Techboidesign
source_url: https://github.com/Techboidesign/skill-pack
page: https://innernet.live/community/skills/techboidesign/skill-pack
---

# techboidesign skills

a folder of 5 skills by Techboidesign, kept on innernet at https://innernet.live/community/skills/techboidesign/skill-pack (source: https://github.com/Techboidesign/skill-pack).
every skill in it is below, whole. each one starts with its own manifest: what it does, when to load it, whose it is.
you do not need all of them at once. read the index, then use the skill that fits the task in front of you. each skill also has its own link, if only one is wanted.

## the skills

1. **techboi design system builder**: Build, extend or audit a product-first, white-label design system on shadcn/ui + Tailwind v4 - foundations (color, type, spacing, layout, breakpoints, grid strokes, radius, borders, shadows, motion, icons, imagery & logo), product components (app shell, sidebar, modals, data tables, dashboards) and the rules that keep it consistent. Use when the user says "design system", "design system builder", "foundations", "tokens", "theme", "white-label", "rebrand", "app shell", "dashboard layout", or starts a new product UI and wants it built on a system rather than one-off styles. https://innernet.live/skills/techboidesign-techboi-design-system-builder
2. **techboi motion**: Alejandro Alvarez's motion rules for websites — fast, snappy, minimal transitions, hovers, press feedback, scroll reveals, page transitions, menus and overlays, with hard duration caps, one-axis movement and full reduced-motion support. Use when adding or reviewing any animation, transition, hover, reveal, page transition or overlay in HTML/CSS. https://innernet.live/skills/techboidesign-techboi-motion
3. **techboi web rules**: Alejandro Alvarez's house rules for building websites in plain HTML and CSS — mobile first, BEM classes, cascade layers, tokens, one column grid, CSS-first interaction, calm motion, accessibility. Use when building, refactoring or reviewing a static site, landing page or HTML/CSS component. https://innernet.live/skills/techboidesign-techboi-web-rules
4. **techboi web validation**: Alejandro Alvarez's pre-hand-in checklist for static websites — automatic check.sh (HTML validation, fragile selectors, desktop-first queries, missing alt, inline JS), W3C validators and manual browser checks. Use before shipping or handing in an HTML/CSS site, or when asked to validate or check a page. https://innernet.live/skills/techboidesign-techboi-web-validation
5. **techboi website quality audit**: Audit and fix a website for accessibility, performance, SEO, security, markup and sustainability, tagging each rule as formal standard, consensus or tool check. Use for site audit, Lighthouse, WCAG, page speed, SEO check. https://innernet.live/skills/techboidesign-techboi-website-quality-audit

---

<!-- skill 1 of 5: techboi design system builder · https://innernet.live/skills/techboidesign-techboi-design-system-builder -->

---
name: techboidesign-techboi-design-system-builder
title: techboi design system builder
kind: skill
description: >
  Build, extend or audit a product-first, white-label design system on shadcn/ui
  + Tailwind v4 - foundations (color, type, spacing, layout, breakpoints, grid
  strokes, radius, borders, shadows, motion, icons, imagery & logo), product
  components (app shell, sidebar, modals, data tables, dashboards) and the rules
  that keep it consistent. Use when the user says "design system", "design
  system builder", "foundations", "tokens", "theme", "white-label", "rebrand",
  "app shell", "dashboard layout", or starts a new product UI and wants it built
  on a system rather than one-off styles.
updated: 2026-12-03
authored_by: Techboidesign
author_url: https://github.com/Techboidesign
source_url: https://github.com/Techboidesign/skill-pack/tree/HEAD/skills/techboi-design-system-builder
brought_by: kt
license: MIT
---

# Design System Builder

A master template for a **product-first, white-label** design system. Generic: no brand is baked in. Every project starts from the same structure, then gets painted with its own brand through tokens only.

Stack: **shadcn/ui** (open code, copied into the repo) on **Tailwind CSS v4**, with **@shadcn/lint** enforcing the rules. Primitives come from Radix, Base UI or React Aria via `shadcn init --base`.

## When to read what

| You are doing | Read |
|---|---|
| Starting a project, or adopting the system in an existing one | Section 1 below, then `references/foundations.md` |
| Defining or changing tokens, brand, dark mode | `references/theming.md` + `templates/theme.css` |
| Building any screen or component | `references/components.md` |
| Building the app shell, sidebar, dashboard, settings, list/detail | `references/layouts.md` |
| Reviewing or auditing UI | Section 3 (rules) + `references/checklist.md` |
| Writing the system's own docs/gallery | `references/documentation.md` |

## 1. Setup (required, in this order)

Do not skip these. They are what make the system enforceable instead of a style guide nobody follows.

```bash
# 1. shadcn/ui. Template: next | vite | start | react-router | laravel | astro
pnpm dlx shadcn@latest init -t <framework>
#    optional: --base radix|base|aria  (primitive library)   --rtl   --monorepo

# 2. The shadcn agent skill (reads components.json, runs `shadcn info --json`,
#    steers agents to shadcn docs/search before generating code)
pnpm dlx skills add shadcn/ui

# 3. The design-system linter: https://github.com/shadcn-ui/lint
pnpm add -D @shadcn/lint eslint @typescript-eslint/parser     # ESLint 9.30+, Node 20.19+
#    or: pnpm add -D @shadcn/lint oxlint                      # Oxlint 1.80+
```

Then:
1. Copy `templates/eslint.config.mjs` (or `templates/.oxlintrc.json`) into the project root and add `"lint": "eslint ."` to `package.json`.
2. Replace the generated theme block in the global CSS with `templates/theme.css`, then set the brand (see `references/theming.md`).
3. Append `templates/AGENTS.md` to the project's `AGENTS.md` / `CLAUDE.md` so every agent runs the linter after changes.
4. Install the base product kit in one go:
   ```bash
   pnpm dlx shadcn@latest add sidebar breadcrumb button button-group input textarea select \
     checkbox radio-group switch slider label field form dialog sheet drawer popover tooltip \
     dropdown-menu context-menu command tabs table card badge avatar skeleton progress \
     sonner alert alert-dialog separator scroll-area collapsible accordion toggle toggle-group \
     calendar date-picker chart empty kbd spinner pagination hover-card resizable
   ```
   (Run `pnpm dlx shadcn@latest search` or `view` to check names; some, like `date-picker`, are compositions documented on the site rather than a single add.)
5. Verify: `pnpm lint` passes, `pnpm dlx shadcn@latest info` shows the expected base, icon library and aliases.

## 2. Build order

Always foundations → primitives → composites → layouts → pages. A layer may only use the layers before it.

1. **Foundations** (tokens only, no components): color, typography, spacing, layout, breakpoints, grid strokes, radius, borders, shadows/elevation, z-index, motion, iconography, imagery & logo, focus. See `references/foundations.md`.
2. **Primitives**: the shadcn components, restyled only through tokens and `cva` variants inside `components/ui/*`.
3. **Composites** (product components built from primitives): page header, stat tile, filter bar, data table, empty state, command palette, settings row, etc. Live in `components/` (not `ui/`).
4. **Layouts**: app shell, dashboard, list/detail, settings, auth, onboarding, error. See `references/layouts.md`.
5. **Pages**: assemble layouts + composites. Pages contain no styling decisions, only composition.

Out of scope for this skill (add per project if needed): marketing heroes, landing sections, pricing pages, decorative/interactive backgrounds, video/media players.

## 3. Rules

Hard rules. `@shadcn/lint` enforces the ones marked ⚙; the rest are review rules.

**Tokens**
- ⚙ No raw palette colors in product code (`bg-zinc-900`, `text-red-500`, hex, rgb). Use semantic tokens: `bg-background`, `text-muted-foreground`, `border-border`, `bg-destructive`.
- ⚙ No arbitrary values (`p-[13px]`, `w-[372px]`, `text-[15px]`). Missing a value? Add a token, don't inline it.
- ⚙ No inline `style` and no `<style>` tags (exception: dynamic values like a chart width or a CSS variable set from data, which go through `style={{ "--x": v }}` and a token-based class; document the exception with a lint disable comment and reason).
- ⚙ Classes must be static strings. Use `cva` variants or `cn()` with full class names, never `` `bg-${color}` ``.
- Every color token comes in a pair: `--x` and `--x-foreground`. Never put text on a surface without using its paired foreground.
- Brand lives in **one place**: the `:root` / `.dark` / `[data-brand]` blocks of the theme file. A rebrand must be a diff to that file only.

**Components**
- ⚙ Don't restyle a component from outside via `className` to change its look (color, radius, padding). Add a variant in `components/ui/<name>.tsx`. `className` from outside is for layout only (margin, grid placement, width).
- Check shadcn first (`shadcn search`, `shadcn docs`, the shadcn skill) before writing a new component. Composition beats creation.
- One component per concern. No "god" components with 15 boolean props; prefer composition (`<Card><CardHeader/>…`) and `asChild`/`render` slots.
- Every interactive component has all states: default, hover, focus-visible, active, disabled, loading (if async), selected/checked, invalid, and read-only where relevant.
- Destructive actions use `AlertDialog` with the action named in the button ("Delete project"), never "OK".

**Layout**
- Spacing only from the 4px scale. Gaps between siblings via `gap-*` on the parent, not margins on children.
- Content width is a token (`max-w-(--container-content)` etc.), never a magic number.
- One primary button per view region. Secondary actions are `variant="outline"` or `ghost`.
- Dense by default for product UI (h-8/h-9 controls, text-sm body). Comfortable density is a per-surface choice, not per-component.

**Accessibility (never cut)**
- WCAG 2.2 AA: 4.5:1 body text, 3:1 large text and UI boundaries/focus indicators. Check both themes.
- Visible `focus-visible` ring on everything focusable (`ring-ring`). Never `outline-none` without a replacement.
- Hit targets ≥ 24×24 CSS px (WCAG 2.5.8); aim for 32+ in dense UI, 44 on touch.
- Icon-only buttons have `aria-label` (and a `Tooltip` with the same text).
- Status is never color-only: pair color with an icon or label.
- Respect `prefers-reduced-motion`; respect `prefers-color-scheme` as the default theme.
- Keyboard: every flow works without a mouse. Overlays trap focus and restore it on close (shadcn primitives do this; don't break it).

**Content**
- Sentence case for all UI text. Buttons are verbs ("Create project"), not "Submit".
- Numbers, IDs, timestamps and code use `font-mono` and `tabular-nums`.
- Empty, loading and error states are designed for every list, table and chart. No blank screens.

## 4. Done means

- `pnpm lint` passes with zero errors and no new disables without a reason.
- Both themes checked, plus at least one alternate brand (`[data-brand="demo"]`) to prove white-labeling works.
- Checked at 375, 768, 1280 and 1536 px.
- `references/checklist.md` passes for every new component.

## 5. Influences and credits

Built on and borrowing from: **shadcn** (shadcn/ui, @shadcn/lint, the open-code component model), **Radix UI / WorkOS**, **Base UI** (MUI team), **React Aria** (Adobe), **Tailwind Labs** (Tailwind CSS v4, Refactoring UI by Adam Wathan & Steve Schoger), **Vercel Geist**, **Linear**'s product UI, **GitHub Primer**, **Atlassian Design System** tokens, **IBM Carbon** (product density, data tables), **Material 3** (token tiers, state layers), **Radix Colors** (12-step scales), **Open Props**, **Every Layout** (Heydon Pickering & Andy Bell), the **W3C Design Tokens Community Group** format, and icon sets **Lucide**, **Heroicons**, **Tabler**, **Phosphor**. Credit the ones a project actually uses in its own docs.

---

<!-- skill 2 of 5: techboi motion · https://innernet.live/skills/techboidesign-techboi-motion -->

---
name: techboidesign-techboi-motion
title: techboi motion
kind: skill
version: 1.0
description: >
  Alejandro Alvarez's motion rules for websites — fast, snappy, minimal
  transitions, hovers, press feedback, scroll reveals, page transitions, menus
  and overlays, with hard duration caps, one-axis movement and full
  reduced-motion support. Use when adding or reviewing any animation,
  transition, hover, reveal, page transition or overlay in HTML/CSS.
updated: 2026-12-03
authored_by: Techboidesign
author_url: https://github.com/Techboidesign
source_url: https://github.com/Techboidesign/skill-pack/tree/HEAD/skills/techboi-motion
brought_by: kt
license: MIT
---

# Techboi Motion

> Motion is a quick confirmation, never a show. If nobody would miss it, delete it.

Recipes (copy-paste CSS/JS): [references/RECIPES.md](references/RECIPES.md). Reveal script: [scripts/reveal.js](scripts/reveal.js).
Works with `techboi-web-rules` (tokens, layers, BEM) and is checked by `techboi-web-validation` and `techboi-website-quality-audit`.

## 1. Decide first
1. **Should it move at all?** Seen many times a day (nav, filters, keyboard actions) → no movement, colour only. Keyboard-triggered actions never animate.
2. **What is it for?** Feedback (hover, press), state change (open/closed), orientation (page change, overlay). "Looks cool" is not a reason.
3. **Fewest properties.** Opacity first. Add a short move only if it explains where something came from.

## 2. Tokens (the only values allowed)
```css
:root {
  --dur-fast: 120ms;  /* hover, press, every exit */
  --dur: 200ms;       /* menus, overlays, accordions */
  --dur-slow: 300ms;  /* cap for anything answering the user */
  --reveal-fade: 300ms; /* scroll reveals: play while the user reads */
  --reveal-rise: 400ms;
  --curve: ease;                              /* colour and opacity */
  --curve-out: cubic-bezier(0.23, 1, 0.32, 1); /* anything entering or moving */
  --stagger: 40ms;
  --rise: 48px;       /* reveal distance — house style, not a standard */
  --shift: 8px;       /* overlay distance */
}
/* Movement itself lives inside @media (prefers-reduced-motion: no-preference) */
```
Never hardcode a duration or curve. Never use `ease-in` (feels slow) or `transition: all`.

## 3. Caps — two tiers
⚡ **Answering the user** (hover, press, menus, overlays, page transitions): ≤ `--dur-slow` (300ms).
🌊 **Playing while reading** (scroll reveals, first view): `--reveal-*` tokens, first view ≤ 1s.

| Thing | Duration | Curve | Movement |
|---|---|---|---|
| Hover: colour, underline, weight | `--dur-fast` | `--curve` | none |
| Press (`:active`) | `--dur-fast` | `--curve-out` | `scale: 0.97` |
| Image hover | `--dur` | `--curve-out` | `scale` ≤ 1.03 |
| Menu / overlay open | `--dur` | `--curve-out` | opacity + `--shift` on ONE axis |
| Menu / overlay close | `--dur-fast` | `--curve-out` | opacity (exit is always faster) |
| Accordion | `--dur` | `--curve-out` | height (`interpolate-size`) |
| Scroll reveal | `--reveal-fade` / `--reveal-rise` | `--curve` / `--curve-out` | opacity + `--rise` up |
| First view (hero title, pixel fall) | ≤ 1s | `--curve-out` | opacity + short rise |
| Page transition | old `--dur-fast` / new `--dur` | `--curve` | opacity only; header stays |
| Loops (marquee) | linear | linear | needs pause/stop (WCAG 2.2.2) |

- 🟡 The 300ms cap is industry guidance (Emil Kowalski), not a standard. It applies to the ⚡ tier only.
- A row of reveals (with stagger) finishes within ~600ms.
- **Stagger ≤ 5 items** × `--stagger`. Never block clicks while it plays.

## 4. Movement rules
- **One axis only.** Vertical for reveals and drop-downs; horizontal only for a panel entering from a side edge. Never X and Y together, never diagonal, never rotate.
- **Distances are tokens:** `--rise` (48px) for reveals, `--shift` (8px) for overlays. Panels from an edge may travel their own width.
- **Never from `scale(0)`.** Start at `0.95`+ with opacity.
- **No bounce, overshoot, parallax or blur** on large areas (blur is expensive, and WCAG counts it as motion).
- **Animate only `opacity`, `transform`, `translate`, `scale`.** Colour changes are fine. Never `width`, `height`, `top`, `margin` (except the accordion height via `interpolate-size`).
- **Transitions over keyframes** for anything the user can trigger repeatedly: they reverse mid-way, keyframes restart.
- **Popovers grow from their trigger** (`transform-origin` at the trigger). Modals stay centred.

## 5. Page load and scroll
- **Above the fold is never hidden.** It's visible at once — it may fade in, but never waits for a script. (Protects LCP.)
- **Below the fold reveals once**, as it enters, never again on scroll-up. Rows arriving together stagger left to right.
- **No JavaScript = everything visible.** The script only adds the hidden state.
- **Don't hijack scroll.** If the wheel is smoothed, any key, pointer or touch stops it at once, and it's off with reduced motion.

## 6. Page transitions
- Cross-document View Transitions only: `@view-transition { navigation: auto; }`. No SPA router, no JS.
- Opacity crossfade, old out fast, new in slightly slower. Header (and anything shared) keeps its place.
- Browsers without support just navigate — that is fine.

## 7. Hover and touch
- Every hover lives in `@media (hover: hover) and (pointer: fine)` — nothing sticks after a tap.
- Every clickable thing reacts, but with colour/weight/underline first; movement only on images and cards.

## 8. Reduced motion (always)
- With `prefers-reduced-motion: reduce`: **nothing moves, grows or slides.** Every movement rule sits inside `no-preference`; page transitions and loops are off, video shows its poster.
- Opacity and colour changes may stay (≤ `--dur-fast`); they help comprehension.
- 🟢 `[STANDARD]` WCAG 2.2.2 Pause, Stop, Hide (Level A): content that moves on its own for more than 5s, next to other content, needs a pause/stop/hide control.
- 🟢 `[STANDARD]` WCAG 2.3.3 Animation from Interactions (Level AAA): motion triggered by interaction can be turned off. Opacity and colour don't count as motion; blur does.

## 9. Check before shipping
- `techboi-web-validation` → `check.sh` step 6 flags `transition: all`, `ease-in`, hardcoded durations and `--dur*` tokens over 300ms (`--reveal-*` are exempt; one-offs carry an `allowed:` comment).
- `techboi-website-quality-audit` → WCAG 2.2.2 / 2.3.3, Lighthouse `non-composited-animations`, CLS (reveals use `transform`, so they never shift layout).
- By eye: DevTools → Animations panel at 10% speed; then turn on *Reduce motion* and check that nothing moves.

---

<!-- skill 3 of 5: techboi web rules · https://innernet.live/skills/techboidesign-techboi-web-rules -->

---
name: techboidesign-techboi-web-rules
title: techboi web rules
kind: skill
version: 1.0
description: >
  Alejandro Alvarez's house rules for building websites in plain HTML and CSS —
  mobile first, BEM classes, cascade layers, tokens, one column grid, CSS-first
  interaction, calm motion, accessibility. Use when building, refactoring or
  reviewing a static site, landing page or HTML/CSS component.
updated: 2026-12-03
authored_by: Techboidesign
author_url: https://github.com/Techboidesign
source_url: https://github.com/Techboidesign/skill-pack/tree/HEAD/skills/techboi-web-rules
brought_by: kt
license: MIT
---

# Techboi Web Rules

Read [references/WEB-RULES.md](references/WEB-RULES.md) in full before writing any code. The look changes per project; the way of building does not.

## Non-negotiables
1. **Minimal code.** Fewest lines that fully work.
2. **Classes on every block** (short BEM). Never select by position (`:nth-child`) or element chains (`body > header > a`) or ids.
3. **Mobile first.** Base CSS = phone; `min-width` at `48rem` and `64rem`. No `max-width` queries.
4. **Cascade layers:** `reset, base, components, utilities`. Every rule in a layer. No `!important`.
5. **Tokens, not magic numbers.** Same token names every project (`--bg`, `--fg`, `--accent`, `--cols`, `--gap`, `--text-*`, `--dur*`, `--curve*`).
6. **Grid is the layout.** Every `.section` sits on `repeat(var(--cols), minmax(0, 1fr))`.
7. **CSS first, JS when worth it.** Radios + `:checked`/`:has()`, `<details>`, `:target`, view transitions. JS = small `defer` file in `scripts/`, no inline JS, page works without it.
8. **Motion is fast, minimal and optional.** Follow `techboi-motion`: ≤ 300ms, one axis, hovers in `@media (hover: hover)`, movement only in `prefers-reduced-motion: no-preference`.
9. **Accessible by default.** Visible `:focus-visible`, contrast ≥ 4.5:1, labels on every input, unique ids.
10. **Semantic HTML, no cards inside cards, comments explain why.**

## Before hand-in
Run the `techboi-web-validation` skill (automatic `check.sh` + W3C validators + manual browser checks).

---

<!-- skill 4 of 5: techboi web validation · https://innernet.live/skills/techboidesign-techboi-web-validation -->

---
name: techboidesign-techboi-web-validation
title: techboi web validation
kind: skill
version: 1.0
description: >
  Alejandro Alvarez's pre-hand-in checklist for static websites — automatic
  check.sh (HTML validation, fragile selectors, desktop-first queries, missing
  alt, inline JS), W3C validators and manual browser checks. Use before shipping
  or handing in an HTML/CSS site, or when asked to validate or check a page.
updated: 2026-12-03
authored_by: Techboidesign
author_url: https://github.com/Techboidesign
source_url: https://github.com/Techboidesign/skill-pack/tree/HEAD/skills/techboi-web-validation
brought_by: kt
license: MIT
---

# Techboi Web Validation

Run these before every hand-in. A page is not finished until all of them pass. The rules they enforce are in the `techboi-web-rules` skill.

---

## 1. Automatic: `check.sh`

From any folder:

```sh
sh scripts/check.sh path/to/project
```

It runs six checks and lists every line that fails. Exit code `0` means all six passed.

| # | Check | What fails it |
|---|---|---|
| 1 | **HTML validation** with `html-validate` (W3C HTML rules: nesting, duplicate ids, missing attributes, headings) | any error |
| 2 | **Fragile selectors** in the CSS | `:first-child`, `:last-child`, `:nth-child`, `:nth-of-type`, element chains like `body > header > a`, id selectors like `#plans article` |
| 3 | **Desktop-first queries** | any `@media (max-width: …)` |
| 4 | **Images without `alt`** | an `<img>` with no `alt` attribute |
| 5 | **Inline JavaScript** | `onclick=` and other `on…=` attributes, `javascript:` links, `<script>` without `src`. External `defer` files in `scripts/` are fine |
| 6 | **Motion** (rules in `techboi-motion`) | `transition: all`, `ease-in`, a duration typed by hand instead of a token, any `--dur*` token over 300ms |

**Exceptions.** A structural selector that only sets the rhythm inside one component (for example "the last item in an open accordion gets bottom padding") is allowed. Mark it with `allowed:` in its comment and the checker skips it:

```css
.accordion > :last-child { /* allowed: list rhythm inside a component */
```

The first time it runs, `npx` downloads `html-validate`, so you need a connection.

---

## 2. Official W3C validator

`check.sh` uses the same HTML rules, but reviewers usually check with the official tool. Run it too:

- **HTML:** https://validator.w3.org/nu/ → *Check by file upload*, one page at a time. Or *Check by address* once the site is on Netlify.
- **CSS:** https://jigsaw.w3.org/css-validator/ → upload `styles.css`. New features like `:has()`, `@container` or `animation-timeline` may show as warnings. That is the validator being behind, not an error.

The goal is **0 errors and 0 warnings** on every page. Common warnings, and the fix:

| Warning | Fix |
|---|---|
| Card title inside `<figcaption>` | Use an `<h3>` for the title. `figcaption` is only for a caption of the image. |
| Duplicate ID | Every `id` is unique on the page. Watch form fields named like sections (`id="about"`). |
| Section lacks heading | Every `<section>` starts with an `h2` (or `h1`). If it has none, it is a `div`. |
| Empty heading / bad nesting | No `<div>` inside `<p>`, no block elements inside `<a>` you didn't mean, no skipped heading levels. |

---

## 3. Manual checks in the browser

Use DevTools device mode.

- [ ] **Widths:** 375, 768 and 1440 px, **and drag the window slowly through every width in between** (320 up to 1600). There is **no horizontal scroll** at any of them. To find what sticks out, run `[...document.querySelectorAll('*')].filter(e => e.getBoundingClientRect().right > innerWidth)` in the console.
- [ ] **Breakpoints:** check just below and just above each one (767 / 768 and 1023 / 1024). Nothing jumps, wraps badly or overlaps.
- [ ] **Safari:** open the site in Safari as well as Chrome. Grids, `aspect-ratio` and `text-decoration` differ.
- [ ] **WAVE** (wave.webaim.org, or its browser extension): run it on every page and fix every **error** (red). Contrast errors on a header that uses `mix-blend-mode` are a known false positive: check that one by eye (see `techboi-web-rules`, §12 Accessibility).
- [ ] **Keyboard:** Tab through the whole page. You reach every link, button and field, in a sensible order, and the focus ring is always visible. In a radio group, Tab enters it and the arrow keys change the choice.
- [ ] **Selectors:** every choice (product options, switch, gallery) works by clicking and by keyboard, with JavaScript turned off.
- [ ] **Without JavaScript** (DevTools → ⌘⇧P → *Disable JavaScript*): every page still works and reads. Scripts only make things smoother.
- [ ] **Hovers:** everything clickable reacts to the mouse. On a phone, nothing stays stuck in its hover state after a tap.
- [ ] **Form:** press Send with the form empty. Each required field shows its error state (`:user-invalid`) and its hint text.
- [ ] **Contrast:** text over images and video stays readable on the brightest frame. Lighthouse → Accessibility should report no contrast failures.
- [ ] **Zoom:** at 200% the page still reads and nothing is cut off.
- [ ] **Motion speed:** DevTools → Animations panel. Nothing UI-related runs longer than 300ms, exits are faster than entrances, nothing moves diagonally (see `techboi-motion`).
- [ ] **Reduced motion:** turn on *Reduce motion* (macOS: Settings → Accessibility → Display; or DevTools → Rendering → *Emulate prefers-reduced-motion*). Nothing grows or moves, video becomes a still image, and only colour changes remain.
- [ ] **Final detail:** the one chosen detail (accordion, scroll reveal, page transition or menu entrance) runs smoothly, and is off with reduced motion. Page transitions only run on a server (Netlify or a local server), not on a file opened from disk.
- [ ] **Lighthouse** (Chrome DevTools → Lighthouse, mobile): Accessibility and Best Practices at 100, Performance above 90.

---

<!-- skill 5 of 5: techboi website quality audit · https://innernet.live/skills/techboidesign-techboi-website-quality-audit -->

---
name: techboidesign-techboi-website-quality-audit
title: techboi website quality audit
kind: skill
version: 1.0
description: >
  Audit and fix a website for accessibility, performance, SEO, security, markup
  and sustainability, tagging each rule as formal standard, consensus or tool
  check. Use for site audit, Lighthouse, WCAG, page speed, SEO check.
updated: 2026-12-03
authored_by: Techboidesign
author_url: https://github.com/Techboidesign
source_url: https://github.com/Techboidesign/skill-pack/tree/HEAD/skills/techboi-website-quality-audit
brought_by: kt
license: MIT
---

# Techboi Website Quality Audit

## 0. Tier tags (on EVERY finding)
- 🟢 `[STANDARD]` — formal spec (W3C, WHATWG, ISO, ETSI/CEN). MUST pass.
- 🟡 `[CONSENSUS]` — industry norm or vendor guidance, no formal standing. SHOULD pass.
- 🔵 `[TOOL]` — what one tool checks. Evidence, not authority.

Conflict rule: STANDARD > CONSENSUS > TOOL. A tool score never overrides a standard.
Never present vendor guidance (Google, Bing) as a standard.

## 1. Get real data first (never guess)
1. Use a report the user attached or one in the project.
2. Else run tools on the live URL (browser or CLI) — see §8.
3. Lab runs: ≥ 3, report the MEDIAN, mobile first, no extensions.
4. Field data (CrUX, real users, p75) beats lab data when both exist.
5. State which tool + version produced each number.

## 2. Accessibility
🟢 `[STANDARD]`
- **WCAG 2.2 Level AA** (W3C; also ISO/IEC 40500:2025).
- **EN 301 549** (EU, European Accessibility Act). v4.1.1 (published Sept 2026) = WCAG 2.2 AA. Until v4.1.1 is cited in the EU Official Journal, v3.2.1 (WCAG 2.1 AA) is the legal baseline → build to v4.1.1.
- WCAG 2.2 AA ≠ full EN 301 549 conformance (EN covers more than web content). Say so in reports.

Core checks:
- Text alternatives for non-text content; `alt=""` if decorative.
- Contrast ≥ 4.5:1 text, ≥ 3:1 large text and UI components.
- Logical headings; one `h1`; landmarks (`header`, `nav`, `main`, `footer`).
- Every control has an accessible name; form inputs have labels; errors are described in text.
- Full keyboard operation; visible focus; focus not obscured (2.2); no keyboard traps.
- Target size ≥ 24×24 CSS px (2.2); dragging has a single-pointer alternative (2.2).
- No cognitive tests for login (2.2 accessible authentication).
- `<html lang>` set; zoom/reflow to 400% without loss; no `user-scalable=no`.
- Motion: anything moving on its own for > 5s next to other content needs pause/stop/hide (WCAG 2.2.2, Level A); motion from interactions can be turned off (2.3.3, AAA) → honour `prefers-reduced-motion`. Opacity/colour fades aren't motion; blur is. Rules: `techboi-motion`.

🟡 `[CONSENSUS]` Manual keyboard pass + screen-reader pass (VoiceOver/NVDA). Automated tools catch only part of WCAG.
🔵 `[TOOL]` axe-core, Pa11y, WAVE, IBM Equal Access Checker, Lighthouse a11y.

## 3. Performance
🟢 `[STANDARD]` Measure with W3C Web Performance APIs (Navigation/Resource Timing, Largest Contentful Paint, Layout Instability, Event Timing). Check each spec's maturity before calling it a standard — several are drafts.

🟡 `[CONSENSUS]` Core Web Vitals at p75 (defined by Google, used industry-wide):
- LCP ≤ 2.5s · INP ≤ 200ms · CLS ≤ 0.1
- Starting budgets: page < 1.5 MB · JS < 300 KB gz · CSS < 100 KB gz · fonts < 100 KB · 3rd-party < 200 KB.

Fix rules:
- LCP element in initial HTML, `fetchpriority="high"`, never `loading="lazy"` on it.
- AVIF/WebP, correct `srcset`/`sizes`, compressed; video instead of GIF.
- `width`/`height` or `aspect-ratio` on media; reserve space for embeds; no content injected above content.
- `font-display: swap|optional`; subset and self-host fonts.
- Inline critical CSS; `defer` scripts; flatten request chains; ≤ 2 `preconnect`.
- Brotli/gzip, no redirect chains, fast TTFB, long cache + hashed filenames.
- Break long tasks; animate only `transform`/`opacity`; facade heavy third-party embeds.

🔵 `[TOOL]` sitespeed.io (Chrome, Firefox, Edge, Android; Safari partial), WebPageTest, Lighthouse 13 / PageSpeed Insights (uses `*-insight` audit IDs; old IDs removed; needs Node ≥ 22.19; PWA category removed).

## 4. Markup
🟢 `[STANDARD]` HTML Living Standard (WHATWG): valid doctype, `charset` first, no duplicate IDs, correct nesting, native elements before ARIA.
🔵 `[TOOL]` W3C Nu HTML Checker.

## 5. SEO
🟢 `[STANDARD]` Only these: semantic HTML, crawlable `<a href>` links, HTTP status codes, `robots.txt` (RFC 9309), schema.org structured data in JSON-LD, `hreflang`.
🟡 `[CONSENSUS]` — label as VENDOR GUIDANCE (Google Search Essentials, Bing Webmaster Guidelines):
- Unique `<title>` + meta description per page; `rel="canonical"`; viewport meta.
- No accidental `noindex`; `sitemap.xml`; descriptive link text; 200 on indexable pages.
🔵 `[TOOL]` Lighthouse SEO, Screaming Frog, Bing Webmaster Tools, Google Search Console, Schema.org validator.

## 6. Security & best practices
🟢 `[STANDARD]` HTTPS only, no mixed content; HSTS (RFC 6797); Content Security Policy (W3C); secure cookie flags.
🟡 `[CONSENSUS]` OWASP guidance; headers: `X-Content-Type-Options: nosniff`, `Referrer-Policy`, frame protection (`frame-ancestors`); no console errors; no deprecated APIs.
🔵 `[TOOL]` MDN HTTP Observatory (grades headers A+–F), browser DevTools console.

## 7. Sustainability
🟢 `[STANDARD]` *Draft only:* W3C Web Sustainability Guidelines (WSG) are a Group Note Draft, not a Recommendation. Tag findings `[STANDARD · DRAFT]`.
🟡 `[CONSENSUS]`
- Lower page weight and request count (overlaps §3 budgets).
- Cache aggressively; avoid autoplay video; lazy-load below-the-fold media.
- Remove unused JS/CSS, fonts and third-party scripts.
- Prefer green/renewable hosting; dark mode option.
- Accessibility, privacy and security count as sustainability in WSG.
🔵 `[TOOL]` sitespeed.io sustainable-web plugin, WSG checklist.

## 8. Tool matrix (free)
| Area | Tool | Covers | Misses |
|---|---|---|---|
| A11y | axe-core / Pa11y / WAVE | Automatable WCAG checks | Most judgment-based criteria |
| Perf | sitespeed.io / WebPageTest | Multi-browser lab metrics | Real-user field data |
| Perf | PageSpeed Insights | Lab + CrUX field data | Non-Chrome browsers |
| Markup | Nu HTML Checker | HTML validity | Semantics quality |
| SEO | Lighthouse SEO / Screaming Frog | On-page + crawl | Ranking, content quality |
| Security | MDN HTTP Observatory | HTTP headers | App-level vulnerabilities |
| Sustain. | sitespeed.io plugin | Weight / emissions estimate | Hosting, business impact |

## 9. Output format
1. Summary table: area · tool + version · score/result · pass/fail vs gate.
2. Findings grouped by tier (🟢 first). Each: issue → rule/criterion (e.g. WCAG 1.4.3) → file/line → exact fix → impact.
3. Top 5 fixes ranked by impact × ease; STANDARD failures always rank above CONSENSUS.
4. Apply fixes only when asked; smallest diff first.
5. Re-run, show before/after.
6. List what tools couldn't verify (manual a11y, field data, EN 301 549 beyond web content).
