Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Security Review?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/sayeed1999-security-review)
---
name: security-review
description: Minimal security and ship-readiness checklist that produces docs/ship-report.md. Used by the architect in ship-check mode.
---
# security-review
Run only after `docs/test-report.md` says PASS. Output: `docs/ship-report.md`.
## Steps
### 1. Run every check
- Mark each one `PASS`, `FAIL`, or `N/A`. Give one line of evidence (a file or a command).
- (H) means a failure is high severity. (M) means medium.
- Skip nothing. Mark `N/A` with a reason instead.
### 2. Decide the verdict
- Any high `FAIL`: `BLOCK`.
- Medium `FAIL` only, target `mvp`: `SHIP` is allowed if each one is listed under Accepted risks.
- Medium `FAIL` only, target `production`: ask the user before accepting each risk. If refused, `BLOCK`.
### 3. Write the report
- Use the Format below.
- Write one handoff (`skills/handoff-report`, type `ship-block`) per blocking finding.
## Checks
### Secrets and config
- (H) No secrets in the repo. Search for keys, tokens, passwords, private keys.
- (H) `.env` is gitignored. `.env.example` has no real values.
- (M) Each root's `.env.example` lists every required variable.
- (M) Only the config module reads env vars.
### Auth
- (H) Passwords are hashed with argon2, bcrypt, or scrypt.
- (H) Protected endpoints reject a missing or invalid token.
- (H) Tokens expire.
- (H) A user can reach only their own data. Check one endpoint for `mvp`. Check every such endpoint for `production`.
### Input and output
- (H) Every request body is validated per the contract.
- (H) No string-built SQL. Parameterized queries or the ORM only.
- (H) Error responses show no stack traces or internals.
### AI features (if any)
- (H) The AI key and calls are in the backend only.
- (H) No prompts or responses with PII are logged.
- (M) The AI call has a timeout and a retry limit.
### Logging
- (M) Logs are structured and include `request_id`.
- (H) No passwords, tokens, or PII in logs.
### Transport and dependencies
- (M) HTTPS is set up for production (documented in `docs/deploy.md`).
- (H) CORS is not a wildcard in the production config.
- (H) The dependency audit shows no critical or high issues. Run `pnpm audit` and `uv run pip-audit` (or the stack's equivalent).
### Data (storage level 4)
- (H) Every table in `docs/schema.md` exists in the migrations, and the reverse.
- (H) Target `mvp` or `production`: the production config does not use `SEED_MODE=demo`.
- (M) API-exposed ids are UUIDv7, or `docs/schema.md` records why not.
- (M) Every foreign key has an index.
### Containers
- (H) `docker-compose.yml` and the Dockerfiles hold no secrets.
- (H) The db port is not published to the internet.
- (M) Image tags are pinned. No `latest`. Containers run as non-root.
- (H) `docs/test-report.md` shows the stack started with `docker compose up`.
- (M) Target `mvp` or `production`: `docs/deploy.md` has run, deploy, backup and restore, update, and roll back steps.
### Readiness
- (M) The README explains how to run locally and in production.
- (H) Every task for an approved requirement is `done` in `docs/tasks.md`.
- (H) `docs/test-report.md` verdict is PASS.
## Format
```
# Ship Report
- Verdict: SHIP | BLOCK
- Stage: MVP | PROD
- Target: prototype | mvp | production
- Date: <date>
## Checks
- <check>: PASS | FAIL | N/A - <evidence>
## Findings (if BLOCK)
- F-01 (high | medium) <issue> - Fix owner: <agent> - Handoff: H-NNN
## Accepted risks
- <check>: <issue> - Approved by user: yes (required for production)
```
## MUST
- Give evidence for every line.
- Write a handoff for every blocking finding.
## NEVER
- Fix code yourself.
- Accept a high `FAIL`.