safe-chain
1
总安装量
1
周安装量
#47572
全站排名
安装命令
npx skills add https://github.com/strozw/agent-skills --skill safe-chain
Agent 安装分布
opencode
1
codex
1
claude-code
1
Skill 文档
Safe Chain Skill
This skill improves security by automatically routing package manager commands through safe-chain.
Covered commands
When running the following commands, you must always route them through safe-chain:
Node.js/JavaScript
npm->safe-chain npmnpx->safe-chain npxyarn->safe-chain yarnpnpm->safe-chain pnpmpnpx->safe-chain pnpxbun->safe-chain bunbunx->safe-chain bunx
Python
pip->safe-chain pippip3->safe-chain pip3uv->safe-chain uvuvx->safe-chain uv tool runpoetry->safe-chain poetrypipx->safe-chain pipx
Execution rules
-
Required for package installs and updates
- â
Correct:
safe-chain npm install express - â Incorrect:
npm install express
- â
Correct:
-
Required for running scripts
- â
Correct:
safe-chain npx create-react-app my-app - â Incorrect:
npx create-react-app my-app
- â
Correct:
-
Required for global installs
- â
Correct:
safe-chain npm install -g typescript - â Incorrect:
npm install -g typescript
- â
Correct:
-
Required for updating existing dependencies
- â
Correct:
safe-chain npm update - â Incorrect:
npm update
- â
Correct:
Verification
To confirm that safe-chain is working correctly:
# Test a Node.js package
safe-chain npm install safe-chain-test
# Test a Python package
safe-chain pip3 install safe-chain-pi-test
# Check the safe-chain version
safe-chain --version
Exceptions
The following commands do not need to go through safe-chain:
npm run <script>(runs scripts in package.json)npm testnpm startnpm --version(version check only)
Important note
WARNING: While this skill is enabled, do not execute package manager commands directly.
safe-chain scans installed packages in real time and protects against malware and malicious code. Using this skill significantly reduces the risk of supply chain attacks.