agentleFS
PolakiniOPolakiniO/AI-Engineering-Playbook/skills/security-engineer/SKILL.md

security-engineer

Skill2 starsChanged 8 months agoMITView on GitHub

Plan or review project security, tool reuse, dependencies, services, integrations, permissions, secrets, supply-chain risk, and security scan requirements.

13 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use sre, qa-engineer and 2 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.
  • weirdgmeSkill

    sre

    Also in 3 projects that use this

  • glinckerSkill

    qa-engineer

    QA specialist agent for test planning, execution, and regression analysis

    Also in 3 projects that use this

  • dylantarreSkill

    frontend-developer

    Use when implementing animations in code, building UI transitions, or when a developer needs practical animation guidance for web/mobile applications.

    Also in 3 projects that use this

  • mrgoonieSkill

    devops

    Deploy to Cloudflare (Workers, R2, D1), Docker, GCP (Cloud Run, GKE), Kubernetes (kubectl, Helm). Use for serverless, containers, CI/CD, GitOps, security audit.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 8 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 10 edited versions we read keep these.

  • 8

    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:

    Use this skill when Codex and similar AI coding agents need to plan or review security for a project, dependency, third-party tool, …

    line 12
  2. Distinctive:

    run the most appropriate available security scan before approving a new or reused tool

    line 33
  3. Distinctive:

    prefer existing tools only when they are necessary, maintained, least-privilege, and pass review

    line 34
  4. Distinctive:

    keep security controls explicit in deployment, operations, and implementation plans

    line 36
  5. Distinctive:

    treat defaults, fallbacks, retries, and local development shortcuts as part of the security boundary

    line 37
  6. Distinctive:

    document accepted residual risks and compensating controls

    line 38
  7. Distinctive:

    check whether the repo already has a safer or simpler tool for that job

    line 43
  8. Distinctive:

    run dependency or configuration scans available in the project

    line 45

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

Purpose During Development

Use this skill when Codex and similar AI coding agents need to plan or review security for a project, dependency, third-party tool, integration, deployment path, or operational workflow.

This is a reusable development-time reasoning framework. It is not runtime code and must not be coupled into the product being secured.

When To Apply

  • selecting or reusing third-party tools, services, dependencies, plugins, packages, or SaaS integrations
  • reviewing authentication, authorization, secrets, permissions, network exposure, data handling, or supply-chain risk
  • preparing a project for deployment or external users
  • deciding whether an existing tool is safe enough to reuse

What To Inspect

  • existing security guidance in AGENTS.md, SECURITY.md, policies, and deployment docs
  • dependency manifests, lockfiles, plugins, CI workflows, container files, and infrastructure configuration
  • data classification, auth model, permission boundaries, secrets storage, and external integrations
  • security scan results from available package, dependency, container, IaC, or code scanning tools
  • maintenance signals for proposed tools: provenance, update cadence, permissions, vulnerability history, and necessity

Rules To Enforce

  • run the most appropriate available security scan before approving a new or reused tool
  • prefer existing tools only when they are necessary, maintained, least-privilege, and pass review
  • reject tools that require broad secrets, excessive permissions, unclear provenance, or avoidable data exposure
  • keep security controls explicit in deployment, operations, and implementation plans
  • treat defaults, fallbacks, retries, and local development shortcuts as part of the security boundary
  • document accepted residual risks and compensating controls

Tool Reuse Review

  • identify the specific job the tool performs
  • check whether the repo already has a safer or simpler tool for that job
  • inspect permissions, network access, secrets, data access, generated files, and CI effects
  • run dependency or configuration scans available in the project
  • decide: reuse, replace, sandbox, defer, or reject

Common Anti-Patterns To Catch

  • adding a tool before defining the security problem it solves
  • accepting broad cloud, repository, or workspace permissions for convenience
  • using stale packages or abandoned services for critical paths
  • storing secrets in examples, client bundles, logs, screenshots, or generated docs
  • assuming local-only scripts are safe when they touch real credentials or production data

Expected Output From The Agent

  • threat and trust-boundary summary
  • tool security decision
  • required scans and scan results
  • permission and secrets plan
  • residual risks
  • required fixes or compensating controls
  • security verification plan

Output Structure

  • Summary
  • Key Findings
  • Risks
  • Affected Files
  • Affected Areas
  • Tool Security Decision
  • Security Scan Plan
  • Permission And Secrets Plan
  • Suggested Improvements
  • Suggested Tests
  • Skills applied

Example Usage

"Use this skill to decide whether we should reuse this deployment tool after a security scan."

"Review this project plan for auth, secrets, dependency, and deployment security risk."

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.