Modern Web Semantic + Platform-Native

Modern Web Semantic + Platform-Native is a skill for Claude Code from s977043/river-review. It costs 32 tokens per session (1,749 once invoked), scanned A, original, MIT.

A review rule for web interfaces that checks whether standard HTML elements, browser features, and modern CSS can replace custom JavaScript or generic clickable elements.

In plain words
What is it for?
It reviews clickable divs and spans, page landmarks, custom disclosure controls, modal behavior, and other cases where native web features may fit.
Why use it?
It helps avoid extra code and improves the built-in behavior and accessibility that browsers provide. Suggestions remain optional and are limited to the changed code.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the river-review plugin — 138 skills, 18 commands, 5 agents, 3 hooks shipped together

Good fit It reviews clickable divs and spans, page landmarks, custom disclosure controls, modal behavior, and other cases where native web features may fit.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/s977043/river-review/modern-web-semantic
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add s977043/river-review --skill modern-web-semantic
Clone the repo
git clone --depth 1 https://github.com/s977043/river-review

Made for: Claude Code.

Or install river-review, the plugin that ships this one along with the rest of its 138 skills, 18 commands, 5 agents, 3 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Modern Web Semantic + Platform-Native

README.md
[![agentmods](https://agentmods.dev/badge/skills/s977043/river-review/modern-web-semantic/github.svg)](https://agentmods.dev/skills/s977043/river-review/modern-web-semantic)
Your own site
<a href="https://agentmods.dev/skills/s977043/river-review/modern-web-semantic"><img src="https://agentmods.dev/badge/skills/s977043/river-review/modern-web-semantic/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Modern Web Semantic + Platform-Native

Your own site · 80×15
<a href="https://agentmods.dev/skills/s977043/river-review/modern-web-semantic"><img src="https://agentmods.dev/badge/skills/s977043/river-review/modern-web-semantic.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,749 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00032 $0.01749
Opus 5 $0.00016 $0.00874
Sonnet 5 $0.00006 $0.00350
Haiku 4.5 $0.00003 $0.00175

Measured 7d ago against content hash 8a1c28de110d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

Modern Web Semantic + Platform-Native scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/midstream/modern-web-semantic/SKILL.md · 106 lines

How it starts

The opening of the file, as written. The whole thing — 106 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Goal / 目的

  • generic な JS / CSS 実装が「セマンティクスを失った車輪の再発明」になっていないかを検出する。
  • semantic HTML / Web Platform Native API / modern CSS の利用機会があれば、より少ないコードで同じ結果が得られる選択肢を提示する。
  • 出力は「強制」ではなく「検討してほしい代替案」として suggestion 扱いにする。

Non-goals / 扱わないこと

  • ブラウザ互換性のフル評価(Baseline / Can I Use 表の機械的読み取り)。
  • フロントエンドフレームワーク選定や状態管理ライブラリの議論。
  • パフォーマンス計測値(LCP / INP)の数値検証。
  • 既存コードの大規模リファクタ提案(差分の範囲内のみ)。

False-positive guards / 抑制条件

  • 既に <dialog> / <details> / <summary> などの semantic 要素を使っている箇所は指摘しない。
  • ライブラリ提供のコンポーネント (<Dialog>, <Popover>, ...) は内部実装の選択を尊重し、差分でその利用方法だけが変わった場合は指摘しない。
  • 古いブラウザサポート(IE11 / Safari < 15 など)が .river/rules.md や README に明示されているリポジトリでは指摘を抑制してよい。
  • 差分が typo 修正・rename・import 整理のみで意味的変化を伴わない場合は指摘しない。

Rule / ルール

Semantic-first

  • click ハンドラ付きの generic 要素 (<div onClick>, <span onClick>) は、<button> / <a> / <label> などの semantic 要素を検討する。
  • ヘッダー / フッター / ナビ / 主要コンテンツ領域は、role 属性より <header> / <footer> / <nav> / <main> を優先する。
  • 開閉可能なコンテンツは custom toggle より <details> / <summary> の利用を検討する。

Platform-native API

  • modal / dialog 実装では <dialog> 要素と showModal() / close() API を検討する(focus trap / inert / top-layer が無償で得られる)。
  • tooltip / popover では Popover API (popover 属性 + popovertarget) と Anchor Positioning の利用機会に触れる。
  • form validation は HTML 標準の required / pattern / :invalid / :user-invalid を起点にし、JS 実装は補強にとどめる。

Modern CSS

  • レスポンシブ実装で要素サイズに依存する場合は Container Queries (@container) を検討する。
  • subgrid / grid の出番がある領域で過剰な flex ネストを行っていないか確認する。
  • アニメーションでは view-transition, CSS transitions, prefers-reduced-motion を検討し、JS 駆動の差分計算に頼らない方法があれば触れる。

Evidence / 根拠の取り方

  • 差分のコードスニペットを引用し、どの行がどの代替に対応するかを示す。
  • 提示する API / プロパティの MDN / W3C / WHATWG 規格名を 1 つ挙げる(例: "HTML <dialog> element", "Popover API", "CSS Container Queries")。
  • 抑制条件(既存の semantic 利用 / ライブラリコンポーネント)に該当しないことを明示する。

Heuristics / 判定の手がかり

  • onClick / onKeyDown / tabIndex を手で組み合わせている generic 要素。
  • position: fixed + 自前 z-index 管理で modal っぽい振る舞いをしている要素。
  • useEffect の中で getBoundingClientRect を取って位置計算している tooltip / popover。
  • addEventListener('resize'|'scroll', ...) で要素サイズに応じてスタイルを切り替えるレイアウト。
  • setInterval / requestAnimationFrame で位置や寸法をアニメートしている箇所。

Read the full file on GitHub · 106 lines

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 106 lines · 32 tokens per session scan A 8a1c28de110d

Subscribe to this mod's changes

Modern Web Semantic + Platform-Native is a skill published in the GitHub repository s977043/river-review (3 stars, last pushed today), licensed MIT. It adds 32 tokens to every session and 1,749 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

web-design-guidelines

Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", or "vs best practices".

martineserios/thebrana · 37 tokens

scroll-craft

Build premium scroll-driven landing pages for service, product, food, and drink brands. Plan the visitor journey, page grammar, emotional peak, and bespoke signature move. Create dimensional heroes with independent visual planes, restrained motion, and separate mobile composition. Use supplied photos and footage or…

nateherkai/scroll-craft · 177 tokens

tailwind-css

Tailwind CSS v4 patterns: CSS-first config, utility classes, component variants, v3 migration. Use when styling with Tailwind, configuring @theme tokens, using tailwind-variants/CVA, migrating v3 to v4, or fixing Tailwind styles and dark mode.

iliaal/whetstone · 61 tokens

absolute-ui

Build polished, intentional UIs with concrete CSS/Tailwind values — typography, color, layout, spacing, dark mode, accessibility, animations, components. Encodes specific, opinionated rules with exact values, not vague advice. Covers buttons, cards, forms, tables, navigation, dashboards, landing pages, onboarding, and…

maddhruv/absolute · 121 tokens

ia-tailwind-css

Tailwind CSS v4 patterns: CSS-first config, utility classes, component variants, v3 migration. Use when styling with Tailwind, configuring @theme tokens, using tailwind-variants/CVA, migrating v3 to v4, or fixing Tailwind styles and dark mode.

iliaal/whetstone · 62 tokens

wp-theme-standards

WordPress legacy theme best practices — proper enqueueing, escaping, hooks, security, and performance.

yojahny55/claude-wp-builder · 25 tokens