AgentSkillsCN

boot-local

终止所有正在运行的本地开发进程(Worker、边缘函数、开发服务器),等待它们自然结束,随后重新启动。开发服务器默认运行在8080端口。当用户说“启动本地环境”“重启本地环境”“重置开发环境”,或需要刷新本地服务时,这一技能便可派上用场。

SKILL.md
--- frontmatter
name: boot-local
description: Kill all running local development processes (worker, edge functions, dev server), wait for termination, then restart them. Dev server runs on port 8080. Use when user says "boot local", "restart local", "reboot dev", or needs to refresh local services.
allowed-tools: Bash, TaskOutput
version: 2.1.0

Boot Local

Kill and restart all local development services when the dev environment needs a fresh start.

<when_to_use>

When to Use

Invoke when user says:

  • "boot local"
  • "restart local"
  • "reboot dev"
  • "restart all services"
  • "kill and restart" </when_to_use>
<workflow> ## Workflow
PhaseActionReference
1Kill running processes (ports 8080, 3001)process-killing.md
2Wait for termination, verify ports freeprocess-killing.md
3Start all 3 services in backgroundservice-startup.md
4Verify startup (check logs)service-startup.md
5Display status reportFinal output

Note: Use run_in_background: true for all three start commands to avoid blocking. </workflow>

<services> ## Services
ServiceCommandPortURL
Workernpm run worker:dev3001http://localhost:3001/health
Edge Functionsnpx supabase functions serve --env-file supabase/.env.local54321http://127.0.0.1:54321/functions/v1/
Dev Servernpm run dev -- --port 80808080http://localhost:8080
</services>

<approval_gates>

Approval Gates

GatePhaseQuestion
None-No destructive operations; all local process cleanup

</approval_gates>

<quick_reference>

Quick Reference

bash
# Find process on port
netstat -ano | findstr :8080 | findstr LISTENING

# Kill by PID
taskkill //F //PID <pid>

# Start services (use run_in_background: true)
npm run worker:dev
npx supabase functions serve --env-file supabase/.env.local
npm run dev -- --port 8080

For detailed steps: references/process-killing.md For error recovery: references/error-recovery.md </quick_reference>

<references> ## References

<version_history>

Version History

  • v2.1.0 (2025-01-18): AI optimization updates

    • Add blockquote summary after title
    • Soften directive language per Opus 4.5 guidance
  • v2.0.0 (2025-12-28): Refactored to follow skill-authoring-patterns

    • Added XML tags for structure
    • Created references/ for detailed content
    • Reduced from 197 to ~90 lines
  • v1.0.1 (2025-12-21): Fix edge functions env file

    • Added --env-file supabase/.env.local
  • v1.0.0 (2025-12-21): Initial release </version_history>