Global installs automatically place the package’s bundled skills into user-level agent skill directories, so agent behavior can change without an explicit setup command. The sync is limited to the package’s own skills, making this an agent extension lifecycle risk rather than evidence of malicious control hijacking.
Static reason
High-risk behavior combination matched malicious policy.; source matched previously finalized malicious package; routed for review; previous stored version diff introduced dangerous source
Trigger
Global npm installation, unless skill sync is disabled by an environment variable.
Impact
Agent tools may load or use the installed skills without a separate explicit setup command.
Mechanism
The postinstall hook invokes the sync script, which runs the skills installer and replaces matching bundled skill directories across supported agent roots.
Evidence
package.jsonscripts/postinstall.mjsscripts/sync-bundled-skill.mjs~/.agents/skills/<bundled-skill>~/.claude/skills/<bundled-skill>$CODEX_HOME/skills/<bundled-skill>OpenClaw-compatible skills/<bundled-skill>