frontend

Standardize React and TypeScript frontend components with GraphQL conventions.

2|Updated May 5, 2026
One-click install
npx skills add https://github.com/OrestesK/pi --skill frontend-orestesk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: frontend
Source: https://github.com/OrestesK/pi/tree/main/skills/frontend
Command: npx skills add https://github.com/OrestesK/pi --skill frontend-orestesk

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents inconsistent React and TypeScript implementations by providing clear conventions for component structure, typing, performance, and GraphQL usage.

Core Features & Use Cases

  • React Patterns: Favor function components, avoid unnecessary memoization and effects, and follow existing component library conventions.
  • TypeScript Standards: Apply strict mode, prefer interfaces for object shapes, avoid any, and use type-only imports.
  • GraphQL Practices: Use generated types and reusable fragments instead of manually defined response types.
  • Use Case: Apply these conventions when creating or modifying a React component in a TypeScript frontend to produce maintainable, consistent code.

Quick Start

Use the frontend skill to review this React component for compliance with the project's React, TypeScript, and GraphQL conventions.

Frequently Asked Questions about frontend

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce consistent React and TypeScript conventions across my frontend project?

To enforce React and TypeScript conventions, use function components, enable strict mode, prefer interfaces for object shapes, avoid any, and use type-only imports to ensure maintainability and type safety across your frontend project.

What is the best way to integrate GraphQL types in a React component?

The best way to integrate GraphQL types in React is by using generated types and reusable fragments instead of manually defining response types. This ensures your components remain type-safe and synchronized with your GraphQL schema.

When should I use memoization and effects in React function components?

You should use memoization and effects in React function components sparingly and only when performance-conscious optimizations are necessary. Avoid unnecessary memoization and effects to maintain simpler, more maintainable component logic.

Can I use this frontend convention skill to review existing TSX or JSX files?

Yes, you can use this skill to review existing TSX or JSX files. It checks your React components for compliance with project conventions, ensuring proper TypeScript strictness, function component usage, and generated GraphQL type integration.

Does strict TypeScript require type-only imports for React components?

Strict TypeScript in this context requires type-only imports to prevent runtime import of types and ensure cleaner component builds. It works alongside favoring interfaces for object shapes and avoiding any to maximize type safety.