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).
In this repository49 other files it gives its agents.
- AGENTS.mdAGENTS.md
- maintainers/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- buying-researcherSkill
- cursor-cloud-agents-whenSkill
- debug-anthropicSkill
- debug-pocockSkill
- debugSkill
- discover-the-ideaSkill
- docs-google-styleSkill
- golang-safetySkill
- golang-securitySkill
- golang-testingSkill
- grok-acpSkill
- host-config-pyinfraSkill
- lang-cppSkill
- lang-csharpSkill
- lang-cSkill
- lang-dartSkill
- lang-dockerSkill
- lang-goSkill
- lang-javaSkill
- lang-js-tsSkill
- lang-kotlinSkill
- lang-luaSkill
- lang-makefileSkill
- lang-phpSkill
- lang-powershellSkill
- lang-protobufSkill
- lang-pythonSkill
- lang-rubySkill
- lang-rustSkill
- lang-shellSkill
- lang-sqlSkill
- lang-swiftSkill
- lang-terraformSkill
- language-routerSkill
- modern-pythonSkill
- pr-reviewSkill
- sdlc-artifactsSkill
- sdlc-onboardingSkill
- security-hardeningSkill
- shell-safetySkill
- tddSkill
- tracker-sdlcSkill
- ui-craftSkill
- ux-designSkill
- verify-before-doneSkill
- yagniSkill
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
- Distinctive: line 19
Check heading order on the changed region.
- Distinctive: line 55
No unexpected third-party CSS/font network from a static page without asking.
≈ “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.
Files
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 clickablediv. - Images have
alt(empty only when decorative). - Forms: label every control. Errors associated with fields.
- CSS: cascade + logical properties. No
!importantarms race. :focus-visible. Do notoutline: nonewithout a replacement.- Color is not the only signal.
prefers-reduced-motionwhen 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=_blankwithoutrel="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
innerHTMLof untrusted strings is alang-js-tsNever. 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"
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.

