The automatic postinstall initializes eligible consumer projects and installs the package's own agent skills, instructions, and Claude hook. These are agent-extension lifecycle changes without a separate user command, warranting a warning; the reviewed content is product-related and showed no credential theft, agent permission changes, or unrelated behavior.
Static reason
One or more suspicious static signals were detected.
Trigger
npm postinstall, unless OPUS_SKIP_INIT is set; runs for a consuming project declaring @softize/opus and resolving this package instance.
Impact
Adds agent guidance and an automatic validation hook to consumer projects without a separate setup command. The hook may block an agent turn when opus check finds a violation.
Mechanism
The installer calls initProject, which materializes the package's registry artifacts, adds its managed AGENTS.md block, and registers an opus-check-on-stop hook in .claude/settings.json.
Evidence
package.jsonbin/lib/postinstall.mjsbin/lib/init.mjsbin/lib/materialize.mjsregistry/instructions/opus.mdregistry/hooks/opus-check-on-stop.mjsAGENTS.mdCLAUDE.md.claude/settings.json