portman

portman is a skill for Claude Code from jpoutrin/product-forge. It costs 41 tokens per session (1,336 once invoked), scanned A, original, MIT.

A guide to Portman, a tool that assigns different network ports to parallel local development environments.

In plain words
What is it for?
Use it to reserve ports for Docker Compose services such as databases, caches, and web servers, then export those ports to the environment.
Why use it?
It prevents services in separate Git worktrees from trying to use the same ports or requiring manual port changes.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /home/user/projects/myapp-feature-x.

Part of the devops-data plugin — 17 skills, 4 agents shipped together

Good fit Use it to reserve ports for Docker Compose services such as databases, caches, and web servers, then export those ports to the environment.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add jpoutrin/product-forge
Claude Code
/plugin install devops-data

Made for: Claude Code.

Or install devops-data, the plugin that ships this one along with the rest of its 17 skills, 4 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for portman

README.md
[![agentmods](https://agentmods.dev/badge/skills/jpoutrin/product-forge/portman/github.svg)](https://agentmods.dev/skills/jpoutrin/product-forge/portman)
Your own site
<a href="https://agentmods.dev/skills/jpoutrin/product-forge/portman"><img src="https://agentmods.dev/badge/skills/jpoutrin/product-forge/portman/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for portman

Your own site · 80×15
<a href="https://agentmods.dev/skills/jpoutrin/product-forge/portman"><img src="https://agentmods.dev/badge/skills/jpoutrin/product-forge/portman.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,336 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00041 $0.01336
Opus 5.5 $0.00016 $0.00534
Sonnet 5.5 $0.00008 $0.00267
Haiku 4.5 $0.00004 $0.00134

Measured 3mo ago against content hash 089c3f3b86f2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

portman scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/devops-data/skills/portman/SKILL.md · 245 lines

How it starts

The opening of the file, as written. The whole thing — 245 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Portman Skill

This skill provides patterns for managing port allocations in local development environments using portman. It enables running multiple worktrees of the same project in parallel without port conflicts.

Why Portman?

When working with git worktrees or multiple project instances:

  • Each worktree needs unique ports for services (postgres, redis, web server, etc.)
  • Manual port management is error-prone and tedious
  • Docker-compose files hardcode ports causing conflicts

Portman automatically assigns unique ports per worktree context.

Core Workflow

1. Initial Setup (Once per machine)

# Initialize portman and show shell integration
portman init

# For direnv users (recommended)
portman init --direnv

2. Setting Up a New Worktree

When cloning or creating a new worktree, book ports for all services:

# Auto-discover services from docker-compose.yml
portman book --auto

# Or book specific services
portman book postgres
portman book redis
portman book frontend --port 3000

3. Using Ports in Your Environment

# Export as environment variables (add to .envrc for direnv)
eval "$(portman export --auto)"

# Get a specific port
PGPORT=$(portman get postgres -q)

Command Reference

Command Description Example
portman book Reserve ports for services portman book --auto
portman get Get port for a service portman get postgres -q
portman export Export as env vars eval "$(portman export)"
portman status Show current allocations portman status --all
portman release Free port allocations portman release --all
portman context Show current context portman context
portman discover Preview auto-discovery portman discover
portman prune Clean orphaned allocations portman prune --dry-run

Integration with Docker Compose

Dynamic Port Configuration

Use environment variables in docker-compose.yml:

Read the full file on GitHub · 245 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 245 lines · 41 tokens per session scan A 089c3f3b86f2

Subscribe to this mod's changes

portman is a skill published in the GitHub repository jpoutrin/product-forge (16 stars, last pushed 9mo ago), licensed MIT. It adds 41 tokens to every session and 1,336 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

portman compared with skills from other repositories

portman next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
portmanjpoutrin/product-forgeSkill169mo agoMITA41Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill82ktodayMITA200Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15ktodayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill333k7d agoMITA21Claude Code