The reachable postinstall automatically registers the package's skill in supported agent environments and writes agent guidance, which is an unconsented agent extension lifecycle risk. The reviewed content is for using this CLI and does not establish a broader control hijack or data theft, so this warrants a warning rather than a block.
Static reason
High-risk behavior combination matched malicious policy.; previous stored version diff introduced dangerous source
Trigger
Package installation via npm postinstall.
Impact
Agent tools can discover and use the package's instructions without the user explicitly registering the skill; this is an unconsented agent extension lifecycle risk.
Mechanism
The hook generates ~/.hsk/AGENTS.md and invokes skill registration, which writes the package's SKILL.md under configured agent skill directories when their configuration roots exist.
Evidence
package.jsonscripts/postinstall.jslib/core/skillRegistrar.jsconfig/agent-dirs.js~/.hsk/AGENTS.md$HOME/.claude/skills/hsk-cli/SKILL.md$HOME/.cursor/skills/hsk-cli/SKILL.md$HOME/.agents/skills/hsk-cli/SKILL.md