Skip to main content

Module init

Module init 

Source
Expand description

ski init — one-shot setup of ski’s hooks for a host into the user’s config.

For opencode it drops the bundled ski.ts plugin into the global plugin directory. For Claude Code it merges the three hooks straight into ~/.claude/settings.json — the install path for users who can’t (or don’t want to) go through the /plugin marketplace. The Claude merge is additive and idempotent: it never rewrites unrelated settings and won’t double-add a hook that is already wired (whether by a previous init or by the plugin).

Functions§

run