Frontend Development

Build web UI components, pages, and styling. Includes a mandatory Visual Polish pass that adds scroll animations, micro-interactions, typography rhythm, and design depth. Use this skill when a frontend task is ready for implementation, including React components, CSS, layouts, and responsive design.

5 stars

Best use case

Frontend Development is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Build web UI components, pages, and styling. Includes a mandatory Visual Polish pass that adds scroll animations, micro-interactions, typography rhythm, and design depth. Use this skill when a frontend task is ready for implementation, including React components, CSS, layouts, and responsive design.

Teams using Frontend Development should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/frontend-dev/SKILL.md --create-dirs "https://raw.githubusercontent.com/BasharAmso/Bashi/main/.claude/skills/frontend-dev/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/frontend-dev/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How Frontend Development Compares

Feature / AgentFrontend DevelopmentStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Build web UI components, pages, and styling. Includes a mandatory Visual Polish pass that adds scroll animations, micro-interactions, typography rhythm, and design depth. Use this skill when a frontend task is ready for implementation, including React components, CSS, layouts, and responsive design.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Skill: Frontend Development

## Metadata

| Field | Value |
|-------|-------|
| **Skill ID** | SKL-0005 |
| **Version** | 2.0 |
| **Owner** | builder |
| **Inputs** | Task description, DECISIONS.md, existing frontend files, PRD/GDD |
| **Outputs** | Frontend files, STATE.md updated |
| **Triggers** | `FRONTEND_TASK_READY` |

---

## Purpose

Build user interfaces that work correctly AND look exceptional. Correctness (responsive, accessible, all states handled) is the floor, not the ceiling. Every page and component must pass a Visual Polish check before it's considered done.

---

## Procedure

### Step 1 — Read Context

1. **Read DECISIONS.md** — identify framework (React/Next.js, Vue, Astro, vanilla), styling approach (Tailwind, CSS modules), component library (shadcn/ui, Radix, etc.).
2. **Read PRD or GDD** — extract brand tone, target audience, and visual expectations.
3. **Scan existing code** — identify conventions, color tokens, font choices, animation patterns already in use.

### Step 2 — Understand the Task

- What does this UI do? Who uses it? What data does it display or collect?
- What is the emotional tone? (professional, playful, luxurious, minimal, bold)
- Is this a hero page (high visual impact) or a utility screen (functional first)?

### Step 3 — Build the Component/Page

Core implementation:
- Match existing file structure and naming conventions
- Mobile-first responsive design
- Accessible markup (semantic HTML, ARIA labels, keyboard navigation)
- No hardcoded data — use props, state, or labeled placeholders
- Handle all states: loading, error, empty, populated

### Step 4 — Visual Polish Pass (Mandatory)

After the component works correctly, run the Design Quality Checklist. **This step is not optional.**

Run every section of `.claude/skills/frontend-dev/CHECKLIST.md`:
- Typography Rhythm
- Color & Contrast
- Scroll Animations
- Micro-Interactions
- Visual Depth
- Component Library
- Anti-Patterns (flag and fix any matches)

### Step 5 — Final Quality Check

Before marking done, verify:
- Does the page look good at 320px, 768px, and 1440px?
- Does it look polished in both light and dark modes (if applicable)?
- Is there at least one visual "moment" that makes someone pause? (a hero animation, a beautiful card grid, an unexpected typographic treatment)
- Would you screenshot this and put it in a portfolio?

### Step 5.1 — Friction Check

Run the Friction Audit Checklist (`.claude/skills/friction-audit/CHECKLIST.md`). Focus on:
- Unnecessary steps in user flows
- Form field count (every field earns its place)
- Smart defaults pre-filled where possible
- Loading states clear and visible
- Empty states guide the user

### Step 6 — Update STATE.md

Record files created and note the visual approach taken (for consistency across future pages).

---

## Constraints

- Never modifies backend, API, or database files
- Never hardcodes data that should come from an API or prop
- Always logs new framework/library decisions to DECISIONS.md
- Visual Polish (Step 4) is mandatory — never skip it, even for "simple" pages
- Respect existing design language — polish should enhance the current direction, not introduce a conflicting aesthetic
- Animations must respect `prefers-reduced-motion`

---

## Deployment Reference

| Target | Tool | Notes |
|--------|------|-------|
| Static/SPA | Vercel | Zero config for React/Next.js |
| Static/SPA | Netlify | Drag and drop or Git deploy |
| Next.js/SSR | Vercel | Native support |

---

## Primary Agent

builder

---

## Definition of Done

