mirror of
https://github.com/wesammustafa/opencode-primer.git
synced 2026-11-19 02:17:58 +00:00
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.
708 B
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/cnhelper for conditional classNames
What it won't do
- Ship without accessibility consideration
- Add a dependency for trivial problems
- Use
anyto silence TypeScript - Inline
style={}for layout