Community写作与编辑github.com

pontjs/pontx-hub

Agent-ready public API discovery, OpenAPI documentation, Schema search, Playground, and TypeScript SDK portal

pontx-hub 是什么?

pontx-hub is a Claude Code agent skill that agent-ready public API discovery, OpenAPI documentation, Schema search, Playground, and TypeScript SDK portal.

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add pontjs/pontx-hub

Installed? Explore more 写作与编辑 skills: steipete/notion, langchain-ai/langchain, bytedance/podcast-generation · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Pontx Hub

Use pontx-hub as the authoritative interface to the curated API catalog. Keep API metadata out of long-lived context by searching and loading only the product, endpoint, or schema needed for the current task.

Workflow

  1. Search before choosing an API. Natural-language capability, request, and response questions are supported:

    pontx-hub search "<capability>" --json
    pontx-hub search "创建任务的入参" --locale zh --json
    pontx-hub search "返回 dueDate 的接口" --locale zh --json
    

    Narrow the result type when useful:

    pontx-hub search "<field-or-model>" --type schema --json
    
  2. Inspect the selected stable resource ID:

    pontx-hub show endpoint:<api>/<endpoint>
    pontx-hub show schema:<api>/<schema>
    
  3. For an endpoint, build and review the exact request without sending it:

    pontx-hub <api-collection> preview <api-name> --parameter value --body '<json>'
    pontx-hub <api-collection> preview <controller> <api-name> --parameter value --body '<json>'
    
  4. For GET or HEAD, call only when the user requested execution:

    pontx-hub <api-collection> call <api-name> --parameter value
    pontx-hub <api-collection> call <controller> <api-name> --parameter value
    
  5. For POST, PUT, PATCH, or DELETE, show the dry-run result and obtain explicit user confirmation. Then pass --yes without changing parameters:

    pontx-hub <api-collection> call <controller> <api-name> --parameter value --body '<json>' --yes
    
  6. Generate integration code after the request shape is verified:

    pontx-hub sdk <api>
    

Safety

  • Never infer approval for a write from a request to inspect, explain, or preview an API.
  • Never print, echo, log, or place credentials directly in command arguments.
  • Read credentials from the environment variables named by show.
  • Never call an arbitrary URL or an operation outside the Hub catalog.
  • Never bypass the separate preview step for a mutation.
  • Treat a changed parameter, body, server, or operation as a new request that requires another dry-run and confirmation.
  • Read references/auth-and-safety.md when configuring credentials, diagnosing authentication, or executing a mutation.

Output

Prefer --json when consuming CLI output programmatically. Preserve the CLI exit code and machine-readable error code when reporting failures. Use the result's match.mode and match.fields to explain whether product, parameter, request, response, schema, or property metadata produced the match. Use the operation's published @pontx/<api-slug> package when generating application code.

相关技能