Instructions
When to Use
- Use for landmarks, heading order, focus, motion-safe CSS.
- Prefer
accessibility-auditfor a scored WCAG report. - Prefer
web-design-guidelinesfor SkillCodex doc UI systems.
Raise baseline HTML semantics and CSS quality before or alongside accessibility-audit.
- Landmarks: one
main;navfor primary nav;header/footerroles clear; skip redundantrolewhen native element suffices. - Headings: single logical
h1per page/view; no level skips for styling - fix with CSS. - Interactive: native
buttonvsdivonClick;awith realhreffor navigation; hit targets ≥ 24px (prefer 44px touch). - Focus:
:focus-visiblestyles never removed without replacement; nooutline: nonewithout visible focus ring. - Motion:
prefers-reduced-motion: reduce- replace auto-play loops with static or instant state. - Layout: prefer
flex/grid+gap; avoid deep absolute positioning for primary reading flow.
Outcomes
- Bullet list of markup fixes + CSS tokens to add (spacing, focus ring color).
Output Rules
File:line when auditing existing code; for greenfield, component tree with element types.
Scope and boundaries
- In scope: structure, global CSS patterns, Tailwind class-level guidance.
- Out of scope: full color-system design (use
web-design-guidelines).
Safety
- read-only unless user requests edits.
Troubleshooting
- Landmark duplication: multiple
mainfrom portals - consolidate oraria-hiddenon duplicate decorative wrappers only with care.
Related skills
accessibility-audit- WCAG file:line after structureweb-design-guidelines- doc UI compositionerror-loading-not-found- error/empty states
GitHub: https://github.com/bh611627/skillcodex/tree/main/skills/semantic-html-css/SKILL.md
npm: https://www.npmjs.com/package/@skillcodex/skills