security-diff-review-method

security-diff-review-method is a skill for Claude Code, Codex from makifbaysal/tasktrooper. It costs 44 tokens per session (2,369 once invoked), scanned A, original, Apache-2.0.

A method for reviewing the security impact of a code change. It ranks changed files by risk, compares the change with the project's existing security patterns, and follows attacker-controlled data from its starting point to where it is used.

In plain words
What is it for?
Use it for security-focused code reviews, especially changes involving access checks, secrets, file paths, commands, databases, deployment files, or AI tool configurations.
Why use it?
It keeps a review focused on what the change newly makes possible, instead of attempting a full audit or skimming every file equally.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for security-focused code reviews, especially changes involving access checks, secrets, file paths, commands, databases, deployment files, or AI tool configurations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/makifbaysal/tasktrooper/security-diff-review-method
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add makifbaysal/tasktrooper --skill security-diff-review-method
Clone the repo
git clone --depth 1 https://github.com/makifbaysal/tasktrooper

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for security-diff-review-method

README.md
[![agentmods](https://agentmods.dev/badge/skills/makifbaysal/tasktrooper/security-diff-review-method/github.svg)](https://agentmods.dev/skills/makifbaysal/tasktrooper/security-diff-review-method)
Your own site
<a href="https://agentmods.dev/skills/makifbaysal/tasktrooper/security-diff-review-method"><img src="https://agentmods.dev/badge/skills/makifbaysal/tasktrooper/security-diff-review-method/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for security-diff-review-method

Your own site · 80×15
<a href="https://agentmods.dev/skills/makifbaysal/tasktrooper/security-diff-review-method"><img src="https://agentmods.dev/badge/skills/makifbaysal/tasktrooper/security-diff-review-method.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,369 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.02369
Opus 5.5 $0.00018 $0.00948
Sonnet 5.5 $0.00009 $0.00474
Haiku 4.5 $0.00004 $0.00237

Measured 1mo ago against content hash cfeca2f00fef, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

security-diff-review-method scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

catalog/agents/security-agent/skills/security-diff-review-method/SKILL.md · 144 lines

How it starts

The opening of the file, as written. The whole thing — 144 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Security Diff Review Method

Overview

You are reviewing a change, not auditing a repository. The question is: what can an attacker do after this diff that they could not do before? Every finding answers it with a source you can point at, a sink you can point at, and the diff line that connects them.

Core principle: risk first, then evidence. Spend your reading on the files that can hurt someone; trace one real data flow end to end rather than skimming ten.

1. Size Up the Change

The injected diff starts with git diff --stat — every file it lists is under review. Get the base once and reuse it:

base=$(git merge-base HEAD origin/HEAD 2>/dev/null || git merge-base HEAD origin/main)
git diff --stat "$base"
git diff "$base" -- path/to/file      # each file the 24,000-byte cut left out

Tier every file before reading any of them closely:

Tier What lands here Depth
HIGH auth/session, access checks, crypto, secrets, deserialization, file paths, outbound URLs, shell/exec, SQL/templates, payments, dependency manifests and lockfiles, CI workflows, Dockerfiles, IaC, agent/MCP configs, anything an LLM with tools reads full source → sink trace
MEDIUM business logic, state changes, new public endpoints or exported functions, new config trace the inputs it accepts
LOW comments, copy, styling, tests, logging that carries no secret scan for secrets only

A refactor is HIGH until you have shown it is LOW: moved code is where a guard silently stays behind.

Then pick the attack-class skills each HIGH and MEDIUM file needs (coverage-and-variant-pass §1) and load them before tracing.

2. Phase 1 — Repository Context

Before judging new code, learn how this repository already defends itself. A finding is strongest when it says "every neighbour does X, this one does not".

  • Auth and access: the middleware group, the @PreAuthorize/@RolesAllowed convention, the "load for owner" repository method, the tenant filter.
  • Input handling: the validator, the query builder, the HTML escaper, the path helper, the URL fetcher with an allowlist.
  • Secrets: how config is loaded (env, secret manager), what the logger redacts.
  • Deployment shape: get_project_brief — a public multi-tenant service, an internal tool and a local desktop app have different attackers. It changes severity, never whether you trace.
  • Facts already verified: search_memory (scope=project) for this repository's security facts — which proxy strips which header, how tenants are scoped, which IMDS version runs. Save a new one with save_memory only when you read it in the base branch's source or config; never save a claim the change under review makes about itself.

Read the full file on GitHub · 144 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +27 lines cfeca2f00fef
  2. 1mo ago First seen · 117 lines · 44 tokens per session scan A 5c33b56722a6

Subscribe to this mod's changes

security-diff-review-method is a skill published in the GitHub repository makifbaysal/tasktrooper (123 stars, last pushed today), licensed Apache-2.0. It adds 44 tokens to every session and 2,369 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-09.

Related

security-diff-review-method compared with skills from other repositories

security-diff-review-method next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
security-diff-review-methodmakifbaysal/tasktrooperSkill123todayApache-2.0A44Claude Code, Codex
agent-code-review-swarmruvnet/rufloSkill83ktodayMITA22Claude Code
github-pr-workflowpaperclipai/paperclipSkill118kyesterdayMITA39Claude Code, Codex
agent-swarm-prruvnet/rufloSkill83ktodayMITA18Claude Code
agent-reviewerruvnet/rufloSkill83ktodayMITA15Claude Code
agent-code-analyzerruvnet/rufloSkill83ktodayMITA19Claude Code
agent-pr-managerruvnet/rufloSkill83ktodayMITA16Claude Code