security

security is a skill for Claude Code, Codex from n-n-code/n-n-code-skills. It costs 72 tokens per session (1,957 once invoked), scanned A, original, MIT.

A security review and implementation guide for finding realistic ways software could be misused or exposed. Threat modeling means mapping what must be protected, where trust changes, and how an attacker might reach it.

In plain words
What is it for?
Use it for security audits, threat models, and fixes involving permissions, untrusted input, external requests, file uploads, parsers, secrets, sensitive data, isolation, or release integrity.
Why use it?
It helps uncover security weaknesses without treating unconfirmed possibilities as proven bugs or making unauthorized changes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it for security audits, threat models, and fixes involving permissions, untrusted input, external requests, file uploads, parsers, secrets, sensitive data, isolation, or release integrity.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/n-n-code/n-n-code-skills/security
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 n-n-code/n-n-code-skills --skill security
Clone the repo
git clone --depth 1 https://github.com/n-n-code/n-n-code-skills

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/n-n-code/n-n-code-skills/security"><img src="https://agentmods.dev/badge/skills/n-n-code/n-n-code-skills/security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,957 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.00072 $0.01957
Opus 5.5 $0.00029 $0.00783
Sonnet 5.5 $0.00014 $0.00391
Haiku 4.5 $0.00007 $0.00196

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

Security

Grade A, and why

security 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 3mo 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.

.agents/skills/security/SKILL.md · 195 lines

How it starts

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

Security

Find and reduce realistic abuse paths while keeping evidence, authority, and side effects explicit.

Compose with security-identity-access when identity or tenant-authorization boundaries are central. That companion owns identity-specific checks; this skill owns the shared investigation, safety, evidence, and reporting contract.

Choose The Mode And Authority

Mode Use when Authority
security review Determine whether concrete code, configuration, or a change creates security-relevant weaknesses or unsafe exposures Read-only: do not edit source or configuration or change external state
threat model Map assets, boundaries, attacker goals, abuse paths, and mitigations Read-only: do not edit the system or present scenarios as confirmed vulnerabilities
secure implementation Design, implement, or remediate security-sensitive behavior Mutate only the files or systems explicitly authorized by the request

Writing an explicitly requested report does not authorize remediation. If a request combines analysis and implementation, keep the initial investigation read-only and make the transition to changes visible.

Shared Workflow

  1. Set scope and assumptions. Identify the mode, target paths and environments, protected assets, plausible attacker capabilities, deployment shape, and relevant authorization assumptions. Inspect discoverable context before asking questions; ask only when an answer would materially change scope, authority, or ranking.
  2. Map the system. Trace entrypoints, data flows, trust boundaries, authoritative controls, storage, external integrations, and observable effects. Follow a path across all participating components rather than stopping at a frontend, handler, or risky-looking call.
  3. Choose high-value hypotheses. Derive a small set of abuse paths from the actual architecture and attacker goals. Prioritize paths involving authority, isolation, code or query execution, external resource access, dangerous parsing, sensitive data, or resource exhaustion when those surfaces exist.
  4. Trace each hypothesis. Establish input provenance, transformations, guards, reachability, attacker prerequisites, sink behavior, and concrete impact. Check middleware order, authorization placement, schemas, parameterization, encoding, and configuration already in effect. A risky API, scanner alert, or pattern match is a lead, not a finding.
  5. Verify material protections. When a conclusion depends on a framework, runtime, or library default, identify the resolved dependency and effective configuration, then verify the behavior using matching authoritative documentation, source, or a minimal safe reproduction. If that evidence is unavailable, classify the path as needing validation rather than assuming either safety or vulnerability.
  6. Classify, act, and report. Use the evidence outcomes below, stay within the selected mode, and produce its required output.

Read the full file on GitHub · 195 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. 3mo ago First seen · 195 lines · 72 tokens per session scan A 2fd27950e4d2

Subscribe to this mod's changes

security is a skill published in the GitHub repository n-n-code/n-n-code-skills (4 stars, last pushed 29d ago), licensed MIT. It adds 72 tokens to every session and 1,957 once invoked, about $0.0003 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-08-31.

Related

security compared with skills from other repositories

security next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
securityn-n-code/n-n-code-skillsSkill429d agoMITA72Claude Code, Codex
init-workspacegtrabanco/agentic-workflowSkill25todayMITA54Claude Code
execute-phasegtrabanco/agentic-workflowSkill25todayMITA106Claude Code
fold-findingsgtrabanco/agentic-workflowSkill25todayMITA65Claude Code
unit-lanegtrabanco/agentic-workflowSkill25todayMITA53Claude Code
audit-docsgtrabanco/agentic-workflowSkill25todayMITA147Claude Code
audit-prgtrabanco/agentic-workflowSkill25todayMITA71Claude Code