frontend

frontend is a skill for Claude Code, Codex from sipyourdrink-ltd/bernstein. It costs 12 tokens per session (338 once invoked), scanned A, original, Apache-2.0.

A set of instructions for building web interfaces with React or Next.js, including components, browser-side behavior, styling, and accessibility. Accessibility means making an interface usable by people with different abilities and assistive technologies.

In plain words
What is it for?
It is for creating and testing React or Next.js pages, managing interface state, styling components, improving browser performance, and meeting WCAG 2.1 AA accessibility guidance.
Why use it?
It provides conventions for clear components, automated UI tests, semantic HTML, and accessible controls while keeping performance in mind.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

About the project

Bernstein is an open-source governance layer for AI agents that applies written policies, schedules agent work deterministically, controls approvals, and records verifiable execution history. It is used to coordinate CLI coding agents and other agent workloads, including parallel runs and offline review, while the catalogue entries provide its agent workflows and controls.

sipyourdrink-ltd/bernstein · 1,099 stars · on GitHub · bernstein.run

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.

agentmods
npx agentmods add skills/sipyourdrink-ltd/bernstein/frontend
Any agent
npx skills add sipyourdrink-ltd/bernstein --skill frontend
Clone the repo
git clone --depth 1 https://github.com/sipyourdrink-ltd/bernstein

Made for: Claude Code, Codex.

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 frontend

README.md
[![agentmods](https://agentmods.dev/badge/skills/sipyourdrink-ltd/bernstein/frontend.svg)](https://agentmods.dev/skills/sipyourdrink-ltd/bernstein/frontend)
Your own site
<a href="https://agentmods.dev/skills/sipyourdrink-ltd/bernstein/frontend"><img src="https://agentmods.dev/badge/skills/sipyourdrink-ltd/bernstein/frontend.svg" alt="Measured on agentmods" height="20"></a>
Per session 12 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 338 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00012 $0.00338
Opus 5 $0.00006 $0.00169
Sonnet 5 $0.00002 $0.00068
Haiku 4.5 $0.00001 $0.00034

Measured 6d ago against content hash 307d23eccdf2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

frontend 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 6d 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.

templates/skills/frontend/SKILL.md · 48 lines

What it actually says

Frontend Engineering Skill

You are a frontend engineer. Build user interfaces, interactive components, and client-side logic.

Specialization

  • React / Next.js (App Router, Server Components)
  • TypeScript and modern JavaScript
  • Component design and state management
  • CSS / Tailwind / Styled Components
  • Accessibility (WCAG 2.1 AA)
  • Client-side performance and bundle optimization

Work style

  1. Read the task description and existing component code before writing.
  2. Build small, composable components with clear props interfaces.
  3. Write unit tests with React Testing Library alongside implementation.
  4. Use semantic HTML and ARIA attributes for accessibility.
  5. Keep styles co-located with components unless a design system exists.

Rules

  • Only modify files listed in your task's owned_files.
  • Bernstein's core is Python; run uv run python scripts/run_tests.py -x if you touch the Python backend, otherwise run the JS test harness specified by the task.
  • If a design spec or mockup is referenced, match it precisely.
  • Prefer server components unless client interactivity is required.

Call load_skill(name="frontend", reference="a11y.md") for the accessibility checklist, or reference="state-management.md" for state patterns.

Files

What ships with it

2 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. 6d ago First seen · 48 lines · 12 tokens per session scan A 307d23eccdf2

Subscribe to this mod's changes

frontend is a skill published in the GitHub repository sipyourdrink-ltd/bernstein (1,099 stars, last pushed today), licensed Apache-2.0. It adds 12 tokens to every session and 338 once invoked, about $0.0001 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-08-30.

Related

Other skills, from other repositories

Agent Audit Trail

Append-only, hash-chained audit log for AI agents. Records agent actions, tool calls, decisions, and external writes with provenance, timestamps, and sha256 chain integrity. Designed for compliance with EU AI Act Article 12 automatic event recording requirements for high-risk AI systems.

lxyeternal/MalSkillBench · 59 tokens

imlazy-frontend

Frontend development patterns for React, Next.js, state management, performance optimization, and UI best practices.

hnikoloski/imlazy · 25 tokens

v8-jit

V8 JIT optimization patterns for writing high-performance JavaScript in Next.js server internals. Use when writing or reviewing hot-path code in app-render, stream-utils, routing, caching, or any per-request code path. Covers hidden classes / shapes, monomorphic call sites, inline caches, megamorphic deopt, closure…

vercel/next.js · 88 tokens

material-ui-tailwind

Integrates Material UI with Tailwind CSS v4 using cascade layers (enableCssLayer, @layer order) and documents Tailwind v3 interoperability (preflight, important, injectFirst, portals). Use when combining MUI with Tailwind utilities, slotProps className, or theme token bridges.

mui/material-ui · 67 tokens

verify

Use when you want to validate changes before committing, or when you need to check all React contribution requirements.

react/react · 23 tokens

r3f-best-practices

React Three Fiber (R3F) and Poimandres ecosystem best practices. Use when writing, reviewing, or optimizing R3F code. Triggers on tasks involving @react-three/fiber, @react-three/drei, zustand, @react-three/postprocessing, @react-three/rapier, or leva.

zebbern/claude-code-guide · 74 tokens