agentleFS
nikkogiblernikkogibler/cabinet/skills/repo-audit/SKILL.md

repo-audit

Skill4 starsChanged 7 months agoMITView on GitHub

Systematically assess whether an open-source repository is safe to read, clone, run in a sandbox, or trust with real data. Produces a weighted risk score, verdict ladder, red flags, and concise safe-usage guidance.

31 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use agent-etiquette, likeness-gate and 5 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.
  • kelli-dotcomSkill

    agent-etiquette

    Behavioral protocol for AI coding agents enforcing zero conversational filler, verified actions only, the Rule of 2 retry cap, and a 3-agent concurrency cap.

    Also in 3 projects that use this

  • kelli-dotcomSkill

    likeness-gate

    Also in 3 projects that use this

  • tmusserSkill

    open-loops

    Carry workplace obligations across source windows with an optional user-owned ledger and evidence-backed status changes.

    Also in 3 projects that use this

  • NVIDIASkill

    preflight

    Use before a debugging workflow, when asked to check the environment, or when the local CLI tools needed for the requested task are not working.

    Also in 3 projects that use this

  • wpankSkill

    session-handoff

    WHAT: Create comprehensive handoff documents that enable fresh AI agents to seamlessly continue work with zero ambiguity. Solves long-running agent context exhaustion problem.

    Also in 3 projects that use this

  • GoogleSkill

    code-review

    Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.

    Also in 3 projects that use this

  • +1 more from kelli-dotcom

The file

Show its rules and text

We split this skill into the rules it gives an agent

26 rules. 0 are common, 22 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 26 edited versions we read keep these.

  • 22

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read these references when the audit is non-trivial:

    line 17
  2. Distinctive:

    Every audit must answer these four questions:

    line 25
  3. Distinctive:

    Every audit must also produce:

    line 31
  4. Distinctive:

    Default to safe local validation:

    line 38
  5. Distinctive:

    Always start with static analysis.

    line 39
  6. Distinctive:

    Only run low-risk local validation when it does not require secrets, elevated privileges, package installation, or obvious network activity.

    line 40
  7. Distinctive:

    Treat package installs, browser automation, Docker builds, long-running services, network tracing, or anything credentialed as explicit …

    line 41
  8. Very specific:

    If the target is remote and not already local, clone with --depth=1 into a temporary directory.

    line 49
  9. Distinctive:

    Before any execution, inspect manifests, scripts, workflows, and entrypoints.

    line 50
  10. Distinctive:

    Do not use user secrets, browser profiles, private documents, wallets, SSH keys, or real production credentials.

    line 51
  11. Distinctive:

    Read only the code that decides behavior:

    line 81
  12. Distinctive:

    Prefer narrow, falsifiable reads over broad exploration.

    line 86
  13. Distinctive:

    Run low-risk validation only when justified:

    line 90
  14. Distinctive:

    only if they do not require installing packages, secrets, network access, browser login, or elevated permissions

    line 92
  15. Distinctive:

    If validation would require escalation, stop and say so unless the user explicitly asks to proceed.

    line 94
  16. Very specific:

    Use 0-4 per dimension:

    line 100
  17. Distinctive:

    Every final answer must include, in this order:

    line 111
  18. Distinctive:

    Keep the explanation concise and human.

    line 131
  19. Very specific:

    Do not say safe with real data just because tests pass.

    line 158
  20. Very specific:

    Do not treat safe to clone as equivalent to safe to run.

    line 159
  21. Distinctive:

    Do not bury the main red flags under a long summary.

    line 160
  22. Distinctive:

    If confidence is low, say so directly.

    line 161
  23. Distinctive:

    run browser automation against real profiles

    line 166
  24. Distinctive:

    use the user's credentials or env secrets

    line 167
  25. Distinctive:

    start long-running services or Docker containers

    line 168
  26. Distinctive:

    run anything that obviously reaches the network unless the user explicitly wants runtime tracing or higher-risk validation

    line 169

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

Audit a repository for operational safety and trust.

This skill is not trying to prove absolute safety. Its job is to determine blast radius, surface hidden risk, and tell the user what they can safely do now.

Read these references when the audit is non-trivial:

  • references/mental-model.md
  • references/scoring-rubric.md
  • references/default-workflow.md
  • references/report-template.md

Core Goal

Every audit must answer these four questions:

  • Is it safe to read?
  • Is it safe to clone?
  • Is it safe to run in a sandbox?
  • Is it safe to trust with real data?

Every audit must also produce:

  • an overall 0-10 risk score
  • weighted subscores across multiple dimensions
  • a concise plain-language explanation of what is safe, what is sandbox-only, and what is not recommended

