agentleFS
alexderzalexderz/agentic-toolbox/skills/lang-web-markup/SKILL.md

lang-web-markup

Skill5 starsChanged 46 days agoMITView on GitHub

use this when writing or reviewing HTML or CSS — *.html, *.htm, *.css, *.scss, or a page's markup/a11y/style. do not use as the primary skill for *.tsx / *.jsx logic (load lang-js-ts first; this may be the second skill).

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Check heading order on the changed region.

    line 19
  2. Distinctive:

    No unexpected third-party CSS/font network from a static page without asking.

    line 55

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

HTML / CSS

One skill for markup and style. No scripts/. Process skills that may load with this one: load-with list. When a second language skill may load: iron law, Algorithm.

Iron law

Semantic HTML first. CSS you can delete. Keyboard and contrast are not optional.

Tooling / verify

  • Open the page if you can. Tab through the new control.
  • Check heading order on the changed region.
  • axe / Lighthouse only if the repo already runs them.

Idioms a linter misses

  • Real elements: button, a, label for, headings in order. No clickable div.
  • Images have alt (empty only when decorative).
  • Forms: label every control. Errors associated with fields.
  • CSS: cascade + logical properties. No !important arms race.
  • :focus-visible. Do not outline: none without a replacement.
  • Color is not the only signal.
  • prefers-reduced-motion when adding animation.

Errors

  • Broken heading levels and unlabeled inputs are bugs, not polish.

Testing

  • Keyboard path for every new control (Tab, Enter/Space, Esc).
  • Responsive check at the project's existing breakpoints if you can render.

PR review

  • New clickable div / span: reject.
  • target=_blank without rel="noopener noreferrer": reject.
  • New !important: reject unless it is undoing a third-party hole and you say so.
  • Contrast of new text on its actual background.

Security

  • innerHTML of untrusted strings is a lang-js-ts Never. Markup templates do not concatenate user text.
  • No unexpected third-party CSS/font network from a static page without asking.

Always

  • Semantic element. Labeled control. Visible focus.

Ask first

  • A new CSS framework.
  • Disabling zoom / user-scalable=no.

Never

  • Clickable non-interactive elements as the primary control.
  • Removing focus outlines with no replacement.
  • Inline styles as the design system.

Red flags

  • "It's just a div with an onClick"
  • "We'll fix a11y later"
  • "outline: none looks cleaner"

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.