{
  "schemaVersion": "1.0",
  "item": {
    "slug": "openapi2cli",
    "name": "OpenAPI to CLI",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/awlevin/openapi2cli",
    "canonicalUrl": "https://clawhub.ai/awlevin/openapi2cli",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/openapi2cli",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=openapi2cli",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "slug": "openapi2cli",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-06T09:39:47.644Z",
      "expiresAt": "2026-05-13T09:39:47.644Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=openapi2cli",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=openapi2cli",
        "contentDisposition": "attachment; filename=\"openapi2cli-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "openapi2cli"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/openapi2cli"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/openapi2cli",
    "agentPageUrl": "https://openagent3.xyz/skills/openapi2cli/agent",
    "manifestUrl": "https://openagent3.xyz/skills/openapi2cli/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/openapi2cli/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "OpenAPI to CLI",
        "body": "Generate command-line tools from OpenAPI/Swagger specs. Perfect for AI agents that need to interact with APIs without writing curl commands."
      },
      {
        "title": "Quick Start",
        "body": "# generate a CLI from any OpenAPI spec\nuvx openapi2cli generate https://api.example.com/openapi.json --output my-api\n\n# use the generated CLI\npython my-api.py users list\npython my-api.py users get --id 123\npython my-api.py posts create --title \"Hello\" --body \"World\""
      },
      {
        "title": "Features",
        "body": "Auto-generates CLI from OpenAPI 3.x specs\nSupports auth: API keys, Bearer tokens, Basic auth\nRich help: --help on any command shows params\nJSON output: Structured responses for parsing\nDry-run mode: See the request without sending"
      },
      {
        "title": "Usage",
        "body": "# from URL\nuvx openapi2cli generate https://api.example.com/openapi.json -o my-cli\n\n# from local file  \nuvx openapi2cli generate ./spec.yaml -o my-cli\n\n# with base URL override\nuvx openapi2cli generate ./spec.json -o my-cli --base-url https://api.prod.com"
      },
      {
        "title": "Generated CLI",
        "body": "# set auth via env\nexport MY_CLI_API_KEY=\"sk-...\"\n\n# or via flag\npython my-cli.py --api-key \"sk-...\" users list\n\n# see available commands\npython my-cli.py --help\n\n# see command options\npython my-cli.py users create --help"
      },
      {
        "title": "Example: GitHub API",
        "body": "uvx openapi2cli generate https://raw.githubusercontent.com/github/rest-api-description/main/descriptions/api.github.com/api.github.com.json -o github-cli\n\npython github-cli.py repos list --owner octocat"
      },
      {
        "title": "Why?",
        "body": "AI agents work better with CLIs than raw HTTP:\n\nDiscoverable commands via --help\nTab completion friendly\nNo need to construct JSON payloads\nEasy to chain with pipes"
      },
      {
        "title": "Links",
        "body": "PyPI\nGitHub"
      }
    ],
    "body": "OpenAPI to CLI\n\nGenerate command-line tools from OpenAPI/Swagger specs. Perfect for AI agents that need to interact with APIs without writing curl commands.\n\nQuick Start\n# generate a CLI from any OpenAPI spec\nuvx openapi2cli generate https://api.example.com/openapi.json --output my-api\n\n# use the generated CLI\npython my-api.py users list\npython my-api.py users get --id 123\npython my-api.py posts create --title \"Hello\" --body \"World\"\n\nFeatures\nAuto-generates CLI from OpenAPI 3.x specs\nSupports auth: API keys, Bearer tokens, Basic auth\nRich help: --help on any command shows params\nJSON output: Structured responses for parsing\nDry-run mode: See the request without sending\nUsage\n# from URL\nuvx openapi2cli generate https://api.example.com/openapi.json -o my-cli\n\n# from local file  \nuvx openapi2cli generate ./spec.yaml -o my-cli\n\n# with base URL override\nuvx openapi2cli generate ./spec.json -o my-cli --base-url https://api.prod.com\n\nGenerated CLI\n# set auth via env\nexport MY_CLI_API_KEY=\"sk-...\"\n\n# or via flag\npython my-cli.py --api-key \"sk-...\" users list\n\n# see available commands\npython my-cli.py --help\n\n# see command options\npython my-cli.py users create --help\n\nExample: GitHub API\nuvx openapi2cli generate https://raw.githubusercontent.com/github/rest-api-description/main/descriptions/api.github.com/api.github.com.json -o github-cli\n\npython github-cli.py repos list --owner octocat\n\nWhy?\n\nAI agents work better with CLIs than raw HTTP:\n\nDiscoverable commands via --help\nTab completion friendly\nNo need to construct JSON payloads\nEasy to chain with pipes\nLinks\nPyPI\nGitHub"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/awlevin/openapi2cli",
    "publisherUrl": "https://clawhub.ai/awlevin/openapi2cli",
    "owner": "awlevin",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/openapi2cli",
    "downloadUrl": "https://openagent3.xyz/downloads/openapi2cli",
    "agentUrl": "https://openagent3.xyz/skills/openapi2cli/agent",
    "manifestUrl": "https://openagent3.xyz/skills/openapi2cli/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/openapi2cli/agent.md"
  }
}