agentleFS
MesteriisMesteriis/Engineering-Bible-AI/skills/security/SKILL.md

security

Skill0 starsChanged 5 months agoMITView on GitHub

Implements security-sensitive changes with conservative trust boundaries, secret protection, tests, and verification.

78 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use cost-reducer, trigger-dev 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.
  • daianepepes-labSkill

    cost-reducer

    Analyze and reduce costs across cloud infrastructure, code, and services. Use when asked to cut costs, optimize spending, reduce bills, or improve cost efficiency.

    Also in 5 projects that use this

  • xfstudioSkill

    trigger-dev

    Trigger.dev expert for background jobs, AI workflows, and reliable async execution with excellent developer experience and TypeScript-first design. Use when: trigger.dev, trigger dev, background task, ai background job, long running task.

    Also in 4 projects that use this

  • ffsshhttiikkSkill

    scalability

    Core foundational concepts and principles for Scalability

    Also in 4 projects that use this

  • daianepepes-labSkill

    self-healing

    Detect, diagnose, and automatically fix recurring errors, memory issues, and system degradation. Use when a system has recurring failures, memory leaks, performance degradation, or needs automatic recovery mechanisms.

    Also in 5 projects that use this

  • xfstudioSkill

    customer-support

    Elite AI-powered customer support specialist mastering

    Also in 4 projects that use this

  • ffsshhttiikkSkill

    cicd

    Continuous integration and delivery pipelines

    Also in 4 projects that use this

  • +1 more from daianepepes-lab

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 56 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:

    Never hardcode or expose:

    line 14
  2. Distinctive:

    Never expose internal exception details in public responses.

    line 27
  3. Distinctive:

    Before changing security-sensitive behavior, inspect:

    line 31
  4. Distinctive:

    Do not implement security-sensitive behavior from unverified memory.

    line 43
  5. Distinctive:

    Do not confuse them, unless the goal is to create tomorrow's incident report.

    line 74
  6. Distinctive:

    avoid blacklist-only validation for security decisions.

    line 86
  7. Distinctive:

    avoid shell/string concatenation for commands and queries.

    line 87
  8. Distinctive:

    Do not swallow security-relevant errors silently.

    line 95

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

Skill: security

Purpose

Handle security-sensitive work with explicit verification and conservative assumptions.

Security Invariants

Never hardcode or expose:

  • passwords;
  • tokens;
  • private keys;
  • API secrets;
  • Wi-Fi credentials;
  • database credentials;
  • personal data;
  • internal-only infrastructure details.

Never log secrets.

Never expose internal exception details in public responses.

Inspect Before Security Changes

Before changing security-sensitive behavior, inspect:

  • existing auth/authz patterns;
  • middleware;
  • configuration;
  • secret handling;
  • input validation;
  • serialization/deserialization;
  • dependency versions if relevant;
  • existing tests;
  • official documentation when needed.

Do not implement security-sensitive behavior from unverified memory.

Threat Areas

Be careful with:

  • authentication;
  • authorization;
  • session handling;
  • CSRF/CORS;
  • SSRF;
  • SQL/NoSQL injection;
  • shell injection;
  • path traversal;
  • unsafe deserialization;
  • XML/entity expansion;
  • template injection;
  • user-controlled URLs;
  • file uploads;
  • dependency/supply-chain risks;
  • secrets in logs, traces, fixtures, snapshots;
  • insecure randomness;
  • replay risks;
  • rate limits and abuse paths.

Authorization Rule

Authentication answers "who are you?"

Authorization answers "are you allowed to do this?"

Do not confuse them, unless the goal is to create tomorrow's incident report.

Input Handling

Validate untrusted input at boundaries.

Rules:

  • parse explicitly;
  • reject invalid states;
  • normalize only when safe;
  • preserve original input when needed for audit/debugging;
  • avoid blacklist-only validation for security decisions;
  • avoid shell/string concatenation for commands and queries.

Error Handling

Public errors should be safe and consistent.

Internal logs may include diagnostic context but must not include secrets or personal data.

Do not swallow security-relevant errors silently.

Security Review Output

Report:

  • threat or vulnerability;
  • affected code path;
  • exploitability conditions;
  • impact;
  • fix;
  • validation;
  • residual risk.

Extended References

For deeper work, read:

  • ../../engineering/16_security_philosophy.md

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.