Frontend Engineering
Purpose
Build reliable Next.js and React interfaces that follow the Cee-Tailor frontend architecture.
Project Stack
Next.js App Router, React, TypeScript, Tailwind CSS, React Query, React Hook Form, Zod, Framer Motion.
Operating Principles
- Inspect the existing App Router structure before adding pages or components.
- Reuse existing components and design primitives before creating duplicates.
- Keep server/client boundaries deliberate.
- Use TypeScript types instead of implicit any.
- Use React Query consistently for server-state management where the project uses it.
- Use React Hook Form and Zod consistently for complex forms.
- Validate user input on the client for UX but never rely on client validation for security.
- Keep loading, empty, success, and error states explicit.
- Do not introduce unnecessary client components.
- Preserve responsive behavior.
- Do not claim UI behavior without browser verification when the change is visual or interactive.
Required Workflow
- Inspect route and component architecture.
- Identify reusable components and existing patterns.
- Trace required API contracts.
- Implement the smallest coherent UI change.
- Run TypeScript/build checks.
- Use Playwright for important interactive or visual behavior.
- Verify responsive and failure states.
- Review accessibility.
- Inspect the final diff.
Evidence Rules
Use the strongest available evidence in this order:
- Runtime behavior
- Automated test results
- Type checking, linting, and build results
- Installed package/source behavior
- Official framework or library documentation
- Repository configuration
- Static code inspection
- General model knowledge
Never report an assumption as a verified result.
Tool Selection
- Use Filesystem MCP for repository exploration and file inspection.
- Use Context7 for current, version-specific library/framework documentation.
- Use Fetch when official documentation or public web resources need to be retrieved.
- Use Playwright for browser behavior, frontend interaction, forms, authentication flows, and UI verification.
- Use GitHub CLI for repository, branch, pull request, issue, workflow, and CI operations.
- Prefer the smallest tool set that establishes reliable evidence.
Failure Handling
When something fails:
- Reproduce the failure.
- Capture the exact error.
- Identify the failing layer.
- Check whether the failure is environmental, dependency-related, configuration-related, or caused by application code.
- Research uncertain behavior using authoritative sources.
- Apply the smallest appropriate fix.
- Reproduce the original failure again.
- Run regression checks.
- Inspect the final diff.
Do not hide failures by weakening tests, suppressing errors, deleting evidence, or claiming success without verification.
Security
- Never expose secrets.
- Never commit credentials.
- Treat all external input as untrusted.
- Preserve authentication and authorization boundaries.
- Avoid leaking internal implementation details through errors.
- Review security implications whenever the skill touches users, data, credentials, networking, or deployment.
Completion Criteria
A task using this skill is complete only when:
- The requested behavior is implemented.
- Existing project conventions are preserved.
- Relevant static checks pass.
- Relevant tests pass or their absence is explicitly reported.
- Browser verification is performed when the task affects user-facing behavior.
- Security implications have been considered.
- The final diff has been inspected.
- Verified facts are clearly distinguished from assumptions or remaining uncertainty.
1---2name: frontend3description: Frontend Engineering4---5# Frontend Engineering67## Purpose89Build reliable Next.js and React interfaces that follow the Cee-Tailor frontend architecture.1011## Project Stack1213Next.js App Router, React, TypeScript, Tailwind CSS, React Query, React Hook Form, Zod, Framer Motion.1415## Operating Principles16171. Inspect the existing App Router structure before adding pages or components.182. Reuse existing components and design primitives before creating duplicates.193. Keep server/client boundaries deliberate.204. Use TypeScript types instead of implicit any.215. Use React Query consistently for server-state management where the project uses it.226. Use React Hook Form and Zod consistently for complex forms.237. Validate user input on the client for UX but never rely on client validation for security.248. Keep loading, empty, success, and error states explicit.259. Do not introduce unnecessary client components.2610. Preserve responsive behavior.2711. Do not claim UI behavior without browser verification when the change is visual or interactive.2829## Required Workflow30311. Inspect route and component architecture.322. Identify reusable components and existing patterns.333. Trace required API contracts.344. Implement the smallest coherent UI change.355. Run TypeScript/build checks.366. Use Playwright for important interactive or visual behavior.377. Verify responsive and failure states.388. Review accessibility.399. Inspect the final diff.4041## Evidence Rules4243Use the strongest available evidence in this order:44451. Runtime behavior462. Automated test results473. Type checking, linting, and build results484. Installed package/source behavior495. Official framework or library documentation506. Repository configuration517. Static code inspection528. General model knowledge5354Never report an assumption as a verified result.5556## Tool Selection5758- Use Filesystem MCP for repository exploration and file inspection.59- Use Context7 for current, version-specific library/framework documentation.60- Use Fetch when official documentation or public web resources need to be retrieved.61- Use Playwright for browser behavior, frontend interaction, forms, authentication flows, and UI verification.62- Use GitHub CLI for repository, branch, pull request, issue, workflow, and CI operations.63- Prefer the smallest tool set that establishes reliable evidence.6465## Failure Handling6667When something fails:68691. Reproduce the failure.702. Capture the exact error.713. Identify the failing layer.724. Check whether the failure is environmental, dependency-related, configuration-related, or caused by application code.735. Research uncertain behavior using authoritative sources.746. Apply the smallest appropriate fix.757. Reproduce the original failure again.768. Run regression checks.779. Inspect the final diff.7879Do not hide failures by weakening tests, suppressing errors, deleting evidence, or claiming success without verification.8081## Security8283- Never expose secrets.84- Never commit credentials.85- Treat all external input as untrusted.86- Preserve authentication and authorization boundaries.87- Avoid leaking internal implementation details through errors.88- Review security implications whenever the skill touches users, data, credentials, networking, or deployment.8990## Completion Criteria9192A task using this skill is complete only when:9394- The requested behavior is implemented.95- Existing project conventions are preserved.96- Relevant static checks pass.97- Relevant tests pass or their absence is explicitly reported.98- Browser verification is performed when the task affects user-facing behavior.99- Security implications have been considered.100- The final diff has been inspected.101- Verified facts are clearly distinguished from assumptions or remaining uncertainty.