run-docs
รัน documentation site และแก้ไขข้อผิดพลาด
SKILL.mdrun-docs/SKILL.md
GitHubGoal
Run the documentation site and fix any errors that occur
Scope
Use for documentation sites built with VitePress, Docus, or other documentation frameworks.
See also: /deep-review
Execute
Pre-Run: Always run
/deep-reviewfirst —run-*must be reviewed/assessed before the main work, never skip; if findings are blockers, fix or report before running (docs)
1. Check Documentation Setup
Goal: Check Documentation Setup
- Check whether a documentation config exists (VitePress, Docus, etc.)
- If it is VitePress, run
/follow-tool-vitepressto verify the configuration - Check the package manifest for a dev script
- Check that the required dependencies are installed
- Check that the content structure is complete
2. Update Documentation
Goal: Update Documentation
- Run
/update-vitepress-docsto create and update the docs site (content + config) — or/update-docsif it is pure markdown - Run
/deep-reviewto improve SEO for the documentation site - Check that the documentation is built correctly
3. Run Dev Server
Goal: Run Dev Server
- Run the dev server with the appropriate command for the documentation framework
- If there are errors, run
/deep-reviewto analyze and prioritize them /deep-reviewdecides which workflow to continue with:- If they are cascade issues →
/deep-debug→/resolve-errors - If they are isolated errors →
/resolve-errors
- If they are cascade issues →
- Monitor and fix errors immediately until they pass
- Check that the dev server starts successfully
4. Open Browser and Watch (if needed)
Goal: Open Browser and Watch (if needed)
- If a URL needs to be opened, choose:
- To verify via browser automation → run
/watch-browser fix - To just open it in the browser → run
/open-web - To watch the terminal every 5 seconds → run
/watch-terminal
- To verify via browser automation → run
- Check that the documentation site actually loads
- Access the documentation site and check that the main features work
5. Verify
Goal: Verify
- Confirm there are no critical errors blocking functionality
- Check that navigation and content render correctly
- Confirm there are no runtime errors in the console
- Check that styling and the theme work
6. Report
Goal: Report
- Run
/reportto render terminal output with ANSI codes - Run
/reportto format a table - Show the formatted results
Rules
- Use the command appropriate for the documentation framework
- Monitor and fix errors immediately until they pass
- Check that the dev server starts successfully before opening the browser
- Run
/follow-tool-vitepressfirst to create and update the docs
Expected Outcome
- The documentation site works
- No critical errors
- Navigation and content render correctly
- Styling and the theme work