algorithmic-color-pale…
Derive a full UI palette from one or two brand colours — state variants, brand-tinted greys, semantic colours. Use when building…
Semantic HTML5, SEO basics, alt text, progressive enhancement and SPA concerns. Use when building web UI, reviewing markup or optimising for search.
Claude Code
$ npx -y skills add dembrandt/dembrandt-skills --skill semantic-html-and-seo --agent claude-code
Codex
$ npx skills add dembrandt/dembrandt-skills --skill semantic-html-and-seo -a codex -y
Cursor
$ npx skills add dembrandt/dembrandt-skills --skill semantic-html-and-seo -a cursor -y
Gemini CLI
$ npx skills add dembrandt/dembrandt-skills --skill semantic-html-and-seo -a gemini-cli -y
GitHub Copilot
$ npx skills add dembrandt/dembrandt-skills --skill semantic-html-and-seo -a github-copilot -y
OpenCode
$ npx skills add dembrandt/dembrandt-skills --skill semantic-html-and-seo -a opencode -y
Windsurf
$ npx skills add dembrandt/dembrandt-skills --skill semantic-html-and-seo -a windsurf -y
name: semantic-html-and-seo
description: Semantic HTML5, SEO basics, alt text, progressive enhancement and SPA concerns. Use when building web UI, reviewing markup or optimising for search.
metadata:
priority: 8
pathPatterns:
- "**/*.html"
- "**/*.tsx"
- "**/*.jsx"
- "**/*.vue"
- "**/*.svelte"
- "app/**"
- "pages/**"
- "src/**"
promptSignals:
phrases:
- "seo"
- "semantic html"
- "alt text"
- "meta tags"
- "progressive enhancement"
- "spa"
- "open graph"
- "structured data"
- "html5"
- "localstorage"
- "sessionstorage"
- "personalization"
- "remember user preference"
retrieval:
aliases:
- seo
- semantic html
- alt text
- progressive enhancement
- html5 best practices
- meta tags
- open graph
- structured data
- spa seo
- client-side storage
- localStorage personalization
intents:
- improve seo
- add alt texts
- write semantic html
- optimise for search engines
- add open graph tags
- make spa crawlable
- persist user preferences client-side
- personalise based on stored state
examples:
- add proper meta tags to this page
- write semantic html for this component
- how do I make this SPA SEO friendly
- add alt texts to all images
- remember the user's last view with localStorage
- personalise this returning-user experienceGood HTML is not just markup — it is the contract between your content, search engines, assistive technologies, and the browser. Semantic HTML, correct metadata, and progressive enhancement make UI resilient, findable, and accessible by default.
---
Use the element that describes the content's meaning, not just its appearance.
<header> <!-- site header, logo, primary nav --> <nav> <!-- navigation links --> <main> <!-- primary page content, one per page --> <article> <!-- self-contained content: blog post, product card, news item --> <section> <!-- thematic grouping with a heading --> <aside> <!-- tangentially related content: sidebar, callout --> <footer> <!-- site footer, secondary links, copyright -->
One `<h1>` per page — the primary topic. Headings form an outline: do not skip levels (`h1` → `h3` without `h2`).
<h1>Product name</h1>
<h2>Features</h2>
<h3>Feature detail</h3>
<h2>Pricing</h2><button> <!-- clickable action, submits or triggers JS --> <a href> <!-- navigation to a URL --> <input> <!-- user data entry --> <select> <!-- option selection --> <details> / <summary> <!-- native disclosure/accordion -->
Never use `<div>` or `<span>` as interactive elements without full ARIA annotation — and even then, prefer the native element.
---
Every `<img>` needs an `alt` attribute. What goes in it depends on context.
| Image type | Alt text | |---|---| | Informative (product photo, chart) | Describe content: `alt="Red leather sofa, three-seater"` | | Functional (icon button, logo link) | Describe function: `alt="Go to homepage"` | | Decorative | Empty: `alt=""` — screen readers skip it | | Complex (chart, diagram) | Short alt + longer description nearby or in `<figcaption>` |
<!-- Informative --> <img src="sofa.jpg" alt="Red leather sofa, three-seater"> <!-- Decorative --> <img src="divider.svg" alt=""> <!-- With caption --> <figure> <img src="chart.png" alt="Bar chart showing revenue growth Q1–Q4 2025"> <figcaption>Revenue grew 42% year-on-year in Q4 2025.</figcaption> </figure>
---
<title>Product Name — Short descriptor | Brand</title> <meta name="description" content="One or two sentences. What this page is, who it is for, what they will find.">
<link rel="canonical" href="https://example.com/the-definitive-url">
Prevents duplicate content penalties when the same page is accessible via multiple URLs.
<meta property="og:title" content="Page title"> <meta property="og:description" content="Page description"> <meta property="og:image" content="https://example.com/og-image.jpg"> <meta property="og:url" content="https://example.com/page"> <meta property="og:type" content="website"> <!-- Twitter/X --> <meta name="twitter:card" content="summary_large_image"> <meta name="twitter:title" content="Page title"> <meta name="twitter:image" content="https://example.com/og-image.jpg">
OG image: 1200×630px. Appears when the URL is shared on Slack, LinkedIn, Twitter, iMessage.
**The card's headline is the reader's phrase, not the article's insight.** A feed supplies no context, so a line that needs the article to make sense reads as nonsense to a scrolling stranger. Put the plain promise they are already looking for on the card, in the vocabulary of the platform they are on, and keep the clever line for the page.
**Adapt a card to a platform by mode, not by shade.** Against a light feed a dark card reads as an ad banner; the fix is a light card on that platform's own ground, not a warmer navy or a softer blue. A hue nudge is invisible next to the platform's chrome and costs a round trip for nothing. Tone tweaks come after the mode is right.
**The OG image is the page's own hero.** By default, capture the hero at its native box, so the preview matches the page it opens; a separately drawn card has to be kept in step by hand. Draw one only when the hero cannot carry the page's point on its own. Previews are often shown at half size, so set the captured type large enough to read at 0.5×. Never stretch a captur
Enterprise UX secrets, now built into your AI agent. Your agent writes the component in seconds. It does not know the modal should be a drawer, or that the grey it picked fails contrast. These skills carry that judgment: what to do, and what breaks otherwise.
Derive a full UI palette from one or two brand colours — state variants, brand-tinted greys, semantic colours. Use when building…
Top bar, sidebar rail, app launcher, tenant and environment cue, status bar. Use when designing the persistent shell, a…
Product visuals must show the real product with real data. Use when building landing pages, hero sections, screenshots or demo…
Shape language across type, radius and icons carries brand personality. Use when starting a design system, picking icons or…
Rest, hover, active, focus, disabled and loading states, derived from the base colour. Use when designing buttons, links, inputs…
Rebuild a live web page 1:1 from measurement into Figma, Penpot or code, then verify it. Use when reproducing a page or checking…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.