cursor-hook — CLI tool for installing Cursor hooks from Git repositories
I’ve created a tool that simplifies develop and sharing hooks for Cursor IDE. Now you can install hooks with a single command directly from GitHub!
What it is:
- TypeScript CLI package for installing Cursor hooks
- Support for GitHub, GitLab, and local paths
- Cross-platform (Windows/Linux/macOS)
- Automatic dependency installation
- Choice between global and project installation
Usage example:
npx cursor-hook install beautyfree/cursor-window-activate-hook
For developers:
Create your own hook repository, add a `cursor-hook.config.json` configuration file, and users can install it with one command. Platform-specific dependency installation commands are supported.
Links:
CLI: https://github.com/beautyfree/cursor-hook
Example hook: https://github.com/beautyfree/cursor-window-activate-hook