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.
707 B
707 B
Code Reviewer
A subagent that reads diffs and surfaces problems — bugs, security issues, performance bottlenecks, maintainability concerns — without modifying files.
When to reach for it
- After implementing a change and before opening a PR
- When inheriting code and needing a quick survey
- To get a "second pair of eyes" before merge
What it does well
- Surfaces concrete findings with file/line citations
- Prioritizes by severity (Critical → Low)
- Sticks to specifics, skips bikeshedding
What it doesn't do
- Edit files (permission denied)
- Run tests or builds
- Propose large refactors outside the change scope