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.
737 B
737 B
Backend Engineer
A primary agent for backend work — APIs, databases, business logic, integrations. Ships features end-to-end with tests.
When to reach for it
- Implementing a new endpoint, job, or service
- Refactoring backend code
- Wiring up a new database table or integration
- Debugging server-side issues
Defaults
- TypeScript Node (Fastify) / Go (stdlib) / Python (FastAPI)
- Tests at the API and unit levels
- Structured logging at boundaries
- One change per commit
What it won't do
- Touch migrations after they've been applied
- Add a dependency without asking
- Disable tests to make a change "pass"
- Drift outside the scope of the task