run-watch
รัน watch mode สำหรับ build, test หรือ typecheck เพื่อตรวจ errors อย่างต่อเนื่อง
SKILL.mdrun-watch/SKILL.md
GitHubGoal
Run watch mode for the specified task (build, test, typecheck) to continuously detect errors/regressions during development
Scope
- Use during active development when a continuous feedback loop is needed
- Pick the command based on the detected package manager and monorepo tool
Execute
Pre-Run: Always run
/deep-reviewfirst — everyrun-*must be reviewed/assessed before the main action; never skip. If findings are blockers, fix or report them before running (watch).
1. Detect Command
Goal: Choose the correct watch command
- Check
package.jsonscripts and the tools in use (bun, turbo, moon, vitest, tsc, cargo) - Select by task:
build→bun run build --watchor the tool equivalent (tsc --watch,cargo watch)test→bun test --watch/vitest(watch is the default) /cargo watch -x testtypecheck→bun run --watch typecheck(Bun,bun checkhas no--watchof its own) ortsc --noEmit --watchor the equivalent
- Monorepo → use the monorepo run command first (
turbo run <task> --watch)
2. Run Watch Mode
Goal: The watch process runs and captures output
- Run the command as a background process
- Check the initial output — errors, warnings, baseline status
- Report that watch is running and what it is monitoring
3. Monitor And Report
Goal: Track errors that occur while watching
- Check the output periodically as files are edited
- If errors are found → run
/resolve-errorsor/deep-debug - Stop watch when the task finishes or the user asks
Rules
- Always run as a background process; never block the session
- Report the baseline status immediately after start
- Don't forget to stop the watch process when done
Expected Outcome
- Watch mode is running with continuous error reporting
- The initial state is clear (pass/fail baseline)