agentleFS
Robotti-ioRobotti-io/copilot-security-instructions/skills/secure-code-review/SKILL.md

secure-code-review

Skill42 starsChanged 10 months agoApache-2.0View on GitHub

Repeatable process for an application security code review that produces prioritized findings and fix guidance.

10 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use secrets-management and incident-response.

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.
  • xfstudioSkill

    secrets-management

    Implement secure secrets management for CI/CD pipelines using Vault, AWS Secrets Manager, or native platform solutions. Use when handling sensitive credentials, rotating secrets, or securing CI/CD environments.

    Also in 3 projects that use this

  • AnthropicSkill

    incident-response

    Run an incident response workflow — triage, communicate, and write postmortem. Trigger with "we have an incident", "production is down", an alert that needs severity assessment, a status update mid-incident, or when writing a blameless postmortem after resolution.

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 2

    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 asked to review code for security, produce findings, or prepare guidance for remediation.

    line 10
  2. Distinctive:

    Look for missing allow-lists, type confusion, and implicit conversions.

    line 33
  3. Very specific:

    If this repo includes prompt files under /prompts, the following are commonly relevant:

    line 63

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

Secure Code Review

When to use

Use this skill when asked to review code for security, produce findings, or prepare guidance for remediation.

Inputs to collect (if available)

  • What component(s) are in scope (API, UI, worker, infra scripts)
  • Data sensitivity (PII, auth/session, payments)
  • Deployment assumptions (internet-facing, internal, multi-tenant)
  • Any known incidents, CVEs, or audit requirements

Step-by-step process

  1. Map entry points & trust boundaries
    • Enumerate request handlers, background consumers, file parsers, template renderers, and admin endpoints.
    • Identify where untrusted input crosses into privileged actions or sensitive sinks.
  2. Scan for high-risk classes
    • Injection: SQL/NoSQL/LDAP/OS/template
    • Authn/authz: missing checks, insecure defaults, confused deputy
    • Deserialization & file handling: unsafe loads, path traversal, upload
    • Crypto: homegrown crypto, weak randomness, token validation mistakes
    • Logging: secrets/PII exposure, overly verbose errors
    • SSRF: URL fetchers, webhook validation gaps
  3. Deep-dive the highest impact areas
    • Trace data flow from input → validation → authorization → sink.
    • Look for missing allow-lists, type confusion, and implicit conversions.
  4. Write findings in a consistent format
    • Title, severity, confidence
    • Where (file/function)
    • Risk + prerequisites
    • Repro steps
    • Recommendation + verification steps
  5. Close with a remediation plan
    • Quick wins (hours), medium fixes (days), structural guardrails (weeks).

Output template

Summary

  • Scope reviewed:
  • Top issues:
  • Overall risk: Low / Medium / High / Critical

Findings (repeat)

  • Title
  • Severity / Confidence
  • Where
  • Risk
  • Repro
  • Recommendation
  • Verification

Repo integration (optional)

If this repo includes prompt files under /prompts, the following are commonly relevant:

  • secure-code-review.prompt.md
  • scan-for-insecure-apis.prompt.md
  • validate-input-handling.prompt.md
  • review-auth-flows.prompt.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.