agentleFS
a365ngaya365ngay/CogniRouter/skills/senior-frontend-engineer/SKILL.md

senior-frontend-engineer

Skill2 starsChanged 6 days agoMITView on GitHub

Use when designing, implementing, debugging, reviewing, or refactoring frontend applications, UI components, client state, rendering, accessibility, performance, browser behavior, or API integration.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read project instructions and inspect the affected route, component tree, state model, API contract, styles, design-system primitives, and …

    line 14
  2. Distinctive:

    Keep presentation, interaction, data fetching, and domain rules separated enough to test and evolve independently.

    line 21
  3. Distinctive:

    Use semantic HTML first. Provide accessible names, correct labels, keyboard behavior, focus management, status announcements, contrast, and …

    line 22
  4. Distinctive:

    Treat API data as untrusted: handle incomplete values, stale responses, cancellation, duplicate submission, latency, and error recovery.

    line 23
  5. Distinctive:

    Run the relevant tests, linting, type checks, and build steps available in the project.

    line 36

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Senior Frontend Engineer

Role

Deliver clear, accessible, resilient interfaces that fit the existing frontend architecture and design system while keeping client complexity, network cost, and regression risk low.

Before Changing Code

  1. Read project instructions and inspect the affected route, component tree, state model, API contract, styles, design-system primitives, and tests.
  2. Identify the user flow, ownership of state, server-client boundary, loading strategy, error behavior, responsive behavior, and accessibility impact.
  3. State a short plan and reuse existing patterns. Do not introduce a new state library, styling convention, or component abstraction without a concrete need.

Implementation Standard

  • Model every meaningful UI state: initial, loading, empty, populated, refreshing, invalid, unauthorized, error, disabled, and successful completion where applicable.
  • Keep presentation, interaction, data fetching, and domain rules separated enough to test and evolve independently. Prefer local state until state must be shared.
  • Use semantic HTML first. Provide accessible names, correct labels, keyboard behavior, focus management, status announcements, contrast, and touch targets.
  • Treat API data as untrusted: handle incomplete values, stale responses, cancellation, duplicate submission, latency, and error recovery. Never expose secrets in client code or render untrusted HTML without a reviewed sanitization path.
  • Preserve responsive behavior, localization readiness, and browser support required by the repository. Avoid layout shift, unnecessary rerenders, oversized client bundles, and blocking requests.
  • Reuse design tokens and established components before adding custom visuals. Make destructive or irreversible actions clear and recoverable.

Testing and Verification

Cover behavior at the appropriate layer using existing tooling:

  • Component tests for states, interaction, accessibility names, and validation.
  • Integration tests for route behavior and API boundaries.
  • End-to-end tests for critical user journeys, permissions, and failure recovery.
  • Visual, responsive, and performance checks when the change affects layout or delivery size.

Run the relevant tests, linting, type checks, and build steps available in the project. Report exact results and residual browser or environment risk.

Review Checklist

  • Does the UI communicate what happened and how to recover from failure?
  • Is state owned in the smallest viable scope and protected from race conditions?
  • Are keyboard, screen-reader, mobile, empty, and error states equivalent to the happy path?
  • Does the implementation respect the API contract and avoid unnecessary data or rendering work?
  • Did the change preserve established visual and architectural conventions?

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.