better-html-style
Skill1 starsChanged 3 days agoMITView on GitHub
The documentation-site look of the user's HTML (from the claude-cluster docs site) on top of html-style - a search box in the top bar and a big one on the home (typo tolerant, ranked on titles / descriptions / text, / or Ctrl+K, arrows + Enter, results with a kind pill, works from a site index, a server endpoint or the sections of the page itself), a home hero with version badge, section tiles with page counts, sidebar grouped by section with the current page, page meta (updated, edit link), changelog list, collapsible details, kbd keys, embed mode (?embed=1) and ?q= / ?lang= / ?theme= in the address, phone layout (search under the bar, 44px targets, 16px fields), print. Use for any page or small tool that should look like the claude-cluster docs ("le style de la doc de claude-cluster", "better", "avec recherche"); a whole documentation site: better-html-doc.
In this repository70 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- ask-at-endSkill
- clarifySkill
- continue-workSkill
- exportSkill
- full-permissionSkill
- ideationSkill
- interactive-questionsSkill
- onboardSkill
- pauseSkill
- presentationSkill
- rtkSkill
- setup-contextSkill
- write-like-meSkill
- audit-bugsSkill
- audit-depsSkill
- audit-qualitySkill
- audit-securitySkill
- benchmarkSkill
- cmake-styleSkill
- cpp-classSkill
- cpp-commentsSkill
- cpp-projectSkill
- cpp-styleSkill
- better-explain-docSkill
- better-html-docSkill
- better-protocol-docSkill
- docs-updateSkill
- explain-docSkill
- html-docSkill
- html-styleSkill
- protocol-docSkill
- readme-styleSkill
- reportSkill
- wiki-styleSkill
- ci-cdSkill
- git-commitSkill
- git-conventionsSkill
- pre-commitSkill
- legal-checkSkill
- legal-setupSkill
- licenseSkill
- libutils-exceptionSkill
- libutils-installSkill
- libutils-setupSkill
- libutilsSkill
- python-classSkill
- python-commentsSkill
- python-projectSkill
- python-styleSkill
- auditSkill
- cppSkill
- devSkill
- docSkill
- gitSkill
- legalSkill
- pythonSkill
- setup-projectSkill
- styleSkill
- setup-studioSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 44
Ranking: every word of the query must match.
≈ “Common” is an estimate: at least 1 in 5 of the 364,980 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Better HTML style (the claude-cluster docs look)
SKILL_DIR = directory of this file. A layer on html-style (../html-style: tokens, components, rules, responsive,
check_style.py - load it first, everything it says stays true). This skill adds templates/site.css + templates/site.js
(the search, the home, the site navigation) and templates/search.html (the search box of the top bar). The engine of a whole
site is better-html-doc; explanation and protocol pages in that site: better-explain-doc, better-protocol-doc.
1. One page
python3 SKILL_DIR/scripts/new_page.py <body.html> -o <out.html> [--lang-switch] [--css extra.css] [--js extra.js] \
[--actions more.html] [--no-search] --set PROJECT="Name" TITLE="Page title" FOOTER="..." [VERSION=1.2.0]The same body as html-style (<aside class="sidebar" id="sidebar"> + <main> with <section id> cards). The search box of
the top bar searches the sections of the page (h2 and h3 with an id) when there is no site index: a long page becomes
searchable for free. A body without a sidebar (a home, a small tool) gets the whole column: new_page.py writes .layout.wide
(and the menu button, with nothing to open, is hidden). Self-contained, offline, file://.
2. Components (on top of the html-style ones)
| Need | Markup |
| home hero | <header class="hero"><div class="page-eyebrow">Name <span class="badge">v1.2</span></div><h1>…</h1><p class="lead">…</p><div class="sbox">…</div></header>, in a body without a sidebar |
| big search | <div class="sbox"><svg>…</svg><input type="search" placeholder="Search… ( / )" data-ph-fr="Rechercher…"><ul class="results" hidden></ul></div> |
| section tiles | <div class="grid"><a class="tile" href><svg>icon</svg><span class="count">3 pages</span><h2>…</h2><p>…</p></a></div> (h2: a tile is a section of the home, no level skipped under the h1) |
| two columns (stack under 860px) | <div class="two">…</div> |
| changelog | <ul class="cl"><li><b>1.2.0</b><span>what changed</span></li></ul> |
| row of links | <div class="links"><a href>FAQ</a>…</div> |
| sidebar groups | <div class="grp">Section</div><a href class="cur" aria-current="page">Page</a>, <hr> between contents and groups |
| page meta | <div class="page-meta"><span>Updated 2026-10-24</span></div> (an <a class="edit" href="<real URL>">Edit this page</a> only when the user asks for it, never an empty link) in the header |
| collapsed block | <details class="more"><summary>Every option</summary><div>…</div></details> |
| keys | <kbd>Ctrl</kbd>+<kbd>K</kbd> |
| pill / kind | <span class="pill">beta</span>, <span class="kind docs">docs</span> (docs, page, settings, config, tools, api, message, protocol, keys, explain; any other: grey) |
3. Search (site.js)
- Index:
window.DOCS_INDEX = {entries: [{k, l, t, d, u, x}]}(search-index.jsof a site: kind, language, title, description, url, text), else a server endpoint (<meta name="docs-search" content="/docs/search">, answers{results: [...]}for?q=&lang=), else the sections of the page. - Ranking: every word of the query must match; prefix > start of a word > inside > one / two typos (a missing, doubled,
wrong or swapped letter) > letters in order (
sesendfindssession_send); title > description > text. Accents kept. - Keys:
<kbd>/</kbd>or<kbd>Ctrl</kbd>+<kbd>K</kbd>focus the search (the big one on the home);<kbd>/</kbd>is a one-character shortcut, so (RGAA 12.10) a checkbox in the footer turns it off (kept per site, its hint in the search box disappears),<kbd>Ctrl</kbd>+<kbd>K</kbd>stays;<kbd>↑</kbd><kbd>↓</kbd>move,<kbd>Enter</kbd>opens,<kbd>Esc</kbd>closes; the query words are marked in the results;?q=textopens with results. - Phone (≤ 480px, ≤ 640px when the bar also holds a level switch): the small search leaves the bar for a sticky row under it, on the home too (its big one is hidden there: one box, never two, never none). Between 481 and 1100px its results hold to the screen, not to the box. The bar stays on one line: the name gives way first, then the search (110px at least).
?embed=1hides the top bar and footer and keeps it on every link (docs shown in an app panel), the search row of a phone sticks at the very top, the level switch of an explanation page moves to the header of the page;postMessage({docsLang, docsTheme})from the host switches language / theme.
4. Rules
Those of html-style (tokens only, both themes, contrast, self-contained, responsive on phone / tablet / TV / touch, print,
reduced motion), plus: the search works without a server and without the index (never an empty box); whatever the content
(a long title, a word of 100 characters, a long version, kind or key) it stays in its box, a wide table or code scrolls in a box of
its own (.two included), and what a link reaches stays visible under the bar and the search row; every interactive
element has a visible :focus-visible; results and tiles are 44px tall on touch screens; the UI words are translated by
DOC_FR (site.js adds its own: Search, Home, Edit this page, Updated, Changelog...).
4b. Accessibility built in (RGAA 4.1, no script needed)
The page template and the generator write what the RGAA asks, so every page is compliant by construction: a skip link
(a.skip-link to <main id="main">, 12.7), <th scope> on every header cell (5.7), tabindex="0" + role="region" + a name
on every block that scrolls (pre, .table-wrap, 7.3), headings without a skipped level (9.1), lang on <html> (8.3), the
one-character shortcut controllable (12.10), a visible :focus-visible everywhere. check_site.py of better-html-doc fails
a site that breaks one of them.
5. Check
python3 ../html-style/scripts/check_style.py <page.html> and python3 ../html-style/scripts/check_render.py <page.html> --shots DIR
(0 error, html-style §7: both themes, 1280 / 768 / 375 px), look at the screenshots, and type a query with a typo in the search
(?q=word in the address opens the results): the right section comes first.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

