# Frontend Workflow

> Coordinates frontend and UI implementation, refactoring, and review using the project's color system, React performance, shadcn/ui, interface-polish, and animation-vocabulary skills. Use when the user explicitly requests /frontend-workflow for a frontend task.

- Skill: `modsetter/frontend-workflow` (Agent Skill)
- Install (CLI): `npx skillmds@latest add modsetter/frontend-workflow`
- Raw SKILL.md: https://api.skillmd.com/api/skills/modsetter/frontend-workflow/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Web & Frontend
- Author: MODSetter (https://skillmd.com/u/modsetter)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/modsetter/frontend-workflow

---


# Frontend Workflow

Use this as the single entry point for frontend work. It orchestrates specialist
skills; it does not duplicate their rules.

## Specialist Skills

Load only the skills relevant to the task:

- **React or Next.js code:** read
  `../vercel-react-best-practices/SKILL.md`, then load only the applicable files
  from its `rules/` directory. Do not load its full compiled guide by default.
- **shadcn/ui components or a project with `components.json`:** read
  `../shadcn/SKILL.md` and follow its project-inspection, component-reuse,
  documentation, composition, styling, and accessibility workflow.
- **Colors, themes, charts, or visual styling:** read
  `../color-system/SKILL.md` and use its canonical palette and semantic-token
  rules.
- **UI polish, typography, surfaces, icons, interactions, or motion:** read
  `../make-interfaces-feel-better/SKILL.md`, then load only the applicable
  supporting reference files.
- **A vaguely described motion effect:** read
  `../animation-vocabulary/SKILL.md` first to identify the exact term. This
  glossary names effects; it does not decide whether to build them.

Do not load animation vocabulary or animation references for frontend work
that has no motion concern.

## Workflow

1. **Understand the task**
   - Inspect the relevant implementation and trace the affected interaction.
   - Clarify only decisions that materially change behavior or design.
   - Reuse existing components, helpers, tokens, and patterns.

2. **Select guidance**
   - Apply the specialist-skill conditions above.
   - Read detailed reference files only when the touched code needs them.
   - Treat current project configuration and installed APIs as authoritative.

3. **Implement**
   - Make the smallest complete change that satisfies the request.
   - Preserve established visual language and component APIs.
   - Cover loading, empty, error, disabled, responsive, keyboard, focus, and
     reduced-motion states when they are relevant.

4. **Validate**
   - Run the smallest relevant lint, type, and test checks.
   - For visible interaction changes, verify the rendered behavior when a
     runnable frontend is available.
   - If visual details or motion changed, apply the interface-polish review
     only after functional implementation is complete and resolve blocking
     findings within scope.

5. **Report**
   - Summarize the user-visible result, checks run, and unresolved risks.
   - Use the interface-polish skill's review format only when the user
     requested a review. For implementation tasks, include relevant visual or
     motion findings in the normal completion summary.

## Precedence and Conflicts

Resolve conflicting guidance in this order:

1. The user's explicit requirements.
2. Correctness, security, and accessibility.
3. Existing project conventions and configuration.
4. The canonical color system and shadcn/ui composition rules.
5. React and Next.js performance guidance.
6. Interface and motion polish.

Never sacrifice correctness or accessibility for visual polish or a
micro-optimization. If a specialist rule conflicts with the installed library
version or project configuration, verify the current API and follow the
project's actual version.

## Invocation

Use:

```text
/frontend-workflow <frontend task>
```

Examples:

```text
/frontend-workflow build a responsive settings dialog
/frontend-workflow improve the performance of this React page
/frontend-workflow add the subtle grow-from-trigger effect to this popover
/frontend-workflow review this component's UI and motion
```

