agentsclimarketplace

Frontend react nextjs

Skill FairMind-Gen-AI-Studio/fairmind-integration/skills/frontend-react-nextjs

Use when implementing frontend features with React, NextJS, TypeScript, Tailwind CSS, or Shadcn UI. This skill provides patterns, conventions, and best practices for modern React development including component architecture, state management with Zustand, and responsive design.From its SKILL.md

Install
npx -y skills add FairMind-Gen-AI-Studio/fairmind-integration --skill frontend-react-nextjs

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

4.9 KB, as published. Nobody here has run it

Frontend Development with React & NextJS

Overview

This skill provides guidance for frontend development using the React/NextJS/TypeScript stack with Tailwind CSS and Shadcn UI components.

Announce at start: "I'm using the frontend-react-nextjs skill for this frontend implementation."

When to Use

Use this skill when:

  • Building React components with TypeScript
  • Implementing NextJS pages or app router components
  • Creating responsive layouts with Tailwind CSS
  • Integrating or customizing Shadcn UI components
  • Managing state with Zustand or React Context
  • Implementing forms, data fetching, or authentication UI

Core Workflow

Step 1: Understand Requirements

Before writing any code:

  1. Review the user story acceptance criteria
  2. Identify UI/UX requirements from mockups or descriptions
  3. Check for existing components that can be reused
  4. Understand the data flow and API contracts

Step 2: Design Component Architecture

  1. Break down the UI into logical components
  2. Define component hierarchy (parent/child relationships)
  3. Identify shared vs. page-specific components
  4. Plan props interfaces and state management

Step 3: Implement Components

Follow this order:

  1. Types first - Define TypeScript interfaces
  2. Component skeleton - Basic structure with props
  3. State and logic - Add hooks and handlers
  4. Styling - Apply Tailwind classes
  5. Accessibility - Add ARIA attributes and keyboard support

Step 4: Integrate and Test

  1. Connect to API endpoints or mock data
  2. Test all user interactions
  3. Verify responsive behavior
  4. Check accessibility compliance

Reference Files

For detailed patterns and examples, load the appropriate reference file:

FileContentWhen to Use
references/react-patterns.mdComponent patterns, hooks, compositionBuilding any React component
references/nextjs-conventions.mdApp router, server components, routingNextJS-specific features
references/typescript-guidelines.mdType patterns, interfaces, genericsType definitions, complex types
references/tailwind-shadcn.mdUI components, styling patternsStyling and UI components
references/zustand-state.mdState management patternsGlobal or complex state

Key Principles

Component Design

  • Prefer composition over inheritance
  • Keep components focused on single responsibility
  • Extract reusable logic into custom hooks
  • Use TypeScript to enforce prop contracts

State Management

  • Local state for component-specific data
  • Zustand for global/shared state
  • Server state with React Query or SWR
  • Avoid prop drilling with context or state managers

Styling

  • Use Tailwind utility classes primarily
  • Create custom components for repeated patterns
  • Follow mobile-first responsive design
  • Maintain consistent spacing and typography

Performance

  • Use React.memo for expensive renders
  • Implement lazy loading for routes and large components
  • Optimize images with next/image
  • Avoid unnecessary re-renders with proper dependency arrays

Integration with Fairmind

When working on Fairmind tasks:

  1. Use fairmind-context skill to gather requirements first
  2. Check work package for specific UI requirements
  3. Reference architectural blueprints for component patterns
  4. Update journal with UI decisions and component structure

Error Handling

If design requirements are unclear:

  • Ask for mockups or detailed descriptions
  • Document assumptions in the journal
  • Propose component structure for approval

If API contracts are missing:

  • Define provisional TypeScript interfaces
  • Note dependencies on backend work
  • Use mock data during development

Example Usage

// Example: Creating a user profile component

// 1. Define types
interface UserProfileProps {
  userId: string;
  onUpdate?: (user: User) => void;
}

// 2. Create component with proper patterns
export function UserProfile({ userId, onUpdate }: UserProfileProps) {
  // 3. Use appropriate hooks
  const { user, isLoading } = useUser(userId);

  // 4. Handle states
  if (isLoading) return <ProfileSkeleton />;
  if (!user) return <NotFound />;

  // 5. Render with Tailwind + Shadcn
  return (
    <Card className="p-6">
      <Avatar src={user.avatar} fallback={user.initials} />
      <h2 className="text-lg font-semibold">{user.name}</h2>
      {/* ... */}
    </Card>
  );
}

Next Steps

After completing frontend implementation:

  • Use fairmind-tdd skill for component testing
  • Request code review via Code Reviewer agent
  • Update journal with final component inventory

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.