Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计提醒

port-daddy-cliport daddy CLI 搜索

Agent Skill

port-daddy-cli 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

384

周安装

16

GitHub Stars

1

下载量

128
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:port-daddy-cli(port daddy CLI 搜索)
来源仓库:https://github.com/curiositech/port-daddy
仓库路径:skills/port-daddy-cli
安装命令:
npx skills add https://github.com/curiositech/port-daddy --skill port-daddy-cli
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/curiositech/port-daddy --skill port-daddy-cli

简介

port-daddy-cli 用于查找、检索和筛选相关信息,适合根据关键词或任务场景快速定位候选结果。

  • 它能帮助 Agent 组织信息线索或缩小搜索范围,使用时需明确查询目标和筛选条件。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需结合原始 README 确认具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Quick Start

  1. pd begin "what I'm working on" -- registers you + starts session
  2. pd note "progress update" -- log notes as you work
  3. pd done -- wraps up session + unregisters

MCP Progressive Disclosure

The MCP server uses tiered tool loading to keep context windows lean. By default, only 9 tools are exposed:

Essential (always loaded): begin_session, end_session_full, whoami, claim_port, release_port, add_note, acquire_lock, list_services, pd_discover

To access more tools: Call pd_discover with a category name (e.g. pd_discover({category: "dns"})) to see full schemas, then call those tools directly.

Categories: session-lifecycle, ports, sessions, notes, locks, messaging, agents, integration, dns, briefing, tunnels, system

Full mode: Pass --full to pd mcp or set PORT_DADDY_MCP_FULL=1 to load all 45 tools.

CLI to MCP Tool Mapping

CLI CommandMCP ToolTier
pd beginbegin_sessionEssential
pd doneend_session_fullEssential
pd whoamiwhoamiEssential
pd noteadd_noteEssential
pd claimclaim_portEssential
pd releaserelease_portEssential
pd lockacquire_lockEssential
pd findlist_servicesEssential
--pd_discoverEssential (meta)
pd salvagecheck_salvageStandard
pd session startstart_sessionStandard
pd session endend_sessionStandard
pd sessionslist_sessionsStandard
pd noteslist_notesStandard
pd session files addclaim_filesStandard
pd agent registerregister_agentStandard
pd agent heartbeatagent_heartbeatStandard
pd agentslist_agentsStandard
pd salvage claimclaim_salvageStandard
pd unlockrelease_lockStandard
pd lockslist_locksStandard
pd healthhealth_checkStandard
pd statusdaemon_statusStandard
pd pubpublish_messageAdvanced
pd sub (polling)get_messagesAdvanced
pd tunnel startstart_tunnelAdvanced
pd tunnel stopstop_tunnelAdvanced
pd tunnel listlist_tunnelsAdvanced
pd scanscan_projectAdvanced
pd logactivity_logAdvanced

Port Daddy -- The Authoritative Port Manager

Your ports. My rules. Zero conflicts.

Port Daddy eliminates the chaos of multi-agent development. No more port collisions. No more wondering what another agent touched. No more lost context between sessions.

The Compulsory Registration Pattern

Every agent session should start with registration. This unlocks resurrection:

# At session start - register yourself
pd agent register --agent claude-$(date +%s) --name "Feature Builder" --type claude-code --purpose "Implementing dark mode"

# Send heartbeats every 5 minutes (agents marked stale at 10min, dead at 20min)
pd agent heartbeat --agent <your-id>

# Check if another agent died mid-task (do this BEFORE starting new work)
pd salvage

Registration is the cost of entry to resurrection. If you die, another agent can pick up your work.

Quick Reference

# Ports
pd claim myapp:api:main          # Get a stable port (always same for this identity)
pd claim myapp -q                # Quiet mode — just the port number
pd find "myapp:*"                # Find all myapp services
pd release myapp:api:main        # Release when done

# Sessions (multi-agent coordination)
pd session start "Implementing dark mode" --files src/theme.ts src/components/ThemeProvider.tsx
pd note "Created ThemeProvider skeleton, CSS variables approach"
pd note "Blocked on design tokens — need @design-agent input" --type handoff
pd session done "Dark mode complete, tested in Chrome/Safari"

