fe-framework-coding-standard
Skill9 starsChanged 6 months agoApache-2.0View on GitHub
Standardized frontend implementation guidance for FE Dev using the SRS-declared Frontend-Framework. Use when coding, refactoring, or reviewing UI work in React Native, ReactJS, Flutter, Vue.js, Angular, or Next.js; FE Dev reads docs/SRS.md Frontend-Framework plus §3.4.2/§3.4.5 for multi-app projects, then selects the matching reference and, for React Native or Flutter, the focused mobile companion skills for implementation, performance, or platform integration.
In this repository61 other files it gives its agents.
- rules/CLAUDE.mdCLAUDE.md
- acceptance-criteria-authorSkill
- adr-authorSkill
- api-contract-authorSkill
- backend-logging-traceabilitySkill
- ba-design-completenessSkill
- ba-ingestion-pipelineSkill
- ba-iteration-planningSkill
- ba-mode-augmentSkill
- ba-mode-external-sourceSkill
- ba-mode-multi-docSkill
- ba-mode-requirements-folderSkill
- ba-mode-reverse-engineerSkill
- ba-mode-single-docSkill
- ba-post-implementationSkill
- be-framework-coding-standardSkill
- c4-authorSkill
- codebase-inventorySkill
- data-lifecycle-contractsSkill
- design-system-authorSkill
- docker-deploymentSkill
- external-integration-adequacySkill
- figma-canvas-layoutSkill
- figma-design-handoffSkill
- figma-requirements-extractionSkill
- figma-srs-mappingSkill
- flutter-implementationSkill
- flutter-performanceSkill
- flutter-platform-integrationSkill
- format-boundary-contractsSkill
- git-commitSkill
- incident-debuggingSkill
- intent-archaeologySkill
- kubernetes-deploymentSkill
- local-deploymentSkill
- migration-safetySkill
- observability-readinessSkill
- playwright-authorSkill
- qa-author-by-taskSkill
- qa-author-by-usSkill
- qa-execution-runnerSkill
- react-native-implementationSkill
- react-native-performanceSkill
- react-native-platform-integrationSkill
- release-readinessSkill
- rollback-readinessSkill
- sa-architecture-designSkill
- sa-brownfield-extractSkill
- secrets-config-auditSkill
- security-compliance-checklistSkill
- solution-defaultsSkill
- ssh-remote-operationsSkill
- staging-deploymentSkill
- task-sizingSkill
- <kebab-case-name-matching-folder>Skill
- test-case-authorSkill
- third-party-dependency-evaluationSkill
- ui-test-executionSkill
- ui-ux-page-scopingSkill
- user-story-authorSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
25 rules. About 0 are common, 15 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈15
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 23
Read docs/SRS.md before inspecting package files.
- Distinctive: line 24
If the header is one supported value, select that framework reference.
- Very specific: line 25
If the header is multiple, select the framework from the row that owns the task:
- Distinctive: line 26
use SRS §3.4.2 for a surface-driven task.
- Distinctive: line 27
use SRS §3.4.5 for a path/app-driven task.
- Very specific: line 28
if the task maps to more than one framework or no row matches, halt with NEEDS_CONTEXT and cite the candidate SRS rows.
- Very specific: line 29
If the header is N/A, do not perform FE framework implementation.
- Very specific: line 30
If the header is missing, TBD, unsupported, or inconsistent with §3.4.2 / §3.4.5, halt and return the work to BA:
- Distinctive: line 33
After selecting the reference, inspect package files/source only as a consistency check.
- Distinctive: line 35
Read the matching reference before editing:
- Distinctive: line 63
treat only non-rendered design-tool exclusions as non-implementation.
- Distinctive: line 64
Never substitute visual assets without an explicit design change.
- Very specific: line 71
Add or update stable selectors from docs/instrumentation-contract.md and the Design Element Manifest.
- Very specific: line 73
Keep data flow predictable.
- Distinctive: line 75
Run the project's format, lint, typecheck/analyze, and relevant tests.
- Distinctive: line 79
Do not introduce a new FE framework, router, state library, UI kit, CSS system, or test runner unless an ADR or architecture task …
- Very specific: line 80
Do not choose a framework from package files when docs/SRS.md declares a different Frontend-Framework:.
- Very specific: line 81
Do not start FE implementation while Frontend-Framework: is missing, TBD, unsupported, or multiple without a matching §3.4.2 / §3.4.5 row.
- Distinctive: line 82
Do not rewrite established project structure to match a reference file.
- Distinctive: line 83
Do not ship UI code without loading, error, empty, and accessibility states for the changed surface.
- Distinctive: line 84
Do not ship UI code that omits a Design Element Manifest row.
- Very specific: line 85
Do not ship UI code that omits an Asset Export Manifest row or materially changes a Visual Composition Contract row.
- Distinctive: line 86
Do not use placeholders or approximate replacements for Figma assets unless the confirmed handoff explicitly authorizes the substitution.
- Distinctive: line 87
Do not hardcode API/backend URLs, environment-specific endpoints, secrets, tenant IDs, locale text that belongs in i18n, or selector IDs …
- Distinctive: line 88
Do not bypass type errors, lints, or analyzer failures with suppressions unless the suppression is tightly scoped and justified in code.
≈ “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.
Files
FE Framework Coding Standard
When to use
You are FE Dev implementing or reviewing UI code after the stack is declared in the signed-off SRS. This skill standardizes how to write framework-specific code without turning every task into a framework migration.
Inputs and outputs
- Inputs: task assignment,
docs/SRS.mdheaderFrontend-Framework:, SRS §3.4.2 UI Introspection Profile, SRS §3.4.5 Source Layout, SRS §3.4.6 Environment Configuration, SRS user story / FR / NFR IDs, design handoff, Reference Render, Visual Composition Contract, Asset Export Manifest, Design Element Manifest, visual spec assertions, instrumentation contract, architecture decisions, current frontend source tree, installed framework versions and libraries. - Outputs: framework-native UI code that follows the project's existing architecture, names stable test selectors, implements every required Figma field/item/copy/action, reproduces the contracted composition, uses every required exported asset, handles loading / error / empty states, satisfies design tokens where available, and includes the appropriate unit / component / E2E updates.
Framework selection
- Read
docs/SRS.mdbefore inspecting package files. The headerFrontend-Framework:is authoritative. - If the header is one supported value, select that framework reference.
- If the header is
multiple, select the framework from the row that owns the task:- use SRS §3.4.2 for a surface-driven task;
- use SRS §3.4.5 for a path/app-driven task;
- if the task maps to more than one framework or no row matches, halt with
NEEDS_CONTEXTand cite the candidate SRS rows.
- If the header is
N/A, do not perform FE framework implementation; report that no frontend framework applies. - If the header is missing,
TBD, unsupported, or inconsistent with §3.4.2 / §3.4.5, halt and return the work to BA:- greenfield/authored SRS: BA Phase 1.X step 10c must ask the user to choose;
- brownfield/extracted SRS: BA Mode E must detect from source evidence and write the SRS field.
- After selecting the reference, inspect package files/source only as a consistency check. If code evidence contradicts the SRS-selected framework, halt and raise an open issue; do not silently switch references.
Read the matching reference before editing:
| Framework | Reference |
| React Native | references/react-native.md |
| ReactJS | references/reactjs.md |
| Flutter | references/flutter.md |
| Vue.js | references/vuejs.md |
| Angular | references/angular.md |
| Next.js | references/nextjs.md |
For mobile frameworks, the matching reference is a routing card:
- React Native: always load
react-native-implementation; loadreact-native-performancefor slow/large/animated/image-heavy work; loadreact-native-platform-integrationfor native modules, permissions, deep links, app config, storage, or platform files. - Flutter: always load
flutter-implementation; loadflutter-performancefor rebuild/jank/list/image/animation/startup work; loadflutter-platform-integrationfor platform channels, plugins, permissions, flavors, deep links, storage, or native files.
Universal implementation procedure
- Inspect nearby code before writing. Follow the project's existing folder structure, naming, state library, API client, design token system, formatter, lint rules, and test runner.
- Read SRS §3.4.6 Environment Configuration before touching any API client, server URL, feature flag, analytics endpoint, or runtime config path. Use the declared frontend-owned key names and existing project config loader; if the task needs an endpoint/key that §3.4.6 does not declare, halt and raise an OQ instead of inventing a variable in code.
- Map every changed screen/component to the task's SRS IDs, design handoff, Design Element Manifest, and visual spec. If the design is missing a required state, implement the required product behavior and record the design gap in the handoff or open-issues flow.
- Build the screen/component from the manifest, not from memory of the screenshot:
- render every required form field, label, placeholder, helper/error target, required marker, and disabled/read-only variant;
- render every fixed button/link/nav/tab/chip/menu option and preserve Figma order;
- render every table/list/card field, column, slot, badge, status, and counter specified by the row/card template;
- render modal/toast/empty/loading/error/success copy and actions exactly when static;
- reproduce the Visual Composition Contract: correct viewport variant, major region bounds, direct-child order, Auto Layout/flex/grid behavior, absolute layers, clipping/masks, overlap, and background treatment;
- export and use every Asset Export Manifest row at its declared format/scales and target path, preserving fit/crop/focal point, opacity, mask, z-order, and semantics;
- treat only non-rendered design-tool exclusions as non-implementation. Decorative-but-rendered imagery remains required.
- Never substitute visual assets without an explicit design change. Text initials for a logo, emoji for an icon, generic icon-library glyphs, CSS approximations, stock imagery, invented gradients, and solid-color placeholders do not satisfy an AST row.
- Keep boundaries explicit:
- screen/page/container owns route params, data loading, permissions, and orchestration;
- presentational components own layout and interaction events;
- services/hooks/composables/providers own reusable data access;
- shared components must stay feature-agnostic.
- Implement all user-observable states: initial, loading, success, empty, validation error, recoverable error, permission denied where applicable, disabled, and optimistic rollback if optimistic UI is used.
- Add or update stable selectors from
docs/instrumentation-contract.mdand the Design Element Manifest. Do not invent selector strings when the contract is absent; file the required contract gap and use the project convention only after it is declared. - Preserve accessibility: semantic roles / labels, focus order, keyboard interaction for web, screen-reader labels for mobile, minimum touch targets, color contrast, reduced-motion behavior when animations are present, and empty semantics for decorative imagery.
- Keep data flow predictable. Prefer derived state over duplicated state. Avoid effects/listeners/subscriptions that can run repeatedly without cleanup.
- Test at the right layer: unit tests for logic, component/widget tests for manifest row presence, asset-path/import tests for AST rows, structural tests for composition properties, and E2E tests for critical flows. For Visual-Critical surfaces, compare a deployed screenshot at the exact contracted viewport against the approved reference render; do not compare only against a screenshot generated from the implementation itself.
- Run the project's format, lint, typecheck/analyze, and relevant tests. If a command cannot run locally, document the blocker and the narrower checks you did run.
Hard rules
- Do not introduce a new FE framework, router, state library, UI kit, CSS system, or test runner unless an ADR or architecture task explicitly approves it.
- Do not choose a framework from package files when
docs/SRS.mddeclares a differentFrontend-Framework:. Treat that as SRS/code drift and halt. - Do not start FE implementation while
Frontend-Framework:is missing,TBD, unsupported, ormultiplewithout a matching §3.4.2 / §3.4.5 row. - Do not rewrite established project structure to match a reference file. The reference guides decisions inside the existing architecture.
- Do not ship UI code without loading, error, empty, and accessibility states for the changed surface.
- Do not ship UI code that omits a Design Element Manifest row. If the implementation intentionally cannot render a row, raise an open issue and keep the task in-progress.
- Do not ship UI code that omits an Asset Export Manifest row or materially changes a Visual Composition Contract row. Missing logos/backgrounds/graphics and rearranged major regions are blockers, not cosmetic follow-ups.
- Do not use placeholders or approximate replacements for Figma assets unless the confirmed handoff explicitly authorizes the substitution.
- Do not hardcode API/backend URLs, environment-specific endpoints, secrets, tenant IDs, locale text that belongs in i18n, or selector IDs outside the instrumentation contract. Runtime URLs must come from the SRS §3.4.6 config keys through the project config loader.
- Do not bypass type errors, lints, or analyzer failures with suppressions unless the suppression is tightly scoped and justified in code.
References
references/react-native.md- React Native and Expo mobile skill routing card.references/reactjs.md- ReactJS SPA/component implementation standard.references/flutter.md- Flutter mobile skill routing card.references/vuejs.md- Vue SFC, Composition API, routing, and store standard.references/angular.md- Angular component, service, forms, RxJS, and module/standalone standard.references/nextjs.md- Next.js routing, rendering, data, and client/server boundary standard.../react-native-implementation/SKILL.md- React Native screen/component/state/accessibility implementation.../react-native-performance/SKILL.md- React Native render, list, image, animation, bridge, and startup performance.../react-native-platform-integration/SKILL.md- React Native native modules, permissions, deep links, config, and platform files.../flutter-implementation/SKILL.md- Flutter widget/page/state/theme/navigation/accessibility implementation.../flutter-performance/SKILL.md- Flutter rebuild, list, image, animation, isolate, and startup performance.../flutter-platform-integration/SKILL.md- Flutter platform channels, plugins, permissions, flavors, config, and native files.../design-system-author/SKILL.md- design token and component source of truth.../ui-test-execution/SKILL.md- UI test selector, fixture, and reporting discipline.
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.

