Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Senior Frontend

ASecurity

Senior frontend engineer perspective: component architecture, state management, rendering performance, and UX trade-offs. Use when designing UI features, reviewing frontend code, or choosing client-side patterns.

2 stars
0 votes
0 copies
0 views
Added 9/29/2026
ai-agentsgodebuggingfrontendperformance

Works with

cli

Security Analysis

A100/100

Scanned 9/29/2026

$npx -y skills add aicodedecode/awesome-muse-skills --skill senior-frontend --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Senior Frontend?

Add the live security badge to your README — it updates automatically with every re-scan.

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

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

Download with Pro
Files
SKILL.md
---
name: senior-frontend
description: Senior frontend engineer perspective: component architecture, state management, rendering performance, and UX trade-offs. Use when designing UI features, reviewing frontend code, or choosing client-side patterns.
category: development
---

# Senior Frontend Engineer

## Overview

A senior frontend engineer thinks in **user-perceived outcomes**: time to interactive, jank-free
scrolling, accessible interactions, and UI that survives bad networks and weird data. This skill
captures how that role approaches frontend work — component boundaries, where state lives, what
renders when and why, and how to keep a growing client codebase changeable instead of brittle.

The through-line: the browser is a hostile, underpowered, unpredictable runtime. Design for it.

## When to use

- Designing a new feature's component structure and data flow.
- Reviewing frontend code for architecture, performance, or accessibility issues.
- Choosing between state management approaches (local state, context, stores, server cache).
- Debugging rendering performance: slow lists, layout thrash, input lag.
- Deciding what goes client-side vs server-side (SSR, hydration, islands).

## Core concepts

- **Components are boundaries, not folders.** A good component owns one piece of UI *and* the logic
  that can only live with it. If two components always change together, they're one component. If a
  component needs ten props to render, its boundary is wrong.
- **State colocation.** Keep state as low as possible — in the component that uses it. Lift state
  only when siblings genuinely share it. Global state is for *global* things (auth session, theme),
  not for avoiding prop passing.
- **Server state ≠ client state.** Fetched data is a cache with staleness, retries, and invalidation —
  treat it with a data-fetching library, not hand-rolled `useEffect` fetch spaghetti. UI state
  (open modals, form drafts) lives separately and dies with the view.
- **Rendering budget.** Every render should be explainable. Memoization is a targeted fix for measured
  problems, not a default — wrapping everything in `memo` trades one performance problem for a
  correctness-and-complexity problem.
- **Progressive enhancement mindset.** The UI must communicate state: loading, empty, error, offline.
  Design these four states *first*; the happy path is the easy part.
- **Accessibility is correctness.** Keyboard operability, focus management, semantic HTML, and
  sufficient contrast are not polish — a modal that traps no focus is a broken modal.

## Practical workflow

1. **Start from states, not screens.** List every state the feature can be in (loading, empty, error,
   partial, offline, permission-denied) and sketch each before writing components.
2. **Draw the data flow.** For each piece of state, name its owner, its readers, and its lifetime.
   If you can't name the owner, the design isn't done.
3. **Choose rendering strategy deliberately:**
   - Static content → static generation / CDN.
   - Personalized but cacheable → SSR with caching.
   - Highly interactive islands → hydrate selectively, not the whole page.
4. **Build the skeleton first** — layout, loading states, error boundaries — then fill in behavior.
   Users judge speed by when *something meaningful* appears, not when JS finishes.
5. **Measure before optimizing.** Profile with devtools: which components re-render on each keystroke?
   Virtualize lists over ~100 rows, debounce expensive work, move work off the main thread only when
   profiling says the main thread is the bottleneck.
6. **Review checklist for every PR:**
   - Keyboard path works; focus visible and logical; no focus loss on dialogs.
   - No layout shift on load (reserve space for async content).
   - Works at 320px width and 200% zoom.
   - Failed requests show a recoverable error state, not a blank screen.

Example state-ownership decision:

```text
Feature: dashboard with filterable table
- filters (UI state)      → owned by FilterBar, lifted to Dashboard only because Table needs them
- table rows (server)     → fetched via query hook, cached by filter key, stale-while-revalidate
- selected rows (UI)      → owned by Table; cleared when filters change (lifetime = one query)
- export job (server)     → mutation; progress polled; NOT in global store
```

## Common pitfalls

- **Prop drilling panic.** Reaching for a global store because props feel tedious. Two levels of
  props is fine; the store is for cross-cutting concerns, not convenience.
- **Effect-driven fetching chains.** `useEffect` that fetches, sets state, triggers another effect.
  This is where race conditions and double-fetches breed — use a query library with request keys.
- **Ignoring the loading/error/empty states** until QA finds them. They're the majority of real-world
  renders on flaky networks.
- **Premature memoization.** `useMemo`/`memo` everywhere "for performance" without a profile to
  justify it — now renders are unpredictable and the code is harder to read.
- **Hydration mismatches.** Rendering different HTML on server and client (dates, random IDs,
  `window` checks) causes flicker and bugs. Render deterministically; defer client-only bits.
- **Div soup.** `<div onClick>` instead of `<button>`: no keyboard support, no semantics, no focus.
  Use the platform's elements first, custom ARIA second.
- **Chasing frameworks over fundamentals.** The senior move is knowing *when not to add* a library:
  every dependency is a liability you didn't write and can't fully control.

Attribution

aicodedecodeaicodedecode
View sourceSee grades on GitHubMore from aicodedecode →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

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 (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Terse caveman voice: answer first, fluff gone, every technical fact kept. Use for /caveman, "caveman mode", "talk like caveman", "be brief", "less tokens". Stays on until "stop caveman" or "normal mode".

1100021 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

698621 votes

Writing Skills

Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dep...

3931 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3421 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Amp, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Grok Build, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

741 votes
View all in ai-agents →