← Back to list

frontend-engineer
by first-fluke
Production-ready fullstack monorepo template with Next.js, FastAPI, Flutter, Terraform, and mise
⭐ 141🍴 21📅 Jan 23, 2026
SKILL.md
name: frontend-engineer description: Develop production-grade frontend code using shadcn/ui, best practices, and strict design alignment.
Guidelines for maintainable, accessible, and system-compliant frontend development.
Core Principles
- Component Reuse: Use
shadcn/uicomponents first. Extend viacvavariants or composition. Avoid custom CSS. - Design Fidelity: Code must map 1:1 to Design Tokens. Resolve discrepancies before implementation.
- Rendering Strategy: Default to Server Components for performance. Use Client Components only for interactivity and API integration.
- Accessibility: Semantic HTML and screen reader compatibility are mandatory.
- Tool First: Check for existing solutions and tools before coding.
1. Tooling & Performance
- Reference: Consult
react-best-practicesskill for deep dives. - Metrics: Target First Contentful Paint (FCP) < 1s.
- Optimization: Use
next/dynamicfor heavy components,next/imagefor media, and parallel routes. - Shadcn Workflow:
- Search:
shadcn_search_items_in_registries - Review:
shadcn_get_item_examples_from_registries - Install:
shadcn_get_add_command_for_items
- Search:
2. Architecture (FSD-lite)
- Root (
src/): Shared logic (components, lib, types). Hoist common code here. - Feature (
src/features/*/): Feature-specific logic. No cross-feature imports. Unidirectional flow only. - Libraries:
- Date:
luxon - Styling:
TailwindCSS v4+shadcn/ui - Hooks:
ahooks(Pre-made hooks preferred) - Utils:
es-toolkit(First choice)
- Date:
3. Standards
- Utilities: Check
es-toolkitfirst. If implementing custom logic, >90% Unit Test Coverage is MANDATORY. - Design Tokens: Source of Truth is
packages/design-tokens(OKLCH). Never hardcode colors. Runmise tokens:buildafter updates. - i18n: Source of Truth is
packages/i18n. Never hardcode strings. Runmise i18n:buildafter updates.
4. Component Strategy
- Server Components: Use for Layouts, Marketing pages, and SEO metadata (
generateMetadata,sitemap). - Client Components: Use for interactive features and
useQuery(Orval) hooks. - Structure: One Component Per File.
- Naming:
- Files:
kebab-case.tsx(Name MUST clearly indicate purpose/functionality). - Components/Types/Interfaces:
PascalCase - Functions/Vars/Hooks:
camelCase - Constants:
SCREAMING_SNAKE_CASE
- Files:
- Skeletons: Must be placed in
src/features/[feature]/components/skeleton/. - Imports: Standard > 3rd Party > Local (Absolute
@/is MANDATORY; No relative paths like../../). MUST useimport typefor interfaces/types. - State Management:
- URL:
jotai-location - Server:
TanStack Query - Client Global:
Jotai(Minimize use) - Forms:
@tanstack/react-form+zod(Refer to v4 docs; NO deprecated APIs)
- URL:
5. UI Implementation (Shadcn/UI)
- Patterns: Review
.agent/skills/frontend-engineer/examples/for mandated implementation patterns. - Usage: Prefer strict shadcn primitives (
Card,Sheet,Typography,Table) overdivor generic classes. - Responsiveness: Use
Drawer(Mobile) vsDialog(Desktop) viauseResponsive. - Customization Rule: Treat
components/ui/*as read-only. Do not modify directly.- Correct: create a wrapper (e.g.,
components/common/ProductButton.tsx) or usecvacomposition. - Incorrect: Editing
components/ui/button.tsx.
- Correct: create a wrapper (e.g.,
6. Designer Collaboration
- Sync: Map code variables to Figma layer names.
- UX: Ensure key actions are visible "Above the Fold". Verify clarity of usage.
7. Review Checklist
- A11y: Interactive elements have
aria-label. Semantic headings (h1-h6). - Mobile: functionality verified on mobile viewports.
- Performance: No CLS, fast load.
- Resilience: Error Boundaries and Loading Skeletons implemented.
- Tests: Logic covered by Vitest where complex.
- Quality: Refactor until Typecheck and Lint (
pnpm lint) pass.
Score
Total Score
75/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
✓人気
GitHub Stars 100以上
+5
✓最近の活動
1ヶ月以内に更新
+10
✓フォーク
10回以上フォークされている
+5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
✓タグ
1つ以上のタグが設定されている
+5
Reviews
💬
Reviews coming soon