# File conflicts
pd session files add src/api/auth.ts    # Claim a file mid-session
pd sessions --files                      # See who has what files

# Locks (critical sections)
pd lock deployment --owner agent-1 --ttl 300
pd unlock deployment --owner agent-1

Core Philosophy

1. Identity Convention: project:stack:context

Every service gets a semantic identity. Port Daddy hashes this to a stable port.

IdentityPortUse Case
myapp:api:main9234Main API server
myapp:api:feature-auth9847Feature branch API
myapp:frontend9156Frontend dev server
myapp:db:test9523Test database

Same identity = same port, every time. No more "what port was that on?"

2. Sessions Are Mutable, Notes Are Immutable

Sessions have a lifecycle:

active → completed
active → abandoned

Notes are append-only. You can never edit or delete a note. They form the permanent record of what happened. If you wrote it, it happened.

Why? When debugging "what went wrong?", you need the full timeline. Edited notes lie.

3. File Claims Are Advisory

pd session files add src/auth.ts doesn't lock the file. It announces your intent. Other agents see the conflict and can coordinate.

Why? Hard locks cause deadlocks. Advisory claims cause conversations.

Workflows

Starting a Dev Server

# 1. Claim your port
PORT=$(pd claim myproject:api -q)

# 2. Start with that port
npm run dev -- --port $PORT

# Or export for the whole shell
eval $(pd claim myproject:api --export)
npm run dev  # Uses $PORT automatically

Multi-Agent Coordination

Agent A (starting work):

