agentleFS
lingengyuanlingengyuan/my-skills/.claude/skills/portpilot-assistant/SKILL.md

portpilot-assistant

Skill9 starsChanged 2 months agoMITView on GitHub

Manage local development ports through the bundled PortPilot CLI. Use when users ask to find an available port, inspect a port owner, scan conflicts, diagnose port problems, free a port, or initialize and migrate PortPilot configuration.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 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.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    No global installation is required.

    line 14
  2. Very specific:

    Run read-only commands with --json.

    line 21
  3. Distinctive:

    Read references/intent-map.md for routing and references/safety-policy.md before terminating a process.

    line 42

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

PortPilot Assistant

Resolve the bundled CLI relative to this Skill:

node "<skill-dir>/assets/portpilot/bin/portpilot.js" --help

No global installation is required. Node.js 18 or newer is required. Port inspection supports Windows, macOS, and Linux using the operating system's native tools.

In a POSIX shell, scripts/run_portpilot.sh is an optional wrapper for the same bundled CLI. It does not install a package from the network.

Workflow

  1. Map the request to scan, who, pick, claim, doctor, free, init, or config.
  2. Run read-only commands with --json. Use pick when the requested development task needs a port; it creates a temporary lease, so report the expiry when handing it off.
  3. Try normal permissions first; request elevation only for an observed permission restriction on an already authorized operation.
  4. Before free, inspect the current port owner, PID, command, working directory and start time. If the user already authorized stopping this exact process or the task-owned development server, proceed with the intended signal. Ask only if the owner is unexpected, shared, unrelated, or the stopping scope is unclear; do not reconfirm unchanged authorization.
  5. Inspect configuration differences before init --force or config migrate; use claim only when consuming the lease is part of the authorized task.
  6. Return the conclusion first and the relevant command result second.

Commands

node "<cli>" pick --range 3000-3999 --count 1 --lease-ms 20000 --json
node "<cli>" claim --lease-id <id> --json
node "<cli>" scan --protocol both --json
node "<cli>" who 3000 --json
node "<cli>" doctor --json
node "<cli>" init --dry-run --json
node "<cli>" config migrate --json
node "<cli>" free 3000 --yes --json

For downstream automation that needs a compact summary, optionally pipe a JSON result through scripts/normalize_output.js.

Read references/intent-map.md for routing and references/safety-policy.md before terminating a process.

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.