Skip to content
Back to skills

Code Security

ASecurity

Review security, GDPR/EU AI Act/licenses, threat-model, vet skills, AI red-team, Betterleaks, Opengrep, Trivy, CodeQL, SonarQube.

  • 14 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 4, 2026
ai-agentsrustcode-reviewgitsecuritydocumentation

Security analysis

A100/100

Pro scans all 10 files and shows the line behind each finding

Scanned December 2, 2026

npx -y skills add fmind/dot --skill code-security --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Code Security?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Code Security
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/fmind-code-security/badge)](https://www.skillsdirectory.com/skills/fmind-code-security)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: code-security
description: "Review security, GDPR/EU AI Act/licenses, threat-model, vet skills, AI red-team, Betterleaks, Opengrep, Trivy, CodeQL, SonarQube."
license: MIT
metadata:
  kind: collection
  author: Médéric HURIER (Fmind)
  source: github.com/fmind/dot/tree/main/skills/code-security
  created: "2026-07-04"
  updated: "2026-11-29"
---

# 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](../subagent/SKILL.md) 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

<!-- guides:start -->

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

<!-- guides:end -->

## Documentation

- [OWASP Cheat Sheets](https://cheatsheetseries.owasp.org/) · [OWASP Agentic Top 10](https://genai.owasp.org/resource/owasp-top-10-for-agentic-applications-for-2026/) · [MITRE ATLAS](https://atlas.mitre.org/)
- Companions: [full-review](../full-review/SKILL.md), [github](../github/SKILL.md), [containers](../containers/SKILL.md), [cloud-run](../gcloud/references/cloud-run/GUIDE.md).

Files in this skill

  • SKILL.md1.1 KB
  • references/code-review/GUIDE.md4.9 KB
  • references/code-review/references/audit-coverage.md5.1 KB
  • references/code-review/references/installed-tools.md1.2 KB
  • references/code-review/references/trace-and-verify.md5.8 KB
  • references/code-review/references/trailofbits-review.md7.2 KB
  • references/code-review/templates/audit-record.json622 B
  • references/gitleaks.md4 KB
  • references/trivy/GUIDE.md4.6 KB
  • references/trivy/references/unfixed-report.md753 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.