一键导入
pre
Use when installing, configuring, or troubleshooting pre, the security proxy that scans packages against the OSV database before package managers install them.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when installing, configuring, or troubleshooting pre, the security proxy that scans packages against the OSV database before package managers install them.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | pre |
| description | Use when installing, configuring, or troubleshooting pre, the security proxy that scans packages against the OSV database before package managers install them. |
Run pre setup once to install shell hooks in ~/.zshrc or ~/.bashrc.
Run pre status for read-only install state, managers, and cache info.
Run pre teardown to remove shell hooks.
After setup, npm install, pip install, brew install, and friends are
scanned automatically — no wrapper commands needed.
Supported managers: brew, npm, pnpm, bun, go, pip, pip3, uv, poetry.
Never edit shell files to bypass pre. Use:
PRE_DISABLE=1 npm install react # one command
export PRE_DISABLE=1 # current shell session
pre teardown # remove hooks entirely
| Env var | Effect |
|---|---|
PRE_DISABLE=1 | Skip all scans, run the package manager directly |
PRE_QUIET=1 | Hide progress and clean summaries; CVEs still print |
PRE_NO_BACKGROUND=1 | Disable detached background scans |
PRE_MAX_PACKAGES=N | Skip scanning past N packages |
PRE_CACHE_TTL=0s | Bypass cache for one install |
pre installed # package inventory across managers
pre install <mgr> <pkg> # install through the scanner
pre update <mgr> [pkg] # update one or all
pre downgrade <mgr> <pkg> <ver> # install an older version
pre uninstall <mgr> <pkg> # remove a package
pre scan system # scan all cached packages now
pre manage opens an interactive TUI — avoid it in non-interactive agent
sessions; use the flag form instead:
pre manage --package <pkg> --manager <mgr> --upgrade [version]
pre skills add # install this skill to ./.claude/skills/pre/SKILL.md
pre skills add --global # install to ~/.claude/skills/pre/SKILL.md
pre skills show # print to stdout for other agent configs
pre config shows config; pre config set <key> <value> updates it.
Keys: api.endpoint, cache.ttl, systemScan, systemTTL, managers.
pre status to check install state.pre setup.