dev-servers
Skill1 starsChanged 5 months agoMITView on GitHub
Start or stop local development servers for the current project — the safe way. Frees ports / tears down stale processes first, defers to a project-specific skill if one exists, then detects the stack (Laravel Sail, Laravel, Node/npm, Docker Compose, Makefile) and starts it. Use when the user says "start local servers", "start the dev server", "spin up local", "boot up the app", "start dev", "stop the servers", "kill the dev servers", or any variation.
In this repository4 other files it gives its agents.
- debian-server-securitySkill
- issue-trackingSkill
- product-decisionsSkill
- resolve-issueSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 23
Always follow these steps in order.
- Distinctive: line 27
Before anything else, check for a project-specific skill in the current working directory:
- Distinctive: line 33
If it exists, read it and follow those instructions exclusively — ignore the steps below.
- Very specific: line 41
Run this unconditionally before starting anything, to clear containers/processes/services that could hold ports.
- Distinctive: line 54
Use the project's own conventions:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Dev Servers (start / stop)
A safe, portable lifecycle for local dev servers. The value isn't a magic start command — that's inherently stack-specific — it's the discipline: defer to a project skill → tear down stale processes first → detect the stack → start → report. Skipping the teardown is the #1 cause of "port already in use" pain; deferring to a project skill means project-tuned setups always win.
Stopping
For "stop / kill / shut down the dev servers", run the bundled teardown:
bash scripts/stop-devIt stops all running Docker containers, kills Vite dev servers, and stops any system services configured in the script. Edit scripts/stop-dev to add the services you run locally (mysqld, postgresql, redis, …), or copy it onto your PATH as stop-dev for convenience.
Starting
Always follow these steps in order.
Step 0 — defer to a project-scoped skill
Before anything else, check for a project-specific skill in the current working directory:
cat .claude/skills/local-servers/SKILL.md 2>/dev/nullIf it exists, read it and follow those instructions exclusively — ignore the steps below. A project that ships its own startup skill knows its services, ports, and gotchas better than any generic detection.
Step 1 — stop everything first
bash scripts/stop-devRun this unconditionally before starting anything, to clear containers/processes/services that could hold ports.
Step 2 — detect the stack
ls composer.json package.json Makefile docker-compose.yml docker-compose.yaml 2>/dev/null
grep -E '"sail"|"laravel"' composer.json 2>/dev/null | head -5Also check the project's CLAUDE.md / README for the canonical dev command before assuming defaults.
Step 3 — start the appropriate servers
Use the project's own conventions:
Laravel Sail (composer.json references laravel/sail + a docker-compose.yml):
sail up -d
# then any extra processes — many projects expose a "dev" script:
composer run dev # often runs serve + queue + vite togetherLaravel without Sail:
php artisan serve &
# start queue/vite too if the project uses them (check CLAUDE.md/README)Node / npm:
npm run devMakefile:
make help 2>/dev/null || grep -E '^[a-zA-Z_-]+:' Makefile | head -20Step 4 — confirm
Report:
- what
stop-devstopped (if anything), - which servers are now running and on what ports/URLs.
Notes
scripts/stop-devstops all running Docker containers — intended for a dev box where containers are dev services. If you run non-dev containers locally, comment that block out.- Stopping system services needs passwordless sudo for those units (non-interactive runs).
- Written for Linux/macOS with bash; the service-stop step assumes systemd.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