Default Mode

Default to safe local validation:

  • Always start with static analysis.
  • Only run low-risk local validation when it does not require secrets, elevated privileges, package installation, or obvious network activity.
  • Treat package installs, browser automation, Docker builds, long-running services, network tracing, or anything credentialed as explicit escalation steps.

Mandatory Preparation

  1. Identify the target:
    • remote repo URL
    • local path
    • current workspace
  2. If the target is remote and not already local, clone with --depth=1 into a temporary directory.
  3. Before any execution, inspect manifests, scripts, workflows, and entrypoints.
  4. Do not use user secrets, browser profiles, private documents, wallets, SSH keys, or real production credentials.
  5. State important assumptions and unknowns.

Audit Workflow

Phase 1: Classify the Surface

Quickly identify:

  • languages and package managers
  • entrypoints and executable surfaces
  • CI/workflow files
  • Dockerfiles and shell scripts
  • bundled binaries, large blobs, generated code, or vendored assets

The goal is to find the likely control points, not to map the whole repo.

Phase 2: Static Risk Scan

Inspect the highest-risk surfaces first:

  • install hooks and package scripts
  • workflow automation
  • subprocess and shell execution
  • dynamic evaluation or obfuscation
  • outbound URLs, telemetry, or auto-registration
  • local sensitive data access
  • privilege requests or persistence mechanisms
  • runtime downloads or remote payloads

Phase 3: Focused Code Reads

Read only the code that decides behavior:

  • the owning abstraction
  • the actual network/execution path
  • the nearest code that mutates the filesystem, launches processes, or sends data off-machine

Prefer narrow, falsifiable reads over broad exploration.

Phase 4: Safe Validation

Run low-risk validation only when justified:

  • tests, lint, or build already supported by the repo
  • only if they do not require installing packages, secrets, network access, browser login, or elevated permissions

If validation would require escalation, stop and say so unless the user explicitly asks to proceed.

Phase 5: Score and Explain

Score the repo using the weighted rubric in references/scoring-rubric.md.

Use 0-4 per dimension:

  • 0 minimal risk
  • 1 low risk
  • 2 moderate risk
  • 3 high risk
  • 4 severe risk

Convert the weighted total into an overall 0-10 risk score.

Required Output

Every final answer must include, in this order:

  1. Risk score: X/10 with a short band label
  2. A verdict ladder for:
    • Safe to read
    • Safe to clone
    • Safe to run in sandbox
    • Safe with real data
  3. A short plain-language paragraph answering what the user can safely do now
  4. A Plain-English Bottom Line written for a non-technical reader in 2-4 short sentences
  5. A Simple Yes/No Checklist covering:
    • Read it?
    • Clone/download it?
    • Run it in a sandbox?
    • Use it with real data?
    • If still uneasy, what should I do?
  6. A weighted scorecard by dimension
  7. Top findings with severity and file references
  8. Confidence and unknowns

Keep the explanation concise and human. The user should not need security training to understand the recommendation. The Plain-English Bottom Line and Simple Yes/No Checklist must avoid jargon, avoid hedging unless necessary, and make the safe next action obvious to a non-technical person.

Red Flags To Prioritize

Escalate the score quickly for:

  • preinstall, postinstall, bootstrap one-liners, or remote script execution
  • obfuscated or encoded payloads
  • bundled binaries with no clear reason
  • silent telemetry, auto-registration, or hidden outbound traffic
  • access to browser profiles, wallets, keychains, clipboard, shell history, or SSH material
  • admin/root requests, scheduled tasks, launch agents, persistence, or security-control changes
  • README claims that do not match the code

Positive Signals To Credit

Lower the score when the repo is genuinely simple and transparent:

  • small code surface
  • dependency-light or dependency-free
  • no install hooks
  • explicit and minimal network behavior
  • clear entrypoints and readable code
  • tests or validation that match the claimed behavior

Verdict Discipline

Be conservative:

  • Do not say safe with real data just because tests pass.
  • Do not treat safe to clone as equivalent to safe to run.
  • Do not bury the main red flags under a long summary.
  • If confidence is low, say so directly.

Never Do These By Default

  • install dependencies from the network
  • run browser automation against real profiles
  • use the user's credentials or env secrets
  • start long-running services or Docker containers
  • run anything that obviously reaches the network unless the user explicitly wants runtime tracing or higher-risk validation

Final Standard

The best audit answers this in one sentence:

"Here is the risk score, here is what worried me, and here is exactly what you can safely do with this repo right now."

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.