agentleFS
nada-rnada-r/agent-template/.claude/skills/security-audit/SKILL.md

security-audit

Skill0 starsChanged 4 months agoMITView on GitHub

Audit this repo against the security checklist - secrets, supply chain, agent safety. Use when asked for a security check, before a first deploy, or when adopting an old repo.

  • Reads credentials

140 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use asset-spec, create-control-manifest and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • cenconq25Skill

    asset-spec

    Generates per-asset visual specifications and AI-generation prompts from PRDs and the design bible. Produces structured spec files and updates a master asset manifest. Use after design bible is approved and a UX spec or PRD identifies assets to produce. Output: design/assets/<asset>.md plus design/assets/manifest.md.

    Also in 5 projects that use this

  • cenconq25Skill

    create-control-manifest

    Produces a flat, immediately-actionable rules sheet — do this, never do that, per system and per layer — extracted from accepted ADRs, technical preferences, and framework reference docs. More directly usable than ADRs for day-to-day implementation. Run after /architecture-review passes.

    Also in 5 projects that use this

  • +10 more from cenconq25

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 118 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run each check, collect evidence, report findings ranked by severity.

    line 8

“Common” is measured: kept by at least 6 in 10 of the 118 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Security audit

Run each check, collect evidence, report findings ranked by severity. Degrade gracefully: if a tool is missing, say so and use the fallback - never skip a category silently.

1. Secrets in the repo

  • git ls-files | grep -E '\.env($|\.)' - only .env.example may appear.
  • Full scan: gitleaks dir . --no-banner --redact (fallback: make secrets or grep for sk-, ghp_, AKIA, PRIVATE KEY, hooks.slack.com).
  • History scan if gitleaks exists: gitleaks git . --no-banner --redact.
  • Wallet repos: grep for key-shaped literals - EVM hex keys near private_key-like names, Solana 64-byte JSON arrays, mnemonics. Check test fixtures too.
  • Any hit on a REAL secret: report "rotate first, then clean history" - in that order.

2. Supply chain

  • Lockfile committed? CI uses npm ci (or frozen-lockfile equivalent)?
  • Recently added/bumped deps: npm view <pkg> time --json | tail -5 - flag any version published <24h before it was installed.
  • npm audit --audit-level=high (or the ecosystem equivalent).
  • Dependabot/Renovate present, with a cooldown configured?

3. Secret hygiene config

  • .gitignore covers .env and variants; .env.example exists and documents every var.
  • Pre-commit secret scan wired? (git config core.hooksPath or husky/pre-commit framework).
  • CI has a secrets-scan job?

4. Agent safety

  • .claude/settings.json: allowlist present? deny-rules for env files? No --dangerously-skip-permissions habits documented anywhere?

5. Report

Rank findings: CRITICAL (live secret exposed) → HIGH (no scanning, vulnerable dep) → MEDIUM (missing cooldown, no audit in CI) → LOW (hygiene). For each: the evidence (command + output), the risk in one sentence, the fix in one step. Plain sentences, no checkmark walls. If the repo is clean, say so and stop.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.