agentleFS
Karthick-RamachandranKarthick-Ramachandran/persist-os/.agents/skills/security-review/SKILL.md

security-review

Skill9 starsChanged 2 months agoMITView on GitHub

Review a change for security risks before it is accepted. Use when a change touches a trust boundary — file writes, paths, dependencies, stored secrets, network calls, telemetry, MCP, auth — and needs a decision before merging. Skip for feature planning, test writing, and convention checks.

188 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use kotlin-testing, configure-ecc 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.
  • tpavanipradeepSkill

    kotlin-testing

    Kotlin testing patterns with Kotest, MockK, coroutine testing, property-based testing, and Kover coverage. Follows TDD methodology with idiomatic Kotlin practices.

    Also in 6 projects that use this

  • saxon-ySkill

    configure-ecc

    Interactive installer for Everything Claude Code — guides users through selecting and installing skills and rules to user-level or project-level directories, verifies paths, and optionally optimizes installed files.

    Also in 12 projects that use this

  • InfopibeSkill

    content-hash-cache-pattern

    Cache expensive file processing results using SHA-256 content hashes — path-independent, auto-invalidating, with service layer separation.

    Also in 12 projects that use this

  • InfopibeSkill

    ralphinho-rfc-pipeline

    RFC-driven multi-agent DAG execution pattern with quality gates, merge queues, and work unit orchestration.

    Also in 10 projects that use this

  • mryeastcodeSkill

    pytorch-patterns

    PyTorch deep learning patterns and best practices for building robust, efficient, and reproducible training pipelines, model architectures, and data loading.

    Also in 9 projects that use this

  • berntpoppSkill

    dependency-cve-sweep

    Use when handling Dependabot PRs, CodeQL/Trivy alerts, or doing a routine dependency/CVE sweep for this repo.

    Also in 5 projects that use this

The file

We split this skill into the rules it gives an agent

10 rules. 0 are common, 9 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 166 edited versions we read keep these.

  • 9

    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:

    Test results, when they exist.

    line 13
  2. Very specific:

    Run scripts/scan-secrets.sh over the staged diff and treat matches as blockers until cleared.

    line 18
  3. Distinctive:

    Check path validation, overwrite policy, and symlink handling.

    line 19
  4. Distinctive:

    Check dependency, template, and configuration risk.

    line 20
  5. Distinctive:

    Check that tests cover the security-sensitive behavior.

    line 21
  6. Distinctive:

    If a credential is present in the change → blocker.

    line 27
  7. Distinctive:

    If writes can escape the repository root → blocker.

    line 28
  8. Distinctive:

    If the change conflicts with accepted repository memory → stop and ask for a human decision.

    line 29
  9. Distinctive:

    Every trust boundary the change touches has a finding or an explicit all-clear.

    line 33
  10. Distinctive:

    No finding is generic filler.

    line 35

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

Goal

Find security risks in a change before it is accepted.

Inputs

  • The change as a diff or summary.
  • Test results, when they exist.

Workflow

  1. Identify changed trust boundaries: file writes, paths, dependencies, auth, stored secrets, network calls, telemetry, MCP.
  2. Run scripts/scan-secrets.sh over the staged diff and treat matches as blockers until cleared. If scripts/ is unavailable (deleted or cannot execute), perform the same scan by reading the diff directly.
  3. Check path validation, overwrite policy, and symlink handling.
  4. Check dependency, template, and configuration risk.
  5. Check that tests cover the security-sensitive behavior.
  6. Classify findings as blockers, risks, or documented tradeoffs.
  7. Hand back the verdict with the finding list.

Decisions

  • If a credential is present in the change → blocker; stop and ask for its removal.
  • If writes can escape the repository root → blocker.
  • If the change conflicts with accepted repository memory → stop and ask for a human decision.

Verification

  • Every trust boundary the change touches has a finding or an explicit all-clear.
  • Blockers name the exact file and line.
  • No finding is generic filler.

Resources

  • For the security model → docs/20-security/SECURITY_MODEL.md
  • For threat context → docs/20-security/THREAT_MODEL.md (when present)

Output

  • Verdict: accept, accept with risks, or block.
  • Finding list with files, lines, and severity.

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.