Register a new watch to poll a trigger and execute a prompt when it fires
Creates automated watches that poll triggers and execute Claude prompts when conditions are met.
/plugin marketplace add boneskull/claude-plugins/plugin install claude-watcher@boneskull-plugins<trigger> [params...] "<prompt>"Register a new watch that polls a trigger at regular intervals and executes a Claude prompt when the trigger fires.
/claude-watcher:watch npm-publish lodash 4.18.0 "Lodash 4.18.0 is out! Update this project's dependencies."
/claude-watcher:watch gh-pr-merged facebook/react 12345 "PR #12345 was merged. Rebase our feature branch on main."
/claude-watcher:watch my-trigger arg1 arg2 "The condition was met. Check the results."
Parse $ARGUMENTS to extract:
Use the register_watch MCP tool to create the watch with:
trigger: The extracted trigger nameparams: Array of extracted parametersaction.prompt: The extracted prompt (supports {{variable}} interpolation from trigger output)action.cwd: Current working directory (use the user's cwd)ttl: Default to "48h" unless the user specifies otherwiseinterval: Default to "30s" unless the user specifies otherwiseAfter registering, confirm the watch was created and mention:
claude-watcher daemon)Input: npm-publish @scope/pkg 2.0.0 "Version 2.0.0 of @scope/pkg is published!"
Parsed as:
npm-publish["@scope/pkg", "2.0.0"]"Version 2.0.0 of @scope/pkg is published!"Input: gh-pr-merged owner/repo 42 "PR #42 merged. Time to rebase."
Parsed as:
gh-pr-merged["owner/repo", "42"]"PR #42 merged. Time to rebase."