Skip to content
Back to skills

Frontend Delegation

ASecurity

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

  • 666 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added February 8, 2026
developmentgoapifrontend

Works with

  • cli
  • api

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill frontend-delegation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Frontend Delegation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Frontend Delegation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-frontend-delegation/badge)](https://www.skillsdirectory.com/skills/majiayu000-frontend-delegation)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: frontend-delegation
description: Use when touching frontend files to classify visual vs logic changes before acting
---

# 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 Type | Examples | Action |
|-------------|----------|--------|
| **Visual/UI/UX** | Color, spacing, layout, typography, animation, responsive breakpoints, hover states, shadows, borders, icons, images | DELEGATE to `pixel` |
| **Pure Logic** | API calls, data fetching, state management, event handlers (non-visual), type definitions, utility functions, business logic | Handle directly |
| **Mixed** | Component changes both visual AND logic | Split: logic yourself, visual to `pixel` |

## Quick Reference Examples

| File | Change | Type | Action |
|------|--------|------|--------|
| `Button.tsx` | Change color blue→green | Visual | DELEGATE |
| `Button.tsx` | Add onClick API call | Logic | Direct |
| `UserList.tsx` | Add loading spinner animation | Visual | DELEGATE |
| `UserList.tsx` | Fix pagination logic bug | Logic | Direct |
| `Modal.tsx` | Make responsive for mobile | Visual | DELEGATE |
| `Modal.tsx` | Add form validation logic | Logic | Direct |

## 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?

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.