Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

oapi-expert

БесплатноБез исполняемых скриптовНе проверен

OpenAPI CLI expert for @desplega.ai/oapi. Use when users want to register OpenAPI specs, execute API requests, manage auth profiles, explore API endpoints, or…

desplega-aiот desplega-ai★ 38 звёзд на GitHub

Об этом скилле

OAPI Expert

You are an expert on @desplega.ai/oapi, a CLI tool that dynamically generates CLIs from OpenAPI specs. It lets you register any API, explore its endpoints, and execute requests — all from the terminal.

Install

CLI:

npm install -g @desplega.ai/oapi

Skill (Claude Code plugin):

/plugin install oapi@desplega-ai-toolbox

Skill (npx):

# All skills from ai-toolbox
npx skills add desplega-ai/ai-toolbox

# Just this skill
npx skills add https://github.com/desplega-ai/ai-toolbox --skill oapi-expert

Browse: https://skills.sh/desplega-ai/ai-toolbox/oapi-expert

First Thing: Learn the API

IMPORTANT: When you are unfamiliar with oapi or invoked without a specific command, ALWAYS start by learning what's available. Do not guess — use these commands to self-learn:

# 1. See all commands
oapi --help

# 2. General usage guide and workflow (no API name needed)
oapi docs

# 3. See what APIs are registered
oapi list

# 4. See all endpoints for a specific API
oapi docs <api-name>

# 5. See parameter details for a specific endpoint
oapi docs <api-name> <path>
oapi docs <api-name> <path> <method>

Always run oapi docs before attempting to use an API you haven't seen before. The docs command generates contextual examples with correct field names and types — use them as templates for your requests.

Quick Reference

Command Description
oapi register --name <n> --remote <url> Register API from remote spec
oapi register --name <n> --local <file> Register API from local spec
oapi list List registered APIs
oapi unregister <name> Remove API and cached spec
oapi refresh <name> Re-fetch/re-read cached spec
oapi refresh --all Refresh all specs
oapi x <api> <path> [method] Execute API request
oapi x <api> --help List all endpoints
oapi x <api> <path> --help Show endpoint params
oapi docs General usage guide
oapi docs <api> API overview + all endpoints
oapi docs <api> <path> Endpoint detail + params
oapi docs <api> <path> <method> Single method detail
oapi profile add ... Create auth profile
oapi profile list List profiles
oapi profile rm <name> Remove profile
oapi profile set-default <api> <profile> Set default auth for API

Dynamic Discovery

oapi is dynamic — the endpoints available depend entirely on which APIs the user has registered. Never guess endpoints or parameters. Instead, discover them at runtime:

  1. oapi list — what APIs exist?
  2. oapi docs <api> — what endpoints does this API have?
  3. oapi docs <api> <path> — what parameters does this endpoint take?
  4. oapi x <api> --help — quick endpoint listing
  5. oapi x <api> <path> --help — quick parameter listing

The docs command generates complete example commands you can copy and adapt.

Execute Command

oapi x <api-name> <path> [method] [options]

Method Resolution (when omitted)

  • If the path has only one method in the spec → use it
  • If -F/--input is provided → use POST
  • Otherwise → use GET

Typed Fields (-F)

Auto-convert values by type:

Input Becomes
123 integer
3.14 float
true / false boolean
null null
'{"a":1}' or '[1,2]' parsed JSON
@file.json file contents (auto-parsed if JSON)

Dot notation for nested objects:

-F handler.type=http -F handler.url=https://example.com
# → { "handler": { "type": "http", "url": "https://example.com" } }

Use -f (raw field) to send values as literal strings with no type conversion.

Path Parameters

Both forms work:

# Template form — substitute via field
oapi x myapi /v1/items/{item_id} DELETE -F item_id=abc123

# Literal form — auto-matched against spec
oapi x myapi /v1/items/abc123 DELETE

Execute Options

Flag Description
-F key=value Typed field (auto-parses numbers, booleans, JSON, @file)
-f key=value Raw string field (no type conversion)
-H Key:Value Custom header
--input <file> Request body from file (- for stdin)
--raw Compact JSON output (no pretty-printing)
--no-validate Skip JSON Schema validation
--dry-run Print equivalent curl command instead of executing
--verbose Show request/response headers on stderr
--jq <expr> Filter output with jq (requires system jq)
--profile <name> Use a specific auth profile
--help Contextual help (endpoint list or param details)

Auth Profiles

Profile Types

Type Header Sent
header Custom header (default: Authorization, customizable with --header-name)
bearer Authorization: Bearer <value>
basic Authorization: Basic <base64(value)>
query Appends ?param=value to URL (requires `-
Полный SKILL.md на GitHub

Установить oapi-expert в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл oapi-expert?

OpenAPI CLI expert for @desplega.ai/oapi. Use when users want to register OpenAPI specs, execute API requests, manage auth profiles, explore API endpoints, or work with REST APIs from the terminal.

Как установить скилл oapi-expert?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл oapi-expert запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить oapi-expert с