Resources
1Install
npx skillscat add strozw/agent-skills/safe-chain Install via the SkillsCat registry.
SKILL.md
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 --versionExceptions
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.