adr
Write an Architecture Decision Record (ADR) for a feature — Context / Decision / Status / Consequences / Alternatives, filed as…
Security review via Codex exec. Use when: OWASP Top 10:2025 audit, dependency vulnerability check, security-sensitive changes. Not for: code review (use codex-code-review), test review (use test-review). Output: security findings + audit report.
Claude Code
$ npx -y skills add sd0xdev/sd0x-harness --skill security-review --agent claude-code
Codex
$ npx skills add sd0xdev/sd0x-harness --skill security-review -a codex -y
Cursor
$ npx skills add sd0xdev/sd0x-harness --skill security-review -a cursor -y
Gemini CLI
$ npx skills add sd0xdev/sd0x-harness --skill security-review -a gemini-cli -y
GitHub Copilot
$ npx skills add sd0xdev/sd0x-harness --skill security-review -a github-copilot -y
OpenCode
$ npx skills add sd0xdev/sd0x-harness --skill security-review -a opencode -y
Windsurf
$ npx skills add sd0xdev/sd0x-harness --skill security-review -a windsurf -y
name: security-review description: "Security review via Codex exec. Use when: OWASP Top 10:2025 audit, dependency vulnerability check, security-sensitive changes. Not for: code review (use codex-code-review), test review (use test-review). Output: security findings + audit report." allowed-tools: Bash(git:*), Read, Grep, Glob, Bash(node:*), Write context: fork agent: Explore
| Command | Purpose | When | | ----------------- | ------------------------ | ----------------------- | | `/codex-security` | OWASP Top 10 audit | Security-sensitive code | | `/dep-audit` | Dependency security audit | Periodic / PR |
Determine scope → Collect changes → Codex OWASP review → Findings + Gate → Loop if Must fix
Parse `--scope` from arguments, default to `src/`.
Metadata, not content: the first dispatch carries the changed-file list and diff stats, and Codex reads the diffs itself from the sandbox (`@rules/codex-invocation.md` § Required in every first-dispatch prompt). A truncated `| head -1500` excerpt was the old shape, and it decided for the reviewer which 1500 lines of a security review mattered.
1. `CHANGED_FILES`: `git diff --name-only HEAD -- <scope>` ∪ `git ls-files --others --exclude-standard -- <scope>` 2. `DIFF_STAT`: `git diff --stat HEAD -- <scope>` 3. `SCOPE`: the resolved scope argument, plus the security-relevant paths a `Glob("**/*{auth,login,password,token,secret,key,credential}*")` surfaces — named as places to look, never pasted
**First review**: dispatch per `@skills/codex-code-review/references/codex-transport.md` § Start with the OWASP prompt. See `references/codex-prompt-security.md`.
**Save the returned `threadId`.**
**Loop review**: dispatch per `@skills/codex-code-review/references/codex-transport.md` § Resume with the re-review template. See `references/codex-prompt-security.md`.
Organize results into findings summary table + detailed findings + gate.
The version is part of the identifier: SSRF is no longer A10 (it sits inside A01), and A02–A06 renumbered, so a finding labelled with a 2021 code says something different to whoever reads it.
| Code | Category | Check Focus | | ---- | ----------------------- | ---------------------------------------- | | A01 | Broken Access Ctrl | IDOR, permission bypass, CORS, **SSRF** | | A02 | Misconfiguration | Debug mode, default passwords | | A03 | Supply Chain Failures | Vulnerable deps, unverified build sources | | A04 | Crypto Failures | Sensitive data encryption, weak crypto | | A05 | Injection | SQL/NoSQL/Cmd Injection, XSS | | A06 | Insecure Design | Rate Limiting, business logic | | A07 | Auth Failures | Brute force, session, weak passwords | | A08 | Integrity Failures | Deserialization, CI/CD | | A09 | Logging & Alerting | Sensitive data in logs, auditing, alerts | | A10 | Exceptional Conditions | Error paths that fail open or leak |
**⚠️ @CLAUDE.md auto-loop: fix → re-review → ... → ✅ PASS ⚠️**
⛔ Must fix → fix P0 issues → `/codex-security --continue <threadId>` → repeat until ✅ Mergeable.
Max 3 rounds. Still failing → report blocker.
Input: /codex-security --scope src/controller/ Action: OWASP Top 10 check → output issues + Gate Input: /dep-audit --level high Action: npm audit → filter high/critical → output report
Language: English | 繁體中文 | 简体中文 | 日本語 | 한국어 | Español The harness layer for Claude Code. Let the model choose the path. Keep "done" verifiable. Claude has discretion inside a closed, test-pinned anchor set.
Write an Architecture Decision Record (ADR) for a feature — Context / Decision / Status / Consequences / Alternatives, filed as…
Install and set up the optional agentctl mod (task scope, refusal before execution, evidence that goes stale, model-free…
Architecture design and documentation. Produces 3-architecture.md with component diagrams, data flow, integration points, and…
Context-aware Q&A with auto context gathering. Use when: user has a quick question about codebase, git history, rules, docs, or…
Industry best practices conformance audit with mandatory adversarial debate. Produces audit artifact: verdict (OK/WARN/FAIL) +…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.