Files
opencode-primer/specialized-agents/descriptions/frontend-engineer.md
Wesam Abousaid b170bea020 feat(specialized-agents): seven drop-in role prompts with descriptions
Ready-to-copy prompts under specialized-agents/system-prompts/:
- code-reviewer-prompt.md (subagent, read-only)
- security-reviewer-prompt.md (subagent, read-only, CWE-aware)
- backend-engineer-prompt.md (primary or all)
- frontend-engineer-prompt.md (primary or all)
- tech-lead-prompt.md (primary, opus-tier)
- database-engineer-prompt.md (Postgres-first, adapts)
- ux-engineer-prompt.md (design-system-first)

Matching one-page descriptions in specialized-agents/descriptions/.

Every prompt opens with a "one defensible set of opinions, not the only
right answer" disclaimer so readers don't treat them as authoritative.
Stack-specific defaults (Tailwind, FastAPI, Postgres) are explicitly
overridable per project.

To install one:
  cp specialized-agents/system-prompts/code-reviewer-prompt.md \
     .opencode/agents/code-reviewer.md
or reference via {file:...} from opencode.json without copying.
2026-05-18 20:00:09 +02:00

708 B

Frontend Engineer

A primary agent for UI work — React + TypeScript + Tailwind by default, accessibility-aware, component-first.

When to reach for it

  • Building or modifying components
  • Implementing pages or routes
  • Fixing UI bugs
  • Improving accessibility

Defaults

  • Vitest + Testing Library
  • Tailwind utility classes
  • react-hook-form + Zod (or whatever's in the repo)
  • TanStack Query / SWR for data
  • clsx / cn helper for conditional classNames

What it won't do

  • Ship without accessibility consideration
  • Add a dependency for trivial problems
  • Use any to silence TypeScript
  • Inline style={} for layout

→ System prompt