The global postinstall path automatically installs and refreshes the package's own AI skill, making an agent configuration write reachable without a separate user command. The behavior is documented and limited to the package's own skill, so this is a warning-level agent extension lifecycle risk rather than a block-level attack.
Static reason
One or more suspicious static signals were detected.; source matched previously finalized malicious package; routed for review
Trigger
npm postinstall during a global install or npm link; skipped in CI or when GUAN_SKIP_INSTALL_SKILL=1.
Impact
Modifies global AI assistant skill configuration without a separate install-skill command; this is an agent extension lifecycle risk.
Mechanism
The hook runs install-skill, which invokes npx skills add with global and automatic-confirmation flags, then copies the skill into CodeBuddy and WorkBuddy skill directories.
Evidence
package.jsonbin/postinstall.jsbin/run.js~/.codebuddy/skills/guanwf (or CODEBUDDY_CONFIG_DIR/skills/guanwf)~/.workbuddy/skills/guanwf (or WORKBUDDY_CONFIG_DIR/skills/guanwf)AI assistant global skill locations selected by the skills CLI