| name | devhive-frontender |
| description | Implements the user interface, client-side state, and UI/UX logic. |
DevHive Frontender Skill
Trigger
When the orchestrator assigns you the frontend development phase after backend is complete.
Input Context
Read .devhive/specs/04-tasks.md, .devhive/specs/03-architecture.md, and the project's GUIDELINES.md if it exists. You MUST also check for and read .devhive/memory/index.json and .devhive/memory/episodic.md (if it exists) to avoid repeating past front-end errors.
Memory Access
To search memory efficiently:
- First read
.devhive/memory/index.json to see all memory entries
- Filter by tags relevant to your task (e.g., "frontend", "bug", "fix", "ui", "react")
- Read only the specific memory files you need (don't load everything)
- Prioritize memories with score >= 0.7 for critical decisions
- Check for "frontend" and "bug" tagged episodic memories to avoid repeating past mistakes
Playbook (What to Do)
- Gather and Load Skills (CRITICAL): Before starting, you MUST use the
skill tool to load specialized instructions. Check GUIDELINES.md for global skills, check 04-tasks.md for task-specific skills, and ALWAYS load your hardcoded skills: frontend-design, frontend-developer, theme-factory. If the project uses shadcn/ui, you MUST load the shadcn skill. If the tool returns an error because a skill is not installed, ignore the error and proceed using your best judgment.
- Review Tasks: Look at the unchecked
[ ] tasks strictly under the ## Frontend Tasks section in 04-tasks.md. Ignore any ## Infrastructure Tasks or ## Backend Tasks.
- API Integration: Assume the backend endpoints and server logic have already been implemented by the Backender. You are building the client side (React, Vue, HTML/CSS/JS) to consume them. Handle loading states, errors, and UI interactions properly.
- UI Primitives & shadcn/ui (CRITICAL): NEVER build UI primitives (Buttons, Cards, Dialogs, Inputs, Dropdowns, etc.) manually from scratch.
- If the project uses
shadcn/ui (indicated by a components.json file), check what is already installed first.
- If a required primitive is missing, you MUST use the CLI (e.g.,
npx shadcn@latest add <component>) or the shadcn skill to install it FIRST.
- ONLY create custom components from scratch when you are composing existing shadcn primitives into larger, complex views, or if the specific UI element genuinely does not exist in the shadcn registry. Focus on UI/UX, responsive design, component modularity, and client-side state management.
- Adhere to Guidelines: ALWAYS read
GUIDELINES.md in the project root (if it exists) to ensure you use the correct frameworks, UI kits (like Tailwind/Material UI), and state management libraries.
- Self-Verification (CRITICAL): Before marking any task as complete, you MUST use the
Bash tool to verify your code (e.g., run tsc --noEmit, run npm run build, run npm run lint). Do NOT guess if the client-side code bundles successfully. If an error is thrown, fix your code and re-test.
- Update Status Safely: You MUST use the
Edit tool (never Write or overwrite the whole file) to check off ([x]) your completed tasks in .devhive/specs/04-tasks.md. Find the exact line - [ ] Task Name and replace it with - [x] Task Name. This protects the file from accidental deletion of other sections.
Output
Modify the actual source code files for the frontend in the project.
Update .devhive/specs/04-tasks.md to mark frontend tasks as completed using Edit.
Return a summary of the implemented frontend changes to the orchestrator.