agentleFS
hoatv2211hoatv2211/GameStudio-CodexKIT/skills/multi-service-local-environment-doctor/SKILL.md

multi-service-local-environment-doctor

Skill3 starsChanged 3 months agoMITView on GitHub

Use when diagnosing a multi-service local game environment with port conflicts, process listeners, configured ports, service names, startup dependencies, and cross-project isolation concerns.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use for local server startup failures, port 27000 conflicts, MySQL 3306/3307 isolation, Redis or web listener issues, config drift, or …

    line 35
  2. Distinctive:

    Do not use to kill processes, start services, edit configs, import databases, or claim a runtime is healthy from static config alone.

    line 38
  3. Distinctive:

    Read-only only. Process and port inspection is allowed.

    line 44
  4. Distinctive:

    Do not reuse a DB port across projects because “only one runs at a time.”

    line 67
  5. Distinctive:

    Do not stop unknown processes to make a test pass.

    line 68
  6. Distinctive:

    Read references/commands.md for read-only Windows and Linux snapshots.

    line 78

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Multi-Service Local Environment Doctor

Overview

Build a read-only topology of services, processes, ports, and configuration, then identify collisions without starting or stopping anything.

When to use

Use for local server startup failures, port 27000 conflicts, MySQL 3306/3307 isolation, Redis or web listener issues, config drift, or multiple game stacks on one workstation.

When NOT to use

Do not use to kill processes, start services, edit configs, import databases, or claim a runtime is healthy from static config alone.

Required inputs and context discovery

Collect service names, executable or script paths, expected and configured hosts/ports, dependency order, process snapshot, listener snapshot, config files, project ownership, and forbidden service-control actions.

Safety and risk level

Read-only only. Process and port inspection is allowed; start, stop, kill, firewall, registry, database, and config changes require explicit approval and another workflow.

Workflow

  1. Inventory declared services and configuration sources. Completion criterion: each service has an owner, config path, expected host, and expected port.
  2. Capture active processes and listeners without controlling them. Completion criterion: observed listeners are a timestamped Snapshot.
  3. Compare expected, configured, and observed ports and dependencies. Completion criterion: collisions, missing listeners, and mismatches are separated.
  4. Identify cross-project ownership such as Project Alpha versus Project Beta and database port isolation. Completion criterion: no proposed fix crosses a project boundary silently.
  5. Recommend the smallest safe next action and label service-control work BLOCKED pending approval. Completion criterion: the report does not mutate the environment.

Evidence and output contract

Produce environment-report.json with services, configs, expected/observed listeners, conflicts, mismatches, ownership, limitations, and recommended next checks.

Handoff contract

Record service topology, commands used, process IDs only when necessary and sanitized, port conflicts, config paths, project owners, and blocked control actions.

Pitfalls and anti-rationalization

  • A free port now may not be the configured port.
  • A listening port does not prove the correct executable owns it.
  • Do not reuse a DB port across projects because “only one runs at a time.”
  • Do not stop unknown processes to make a test pass.

Verification checklist

  • Expected, configured, and observed ports are distinct fields.
  • Project ownership is explicit.
  • No process or service was controlled.
  • Static-only limitations are stated.
  • Mutating next steps are BLOCKED pending approval.

References and scripts

Read references/commands.md for read-only Windows and Linux snapshots. Use the bundled scripts/environment_doctor.py for static topology and project-native read-only process/port commands for live snapshots.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.