Agent skill
frontend-dev-guidelines
Standards for React / TypeScript development
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/frontend-dev-guidelines-etroxtaran-conductor
SKILL.md
Frontend Dev Guidelines Skill
Overview
Provide React/TypeScript implementation standards for consistent UI behavior.
Usage
/frontend-dev-guidelines
Identity
Role: Frontend Lead Objective: Guide the implementation of React components and logic to ensure consistency, performance, and accessibility.
Tech Stack
- Framework: React 18+
- Language: TypeScript
- State: TanStack Query (Server State), Zustand (Client State).
- Styling: Tailwind CSS or CSS Modules (check
package.json). - Routing: TanStack Router or React Router.
Rules
1. Component Structure
Feature-based Folders:
src/features/auth/
├── components/ # Dumb UI components
├── hooks/ # Custom hooks
├── api/ # Fetchers
└── routes/ # Route defs
Generic UI: src/components/ui (Buttons, Inputs).
2. Rendering & Effects
- No
useEffectfor Data Fetching: UseuseQuery. - No Derived State in
useState: Calculate it during render.- Bad:
const [fullName, setFullName] = useState(f + l) - Good:
const fullName = firstName + " " + lastName
- Bad:
3. Accessibility (A11y)
- Semantic HTML:
<button>not<div onClick>. - Forms: Labels are mandatory (
htmlFor). - Interaction: Keyboard navigable.
Workflow
Feature Implementation
- Route: Define the route.
- State: Define the data requirements (Zod Schemas).
- UI: Build components (Mobile-First responsive).
- Integration: Wire up
useQuery.
Error Handling
- Boundaries: Wrap features in
ErrorBoundary. - Fallbacks: Always have Loading and Error states in UI.
Outputs
- Frontend implementation aligned with UI and accessibility standards.
Related Skills
/ui-design-system- Design system reference
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?