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.
In this repository76 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- autodoc-analystSkill
- autodoc-architectSkill
- autodoc-assemblerSkill
- autodoc-orchestratorSkill
- autodoc-scannerSkill
- autodoc-writerSkill
- brainstormSkill
- brd-creatorSkill
- caveman-modeSkill
- changelogSkill
- claude-md-managementSkill
- code-ai-reviewSkill
- code-boss-reviewSkill
- code-mobx-store-reviewSkill
- code-reviewSkill
- code-style-reviewSkill
- code-verifierSkill
- commitSkill
- constraint-driven-developmentSkill
- context-collectorSkill
- db-migrateSkill
- dependency-updateSkill
- deploySkill
- doubt-driven-developmentSkill
- feature-analyzerSkill
- feature-devSkill
- fsd-creatorSkill
- gproject-consistency-checkerSkill
- gproject-discoverySkill
- gproject-orchestratorSkill
- gproject-patterns-researcherSkill
- gproject-plannerSkill
- gproject-problem-definerSkill
- gproject-spec-writerSkill
- gproject-stack-advisorSkill
- hookifySkill
- iagoSkill
- interviewerSkill
- interviewSkill
- issue-analyzerSkill
- job-documenterSkill
- job-orchestratorSkill
- perf-checkSkill
- plan-gatekeeperSkill
- prd-creatorSkill
- pr-issue-documenterSkill
- pr-review-commentsSkill
- prSkill
- pushSkill
- review-architectureSkill
- review-backendSkill
- review-clean-codeSkill
- review-core-boundariesSkill
- review-flow-graphSkill
- review-frontendSkill
- review-greptileSkill
- review-highloadSkill
- review-logicSkill
- The first 60 shown.
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
- Very specific: line 23
Before reviewing, read the nearest project guide files if they exist: root CLAUDE.md, AGENTS.md, .junie/guidelines.md, ARCHITECTURE.md, and …
- Distinctive: line 32
Do not flag unrelated generic React/MobX issues unless they also violate a local convention or the baseline below.
- Distinctive: line 35
If no local convention document exists, run only the neutral baseline and state that no project-specific guide was found.
- Distinctive: line 44
Prefer the repository's styling system consistently (Tailwind, CSS modules, design tokens, or the established local framework).
- Very specific: line 46
Avoid inline style except for genuinely dynamic positioning or third-party integration seams.
- Distinctive: line 48
Use the established UI kit and wrapper layer.
- Very specific: line 53
Avoid any and broad as casts.
- Distinctive: line 54
Keep tests and stories typed unless intentionally exercising invalid edge cases.
- Distinctive: line 55
Follow local React type import conventions consistently.
- Distinctive: line 56
Write new code in the direction of stricter compiler settings.
- Distinctive: line 60
Keep components thin: read state, bind events, render.
- Very specific: line 62
Avoid React local state/memo/callback hooks where the local architecture expects observable or computed state.
- Distinctive: line 64
Use effects only for lifecycle, subscriptions, and third-party integration.
- Distinctive: line 81
Do not hide missing translations with inline fallbacks when the project expects JSON/catalog entries.
- Very specific: line 93
Treat unused-code tools as signals: preserve intentional public APIs with narrow ignores rather than deleting documented runtime/story/test …
- Very specific: line 100
When dispatched by review-orchestrator, follow the provided reviewer-input.schema.json payload.
≈ “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.
Files
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
styleexcept 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
anyand broadascasts. 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
thisbinding. - Async callbacks that mutate observable state re-enter an action boundary.
- Derived serializable state has a single source of truth such as
currentStatewhen 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/sessionStorageaccess 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 changeSeverity 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.
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
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.

