The global postinstall hook automatically places the package’s bundled skills in user-level agent directories, so agent hosts can discover them without a separate install request. The behavior is limited to the package’s own skills and is skipped for local installs, making this a warning-level agent-extension lifecycle risk.
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
npm global install runs the postinstall hook, unless CLAWCLAW_SKIP_SKILL_SYNC=1 is set.
Impact
Agent hosts may discover and use the package’s skills without a separate user command to install them.
Mechanism
The hook invokes the skills installer with global and yes flags, then copies bundled skill directories into agent-host skill locations.
Evidence
package.jsonscripts/postinstall.mjsscripts/sync-bundled-skill.mjs~/.agents/skills/<skillName>$CLAUDE_CONFIG_DIR/skills/<skillName> (default ~/.claude/skills/<skillName>)$CODEX_HOME/skills/<skillName> (default ~/.codex/skills/<skillName>)<first existing ~/.openclaw, ~/.clawdbot, or ~/.moltbot>/skills/<skillName>