security-hard-exclusions-and-precedents

security-hard-exclusions-and-precedents is a skill for Claude Code, Codex from makifbaysal/tasktrooper. It costs 45 tokens per session (1,374 once invoked), scanned A, original, Apache-2.0.

A set of rules for excluding noisy or out-of-scope security findings and applying consistent decisions to recurring cases. It distinguishes a real vulnerability from general hardening advice or a problem handled by another review method.

In plain words
What is it for?
Use it while deciding whether a suspected issue belongs in a security code review, especially for headers, rate limits, logging, regular expressions, memory safety, and dependency versions.
Why use it?
It reduces false alarms and keeps reviewers from reporting issues that this review is not meant to judge, such as ordinary outdated-library concerns or unbounded resource use.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Good fit Use it while deciding whether a suspected issue belongs in a security code review, especially for headers, rate limits, logging, regular expressions, memory safety, and dependency versions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/makifbaysal/tasktrooper/security-hard-exclusions-and-precedents
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-hard-exclusions-and-precedents
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-hard-exclusions-and-precedents

README.md
[![agentmods](https://agentmods.dev/badge/skills/makifbaysal/tasktrooper/security-hard-exclusions-and-precedents/github.svg)](https://agentmods.dev/skills/makifbaysal/tasktrooper/security-hard-exclusions-and-precedents)
Your own site
<a href="https://agentmods.dev/skills/makifbaysal/tasktrooper/security-hard-exclusions-and-precedents"><img src="https://agentmods.dev/badge/skills/makifbaysal/tasktrooper/security-hard-exclusions-and-precedents/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-hard-exclusions-and-precedents

Your own site · 80×15
<a href="https://agentmods.dev/skills/makifbaysal/tasktrooper/security-hard-exclusions-and-precedents"><img src="https://agentmods.dev/badge/skills/makifbaysal/tasktrooper/security-hard-exclusions-and-precedents.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,374 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00045 $0.01374
Opus 5.5 $0.00018 $0.00550
Sonnet 5.5 $0.00009 $0.00275
Haiku 4.5 $0.00005 $0.00137

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

Security

Grade A, and why

security-hard-exclusions-and-precedents scanned grade A with 1 finding 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 4d 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

- Open redirect, tabnabbing, XS-Leaks, prototype pollution: report only with a concrete chain to real impact (token theft via redirect in an OAuth flow, pollution reaching an auth decision or a `child_process` option).
catalog/agents/security-agent/skills/security-hard-exclusions-and-precedents/SKILL.md · 84 lines

How it starts

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

Hard Exclusions and Precedents

Overview

Some categories produce far more noise than signal in a diff review, or are handled by another process. They are excluded up front so you never spend a finding — or a developer's revision — on them. Precedents settle the cases that come up every week, so two reviews of the same pattern reach the same answer.

Core principle: an exclusion is not a judgement that the issue is harmless; it is a judgement that this review is the wrong place for it.

1. Never Report

Availability and load

  • Denial of service, resource exhaustion, memory or CPU blow-up, missing rate limiting, unbounded loops.
  • Regex injection and ReDoS.

Hardening without a vulnerability

  • Missing security headers, HSTS advice, TLS/HTTPS in local development, "should use a stronger setting" with no concrete attack.
  • Missing input validation on a field that has no security effect.
  • Missing audit logs; log spoofing / log injection.

Out of this review's scope

  • Outdated libraries in general — dependency risk is judged by supply-chain-and-dependency-review, version by version.
  • Memory-safety issues in memory-safe languages (Go, Java, Kotlin, C#, Rust safe code, Python, JS).
  • Anything only in test files, fixtures, examples or documentation (Markdown, comments).
  • Theoretical race conditions and timing issues without a demonstrated window and impact.
  • Secrets stored on disk with otherwise appropriate protection (a mounted secret file, an OS keychain).
  • Pre-existing issues the diff did not introduce or enable.

Usually noise — only at very high confidence

  • Open redirect, tabnabbing, XS-Leaks, prototype pollution: report only with a concrete chain to real impact (token theft via redirect in an OAuth flow, pollution reaching an auth decision or a child_process option).

2. Precedents

Situation Ruling
Logging a secret, token, password or session id Vulnerability (CWE-532)
Logging a URL Fine — unless the URL carries a token or credential in the query
UUIDv4 ids in URLs Unguessable; enumeration is not the attack — the missing ownership check is
Values from environment variables, CLI flags, server config files Trusted input
ORM query builders, parameterised SQL Safe; raw/text()/string-built SQL is not
React, Vue, Angular, Svelte templates Safe by default; only dangerouslySetInnerHTML, v-html, {@html}, bypassSecurityTrust*, direct DOM sinks count
Missing permission check in client-side JS/TS or a mobile UI Not a finding — the server is the boundary; check the server
SSRF or path traversal in browser code Not a finding — the browser is the attacker's own machine
SSRF where the attacker controls only the path, not host or scheme Not reported
Shell scripts and .ipynb notebooks Injection only with a specific untrusted-input path into them
GitHub Actions inputs Only when an untrusted event (fork PR, issue, comment) can trigger them; workflow_dispatch inputs come from people with write access
Resource leaks (unclosed files, connections) Bugs, not vulnerabilities
Crashes, panics, 500s Bugs, unless the error path itself leaks data or fails open
Hard-coded non-secret config (project ids, hostnames, public client ids) Fine
Dev fallback such as os.environ.get("SECRET_KEY", "dev") Fine — unless production demonstrably runs without the variable set
Publishable keys (Stripe pk_, Firebase web config, analytics write keys) Fine by design
Secret in a test fixture Excluded when it is a dummy or a documented test key; a real production credential pasted into a test is still a live secret

Read the full file on GitHub · 84 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. 4d ago First seen · 84 lines · 45 tokens per session scan A f227aefab6d8

Subscribe to this mod's changes

security-hard-exclusions-and-precedents is a skill published in the GitHub repository makifbaysal/tasktrooper (113 stars, last pushed yesterday), licensed Apache-2.0. It adds 45 tokens to every session and 1,374 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-09.