agentleFS
MrCipherSmithMrCipherSmith/goodai-base/skills/review-frontend-conventions/SKILL.md

review-frontend-conventions

Skill0 starsChanged 5 months agoMITView on GitHub

Use when reviewing frontend code against repository-local conventions commonly captured in CLAUDE.md or similar project guides: React/MobX boundaries, TypeScript strictness, i18n placement, storage wrappers, error handling, styling tokens, Storybook expectations, and local tooling rules. Dispatched by review-orchestrator for --frontend-conventions, --project-conventions, --all, or frontend src/**/*.ts(x) changes when local convention docs exist.

The file

Show its rules and text

We split this skill into the rules it gives an agent

16 rules. About 0 are common, 10 are distinctive, and 6 are 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.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Before reviewing, read the nearest project guide files if they exist: root CLAUDE.md, AGENTS.md, .junie/guidelines.md, ARCHITECTURE.md, and …

    line 23
  2. Distinctive:

    Do not flag unrelated generic React/MobX issues unless they also violate a local convention or the baseline below.

    line 32
  3. Distinctive:

    If no local convention document exists, run only the neutral baseline and state that no project-specific guide was found.

    line 35
  4. Distinctive:

    Prefer the repository's styling system consistently (Tailwind, CSS modules, design tokens, or the established local framework).

    line 44
  5. Very specific:

    Avoid inline style except for genuinely dynamic positioning or third-party integration seams.

    line 46
  6. Distinctive:

    Use the established UI kit and wrapper layer.

    line 48
  7. Very specific:

    Avoid any and broad as casts.

    line 53
  8. Distinctive:

    Keep tests and stories typed unless intentionally exercising invalid edge cases.

    line 54
  9. Distinctive:

    Follow local React type import conventions consistently.

    line 55
  10. Distinctive:

    Write new code in the direction of stricter compiler settings.

    line 56
  11. Distinctive:

    Keep components thin: read state, bind events, render.

    line 60
  12. Very specific:

    Avoid React local state/memo/callback hooks where the local architecture expects observable or computed state.

    line 62
  13. Distinctive:

    Use effects only for lifecycle, subscriptions, and third-party integration.

    line 64
  14. Distinctive:

    Do not hide missing translations with inline fallbacks when the project expects JSON/catalog entries.

    line 81
  15. Very specific:

    Treat unused-code tools as signals: preserve intentional public APIs with narrow ignores rather than deleting documented runtime/story/test …

    line 93
  16. Very specific:

    When dispatched by review-orchestrator, follow the provided reviewer-input.schema.json payload.

    line 100

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

Review — Frontend Conventions

Reviewer for frontend repository conventions that are more specific than generic React/MobX correctness. Use it alongside review-frontend, review-style, review-performance, and review-logic.

Before reviewing, read the nearest project guide files if they exist: root CLAUDE.md, AGENTS.md, .junie/guidelines.md, ARCHITECTURE.md, and module-level CLAUDE.md files. The checklist below is a neutral baseline; local project rules win when they are stricter.


Scope

Review changed frontend source, stories, tests, and UI wrapper files for local conventions. Do not flag unrelated generic React/MobX issues unless they also violate a local convention or the baseline below.

If no local convention document exists, run only the neutral baseline and state that no project-specific guide was found.


Checklist

Styling and UI

  • Prefer the repository's styling system consistently (Tailwind, CSS modules, design tokens, or the established local framework).
  • Avoid inline style except for genuinely dynamic positioning or third-party integration seams.
  • Theme colors and spacing come from local tokens, not ad hoc literals.
  • Use the established UI kit and wrapper layer; do not bypass shared wrappers without a reason.
  • Reuse existing icons/assets before adding new ones.

TypeScript

  • Avoid any and broad as casts. Prefer type guards, discriminated unions, and precise types.
  • Keep tests and stories typed unless intentionally exercising invalid edge cases.
  • Follow local React type import conventions consistently.
  • Write new code in the direction of stricter compiler settings.

React Components

  • Keep components thin: read state, bind events, render.
  • Business logic, IO, validation, and data transformation belong in stores/services.
  • Avoid React local state/memo/callback hooks where the local architecture expects observable or computed state.
  • Use effects only for lifecycle, subscriptions, and third-party integration; always clean up.
  • Components reading observable state are wrapped in the repository's reactive wrapper.
  • Props shape and file naming follow local conventions.

State Stores

  • Store classes follow local naming, file casing, context, and hook conventions.
  • Observable classes initialize their reactivity in constructors.
  • Member ordering follows local lint/member-ordering rules.
  • UI-called actions preserve this binding.
  • Async callbacks that mutate observable state re-enter an action boundary.
  • Derived serializable state has a single source of truth such as currentState when that is the local pattern.

i18n, Storage, and Errors

  • Translations happen at the view/render boundary unless local architecture says otherwise.
  • Do not hide missing translations with inline fallbacks when the project expects JSON/catalog entries.
  • Browser storage goes through shared wrappers/adapters; direct localStorage/sessionStorage access is a review finding when wrappers exist.
  • Catch blocks normalize user-facing messages, preserve original errors for logging, and notify through the established UI notification channel.

Stories and Tooling

  • New reusable UI surfaces have stories or examples matching local standards.
  • Stories include representative default, empty/minimal, and stress/large states where useful.
  • Wrapper components expose plain props for controls when the primary component is store-only.
  • Treat unused-code tools as signals: preserve intentional public APIs with narrow ignores rather than deleting documented runtime/story/test entrypoints.

Orchestrated Review Contract

When dispatched by review-orchestrator, follow the provided reviewer-input.schema.json payload. Return a REVIEW_RESULT object compatible with skills/review-orchestrator/reviewer-finding.schema.json, then a concise markdown summary. Keep findings evidence-based, include concrete suggested_fix for every blocker/major, and return NEEDS_CONTEXT instead of guessing when required context is missing.


Finding Format

### [F-NNN] Title

- **Severity**: blocker | major | minor | info
- **File**: path/to/file.ts:line
- **Problem**: what local frontend convention is violated
- **Why it matters**: runtime behavior, maintainability, CI, UX, or developer workflow impact
- **Fix**: concrete project-aligned change

Severity guidance: lost reactivity, direct storage quota risk, masked translation/error behavior, and violations that break CI are blocker/major; naming/story coverage is usually minor unless it breaks tooling or controls.

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.