agentleFS
ryanportfolioryanportfolio/Harness-Firmware/.claude/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, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    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:

    When the user asks "which port is X", answer from the purpose and folder columns and give the URL.

    line 27

≈ “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 below are from the repository root; when this skill came from a plugin, use the scripts/ folder in this skill's base directory instead, and keep running from the checkout.

.claude/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.

Record what you start. Windows cannot tell which folder a running npm run dev belongs to, so after starting a server, record it from the checkout it serves:

node .claude/skills/servers/scripts/servers.mjs register --port 5173 --purpose "menu page preview"

launchPlacedChrome() records its browsers itself; pass purpose to label them.

List. node .claude/skills/servers/scripts/servers.mjs prints port, pid, age, folder, purpose and flags; --here limits it to this repository, --json gives data. Flags:

  • gone: its worktree was deleted; the server outlived its checkout.
  • old: older than --old-hours (default 12).
  • unknown: a server with no record and no folder in its command line.
  • protected: it, or a process under it, is listed in ~/.claude/servers-protect.txt (a port or name per line); the script never closes it, since closing kills the whole tree.

When the user asks "which port is X", answer from the purpose and folder columns and give the URL. When asked to "turn on" a server that is not listed, start it from the right checkout and record it.

Close. Show the plan first, then close:

node .claude/skills/servers/scripts/servers.mjs close stale        # gone-worktree rows
node .claude/skills/servers/scripts/servers.mjs close old          # recorded rows and automation browsers, old or gone
node .claude/skills/servers/scripts/servers.mjs close 5173 --yes   # one port, with its recorded launcher; pid:<pid> for exactly one process

stale and old skip unknown and protected rows. Closing kills the whole process tree. Close what this session started without asking; anything else only after the user has seen the list and agreed.

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.