원클릭으로
react-hooks
Guidelines for creating and maintaining custom React hooks in FinanzApp Frontend.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Guidelines for creating and maintaining custom React hooks in FinanzApp Frontend.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | react-hooks |
| description | Guidelines for creating and maintaining custom React hooks in FinanzApp Frontend. |
This skill ensures that all custom hooks follow best practices for maintainability, testability, and performance.
use (e.g., useAuth, useOrders).src/hooks/useAuth.ts).src/utils/ to keep the hook clean and easily testable.src/services/ for API interactions..test.ts file in the same directory.useReducer for complex state logic or break the hook into smaller, specialized hooks.// src/hooks/useLogin.ts
import { useState } from 'react';
import { login } from '@/services/AuthService';
import { validateLogin } from '@/utils/auth-validation'; // Logic extracted to utils
export function useLogin() {
const [loading, setLoading] = useState(false);
// ... logic using services and utils
return { loading, /* ... */ };
}
Extracting logic to utils allows testing business rules in isolation without needing to mock the React environment (hooks), leading to more robust and faster tests.
Mandatory rule requiring a corresponding test file for every business logic file and UI component.
Guidelines for frontend component and E2E testing in FinanzApp.
Component organization and modern React principles for the FrontEnd.
Catalog of all specialized skills used across the FinanzApp project (Frontend & Backend).
Reglas obligatorias para garantizar la accesibilidad web (A11y) en FinanzApp. Sigue estándares WCAG 2.1 para usuarios con discapacidad visual y navegación por teclado.
Guidelines for cross-layer testing (Hooks + UI + Services) using real logic and MSW for network interception.