Skip to main content
skill CX Codex

security · tartinerlabs — Claude Code skill: full-repo security audit

Checks dependencies for CVEs, scans the working tree and git history for secrets, wires a scanner into pre-commit, and runs an OWASP pass over the repo.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add tartinerlabs/skills --skill security -a claude-code
Open on GitHub

What security does

This skill audits the repository, not the change in front of you. It reaches the four things a per-diff reviewer cannot: vulnerable dependencies sitting in the lockfile, secrets already committed to git history, a missing pre-commit scanner, and bugs in code nobody has touched in a while.

The workflow runs in steps. It detects the ecosystem from the manifest and calls that ecosystem's auditor — npm audit, pip-audit, govulncheck — because auditing only npm on a Python or Go project quietly misses CVEs. Then secret scanning: GitLeaks by default, TruffleHog if the project already uses it, plus a pass through rules/hardcoded-secrets.md for what regexes miss. Next, pre-commit hardening — no scanner in the hook is reported as a HIGH finding. Last comes the full-tree sweep against rules/owasp-top-10.md, rules/auth-access-control.md and rules/data-protection.md.

By default it reads and reports; hooks and code edits happen only when you ask for them. Scanning history on a long-lived repo can take several minutes, so it warns you before starting, and if you skip it, the report says so — a clean result should never be mistaken for a scanned one. Editing needs the Edit tool, and the scanners need gitleaks or trufflehog available on the machine.

What it helps with

  • find vulnerable package versions in the lockfile
  • purge secrets already committed to git history
  • close the gap of a pre-commit hook with no secret scanner
  • run an OWASP Top 10 pass over the whole repo
  • audit code that no recent diff has touched

Example prompts for the agent

  • audit this repo's security
  • scan git history for secrets with gitleaks
  • wire a secret scanner into the pre-commit hook

How to install security

1Skills CLI (Vercel)

npx skills add tartinerlabs/skills --skill security -a claude-code

2Manually: put the files in place

~/.claude/skills/security/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/security/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about security

How do I install security in Claude?

Run npx skills add tartinerlabs/skills --skill security -a claude-code. The skill lands at ~/.claude/skills/security/SKILL.md.

What does the security skill do?

It audits a repository: dependency CVEs, secrets in the working tree and in git history, whether a scanner runs in pre-commit, and a code review against OWASP Top 10, access control and data protection rules.

How is it different from reviewing each diff?

A diff reviewer only sees what you are changing now. This skill covers the lockfile, commit history and untouched code — the parts a line-by-line reviewer structurally cannot reach.

Source text

SKILL.md · MIT
---
name: security
description: Use when auditing security, checking for vulnerabilities, scanning for secrets, or reviewing dependencies. Dependency CVEs, git-history secret scanning, pre-commit hardening, and a full-repo OWASP audit.
license: MIT
allowed-tools: Read Glob Grep Edit Bash(gitleaks:*) Bash(trufflehog:*) Bash(nub:*) Bash(pnx:*) Bash(npm:*) Bash(pip-audit:*) Bash(govulncheck:*) Bash(go:*)
model: sonnet
effort: high
context: fork
agent: general-purpose
compatibility: Audit is language-agnostic (OWASP); dependency auditing detects the ecosystem (npm/pnpm/yarn/bun, pip-audit, govulncheck); the hardening setup wires a secret scanner (GitLeaks default) into a pre-commit hook — Husky + lint-staged is the JS/TS path
metadata:
  short-description: Repo security posture — deps, history, hardening, OWASP.
---

You are a security engineer auditing a repository's standing security posture.

Audit and report by default — read-only scans like `gitleaks git --redact` and `npm audit` are part of auditing. Wire up hooks or edit code only when the user asks you to fix, harden, or set something up; when the ask is unclear, report first and offer to apply the fixes.

## Scope

This skill audits the **repository**, not the change in front of you. Its centre of gravity is the four things a per-diff reviewer structurally cannot reach:

- vulnerable dependencies, which live in the lockfile rather than any diff
- secrets already committed to git history
- a missing pre-commit scanner, which is a gap in prevention rather than a finding in code
- vulnerabilities in code nobody has touched recently

Per-diff review is a different job with different tooling. In Claude Code, the `security-guidance` plugin already reviews each diff automatically on edit, commit, and push, in more depth than the rules below — so when the question is "is this change safe?", prefer that plugin and reach for this skill for the repo-wide sweep.

Where no such reviewer is present — Codex, Cursor, Antigravity, skills.sh, CI, or Claude Code without the plugin — `rules/` is the complete audit path, not a supplement. Run Step 4 in full.

## Rules Overview

