run-dev
รัน development server และแก้ไขข้อผิดพลาด
SKILL.mdrun-dev/SKILL.md
GitHubGoal
Run the development server and fix any errors that occur, with terminal and browser watching
Scope
Used to run any project's development server with error checking and fixing
Execute
Pre-Run: Always run
/check-open-portsfirst —run-*requires review/assessment before the main action, never skip; if findings are blockers, fix or report them before running (dev)
1. Check Configuration
Goal: Check Configuration
- Check the main config and dev script to see if they are defined
- If the main config has no dev script, define one
- Verify the required dependencies are installed
- Verify the required environment variables are set
2. Run Dev Server
Goal: Run Dev Server
- Run the dev server with the appropriate command (bun dev, npm run dev, cargo run)
- If there are errors, run
/resolve-errorsto fix them - Track and fix errors immediately until they pass
- Verify the dev server starts successfully
3. Watch Terminal
Goal: Watch Terminal
- Run
/watch-terminalto watch the terminal every 5 seconds - Automatically detect new errors and warnings
- If errors are found, run
/resolve-errorsimmediately
4. Open Web (if it is a web project)
Goal: Open Web (if it is a web project)
- For a web project, run
/open-webto open the browser at the dev server URL - Verify the website opens and renders correctly
5. Watch Browser (if it is a web project)
Goal: Watch Browser (if it is a web project)
- For a web project, run
/watch-browser fixto inspect the browser - Verify the dev server really works through the browser
- Test that the main features work
6. Test Usage
Goal: Test the key usage flows
- Run
/deep-test usageto test the main features - If problems are found → run
/watch-browser fixor/resolve-errors - Confirm the key user flows work
7. Verify
Goal: Verify
- Run
/run-verify - Confirm there are no critical errors blocking operation
- Check that the related services work normally
- Confirm there are no runtime errors in the console
8. Report
Goal: Report
- Run
/reportto show the terminal output - Summarize the dev server status and remaining issues
Rules
1. Runtime Selection
- Use the command that fits the runtime (bun dev, npm run dev, cargo run)
- Check the ecosystem from the package manifest before choosing a command
2. Error Resolution
- Run
/resolve-errorswhen an error is found - Fix the root cause, not the symptoms
- Verify the dev server starts successfully before watching
3. Watch Strategy
- Run
/open-webonly for web projects to open the browser at the dev server URL - Run
/watch-terminalfor every project - Run
/watch-browser fixonly for web projects - If errors are found while watching, run
/resolve-errorsimmediately
Expected Outcome
- Development server works
- No critical errors
- Terminal is continuously watched
- Browser renders correctly (if it is a web project)
- Main features work