portman-init

portman-init is a command for coding agents 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

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

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.

agentmods
npx agentmods add commands/apideck-libraries/api-skills/portman-init
Clone the repo
git clone --depth 1 https://github.com/apideck-libraries/api-skills

Or install apideck, the plugin that ships this one along with the rest of its 55 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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00000 $0.00335
Opus 5 $0.00000 $0.00168
Sonnet 5 $0.00000 $0.00067
Haiku 4.5 $0.00000 $0.00034

Measured 4d ago against content hash 684f77d8b659, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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. 4d 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 (3 stars, last pushed 5d ago), 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.