| Rule | Impact | File |
|------|--------|------|
| Insecure dependencies | HIGH | `rules/insecure-dependencies.md` |
| Hardcoded secrets | HIGH | `rules/hardcoded-secrets.md` |
| OWASP Top 10 | HIGH | `rules/owasp-top-10.md` |
| Auth & access control | HIGH | `rules/auth-access-control.md` |
| Data protection | MEDIUM | `rules/data-protection.md` |

## Workflow

### Step 1: Dependency Audit

Follow `rules/insecure-dependencies.md`. Detect the ecosystem from its manifest and run that ecosystem's auditor — auditing only npm on a Python or Go project silently misses CVEs. Report Critical and High CVEs, then abandoned or badly outdated packages.

### Step 2: Secret Scanning

Scan the working tree with the project's scanner (GitLeaks by default, TruffleHog if the project already uses it), and check `rules/hardcoded-secrets.md` for what regexes miss — an `.env` absent from `.gitignore`, a connection string in a config file, a committed private key.

A secret in the working tree is one `git add` from being permanent; a secret in history is already public to anyone with clone access. Scan history as part of every audit — it is read-only, so it is allowed while auditing:

```bash
gitleaks git --redact --verbose
```

On a long-lived repo this can take several minutes. Say so before starting rather than after, and skip it if the user would rather not wait — but report that it was skipped, so a clean result is never mistaken for a scanned one.

### Step 3: Pre-Commit Hardening

Check whether a secret scanner runs in the project's pre-commit hook, and report its absence as a HIGH finding — it is the control that stops Step 2 from recurring. Wire it up when asked:

1. Check if the pre-commit hook exists and already runs a scanner (e.g. `.husky/pre-commit` contains `gitleaks`)
2. If missing, wire the scanner into the ecosystem's pre-commit mechanism:
   - **JS/TS** — set up Husky and add `gitleaks git --staged --redact --verbose` before any `lint-staged` command
   - **Other languages** — add the same scanner command to that ecosystem's pre-commit tooling (e.g. a `pre-commit` hook for Python, or a plain `.git/hooks/pre-commit` otherwise)
3. If the hook uses the legacy `gitleaks protect` command (deprecated and non-redacting), rewrite it to `gitleaks git --staged --redact --verbose`

A project that deliberately uses a different scanner already has the control — report that and leave it alone rather than swapping it for GitLeaks.

### Step 4: Full-Repo Code Audit

Scan the codebase against `rules/owasp-top-10.md`, `rules/auth-access-control.md`, and `rules/data-protection.md` — these checks are language-agnostic. Cover the whole tree, including code that predates the current work: untouched code is the part no diff reviewer will ever look at, and it is the reason this step exists.

### Step 5: Report

Report each finding as `path:line` — what is wrong → the fix, grouped by category and ordered by impact, and close with a per-category finding count.

© tartinerlabs · MIT · tartinerlabs/skills

Similar skills

Everything for Security →

security by other authors comes first.

security boshu2 This skill reviews code, dependencies, secrets, and prompt surfaces for security risks. Use it for a pre-release review or a repository scan. CX Codex +1 1,400installs security parcadei A security audit skill: scans code for vulnerabilities, checks dependencies and secrets, then re-verifies after fixes. CX Codex +1 530installs security rshankras A security category index for Apple platforms that routes prompts directly to the privacy-manifests skill. CX Codex +1 489installs security alinaqi Sets up preventive security rules, blocks secrets from leaking into client bundles, and configures pre-commit hooks. Useful when handling auth, user input, or API keys. CX Codex +1 426installs security cognitedata Walks a Flows app step by step, finds leaked secrets, unsafe DOM calls and auth gaps, then fixes each one in place. CX Codex +1 1,900installs security-review getsentry Finds injections, XSS, authorization flaws, and other vulnerabilities in code. Reports only high-confidence findings. CX Codex +1 21,300installs owasp-security-check sergiodxa A skill that audits web apps and REST APIs against OWASP Top 10: 20 rules covering auth, injection and data leaks. Useful before a production deploy. CX Codex +1 1,700installs security-auditor zhaono1 A skill that hunts vulnerabilities in your code: walks the OWASP Top 10, checks configs, dependencies and leaked secrets. Useful before a release or a review. CX Codex +1 1,000installs security-scanning Seth Hobson A Claude plugin that checks your code for vulnerabilities: SAST, dependency scanning, container checks and OWASP Top 10 compliance. CX Codex ★ 41,729repo stars auditing-security spencerpauly Audits codebases for hardcoded secrets, OWASP Top 10 flaws, and insecure settings. Helps spot security risks before shipping code. CX Codex +1 593installs secrets-scan OWASP Scans source and config files for hardcoded credentials, API keys and tokens, whether you are reviewing before a merge or auditing a repo. CX Codex +1 337installs

From the same set5

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor