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.
In this repository15 other files it gives its agents.
- beautiful-mermaidSkill
- brief-outputSkill
- insight-collectorSkill
- json-canvasSkill
- md2wechatSkill
- note-creatorSkill
- obsidian-basesSkill
- obsidian-markdownSkill
- publication-ready-docs-jevSkill
- publication-ready-docsSkill
- readme-maintainerSkill
- sync-to-githubSkill
- tech-articleSkill
- wechat2mdSkill
- wechat-archiverSkill
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
- Very specific: line 14
No global installation is required.
- Very specific: line 21
Run read-only commands with --json.
- Distinctive: line 42
Read references/intent-map.md for routing and references/safety-policy.md before terminating a process.
≈ “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.
Files
PortPilot Assistant
Resolve the bundled CLI relative to this Skill:
node "<skill-dir>/assets/portpilot/bin/portpilot.js" --helpNo 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
- Map the request to
scan,who,pick,claim,doctor,free,init, orconfig. - Run read-only commands with
--json. Usepickwhen the requested development task needs a port; it creates a temporary lease, so report the expiry when handing it off. - Try normal permissions first; request elevation only for an observed permission restriction on an already authorized operation.
- 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. - Inspect configuration differences before
init --forceorconfig migrate; useclaimonly when consuming the lease is part of the authorized task. - 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 --jsonFor 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.
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
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.

