agentleFS
ryanportfolioryanportfolio/Harness-Firmware/.agents/skills/servers/SKILL.md

servers

Skill1 starsChanged 2 months agoMITView on GitHub

Use on $servers, after starting a dev server, or when the user asks what is running, which port is which, why browsers are open, or to close old servers and browsers.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    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
  1. Very specific:

    After starting a server, record it from the checkout it serves, since Windows cannot tell which folder a running npm run dev belongs to: …

    line 12

≈ “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

Servers and automation browsers

Script paths are from the repository root; in a personal install, use the scripts/ folder in this skill's directory.

.agents/skills/servers/scripts/servers.mjs lists dev servers (listeners on port 1024+ owned by node, bun, python and similar) and automation browsers (Chrome, Edge or Chromium started with a debugging flag or their own profile). A personal browser launched normally is never listed.

After starting a server, record it from the checkout it serves, since Windows cannot tell which folder a running npm run dev belongs to: node .agents/skills/servers/scripts/servers.mjs register --port 5173 --purpose "menu page preview". launchPlacedChrome() records its own browsers; pass purpose to label them.

List with node .agents/skills/servers/scripts/servers.mjs (--here for this repository, --json for data). Flags: gone (worktree deleted), old (older than --old-hours, default 12), unknown (a server with no record or folder), protected (it or a process under it is in ~/.claude/servers-protect.txt; never closed). Answer "which port is X" from the purpose and folder columns, with the URL.

Close by showing the plan first: close stale (gone rows), close old (recorded rows and automation browsers, old or gone), or close <port> / close pid:<pid>; add --yes to act. stale and old skip unknown and protected rows, and closing kills the process tree. A server running under a recorded launcher (npm run dev recorded, vite listening) closes with that launcher; pid:<pid> closes exactly one process. Close what this session started; anything else only after the user saw the list and agreed, under AGENTS.md approval rules.

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.