A global npm install automatically writes the package’s own bundled skills into user-level agent skill directories, replacing any same-named targets. This meets the warning rule for install-time installation of the package’s own agent skill; the hook is limited to global installs and can be disabled through an environment variable.
Static reason
High-risk behavior combination matched malicious policy.; source matched previously finalized malicious package; routed for review
Trigger
npm postinstall when npm_config_global is true; CLAWCLAW_SKIP_SKILL_SYNC=1 disables the hook.
Impact
Changes the user’s agent skill configuration without an explicit setup command and can overwrite an existing skill with the same name.
Mechanism
Runs the skills CLI to add each bundled skill globally, then copies it into skill directories under the user’s agent homes. Existing same-named directories are displaced and removed.
Evidence
package.jsonscripts/postinstall.mjsscripts/sync-bundled-skill.mjs~/.agents/skills/{name}~/.claude/skills/{name}~/.codex/skills/{name}~/.openclaw/skills/{name}