gracefullight/pkgs / .agents/skills/oma-frontend
oma-frontend
UnverifiedImplement or modify web UI in React, Next.js, or Angular. Use for components, pages, styles, forms, and frontend state or data flows.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 13.0 KB |
| resources/angular-rules.md | markdown | 4.9 KB |
| resources/checklist.md | markdown | 4.7 KB |
| resources/component-template.tsx | other | 2.1 KB |
| resources/error-playbook.md | markdown | 5.2 KB |
| resources/examples.md | markdown | 2.1 KB |
| resources/execution-protocol.md | markdown | 2.6 KB |
| resources/snippets.md | markdown | 11.6 KB |
| resources/tailwind-rules.md | markdown | 2.7 KB |
| resources/tech-stack.md | markdown | 8.4 KB |
resources/examples.md
View on GitHub# Frontend Agent - Examples
## Example 1: Feature Component
**Input**: "Create a todo list page with add, toggle, and delete"
**Output**:
```
## Task: Todo List Page
### Implementation
- Components: TodoList, TodoItem, AddTodoForm
- Routes: /todos (page)
- State: TanStack Query for server state, Jotai for client state
### Files Created/Modified
- src/types/todo.ts (NEW) - Todo interface
- src/lib/api/todos.ts (NEW) - API client with TanStack Query hooks
- src/components/todo/todo-item.tsx (NEW) - Single todo display
- src/components/todo/add-todo-form.tsx (NEW) - Form with validation
- src/components/todo/todo-list.tsx (NEW) - List container
- src/app/todos/page.tsx (NEW) - Page component
- tests/components/todo-list.test.tsx (NEW)
### Testing
- Unit tests: 5 passing
- Keyboard navigation: verified
- Responsive: tested at 4 breakpoints
```
## Example 2: Form with Validation
**Input**: "Create a user profile edit form"
**Output**:
```
## Task: Profile Edit Form
### Implementation
- Components: ProfileForm (TanStack Form + Zod)
- Validation: name (required, 2-50 chars), email (valid format), bio (optional, max 500)
- API: PATCH /api/users/me via TanStack Query mutation
- UX: optimistic update, error toast, success redirect
### Files Created
- src/types/user.ts
- src/lib/api/users.ts
- src/components/profile/profile-form.tsx
- src/app/profile/edit/page.tsx
- tests/components/profile-form.test.tsx
```
## Example 3: Responsive Dashboard
**Input**: "Build a dashboard with stats cards and a chart"
**Output**:
```
## Task: Dashboard Page
### Implementation
- Components: StatCard, StatsGrid, ActivityChart
- Layout: CSS Grid - 1 col (mobile), 2 col (tablet), 4 col (desktop)
- Chart: recharts with responsive container
- Data: TanStack Query with 30s refetch interval
### Accessibility
- [x] All cards have aria-label with stat value
- [x] Chart has aria-describedby with text summary
- [x] Color contrast 4.5:1 on all text
### Files Created
- src/components/dashboard/stat-card.tsx
- src/components/dashboard/stats-grid.tsx
- src/components/dashboard/activity-chart.tsx
- src/app/dashboard/page.tsx
```
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |