소스 정보
- 저장소
- Mark393295827/house-maint-ai
- 최근 소스 활동
- 2026년 1월 24일 01:17
- 감지된 SKILL.md 언어
- 영어
- 스타
- 1
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/Mark393295827/house-maint-ai --skill react-components명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
SOC 직업 분류 기준
| name | React Components |
| description | Patterns and utilities for building React components in house-maint-ai |
This skill provides patterns, templates, and best practices for creating React components in the house-maint-ai project.
All components should follow this structure:
src/components/
├── ComponentName.jsx # Component implementation
├── ComponentName.test.jsx # Component tests
└── index.js # Optional barrel export
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>
);
}
Use these utility patterns:
| Purpose | Classes |
|---|---|
| Card container | p-4 rounded-lg bg-white shadow-sm |
| Primary button | px-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700 |
| Secondary button | px-4 py-2 bg-gray-100 text-gray-700 rounded-md hover:bg-gray-200 |
| Heading | text-lg font-semibold text-gray-800 |
| Body text | text-sm text-gray-600 |
Always design mobile-first:
<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>
Header - Top navigation headerBottomNav - Bottom navigation barSearchBar - Search input componentQuickActions - Quick action buttons gridActivityCard - Activity display cardSuggestionList - List of suggestionsLoadingSpinner - Loading indicatorimport { 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();
});
});