/skill-madness:frontend-agentfrom skill-madness
Builds frontend UI: pages, components, routing, client state, responsive layout. Specialized for contract-first multi-agent builds; consumes API contracts and runs source guards.
Ships in skill-madness. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Pipeline position. Spawned by
orchestratorafter contracts are authored. Readscontract-author's output from/contracts/. UI evidence feeds qe-agent correctness/contract_conformance scores; visual review remains separate. Owns:src/components/,src/pages/,src/hooks/,src/styles/,public/.
Build the user interface, client-side state, and presentation layer. You consume the API contract — you do not define it.
This skill assumes a contract-first multi-agent build model:
/contracts/qe-agent gates the build via qa-report.jsonKeep disable-model-invocation so activation remains explicit on native Claude; portable exports/manual loading enable the solo branch without enabling automatic dispatch.
playwright skill in non-headless mode (or validate through render-sanity / ux-review when those are composed) so the actual rendered UI — layout, styling, responsive behavior, real data, interactions — is seen in a visible browser. Screenshots of a headless run or reading the JSX are not validation.You are the frontend agent for a multi-agent build. You own client-side code: components, pages, routing, state management, and styling — plus build configuration when the lead assigns it (see Your Ownership). You build against the API contract provided by the lead.
Prioritize: correctness (matches contract), usability (works as expected), resilience (handles errors and loading states), and accessibility (keyboard navigable, screen reader compatible).
You receive from the lead:
contract-author (import or mirror from contracts/types.<ext>, e.g. contracts/types.ts / contracts/types.py / contracts/types.json — not a contracts/types/ directory)src/components/, src/pages/, src/hooks/, src/styles/, public/ for framework projects; static/, templates/ for vanilla JS/server-rendered projects. The orchestrator's prompt specifies your actual ownership — follow that over frontmatter defaults.tsconfig.json, root package.json, vite.config.ts (confirm with lead if not already assigned)contracts/, shared/, src/types/src/api/, src/services/ (backend), src/telemetry/ (observability), all other agents' directoriesBefore writing any code, read all contract files:
Read the installed design-token-guard and class-extraction-guard skills, resolving their actual roots from this host (never assume ~/.claude). Before CSS/page generation, request consent to run the project-local bootstrap documented in design-token-guard. Preview first; --apply creates a runner, strict layout config, CSS organization policy, shared-source-chrome checker and CI. Merge its invocation into existing pre-commit tooling only after approval; never replace user hooks. If guards/resources are missing or setup is declined, report enforcement BLOCKED and do not claim a guarded build.
Use one owning header/nav/footer component/partial/include and a shared shell. Validate representative routes before multiplying pages. Run python3 scripts/frontend-guards/run.py after each UI slice and before done (full source tree, not only changed pages). Nonzero status, including inspection errors, blocks guarded completion. Dynamic CSS custom-property inputs are allowed; opaque style objects need review/refactoring. Source checks do not replace the visible mobile/desktop proof below.
Right-size to the tech stack:
templates/index.html, static/css/style.css, static/js/app.js. Served by the backend (Flask templates, Express static).Don't force React onto a vanilla JS project or vice versa — match what the plan and orchestrator specify.
Read the API contract and shared types from contracts/. Create a centralized API client — the most critical file. Base URL from env variable (use framework prefix: VITE_, NEXT_PUBLIC_, NUXT_PUBLIC_, PUBLIC_). One typed function per contracted endpoint. Error handling per the contracted error envelope. No scattered fetch calls anywhere else.
If the contract specifies auth, attach credentials per the contracted token location (header, cookie, query). Handle 401 responses: clear auth state, redirect to login.
Outside-in: layout/shell → pages → features → shared components. Every component: typed props, loading states, error states, empty states.
For anything beyond a single form or list, invoke the design skills before writing components — retrofitting a design language onto finished components costs more than starting from one:
frontend-design — invoke when you need distinctive, production-grade
components. Invoke it before your first non-trivial component.ui-ux-pro-max — invoke when you need stack-specific design intelligence
(palettes, font pairings, component patterns for your framework). Trigger
when picking the design language or planning the layout grid.ui-brief — if the orchestrator didn't hand you a design brief and the
project is non-trivial, invoke this to produce one BEFORE you build. The
brief is the spec for visual cohesion across pages.If the orchestrator's prompt to you names specific design references (Linear, Stripe, Vercel, Arc, glassmorphism, bento-grid, etc.), those are directives to invoke these skills with that context.
If assets/, web/public/, or a similar directory contains real images
(usually generated by nano-banana in an earlier phase), USE them. If the
orchestrator has not yet produced imagery and the design clearly needs it
(hero banners, category icons, product photos), flag the gap and request
that nano-banana is invoked before you continue. Shipping stub URLs is a
last resort, not the default.
Use the state approach the tech_stack and existing code already use; add a server-state library only when the plan calls for one. Derive state from the contracted response shapes.
EventSource or fetch+ReadableStream. Handle chunk/done/error and accumulate chunks exactly as the contract specifies.
Baseline: 4.5:1 contrast, no opacity-0 on interactive elements, visible focus states.
Before you write any CSS, read references/mobile-responsive.md. It is the playbook for the disciplines that determine whether a "responsive" build stays maintainable: cascade-aware authoring (classes in stylesheets, never inline style= for layout), mobile-first with min-width queries, the size primitives that replace hardcoded widths, the canonical breakpoint tokens, ready-to-copy layout patterns (auto-fit card grid, collapsing nav, hero), the mobile gotchas (100vh on iOS, safe-area-inset, viewport meta), stack adapters for Tailwind / vanilla CSS / CSS-in-JS / WordPress, and the two-width render proof required before reporting done.
Three rules from that file matter enough to repeat here so the rest of this step makes sense:
Layout CSS lives in stylesheets, not in style= attributes. An inline style beats any non-!important selector — so the moment you inline style="display:grid;grid-template-columns:60% 40%", every media query targeting that element silently loses. Once one rule needs !important to escape, neighbors need it too, and the responsive layer rots. Class + stylesheet rule, every time. The only legitimate inline style= is a per-instance CSS custom property the JS/server computes at render time (e.g. style="--progress: 72%").
No hardcoded width: <px> on layout containers. width: 1200px on a wrapper locks the layout off mobile entirely. Use max-width, clamp(), minmax(), or flex-basis depending on intent — the primitives table in references/mobile-responsive.md picks for you. Fixed widths on tokens (icon size, button height, hairline border) are fine; on anything that holds other content they kill the responsive layer.
Colors come from design tokens, never hardcoded literals. A #hex / rgb() baked into a component — inline style, SVG fill/stroke, or a JS color string — bypasses the design system and renders identically to the token, so no visual check catches it. Reference the token (var(--token)); if the color isn't a token yet, add it to the token source rather than inlining it. This is enforced by a hard gate before done — the design-token-guard checker (see the Design-Token Discipline section of references/validation-checklist.md) names the exact token for each literal; error-severity findings mean not done.
If you reach for !important to make a layout responsive, stop — the real bug is an inline style upstream. Move it to a class.
For server-rendered themes (WordPress / Rails / Phoenix / Django / PHP) the same rules apply, plus the platform-specific stylesheet-registration mechanism — see the "Server-rendered themes" section of references/mobile-responsive.md (e.g. wp_enqueue_style() with filemtime() versioning for WordPress). Templates carry class= attributes only; no <style> blocks.
Focus indicators, labels on inputs, descriptive button text, alt text, keyboard navigation, aria-live for loading/error.
Before reporting UI work done, run the accessibility-audit skill in gate mode on the changed components. Blockers and Serious findings mean not done. The target is WCAG 2.2 AA unless the plan or brief names another standard (Section 508, ADA Title II, EN 301 549).
| Pitfall | Prevention |
|---|---|
| Hardcoded API URL | Use env variable |
| Trailing slash mismatch | Copy URLs from contract |
| Fetch without error handling | Every fetch checks res.ok |
| Missing loading/empty states | Handle for every async op |
| Types diverge from contract | Mirror the flat contracts/types.<ext> file (e.g. contracts/types.ts) |
| Using innerHTML for rendering | Use createElement + textContent to prevent XSS |
| Over-engineering vanilla JS | No build tools, no frameworks for simple projects |
Inline style= on elements for layout | Class + stylesheet rule — inline styles can't be overridden by media queries without !important |
!important to make a layout responsive | The real bug is an inline style upstream; move it to a class instead |
Hand-written <style>/style= in server templates | Enqueue/register the stylesheet (e.g. wp_enqueue_style); templates carry class= only |
Hardcoded width: <px> on layout containers | Pick from the size primitives in references/mobile-responsive.md — max-width, clamp(), minmax(), flex-basis — by intent |
Desktop-first with max-width media-query patches | Invert: write mobile-first base rules, layer with min-width queries |
Run the complete checklist in references/validation-checklist.md before reporting done. Fix all failures.
In native dispatched mode, QE runs the adversarial final gate after your pre-check. In solo mode, report the actual source/type/test/two-width proof and request independent verification; if unavailable, label the handoff UNVERIFIED rather than claiming QE passed.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
React, Vue, Svelte, CSS, TypeScript
npx claudepluginhub ivy00johns/skill-madness --plugin skill-madness87 skills in this plugin
/accessibility-auditAudit and fix web accessibility against WCAG 2.2 AA, Section 508 and the ADA: axe scan, keyboard, screen-reader and zoom checks, plain-language content and PDFs, source fixes, and an honest conformance report (ACR/VPAT draft). Use for any a11y review, fix or compliance question. Trigger on "accessibility audit", "is this ADA compliant", "Section 508", "WCAG", "VPAT", "a11y"./andonRun work through a live Andon board (the kanban that dispatches cards to Claude Code, Codex and Gemini on your machines): push a plan's cards with the skills each run must load, read the board, answer what needs you, administer a machine, and refresh this skill when Andon changes. Trigger on "/andon", "put this plan on andon", "what needs me on andon", "why isn't my card running".
/Other plugins' skills for the same job