Claude-skill-registry frontend-delegation

Use when touching frontend files to classify visual vs logic changes before acting

install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/frontend-delegation" ~/.claude/skills/majiayu000-claude-skill-registry-frontend-delegation && rm -rf "$T"
manifest: skills/data/frontend-delegation/SKILL.md
source content

Frontend Delegation

Frontend files require classification before action. Visual work goes to Pixel; logic you handle directly.

The Core Question

Before touching any frontend file, ask:

"Is this change about how it LOOKS or how it WORKS?"

  • LOOKS → DELEGATE to Pixel
  • WORKS → Handle directly

Change Type Classification

Change TypeExamplesAction
Visual/UI/UXColor, spacing, layout, typography, animation, responsive breakpoints, hover states, shadows, borders, icons, imagesDELEGATE to
pixel
Pure LogicAPI calls, data fetching, state management, event handlers (non-visual), type definitions, utility functions, business logicHandle directly
MixedComponent changes both visual AND logicSplit: logic yourself, visual to
pixel

Quick Reference Examples

FileChangeTypeAction
Button.tsx
Change color blue→greenVisualDELEGATE
Button.tsx
Add onClick API callLogicDirect
UserList.tsx
Add loading spinner animationVisualDELEGATE
UserList.tsx
Fix pagination logic bugLogicDirect
Modal.tsx
Make responsive for mobileVisualDELEGATE
Modal.tsx
Add form validation logicLogicDirect

Visual Keyword Detection

DELEGATE if ANY of these keywords involved:

style, className, tailwind, color, background, border, shadow,
margin, padding, width, height, flex, grid, animation, transition,
hover, responsive, font-size, icon, svg, theme, dark-mode

Delegation Prompt to Pixel

When delegating, include:

1. TASK: Specific visual goal
2. EXPECTED OUTCOME: What it should look like
3. CONTEXT: File paths, existing styles, design system
4. MUST DO: Visual requirements
5. MUST NOT DO: Don't change logic, don't add dependencies

After Delegation

Verify Pixel's work:

  • Does it match the visual requirements?
  • Did it follow existing style patterns?
  • Did it avoid changing logic?