mirror of
https://github.com/wesammustafa/opencode-primer.git
synced 2026-11-20 20:33:33 +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.
793 B
793 B
Security Reviewer
A subagent dedicated to security audits — OWASP Top 10, secret leaks, auth/authz issues, and dependency risk.
When to reach for it
- After a
code-reviewerpass, for security-sensitive changes - When touching auth, payments, or user data paths
- Before shipping to production for the first time
- After a CVE drops in a dependency you use
What it does well
- Maps findings to CWE identifiers
- Names the trigger path explicitly (how an attacker reaches the vuln)
- Distinguishes real holes from defense-in-depth gaps
What it doesn't do
- Edit files
- Speculate about exploitability it can't verify from the code
- Recommend a "secure" rewrite without naming the specific vulns it fixes