pre-install-audit

pre-install-audit is a skill for Claude Code, Codex from AmineDjeghri/personal-os-setup. It costs 28 tokens per session (949 once invoked), scanned B, original, MIT.

A read-only safety check for third-party packages, repositories, installation scripts, and applications before they are installed or run. It reads the available installation code and reports whether to proceed, review, or avoid it.

In plain words
What is it for?
Use it to inspect AUR packages, GitHub repositories, install scripts, or local files before commands such as package installation or shell-based installation.
Why use it?
It helps find suspicious installation behavior before untrusted code gets executed, while making clear that a static check cannot guarantee safety.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths.

Good fit Use it to inspect AUR packages, GitHub repositories, install scripts, or local files before commands such as package installation or shell-based installation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aminedjeghri/personal-os-setup/pre-install-audit
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add AmineDjeghri/personal-os-setup --skill pre-install-audit
Clone the repo
git clone --depth 1 https://github.com/AmineDjeghri/personal-os-setup

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pre-install-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/aminedjeghri/personal-os-setup/pre-install-audit/github.svg)](https://agentmods.dev/skills/aminedjeghri/personal-os-setup/pre-install-audit)
Your own site
<a href="https://agentmods.dev/skills/aminedjeghri/personal-os-setup/pre-install-audit"><img src="https://agentmods.dev/badge/skills/aminedjeghri/personal-os-setup/pre-install-audit/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pre-install-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/aminedjeghri/personal-os-setup/pre-install-audit"><img src="https://agentmods.dev/badge/skills/aminedjeghri/personal-os-setup/pre-install-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 949 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00028 $0.00949
Opus 5.5 $0.00011 $0.00380
Sonnet 5.5 $0.00006 $0.00190
Haiku 4.5 $0.00003 $0.00095

Measured yesterday against content hash 05b07db027cc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

pre-install-audit scanned grade B with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/audit.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Downloads and executes remote codemediumSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

`curl | sh`, `pip install git+…`, `npm i <unknown>`.

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

`curl | sh`, `pip install git+…`, `npm i <unknown>`.
src/personal_os_setup/config/chezmoi/dot_claude/skills/pre-install-audit/SKILL.md · 62 lines

How it starts

The opening of the file, as written. The whole thing — 62 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Pre-install audit

Reads third-party install code BEFORE it runs and returns OK / REVIEW / AVOID with the exact trigger lines. Fetch-and-read only: it never builds, installs or executes the target. Static checks lower the risk, they do not remove it (an attacker can hide code in the upstream tarball or ship it later in an update).

When to use

  • "Is this AUR package / repo / install script safe?" — before yay, paru, makepkg, git clone && ./install.sh, curl | sh, pip install git+…, npm i <unknown>.
  • Adding a third-party pacman repo or key: no script covers that — read the repo's signing-key owner and pacman.conf snippet by hand and treat it as a separate trust decision.
  • Not for: official distro packages, or a runtime/malware scan of something already installed.

Run it

S=~/.claude/skills/pre-install-audit/scripts/audit.py
python3 $S aur <package>            # PKGBUILD, .install, git history, RPC metadata
python3 $S github <owner/repo>      # shallow clone + repo/owner metadata + install-hook scan
python3 $S url <https://…/install.sh>   # download to a temp dir, scan, print sha256
python3 $S path <dir-or-file>       # local checkout
# add --json for machine output; exit code 0=OK, 1=REVIEW, 2=AVOID

What it checks

  • Hard flags (AVOID): download piped to a shell, decoded payload executed, reverse-shell patterns, raw-IP URLs, plain-HTTP downloads, unknown AUR package.
  • Review flags: URL shorteners and paste hosts, base64/eval, network calls, setuid bits, systemd/cron/autostart/ shell-rc persistence, credential/browser/wallet paths, sudo inside install logic, long encoded blobs, npm lifecycle scripts, SKIP checksums on non-VCS sources, unpinned VCS sources, source hosts that are not a known forge.
  • AUR metadata: maintainer or orphan state, votes, popularity, package age, several git authors (maintainer change).
  • GitHub metadata: stars, repo and owner age, fork-of-another-repo, archived.
  • On GitHub repos and URLs only install-time files (Makefile, *.sh, setup.py, package.json, Dockerfile, units…) are scanned for review flags; tests/docs dirs are skipped.

Read the full file on GitHub · 62 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 62 lines · 28 tokens per session scan B 05b07db027cc

Subscribe to this mod's changes

pre-install-audit is a skill published in the GitHub repository AmineDjeghri/personal-os-setup (687 stars, last pushed today), licensed MIT. It adds 28 tokens to every session and 949 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-29.

Related

pre-install-audit compared with skills from other repositories

pre-install-audit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pre-install-auditAmineDjeghri/personal-os-setupSkill687todayMITB28Claude Code, Codex
hula-skillHuLaSpark/HuLaSkill7.9k6d agoApache-2.0A86Claude Code, Codex
flow-launcheralivirgo/Major-AI-SkillsSkill6yesterdayMITA26Claude Code
microsoft-powertoysalivirgo/Major-AI-SkillsSkill6yesterdayMITA30Claude Code
eartrumpetalivirgo/Major-AI-SkillsSkill6yesterdayMITA32Claude Code
wsl-bash-crlf-or-tempfilechen3feng/agent-skillsSkill56mo agoApache-2.0A48Claude Code, Codex
wsl-networking-mode-dns-fallbackchen3feng/agent-skillsSkill56mo agoApache-2.0A47Claude Code, Codex