mark393295827/house-maint-ai/react-components

Claude Code and agent skill by mark393295827/house-maint-ai

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Patterns and utilities for building React components in house-maint-ai

Install

npx vskill@latest install mark393295827/house-maint-ai/react-components

SKILL.md

React Components Skill

This skill provides patterns, templates, and best practices for creating React components in the house-maint-ai project.

Component Structure

All components should follow this structure:

src/components/
├── ComponentName.jsx # Component implementation
├── ComponentName.test.jsx # Component tests
└── index.js # Optional barrel export

Component Template

jsx
import { useState } from 'react';
/**
* ComponentName - Brief description
*
* @param {Object} props
* @param {string} props.title - The title to display
* @param {function} props.onClick - Click handler
*/
export default function ComponentName({ title, onClick }) {
const [isActive, setIsActive] = useState(false);
const handleClick = () => {
setIsActive(true);
onClick?.();
};
return (
<div className="p-4 rounded-lg bg-white shadow-sm">
<h2 className="text-lg font-semibold text-gray-800">
{title}
</h2>
<button
onClick={handleClick}
className={`mt-2 px-4 py-2 rounded-md transition-colors ${
isActive
? 'bg-blue-600 text-white'
: 'bg-gray-100 text-gray-700 hover:bg-gray-200'
}`}
>
Click me
</button>
</div>
);
}

Styling Guidelines

Tailwind CSS Classes

Use these utility patterns:

PurposeClasses
Card containerp-4 rounded-lg bg-white shadow-sm
Primary buttonpx-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700
Secondary buttonpx-4 py-2 bg-gray-100 text-gray-700 rounded-md hover:bg-gray-200
Headingtext-lg font-semibold text-gray-800
Body texttext-sm text-gray-600
Responsive Design

Always design mobile-first:

jsx
<div className="px-4 md:px-6 lg:px-8">
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
{/* Content */}
</div>
</div>

Existing Components Reference

  • Header - Top navigation header
  • BottomNav - Bottom navigation bar
  • SearchBar - Search input component
  • QuickActions - Quick action buttons grid
  • ActivityCard - Activity display card
  • SuggestionList - List of suggestions
  • LoadingSpinner - Loading indicator

Testing Pattern

jsx
import { render, screen, fireEvent } from '@testing-library/react';
import { describe, it, expect, vi } from 'vitest';
import ComponentName from './ComponentName';
describe('ComponentName', () => {
it('renders with title', () => {
render(<ComponentName title="Test Title" />);
expect(screen.getByText('Test Title')).toBeInTheDocument();
});
it('calls onClick when button clicked', () => {
const handleClick = vi.fn();
render(<ComponentName title="Test" onClick={handleClick} />);
fireEvent.click(screen.getByRole('button'));
expect(handleClick).toHaveBeenCalled();
});
});

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
7-day trend score
8

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/mark393295827/house-maint-ai/react-components/badge)](https://verified-skill.com/skills/mark393295827/house-maint-ai/react-components)

Something wrong with this skill or its page? Tell us.