一键导入
import-api-spec
Import and configure API specification (OpenAPI, GraphQL, AsyncAPI) for documentation
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Import and configure API specification (OpenAPI, GraphQL, AsyncAPI) for documentation
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Analyze documentation for duplicates, outdated content, and discrepancies with codebase
Expert-level documentation bootstrap using Diátaxis framework and audience-driven planning.
Quick health check for documentation issues. Verifies content against actual source files.
Commit documentation changes to git after reviewing and confirming.
Create new documentation pages interactively. Searches codebase to ensure accuracy.
Delete documentation pages interactively with confirmation.
| name | import-api-spec |
| description | Import and configure API specification (OpenAPI, GraphQL, AsyncAPI) for documentation |
When importing an API specification:
| File Pattern | Type | Version |
|---|---|---|
openapi.json/yaml | OpenAPI | 3.x |
swagger.json/yaml | Swagger | 2.0 |
schema.graphql | GraphQL | - |
asyncapi.json/yaml | AsyncAPI | 2.x/3.x |
*.proto | Protobuf/gRPC | - |
For OpenAPI/Swagger:
api-reference/
├── openapi.json # Cleaned/validated spec
├── introduction.mdx # API overview from info
├── authentication.mdx # From securitySchemes
├── errors.mdx # From error response schemas
└── rate-limiting.mdx # If x-rateLimit extension exists
For GraphQL:
api-reference/
├── schema.graphql # Schema file
├── introduction.mdx # Overview
├── authentication.mdx # Auth guide
├── queries.mdx # Query documentation
├── mutations.mdx # Mutation documentation
└── subscriptions.mdx # If subscriptions exist
Add appropriate tab configuration:
// OpenAPI
{
"tab": "API Reference",
"type": "openapi",
"path": "/api-reference",
"spec": "api-reference/openapi.json",
"groups": [
{
"group": "Overview",
"pages": [
"api-reference/introduction",
"api-reference/authentication"
]
}
]
}
// GraphQL
{
"tab": "GraphQL API",
"type": "graphql",
"path": "/graphql-api",
"schema": "api-reference/schema.graphql",
"endpoint": "https://api.example.com/graphql"
}
---
title: "API Introduction"
description: "Overview of the {API Name}"
---
{Description from spec info}
## Base URL
Production: `{server URL}`
## Authentication
{Summary of auth methods}
See [Authentication](/api-reference/authentication) for details.
---
title: "Authentication"
description: "How to authenticate API requests"
---
{Content based on securitySchemes}