pd session start "Refactoring auth system" --files src/auth/*.ts
pd note "Splitting monolithic auth.ts into separate modules"

Agent B (checking before touching auth):

pd sessions --files
# Output:
# session-a1b2 (active, 12m) - Refactoring auth system
#   Files: src/auth/*.ts
#   Notes: 1

# Sees conflict, coordinates:
pd note "Need to touch src/auth/types.ts — coordinating with @agent-a"

Agent A (completing):

pd note "Auth refactor done: auth.ts → login.ts, session.ts, types.ts"
pd session done "Refactored auth into 3 modules, all tests passing"

Leaving Breadcrumbs

Notes support inline markup for cross-referencing:

pd note "Fixed CORS bug in #file:server.ts:142"
pd note "Handing off to @agent-frontend for UI integration" --type handoff
pd note "Committed: abc123 - CORS headers for API gateway" --type commit
pd note "WARNING: Don't touch auth until tests stabilized" --type warning

Critical Sections with Locks

# Only one agent can deploy at a time
pd lock deployment --owner $(hostname) --ttl 300

# Do the deployment...
npm run deploy

# Release
pd unlock deployment --owner agent-1

Locks auto-expire after TTL (default 60s). Use --wait to block until available:

pd lock deployment --owner agent-1 --wait --timeout 30000

Use pd with-lock to hold a lock for the duration of a command:

pd with-lock deployment -- npm run deploy

Integration Signals

Coordinate readiness between services with integration signals:

# Signal that your service is ready for integration
pd integration ready myapp:api --capabilities "auth,users,billing"

# Signal that your service needs another service
pd integration needs myapp:frontend --requires myapp:api

# Check integration status
pd integration status myapp

Direct Mode (No Daemon)

Core operations work without the daemon running:

# These work even if daemon is down (direct SQLite)
pd claim myapp -q
pd session start "Quick fix"
pd note "Fixed the thing"
pd session done

Tier 1 (no daemon): claim, release, find, lock, unlock, session, note, notes, status Tier 2 (daemon required): pub/sub, SSE, webhooks, orchestration (up/down)

Dashboard

Open http://localhost:9876 for a visual overview of:

  • Active services and their ports
  • Running sessions and file claims
  • Recent notes timeline
  • Lock status

When to Use Port Daddy

SituationAction
Starting any dev serverpd claim <identity> -q
Multi-file refactoringpd session start + claim files
Handing off to another agentpd note --type handoff
Critical section (deploy, migrate)pd lock
Debugging "what happened?"pd notes or pd sessions
Port conflictpd find "*" to see what's claimed

Anti-Patterns

Don't:

  • Use raw port numbers (--port 3000) — they collide
  • Edit files without checking pd sessions --files
  • Forget to end sessions — stale sessions confuse future agents
  • Skip notes — your future self (or another agent) needs context

Do:

  • Always claim ports through Port Daddy
  • Start sessions for non-trivial work
  • Leave notes liberally — they're cheap
  • End sessions when done (even if abandoning)

Worktree-Aware Development

Port Daddy tracks which git worktree you're in. Sessions automatically scope to the worktree:

# Main worktree
cd ~/coding/myproject
pd session start "Feature A"  # session-a1b2 in main worktree

# Chaos testing worktree
cd ~/coding/myproject-chaos
pd session start "Breaking things"  # session-c3d4 in chaos worktree

# See all sessions across worktrees
pd sessions --all-worktrees

Multi-Daemon Development

For developing Port Daddy itself:

# Production daemon (your daily driver)
pd claim port-daddy:daemon:prod      # → 9876

# Development daemon (testing changes)
cd ~/coding/port-daddy
PORT=$(pd claim port-daddy:daemon:dev -q)  # → 9877
npm run dev -- --port $PORT

# Chaos daemon (adversarial testing)
cd ~/coding/port-daddy-chaos
PORT=$(pd claim port-daddy:daemon:chaos -q)  # → 9878
npm run dev -- --port $PORT

Local DNS for Ports (Experimental)

Instead of remembering localhost:9234, use semantic names:

# Register a DNS name for your service
pd claim myapp:api --dns
# Now accessible at: http://myapp-api.local

# Works with any claimed service
pd claim frontend:react --dns
# → http://frontend-react.local

# List DNS registrations
pd dns list
# myapp-api.local      → 127.0.0.1:9234
# frontend-react.local → 127.0.0.1:9156

Requirements: macOS (uses mDNS/Bonjour), or Linux with avahi-daemon.

Agent Resurrection (Salvage)

When an agent dies mid-task, its work isn't lost. Port Daddy captures session state and notes:

# At session start, check if someone died with unfinished work
pd salvage

# Sample output:
# Dead agent: builder-1 (died 15 minutes ago)
#   Purpose: Building the payment API
#   Session: session-a1b2c3 (active, 3 notes)
#   Last note: "Finished Stripe integration, starting PayPal"
#   Files: src/payments/stripe.ts, src/payments/paypal.ts

# Claim the dead agent's session and continue their work
pd salvage --claim builder-1

# Clear salvage queue after you've reviewed it
pd salvage --clear

Always check salvage before starting new work. Someone might have died mid-task.

Changelog (Hierarchical Change Tracking)

Record meaningful changes with identity-based rollup:

# Record a change
pd changelog add myapp:api:auth "Added JWT refresh token endpoint" --type feature

# With detailed description
pd changelog add myapp:frontend "Fixed mobile nav overlap" --type fix \
  --description "Nav was overlapping content on iOS Safari viewport"

# List recent changes
pd changelog list

# Filter by identity (includes children)
pd changelog list --identity myapp:api

# Different formats
pd changelog list --format tree
pd changelog list --format keep-a-changelog

Changes roll up hierarchically:

  • myapp:api:auth appears under myapp:api which appears under myapp
  • Query myapp to see all changes across the entire project

Change Types

TypeWhen to use
featureNew functionality
fixBug fixes
refactorCode restructuring
docsDocumentation updates
choreMaintenance tasks
breakingBreaking changes

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude

34.95%
按下载量换算45

Codex

34.32%
按下载量换算44

Cursor

18%
按下载量换算23

Gemini CLI

9.94%
按下载量换算13

安全审计

Gen Agent Trust Hub

可疑

Socket

可疑

Snyk

可疑

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/curiositech/port-daddy --skill port-daddy-cli 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills