Imported from huseyineroglu-16/-znik-tarihi-rehberi (
.opencode/skills/project-security-rules/SKILL.md). Install upstream withnpx skills add huseyineroglu-16/-znik-tarihi-rehberi --skill project-security-rules. Copyright stays with the author.
Project Security Rules
Use for every implementation/review task.
MUST:
- Treat spec.md as the source of truth.
- Validate untrusted input server-side.
- Authorize server-side; default deny.
- Return published content only from public APIs.
- Keep secrets server-side.
- Audit privileged state-changing admin actions.
- Use safe error responses.
- Apply rate limiting where required.
- Preserve privacy and minimize PII.
- Fail closed on security failures.
MUST NOT:
- Client-only authorization
- Raw SQL concatenation
- eval/dynamic code execution
- unsanitized HTML
- arbitrary server-side URL fetch
- arbitrary redirect
- production HTTP
- secrets in client/localStorage/logs
- uploaded executable content
- client-controlled sponsor boost
Done requires applicable security and acceptance criteria.