code-security

code-security is a skill for Claude Code, Codex from fmind/dot. It costs 42 tokens per session (679 once invoked), scanned A, original, MIT.

A code-security skill for reviewing repositories and scanning for exposed secrets and known vulnerabilities using Gitleaks and Trivy.

In plain words
What is it for?
It is for checking source code, dependencies, container images, configuration, licenses, and software inventories, then verifying findings and repairs.
Why use it?
It helps identify security defects, leaked credentials, vulnerable dependencies, unsafe configuration, and related risks that ordinary code review may miss.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit It is for checking source code, dependencies, container images, configuration, licenses, and software inventories, then verifying findings and repairs.

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

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 code-security

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/fmind/dot/code-security"><img src="https://agentmods.dev/badge/skills/fmind/dot/code-security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 679 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.00042 $0.00679
Opus 5.5 $0.00017 $0.00272
Sonnet 5.5 $0.00008 $0.00136
Haiku 4.5 $0.00004 $0.00068

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

Security

Grade A, and why

code-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 4d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (references/skill-security-review/scripts/static_audit.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/code-security/SKILL.md · 43 lines

How it starts

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

Code Security

Investigate and fix security defects with verified evidence; scanners inform reasoning, never replace it. Named code-security to avoid colliding with Claude/Copilot security-review.

Workflow

Load the matching guide(s) below for every active surface; apply risk-gated fresh-session security review per subagent when crossing trust, IAM, or compliance boundaries.

  • File encryption (age): generate identities with age-keygen -o <key> (0600), encrypt files to public recipients via age -r <recipient> / age -R <recipients-file>, and decrypt with age -d -i <key> into a scoped target or pipe; never print, log, or commit plaintext or private keys.

Task guides

  • ai-red-team: Red-team AI apps/agents (pytest probes, garak/promptfoo, PyRIT): injection, tool misuse, authority.
  • betterleaks: Scan the working tree and history for secrets; handle confirmed exposure.
  • code-review: Assess code and repository security; verify findings and repairs.
  • opengrep: Run local intrafile and cross-file taint SAST scans with opengrep.
  • skill-security-review: Review third-party skills and agent extensions for supply-chain risk.
  • sonarqube: SonarQube quality gates, issues, local scans, and server AI gates via sonar.
  • terms-review: Review ToS, GDPR/EU AI Act, SPDX licenses, and DPAs for intended use.
  • threat-model: Model attack paths, trust boundaries, abuse cases, and controls.
  • trivy: Scan dependencies, IaC, images, and licenses; generate SBOMs.

Documentation

Read the full file on GitHub · 43 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 Changed 417cab6d01ad
  2. 5d ago Changed · -2 tokens per session 3d3efb15e9a6
  3. 7d ago Changed · +2 lines · +7 tokens per session bbd225bde9c9
  4. 8d ago Changed b547b2e72cf8
  5. 10d ago Changed · +1 lines · +4 tokens per session 5fae8cc0b7e5
  6. 12d ago Changed · +1 lines · -5 tokens per session cf95ca6247b5
  7. 15d ago Changed · +5 lines aba7016d0686
  8. 16d ago Changed cf8ebb430bb9
  9. 20d ago Changed 426900292cb3
  10. 21d ago First seen · 34 lines · 38 tokens per session scan A 92779f8e9cc4

Subscribe to this mod's changes

code-security is a skill published in the GitHub repository fmind/dot (14 stars, last pushed yesterday), licensed MIT. It adds 42 tokens to every session and 679 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-05.

Related

code-security compared with skills from other repositories

code-security next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
code-securityfmind/dotSkill14yesterdayMITA42Claude Code, Codex
diff-reviewfmind/dotfilesSkill43mo agoMITA57Claude Code, Codex
repository-reviewfmind/dotfilesSkill43mo agoMITA51Claude Code, Codex
dotfiles-bootstrapsebastienrousseau/dotfilesSkill85yesterdayApache-2.0A89Claude Code, Codex
assess-qualityurmzd/dotfilesSkill6todayApache-2.0A120Claude Code
merge-readyurmzd/dotfilesSkill6todayApache-2.0A208Claude Code
check-projecturmzd/dotfilesSkill6todayApache-2.0A82Claude Code