component-api-scaffolding

Generate React components, API routes, and SWR hooks from templates.

2|Updated Apr 9, 2025
One-click install
npx skills add https://github.com/PP-Namias/Portfolio --skill component-api-scaffolding
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: component-api-scaffolding
Source: https://github.com/PP-Namias/Portfolio/tree/main/.agents/skills/component-api-scaffolding
Command: npx skills add https://github.com/PP-Namias/Portfolio --skill component-api-scaffolding

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill unit simplifies the process of creating React components, API routes, and related utilities by providing standardized templates and guidelines, reducing development time and ensuring consistency across projects.

Core Features & Use Cases

  • Component Templates: Offers pre-written templates for UI components, sections, and modals, with conventions for naming, styling, and accessibility.
  • API Route Templates: Provides guidelines for creating API routes with proper error handling and logging.
  • SWR Hook Templates: Standardizes the creation of SWR hooks for data fetching and caching.
  • Context Provider Templates: Ensures consistent state management across components.
  • Page Templates: Offers a structure for creating Next.js pages with metadata and content organization.
  • Use Case: For a developer looking to quickly set up a new React component or API route, this Skill unit provides a starting point that aligns with the project's coding standards.

Quick Start

Create a new React component by running the command: 'use component-api-scaffolding create-component MyComponent'.

Frequently Asked Questions about component-api-scaffolding

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

FAQPage Schema
How do I scaffold standardized React components and API routes?

To scaffold React components and API routes, this Skill provides standardized templates and guidelines for UI components, API routes, and state management. It establishes consistent coding patterns across projects to reduce development time.

What is the best way to standardize SWR hooks and context providers in React?

The best way to standardize SWR hooks and context providers is using templates that ensure consistent state management and data fetching. This Skill provides pre-written conventions to maintain uniform caching and state behavior across components.

Can I use these templates for Next.js pages with metadata and content organization?

Yes, you can use these templates for Next.js pages with metadata and content organization. The Skill offers specific page templates that provide a structured starting point aligning with project coding standards.

Does the component scaffolding include guidelines for accessibility and error handling?

The component scaffolding includes conventions for accessibility in UI components and proper error handling in API routes. These guidelines ensure standardized templates reduce inconsistencies across component development and API route creation.

How do I create a new React component using this template system?

You create a new React component by running the command 'use component-api-scaffolding create-component MyComponent'. This quickly sets up a new component starting point that aligns with the project's coding standards.