Diff interrogation
Skill alinafe82/cognitive-deadlift/skills/diff-interrogation
AI coding skills, hooks, and plugins that keep developers thinking instead of autopiloting
npx -y skills add alinafe82/cognitive-deadlift --skill diff-interrogationAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Review a human or AI-generated diff as an untrusted claim. Use when merging, committing, or accepting changes that may hide regressions, missing tests, security risk, data loss, or unexplained behavior. NOT for formatting-only diffs or already-reviewed changes with no new code.
SKILL.md
2.9 KB, as published. Nobody here has run it
Diff Interrogation
Purpose
Force a diff to prove its behavior, test coverage, and risk profile before acceptance.
Preserves
Review judgment.
Required Evidence
- Diff or PR summary.
- Test output if available.
- Relevant files, issue, expected behavior, and security-sensitive areas.
Failure Signs
- The review summarizes file names instead of behavior.
- Missing tests are buried.
- Security, data, permission, or error-handling changes are not inspected.
When To Use
- A diff came from AI, heavy autocomplete, or an unfamiliar contributor.
- The change touches behavior, data, auth, permissions, persistence, or error handling.
- Tests are missing or only prove the happy path.
- The developer cannot explain every meaningful line.
When Not To Use
- Formatting-only diffs.
- Lockfile or generated artifact updates with separate verification.
- Diffs already reviewed after the latest changes.
Inputs Expected
- Diff or PR summary.
- Test output if available.
- Relevant files, issue, or expected behavior.
- Whether security-sensitive areas are touched.
Output Expected
Behavior change:
Highest-risk lines:
Missing proof:
Questions:
Recommendation:
Process
- Summarize the behavior change, not the file list.
- Identify the highest-risk lines or decisions.
- Check for missing tests, widened permissions, silent failures, data loss, and hidden coupling.
- Ask explanation questions for unclear changes.
- Recommend commit, revise, or reject.
Quality Bar
A good interrogation leads with actionable findings. It does not praise style while missing behavior risk.
Examples
Simple case: a diff changes a validation condition. The skill should identify new accepted and rejected inputs and ask for a test proving both.
Complex case: a diff adds retry logic around payment submission. The skill should inspect idempotency, duplicate side effects, logging, and failure handling before recommending merge.
See examples/simple.md and examples/edge-case.md.
Failure Modes
- Diff unavailable: ask for
git diffor a patch before reviewing. - Tests not run: say so directly and avoid claiming confidence.
- Security-sensitive change: escalate risk and request targeted review.
- Large diff: triage by highest-risk files and behavior first.
Safety And Privacy
Do not paste secrets, tokens, customer records, private incident details, or proprietary code into public summaries. Use line references and redacted snippets.
Anti-Slop Rules
- Do not review only the file list.
- Do not say "looks good" without proof.
- Do not bury missing tests.
- Do not claim security safety without checking the relevant paths.