agentleFS
AlizHarbAlizHarb/agent-skills/skills/manage-frontend-styling/SKILL.md

manage-frontend-styling

Skill1 starsChanged 5 months agoMITView on GitHub

Use when creating or updating Tailwind CSS 4, Flux, or Blade UI patterns and shared components.

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 10 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill for Blade UI, Tailwind styling, Flux controls, shared components, RTL behavior, dark mode, and accessibility-sensitive …

    line 13
  2. Distinctive:

    Prefer shared components or partials when markup repeats.

    line 22
  3. Distinctive:

    Keep templates small and role-focused.

    line 23
  4. Distinctive:

    Use Tailwind 4 utilities and class sorting with Prettier.

    line 24
  5. Very specific:

    Use only oklch() theme colors in app-owned CSS tokens.

    line 25
  6. Distinctive:

    Keep accessibility in mind: semantics, labels, focus states, keyboard use, and contrast.

    line 29
  7. Distinctive:

    Add tests or snapshots when UI behavior is important.

    line 30
  8. Distinctive:

    Keep presentation code thin and reusable.

    line 46
  9. Distinctive:

    Avoid logic that belongs in Actions, Services, DTOs, or controllers.

    line 47
  10. Distinctive:

    Do not let template files become dumping grounds.

    line 48
  11. Distinctive:

    Test responsive behavior, accessibility-sensitive interactions, and localization when relevant.

    line 52

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Manage Frontend Styling

When To Use

Use this skill for Blade UI, Tailwind styling, Flux controls, shared components, RTL behavior, dark mode, and accessibility-sensitive presentation.

Inputs Needed

  • Screen, user flow, responsive needs, locale requirements, design tokens, and reuse opportunities.

Workflow

  1. Inspect existing Blade, Flux, Tailwind, and component conventions.
  2. Prefer shared components or partials when markup repeats.
  3. Keep templates small and role-focused.
  4. Use Tailwind 4 utilities and class sorting with Prettier.
  5. Use only oklch() theme colors in app-owned CSS tokens.
  6. Make layouts work in both light and dark modes.
  7. Make layouts work in both LTR and RTL.
  8. Localize all user-facing strings.
  9. Keep accessibility in mind: semantics, labels, focus states, keyboard use, and contrast.
  10. Add tests or snapshots when UI behavior is important.

Files That May Be Created

  • Blade components, partials, stylesheets, translation files, and tests.

Files That May Be Modified

  • resources/views/**
  • resources/css/**
  • translation files
  • component classes
  • frontend tests

Architecture Rules

  • Keep presentation code thin and reusable.
  • Avoid logic that belongs in Actions, Services, DTOs, or controllers.
  • Do not let template files become dumping grounds.

Testing Requirements

  • Test responsive behavior, accessibility-sensitive interactions, and localization when relevant.

Review Checklist

  • Is the markup shared instead of duplicated?
  • Are classes sorted and readable?
  • Does the UI remain usable in RTL and dark mode?
  • Are strings translated?

Common Mistakes to Avoid

  • Hardcoded colors or copy.
  • Repeating the same component markup many times.
  • Writing heavy Blade files with too much logic.

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.