portman-init

portman-init is a command for Claude Code from apideck-libraries/api-skills. It costs 0 tokens per session (335 once invoked), scanned A, original, Apache-2.0.

A setup command for Portman, a tool that checks whether an API follows its documented contract. It creates configuration for testing an Apideck unified API, which provides one interface to several business services.

In plain words
What is it for?
Use it to initialize tests for an Apideck CRM, accounting, HR, file-storage, or recruiting API, including create, read, update, and delete checks.
Why use it?
It removes the need to manually prepare contract tests, authentication settings, response checks, and resource-lifecycle tests.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the apideck plugin — 181 skills, 3 commands shipped together

Good fit Use it to initialize tests for an Apideck CRM, accounting, HR, file-storage, or recruiting API, including create, read, update, and delete checks.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/apideck-libraries/api-skills/portman-init
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/apideck-libraries/api-skills

Made for: Claude Code.

Or install apideck, the plugin that ships this one along with the rest of its 181 skills, 3 commands.

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-init

README.md
[![agentmods](https://agentmods.dev/badge/commands/apideck-libraries/api-skills/portman-init/github.svg)](https://agentmods.dev/commands/apideck-libraries/api-skills/portman-init)
Your own site
<a href="https://agentmods.dev/commands/apideck-libraries/api-skills/portman-init"><img src="https://agentmods.dev/badge/commands/apideck-libraries/api-skills/portman-init/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-init

Your own site · 80×15
<a href="https://agentmods.dev/commands/apideck-libraries/api-skills/portman-init"><img src="https://agentmods.dev/badge/commands/apideck-libraries/api-skills/portman-init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 335 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.00000 $0.00335
Opus 5.5 $0.00000 $0.00134
Sonnet 5.5 $0.00000 $0.00067
Haiku 4.5 $0.00000 $0.00034

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

Security

Grade A, and why

portman-init 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.

providers/claude/plugin/commands/portman-init.md · 22 lines

What it actually says

Initialize Portman for Apideck API Testing

Generate a complete Portman configuration for testing an Apideck unified API:

  1. Accept the API name from arguments (e.g., crm, accounting, hris, file-storage, ats)
  2. Create a portman-config.json with:
    • Contract tests enabled for all operations (status, content-type, JSON body, schema validation)
    • Response time tests at 500ms threshold
    • Variable chaining: capture data.id from create operations for use in get/update/delete
    • Security overwrites for Bearer token from {{bearerToken}} env var
    • Header overwrites for x-apideck-app-id, x-apideck-consumer-id, x-apideck-service-id
    • A variation test for 401 Unauthorized with an invalid token
    • An integration test for the primary resource lifecycle (create → get → update → delete)
  3. Create a .env file template with PORTMAN_BEARER_TOKEN, PORTMAN_APP_ID, PORTMAN_CONSUMER_ID, PORTMAN_SERVICE_ID
  4. Create a portman-cli-options.json pointing to the Apideck spec URL (https://specs.apideck.com/{api}.yml)
  5. Show the command to run: portman --cliOptionsFile ./portman-cli-options.json
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 · 22 lines · 0 tokens per session scan A 684f77d8b659

Subscribe to this mod's changes

portman-init is a command published in the GitHub repository apideck-libraries/api-skills (5 stars, last pushed yesterday), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 335 tokens. 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-31.

Related

portman-init compared with commands from other repositories

portman-init next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
portman-initapideck-libraries/api-skillsCommand5yesterdayApache-2.0A0Claude Code
fec-doc-syncbovinphang/frontend-craftCommand2414d agoMITA30Claude Code
dotnet-critiquemathisk2095/jko-claude-pluginsCommand31mo agoMITA44Claude Code
saved-objectch-bas/kibana-plugin-helperCommand39mo agoMITA24Claude Code
checklistgithub/spec-kitCommand153ktodayMITA13Claude Code
clarifygithub/spec-kitCommand153ktodayMITA27Claude Code
analyzegithub/spec-kitCommand153ktodayMITA26Claude Code