- [ ] Framework and styling confirmed from DECISIONS.md
- [ ] Component handles loading, error, empty, populated states
- [ ] Mobile-first responsive layout (tested at 320px, 768px, 1440px)
- [ ] Accessible markup (semantic HTML, ARIA, keyboard nav, focus indicators)
- [ ] Matches existing project conventions
- [ ] **Typography rhythm applied** (hierarchy, pairing, one "wow" moment)
- [ ] **Scroll animations added** (section reveals, staggered children, reduced-motion respected)
- [ ] **Micro-interactions present** (button hover, image hover, transitions on all state changes)
- [ ] **Visual depth achieved** (shadows, layering, gradients, generous whitespace)
- [ ] **Color palette limited and contrast-checked**
- [ ] At least one visual moment that would make someone pause
- [ ] STATE.md updated

## Knowledge Enhancement (MCP mode)

If Cortex MCP is available:
1. Call `search_knowledge` with query derived from task (e.g., "color palette for fintech", "typography for dashboard", "animation patterns React"), category="ux-design"
2. If relevant results found, call `get_fragment` on the top result
3. Apply as supplementary context (does not override this skill's procedure)

## Output Contract

| Field | Value |
|-------|-------|
| **Artifacts** | Frontend component/page files (components, pages, styles, assets) |
| **State Update** | `.claude/project/STATE.md` — mark task complete, log files modified |
| **Handoff Event** | `TASK_COMPLETED` (ready for code review) |

Related Skills

Mobile Development

5
from BasharAmso/Bashi

Build mobile app screens, navigation, and platform-specific features. Supports three platforms: React Native + Expo (cross-platform), Swift/SwiftUI (native iOS), and Kotlin/Jetpack Compose (native Android). Use this skill when a mobile task is ready for implementation.

Game Development

5
from BasharAmso/Bashi

Build web-based games across four modes: adventure (narrative + puzzles), sandbox (open world + crafting), action (real-time combat + physics), and educational (learning objectives + adaptive difficulty). Covers game loop, scene management, asset pipeline, input handling, and state persistence.

Backend Development

5
from BasharAmso/Bashi

Build API endpoints, server logic, and backend services. Use this skill when a backend task is ready for implementation, including REST/GraphQL APIs, middleware, and server-side processing.

Supply Chain Audit

5
from BasharAmso/Bashi

Audit the dependency supply chain for security risks beyond what `npm audit` or `pip audit` catches. Analyzes dependency health, maintainer trust signals, typosquatting risk, and transitive dependency exposure.

SEO Audit

5
from BasharAmso/Bashi

Audit web pages for search engine optimization: meta tags, heading hierarchy, structured data, image optimization, mobile-friendliness, and content quality. Complements SKL-0013 (Growth & Distribution) by validating what was built.

Pitch Deck

5
from BasharAmso/Bashi

Create a structured pitch deck outline for investors, stakeholders, or partners. Covers problem, solution, market, traction, team, and ask. Natural output after PRD + Problem Stress Test validation.

Launch Checklist

5
from BasharAmso/Bashi

Pre-launch validation covering everything deployment (SKL-0021) doesn't: analytics, error tracking, social meta, legal pages, email setup, DNS, SSL, and go-live readiness. Produces a launch readiness report with pass/fail checklist. Use this skill before going live on any project.

Insecure Defaults Detection

5
from BasharAmso/Bashi

Detect insecure default configurations, hardcoded credentials, fail-open security patterns, and dangerous default values in application code and configuration files. Complements SKL-0015 (Security Audit) by focusing on configuration-level vulnerabilities that dependency scanners miss.

Differential Security Review

5
from BasharAmso/Bashi

Security-focused review of code changes using git diff analysis. Identifies security implications of recent modifications — new attack surfaces, removed protections, changed auth logic, and risky refactors. Complements SKL-0016 (Code Review) with a security lens on diffs.

Copywriting

5
from BasharAmso/Bashi

Write conversion-focused copy using proven frameworks (AIDA, PAS, BAB). Produces headlines, CTAs, landing page copy, email sequences, and micro-copy. Ensures copy matches brand voice and target audience.

Competitor Analysis

5
from BasharAmso/Bashi

Structured competitor research: features, pricing, positioning, gaps, and differentiation strategy. Feeds into PRD Writing (SKL-0004) and Problem Stress Test (SKL-0027) with better market context.

UX Design

5
from BasharAmso/Bashi

Design user experiences including wireframes, flows, and interaction patterns. Use this skill when UX design work is requested, including onboarding flows and interface layouts.