build-lab

build-lab is a skill for Claude Code, Codex from nweii/agent-stuff. It costs 40 tokens per session (2,026 once invoked), scanned A, original, MIT.

A setup guide for adding a durable /lab area to a website. The area provides a sidebar, a registry of design experiments, and controls for testing ideas with the site's real components.

In plain words
What is it for?
Use it to install a website lab section, build interactive design experiments, test production components, and record settled design decisions.
Why use it?
It gives experiments a consistent place to live and preserves them as reusable design work and history.

Skill for Claude CodeCodex

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/nweii/agent-stuff/build-lab
Any agent
npx skills add nweii/agent-stuff --skill build-lab
Clone the repo
git clone --depth 1 https://github.com/nweii/agent-stuff

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 build-lab

README.md
[![agentmods](https://agentmods.dev/badge/skills/nweii/agent-stuff/build-lab.svg)](https://agentmods.dev/skills/nweii/agent-stuff/build-lab)
Your own site
<a href="https://agentmods.dev/skills/nweii/agent-stuff/build-lab"><img src="https://agentmods.dev/badge/skills/nweii/agent-stuff/build-lab.svg" alt="Measured on agentmods" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,026 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 $0.00040 $0.02026
Opus 5 $0.00020 $0.01013
Sonnet 5 $0.00008 $0.00405
Haiku 4.5 $0.00004 $0.00203

Measured 3d ago against content hash 0994b45a3c5f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

build-lab 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 3d 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/build-lab/SKILL.md · 60 lines

How it starts

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

Lab

A lab is a durable experiment surface inside a website the user runs: a page where a design idea gets built against real production components, tuned with live controls, and retained as an instrument to revisit and as design history. The /lab section is the wing of the site that holds them, with a sidebar to move between labs.

Everything in this skill is a working default. Freely reshape its structure, tools, appearance, exposure, and lifecycle around the user's needs and the host codebase. Labs are optimized for retention, so keep them by default and record settled decisions in outcome metadata; remove them when the user or host lifecycle calls for it.

This skill is for setup: it installs the shell and teaches the host repo the vocabulary. Day-to-day lab authoring is then driven by the section it writes into the project's agents file — after setup, "make me a lab for X" needs no skill at all. If the project has no app-style routing or the user wants a standalone playground, the host can be a bare app whose only content is /lab.

The conventions

Canonical statement of the pattern. The agents-file template restates these for the host repo so it stands alone — an edit to either must be mirrored in the other.

  • Folder = lab. A new folder with a page inside the lab directory appears in the sidebar automatically. No registration step, ever.
  • File split: a thin server/route wrapper (page) plus a client component holding the experiment and its controls (lab).
  • Optional metadata: a lab may carry a small meta module — title, description, date, outcome (a short note on what the lab decided, written once when accepted values go back to production; its absence just means the lab hasn't decided anything). Absent metadata falls back to the folder slug. Metadata is never required — there is deliberately no status field to keep fresh.
  • Defaults flow from production. A tuning lab imports its starting values from the production module it tunes, so the lab can never drift from what ships. Accepted values travel back by copying the control panel's output and applying it to the production source — so whatever control-panel library is chosen must export its current values in copyable form.
  • Harmonize with the destination. For changes to an existing page, section, or component, use its surrounding content, layout, hierarchy, and interface patterns as the starting point. Depart when that is part of the experiment.
  • The control surface is an interface. Order controls in the sequence someone tunes the result, group them by concept, keep high-leverage choices visible, and collapse secondary calibration. Use clear labels, useful ranges, intentional defaults, and a placement that preserves the experiment's canvas. Its appearance follows the lab by default; an independent appearance is a deliberate experiment choice.
  • The dependency points one way. The shell reads labs' metadata; labs stay independent of shell components, so swapping shells touches zero labs.
  • Labs own their canvas. The shell stays background-free edge to edge; an opaque shell layer silently covers labs that paint fixed or negative-z backdrops.
  • Exposure follows the host. Public labs default to direct access, noindex, and omission from the sitemap and main navigation. Protected labs reuse the host's route protection or deployment infrastructure at the /lab boundary; noindex is metadata, not access control. Read references/access-control.md when protection is selected or already exists.
  • Variants inside a lab use a ?v=<name> search param, each named for the axis it diverges on (layout, density, personality, motion). Retain unadopted variants by default for later comparison; the outcome note names the one that was accepted. Follow the user's or host's cleanup preference when it differs. Read references/variant-comparison.md when one lab needs rapid comparison between structural or interaction directions; parameter snapshots stay in the control panel.

Read the full file on GitHub · 60 lines

Files

What ships with it

5 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. 3d ago First seen · 60 lines · 40 tokens per session scan A 0994b45a3c5f

Subscribe to this mod's changes

build-lab is a skill published in the GitHub repository nweii/agent-stuff (8 stars, last pushed 15d ago), licensed MIT. It adds 40 tokens to every session and 2,026 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-08-31.

Related

Other skills, from other repositories

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

hallmark

Anti-AI-slop design skill for greenfield pages, audits, redesigns, and design extraction from URLs or screenshots. Use when the user asks to build a new app or landing page, wants to redesign something, invokes Hallmark by name, or uses audit/redesign/study.

Nutlope/hallmark · 61 tokens

read

Reads URLs and PDFs by fetching source content, defaulting to concise summaries for plain read requests and clean Markdown when asked to convert, save, quote, cite, or feed downstream work. Use when users ask in any language to read, fetch, check, summarize, quote, cite, convert, or save a URL or PDF. Not for local…

tw93/Waza · 78 tokens

accessibility

Consolidated accessibility skill entrypoint for WCAG 2.2, ARIA Authoring Practices, cognitive accessibility, Section 508, EN 301 549, design intent verification, and the Accessibility Planner workflow.

microsoft/hve-core · 47 tokens

desktop-principles

Desktop-specific UX principles - hover states, pointer precision, keyboard shortcuts, multi-window, focus management. Covers macOS, Windows, Linux, web desktop.

Jwuthri/Tracely-ai · 36 tokens

taiyi-ui-design

TaiyiForge 第 4 阶段 — UI/UX 契约,产出 UI-DESIGN.md。四端通用。.

Dong90/oh-my-taiyiforge · 35 tokens