public-api-tooling

仓库创建 2024年12月9日最近提交 6 小时前SkillHot 收录 5 小时前
▸ 精选理由

集中管理 OpenAPI 产物与 CLI,便于对外接口一致性。

▸ 风险提示

生成或发布工具可能影响对外接口,注意版本与凭证

这个 Skill 做什么

维护公共 API 客户端、OpenAPI 类型与 CLI 工具的开发工具链。

维护面向公开 API 的客户端、OpenAPI 生成类型、CLI 和 MCP 服务相关工具的开发链。修改 packages/public-apis、apps/cli、或与 OpenAPI 派生类型相关的代码时用,确保生成的类型、Zod 校验和命令行工具一致。特点是把 OpenAPI 输出、客户端实现和命令行接入当作一体来维护,减少接口不一致的问题。

▸ 展开 SKILL.md 英文原文

Work on ChatbotX public API clients, generated OpenAPI types, CLI commands, and MCP server tools. Use when changing packages/public-apis, apps/cli, apps/mcp-server, OpenAPI-derived tooling, workspace-token API behavior, or command-line access to ChatbotX APIs.

开发编程公共 APIOpenAPICLI 工具通用
524
Stars
116
Forks
21
仓库内 Skill
积累中
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/ChatbotXIO/ChatbotX/main/.agents/skills/public-api-tooling/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/ChatbotXIO/ChatbotX/main/.agents/skills/public-api-tooling/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Public API Tooling

Use this skill for the client/tooling surface around the public API. Pair with
`orpc-api` when adding or changing the builder endpoint that produces OpenAPI.

## Surfaces

```
packages/public-apis/
  src/generated/chatbotx.ts  OpenAPI-generated types
  src/apis/*.ts             Typed client methods + Zod input schemas
  src/lib/*                 API client, config, request helpers

apps/cli/
  src/index.ts              CLI entry
  src/openapi-loader.ts     OpenAPI tool discovery
  src/dynamic-executor.ts   Runtime endpoint execution
  src/commands/*            Static commands and config helpers

apps/mcp-server/
  src/openapi-loader.ts
  src/server/create-mcp-server.ts
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有