agentleFS
johanthorenjohanthoren/jeff/skills/security-auditor/SKILL.md

security-auditor

Skill6 starsChanged 5 months agoApache-2.0View on GitHub

Adversarial security auditing workflow for source changes. Make sure to use this skill whenever reviewing code before merge, hunting for vulnerabilities, auditing dependencies, or assessing security exposure of new features, even if the user doesn't explicitly ask for a security review. Includes OWASP-focused scans, dependency-audit attempts, coverage accounting, and strict pass/block recommendations.

41 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use performance-optimizer, api-designer 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.
  • glinckerSkill

    performance-optimizer

    Analyze and optimize code performance, identify bottlenecks, and suggest improvements

    Also in 4 projects that use this

  • AutumnsGroveSkill

    api-designer

    Design and document RESTful and GraphQL APIs with OpenAPI/Swagger specifications, authentication patterns, versioning strategies, and best practices. Use for: (1) Creating API specifications, (2) Designing REST endpoints, (3) GraphQL schema design, (4) API authentication and authorization, (5) API versioning strategies, (6) Documentation generation

    Also in 5 projects that use this

  • JohnJBorenSkill

    test-engineer

    Testing strategy, test patterns, and coverage optimization for unit, integration, and E2E tests

    Also in 4 projects that use this

  • VercelSkill

    technical-writer

    Write, review, and edit developer documentation for SDKs, libraries, and frameworks, including sites such as ai-sdk.dev and chat-sdk.dev. Use for getting-started guides, tutorials, API references, conceptual explanations, integration guides, migration guides, troubleshooting, and code examples.

    Also in 6 projects that use this

  • JeffallanSkill

    devops-engineer

    Creates Dockerfiles, configures CI/CD pipelines, writes Kubernetes manifests, and generates Terraform/Pulumi infrastructure templates. Handles deployment automation, GitOps configuration, incident response runbooks, and internal developer platform tooling. Use when setting up CI/CD pipelines, containerizing applications, managing infrastructure as code, deploying to Kubernetes clusters, configuring cloud platforms, automating releases, or responding to production incidents. Invoke for pipelines, Docker, Kubernetes, GitOps, Terraform, GitHub Actions, on-call, or platform engineering.

    Also in 4 projects that use this

  • lotosbinSkill

    ui-ux-designer

    UI/UX 设计师专家,精通界面设计、交互设计、用户体验和设计系统

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 39 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when you need an adversarial review that tries to break assumptions and surface exploitable weaknesses.

    line 10
  2. Distinctive:

    Treat missing evidence as a risk signal, not a clean bill of health.

    line 24
  3. Very specific:

    Never return PASS without full coverage ledger output.

    line 25
  4. Distinctive:

    Do not stop at regex hits: confirm exploit path context when possible.

    line 26
  5. Distinctive:

    Keep findings actionable with CWE mapping, exploit risk, and concrete remediation.

    line 27
  6. Distinctive:

    Do not filesystem-search for the script.

    line 38

“Common” is measured: kept by at least 6 in 10 of the 39 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 Auditor

Adversarial security-audit skill for the jeff pipeline.

Use this skill when you need an adversarial review that tries to break assumptions and surface exploitable weaknesses.

Load Order

For code work, load these first:

  1. code-standards
  2. language-specific skills, if present
  3. testing (when modifying checks)

Then load security-auditor.

Adversarial Posture (Anti-Shirk Contract)

  • Assume vulnerabilities exist until disproven by evidence.
  • Treat missing evidence as a risk signal, not a clean bill of health.
  • Never return PASS without full coverage ledger output.
  • Do not stop at regex hits: confirm exploit path context when possible.
  • Keep findings actionable with CWE mapping, exploit risk, and concrete remediation.
  • The implementer must never be the auditor. Whoever wrote or changed the code under review cannot sign off on its security; delegate the audit to an independent agent and never self-assess inline.

Deterministic Entry Point

The audit runner is scripts/review-security.sh, bundled in this skill's own directory. When this skill loads, its absolute location is given to you as the skill's base directory (the Base directory for this skill: … line in the skill preamble). Run the script by that absolute path, keeping your working directory in the target repo so the scan resolves the code under review from the cwd:

"<base-directory>/scripts/review-security.sh" [scope] [flags]

Do not filesystem-search for the script; resolve it from the announced base directory.

Default Checks

  • Hardcoded secrets and key material
  • Injection sinks (SQL, shell/command, path traversal)
  • Insecure deserialization
  • Weak crypto/hash usage
  • Dangerous dynamic execution (eval, exec, deserialization gadgets)
  • TLS verification disabled / insecure transport
  • XSS-prone patterns
  • Sensitive data logging
  • Dependency audit attempts (when manifest + tool exist)

Expected Output

security_audit_result:
  scope: "<resolved-scope>"
  files_scanned: <n>
  dropped_targets: [<explicitly supplied dropped target>, ...]
  findings:
    total: <n>
    critical: <n>
    high: <n>
    medium: <n>
    low: <n>
  coverage:
    categories: <n>
    uncovered: <n>
    audit_tool_failures: <n>
  recommendation: "PASS|REVIEW|BLOCK|EMPTY-SCAN"
  report_path: "scratchpads/security-audit-<timestamp>.md"

dropped_targets names each explicitly supplied scope item that did not resolve to a scanned file: unscannable files (unknown extension or extensionless), oversized files, and missing, deleted, or broken-symlink paths. It never silently discards a target the caller named directly. Directory-walk drops are not explicit targets and are not listed.

Gate Defaults

  • BLOCK: any critical finding
  • REVIEW: any high/medium finding, category coverage gaps, or dependency audit execution failures
  • PASS: only when no findings and no coverage gaps/tool failures
  • EMPTY-SCAN: an explicitly supplied, non-empty scope resolved zero scannable files. This is never an ordinary clean scan: without --force the run exits nonzero with no report; with --force a report is still written but the recommendation and exit code both carry EMPTY-SCAN, never PASS. (--changes/--staged and full-codebase scans that resolve zero files are unaffected: a genuinely empty diff still reads as ordinary.)

Common Flags

  • --changes / --staged (audit changed / staged files only)
  • --strict (escalate any finding or coverage/tool debt to BLOCK)
  • --force (emit an empty audit report even when no scannable files resolve)
  • --skip-deps (skip dependency audit commands)
  • --report-dir <dir> / --max-file-kb <n>

References

  • skills/security-auditor/reference/adversarial-audit.md
  • scripts/review_security.py

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.