hoatv2211/GameStudio-CodexKIT / skills/multi-service-local-environment-doctor
multi-service-local-environment-doctor
VerifiedUse when diagnosing a multi-service local game environment with port conflicts, process listeners, configured ports, service names, startup dependencies, and cross-project isolation concerns.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 3.9 KB |
| agents/openai.yaml | config | 319 B |
| references/commands.md | markdown | 1.5 KB |
| scripts/environment_doctor.py | script | 2.0 KB |
references/commands.md
View on GitHub# Local Environment Command Reference
These commands collect read-only snapshots. They do not authorize stopping processes, restarting services, editing configs, or changing firewall rules.
## Windows ports and processes
```powershell
Get-NetTCPConnection -State Listen |
Sort-Object LocalPort |
Select-Object LocalAddress,LocalPort,OwningProcess
Get-NetTCPConnection -LocalPort 3306,3307 -ErrorAction SilentlyContinue |
Select-Object LocalAddress,LocalPort,State,OwningProcess
Get-Process -Id 1234 | Select-Object Id,ProcessName,Path,StartTime
Get-CimInstance Win32_Service | Select-Object Name,State,StartMode,PathName
```
## Linux ports and processes
```bash
ss -lntp
ss -lntp '( sport = :3306 or sport = :3307 )'
lsof -nP -iTCP:3306 -sTCP:LISTEN
lsof -nP -iTCP:3307 -sTCP:LISTEN
ps -fp PID
systemctl status SERVICE_NAME --no-pager
```
## Configuration snapshot
Search only the named project and exclude secrets or generated output.
```powershell
rg -n --glob '!**/logs/**' --glob '!**/secrets/**' '3306|3307|27000|redis|mysql' D:\Projects\MyGame
```
```bash
rg -n --glob '!**/logs/**' --glob '!**/secrets/**' '3306|3307|27000|redis|mysql' /srv/my-game
```
## Evidence
Record expected port, configured port, observed listener, owning process path, service name, project ownership, command, timestamp, and limitations.
Do not kill an unknown process to free a port. Do not treat a listener as proof that the correct executable or database owns it. Service-control actions require explicit approval.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |