Skip to content
Skills Library
Security · Review & audit

16-eyes-audit-diff

/16-eyes-audit-diff

The identical 16-eyes engine as 16-eyes-audit, scoped to a diff/PR instead of the whole repository — use for reviewing a change before merge, including from CI.

Repository
16-eyes ↗
Licence
MIT
Last repository change
16.10.2026

Assessment and security

85/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content20 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 16.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

The identical 16-eyes engine as 16-eyes-audit, scoped to a diff/PR instead of the whole repository — use for reviewing a change before merge, including from CI.

Original author description

The identical 16-eyes engine as 16-eyes-audit, scoped to a diff/PR instead of the whole repository — use for reviewing a change before merge, including from CI.

How it works

  1. 1. Determine the diff scope
  2. 2. Gather the diff
  3. 3. Load lenses
  4. 4. Investigate — one delegation per lens, scoped to the diff
  5. 5. Verify, adversarially review, and classify
  6. 6. Write the report
  7. 7. Summarize
Original SKILL.md headings · 69 lines, 546 words
SKILL.md preview
---
name: 16-eyes-audit-diff
description: The identical 16-eyes engine as 16-eyes-audit, scoped to a diff/PR instead of the whole repository — use for reviewing a change before merge, including from CI.
disable-model-invocation: false
---

# 16-eyes-audit-diff

This is the SAME engine as `16-eyes-audit` — same persisted lenses, same verify →
adversarial-review → classify pipeline — scoped to a diff instead of the whole repo.
Read-only, never edits code.

## 1. Determine the diff scope

If the user's invocation named an explicit base ref or PR number, use it. Otherwise:
check the `GITHUB_BASE_REF` environment variable (set in a GitHub Actions `pull_request`
job); if absent, detect the repo's default branch (`git symbolic-ref
refs/remotes/origin/HEAD`, falling back to `main` then `master`), and use the merge-base
of that branch and HEAD (`git merge-base origin/<default> HEAD`) as the base — not the
branch tip, so the diff is exactly what this change introduces. If a PR number is
available and `gh` is installed, prefer `gh pr diff <n>` / `gh pr view <n> --json files`
for the diff and changed-file list — this works without the PR branch checked out
locally.

## 2. Gather the diff

Run `git diff --name-status <base>...HEAD` for the changed file list and `git diff
<base>...HEAD` for the full unified diff. Drop any file matching `.16-eyes/config.json`'s
`excludePatterns`, if present. If the diff is large (rule of thumb: over ~2000 changed
lines, or includes lockfiles/minified/vendored-looking paths), drop the
largest/most-generated files from what you send to lenses below — and say which ones and
why in your final summary. Never silently claim full coverage of a diff you trimmed.

## 3. Load lenses

Read `.16-eyes/config.json` + the lenses file (`lensesPointer`, default
`.16-eyes/lenses.json`). **If it doesn't exist, run the `16-eyes-init` skill now**
(auto-bootstrap — no interview) and continue with what it produces. This skill never
designs its own lenses — no diff alone gives enough repo-wide context to do that well;
it always reuses whatever `init` already produced.

## 4. Investigate — one delegation per lens, scoped to the diff

For EACH persisted lens, invoke `/16-eyes-worker`: "You are reviewing ONLY a diff
(<base>..<head>, or PR #<n>) as part of a security review — not the whole repository.
Your focus area: <lens.focus>. Changed files: <list>. Unified diff: <diff text>.
<paste the lens's own prompt verbatim>. Investigate ONLY within these changed hunks,
from your focus area. You may read full current file content for necessary surrounding
context, but do not go hunting for unrelated issues elsewhere in the repo — that's
`16-eyes-audit`'s job. Return `{ findings: [] }` if nothing here falls under your
focus — that's a normal, expected outcome for most lenses on most diffs." Return shape:
`{ findings: [ { title, file, line, description, initial_impact, initial_probability },
... ] }`.

## 5. Verify, adversarially review, and classify

Identical to `16-eyes-audit` steps 3-6 (de-dup by file:line, per-finding verify
delegation, adversarial refute delegations for high-impact findings with the same
"zero valid votes never counts as survived" rule, safe/risky split, stable ids).

## 6. Write the report

Write `<outputDir>/SECURITY_AUDIT_DIFF_<today>.md` and `.json` (same outputDir/collision
rules as `16-eyes-audit`), with a `Scope` line stating the diff range or PR number and
how many files changed, otherwise the same report shape as `16-eyes-audit`.
Write/overwrite `.16-eyes/last-diff-run.json`: `{ markdown, json, generatedAt, base,
head, prNumber, stats }`.

## 7. Summarize

Report the diff range reviewed, any files dropped by the size guard, counts, and both
file paths. Remind the user this only reviewed the diff — pre-existing code is
`16-eyes-audit`'s job, not this skill's.

Versions

The database has no other skills named 16-eyes-audit-diff.

Database snapshot: 13.11.2026 · package version 7543eda46c4b (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 8516-eyes-audit
    Run this repo's persisted security investigation lenses across the WHOLE codebase, verify every finding, adversarially review high-impact ones, and write a classified safe/risky report. Use for an occasional deep security sweep of the entire repository, not scoped to any single change.
  • 8516-eyes-init
    Configure 16 Eyes — detect quality gates/excludes/output, then profile the repo and design its persisted security investigation lenses. Use when setting up 16-eyes for the first time, or to regenerate its investigation lenses after the repo's shape changed materially.
  • 100security-pre-merge
    Review a branch or diff for security problems before it is merged. Use when the user asks for a security review, a pre-merge check, or "is this safe to merge", or when a change touches authentication, input handling, secrets, file access, SQL or shell commands.
  • 100security-audit
    Security-audit v2 workflow for application, repository, scoped path, PR, branch, or working-tree security review. Use for security audit, OWASP, secrets, threat model, attack path, Codex Security diff scan, release security gate, or security_change evidence requests.
  • 100fresh-eyes
    Use when the user asks for 'fresh eyes', 'one last review', 'final review pass', 'whole diff review', or a post-fix pre-PR review. Runs a side-effect-free final whole-diff pass for cross-file consistency, config drift, stale docs, limits, baseline compatibility, and issues iterative review can miss.
  • 100reviewing-code-changes
    Perform a security review of a diff, branch, or pull request — assessing what the change introduces, weakens, or exposes, with a triage-first workflow and false-positive discipline. Use when asked to security review a PR or branch, check a diff before merge or commit, or assess…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.