Token导航 LogoToken导航

Agent Skill · 研究检索

agentic-api-transformer(agentic API transformer 搜索)

用于辅助 API 设计、接口文档、请求响应结构和服务集成说明。它适合让 Agent 梳理 endpoint、生成 OpenAPI 草稿、检查字段命名、整理错误码或辅助前后端联调。使用时需要确认真实业务语义、鉴权方式、分页和错误处理规则;涉及生成接口文档时,应避免凭空补字段,最好从现有代码、schema 或接口样例中提取事实。

agentic-api-transformer 是研究检索类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为需要联网;许可证为 MIT-0,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 19,181。

总安装 5,727周安装 246GitHub Stars 公开资料未说明下载 2,007核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.0.0

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:agentic-api-transformer(agentic API transformer 搜索)
来源仓库:https://github.com/tomsun28/agentic-api-transformer
安装命令:
openclaw skills install agentic-api-transformer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install agentic-api-transformer

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

agentic-api-transformer 用于辅助 API 设计、接口文档和请求响应结构梳理。适合让 Agent 生成 OpenAPI 草稿、检查字段命名或整理错误码。使用时需确认业务语义、鉴权方式、分页和错误处理规则,避免凭空补字段。通过 clawhub 安装,建议结合来源仓库和 README 核验具体用法。

适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install agentic-api-transformer;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

agentic-api-transformer 怎么安装?

在终端执行 openclaw skills install agentic-api-transformer。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

agentic-api-transformer 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

agentic-api-transformer 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

agentic-api-transformer 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

agentic-api-transformer 用的人多吗?

公开数据是累计安装 5,727 次,近一周安装 246 次,下载 2,007 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

agentic-api-transformer 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
agentic-api-transformer

agentic API transformer 搜索 · 本页

5,727—需要联网MIT-0通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
agentic-api-transformer
description
Transform existing API systems to follow the Agentic API Spec design with dynamic discovery and progressive disclosure
version
0.1.0
metadata
openclaw
homepage
https://github.com/tomsun28/agent-api-spec

Agentic API Transformer Skill

Purpose

This skill helps you transform existing API systems to follow the Agentic API Spec design. It enables AI agents to discover APIs dynamically at runtime instead of loading massive static documentation upfront.

Use this skill when:

  • Converting traditional REST APIs to agent-friendly formats
  • Adding relates fields to API responses for progressive disclosure
  • Generating /api/llms.txt entry points for API discovery
  • Validating API compliance with the Agentic API specification

Core concepts:

  • Dynamic API Discovery: APIs expose their capabilities through runtime responses
  • Relates Fields: Each response includes next-step actions the agent can take
  • Progressive Disclosure: Agents learn only what they need, when they need it
  • Error Code Standardization: Stable error codes enable predictable agent behavior

Workflow

When the user asks to transform their API to the Agentic API format:

1. Analyze Existing API

  • Parse OpenAPI/Swagger specifications if available
  • Identify CRUD operations and resource relationships
  • Map resource hierarchies and dependencies
  • Extract parameter schemas and response structures
  • Generate TypeChat schemas for type definitions

Tool: Use API analysis utilities to scan existing endpoints Available approaches:

  • OpenAPI/Swagger parser libraries
  • Manual endpoint documentation review
  • Automated API discovery tools

2. Transform API Responses

  • Add the three core fields: data, error, relates
  • Standardize error codes (e.g., TASK_LOCKED, INVALID_PARAM)
  • Generate relates arrays with next-step actions
  • Create middleware for automatic transformation
  • Preserve existing business logic without rewrites

Tool: Use response transformation utilities Available approaches:

  • Middleware wrappers for your framework
  • Response interceptors and decorators
  • Manual response formatting helpers

3. Generate API Entry Point

  • Create /api/llms.txt endpoint for API discovery
  • List top-level operations available to the current user
  • Include TypeChat schemas for each entry API
  • Add authentication requirements and usage guides
  • Organize APIs by functionality or resource type

Tool: Use entry point generators Available approaches:

  • Template-based file generators
  • Dynamic endpoint builders
  • Static file generators with metadata

4. Generate Framework Code

  • Detect the user's backend framework (Express, FastAPI, Spring Boot, Gin)
  • Generate middleware for response transformation
  • Create controller templates with proper structure
  • Provide route handler examples
  • Generate complete project structure if needed

Tool: Use code template systems Available approaches:

  • Framework-specific template engines
  • Code generators with scaffolding
  • Boilerplate plate generators

5. Validate Compliance

  • Check all responses include data, error, relates fields
  • Verify relates entries have method, path, desc, schema
  • Ensure error codes are stable and documented
  • Run automated test suites against transformed APIs
  • Generate compliance reports with actionable recommendations

Tool: Use API validation utilities Available approaches:

  • Compliance testing frameworks
  • Schema validation tools
  • Automated API testing suites

Output Format

After transformation, present:

Analysis Summary

  • Total endpoints analyzed
  • Resource relationships discovered
  • Required transformations identified

Generated Code

  • Middleware implementation for the detected framework
  • Example transformed response structure
  • /api/llms.txt content

Validation Results

  • Compliance status (passed/failed)
  • Issues found with line references
  • Recommendations for fixes

Next Steps

  • Installation commands for dependencies
  • Integration instructions
  • Testing commands to verify the transformation

Rules

Critical Requirements

  • Always preserve business logic: Never rewrite existing API logic, only wrap responses
  • Validate before deploying: Run compliance checks on all transformed endpoints
  • Use stable error codes: Error codes must be consistent and documented (e.g., TASK_LOCKED, not generic messages)
  • Generate complete relates: Every relates entry must include method, path, desc, and schema

Best Practices

  • Start with analysis: Always run API Analyzer before making changes
  • Incremental transformation: Transform key endpoints first, then expand
  • Framework detection: Auto-detect the user's framework from their codebase
  • Test thoroughly: Run validation suite before marking transformation complete
  • Document changes: Generate clear integration instructions for developers

Error Handling

  • If OpenAPI spec is missing, ask user to provide API documentation or endpoint list
  • If framework cannot be detected, ask user which framework they're using
  • If validation fails, provide specific fixes with code examples
  • If dependencies are missing, provide installation commands

Security

  • Never expose API keys or credentials in generated code
  • Warn if relates expose sensitive operations without auth checks
  • Flag any hardcoded secrets in validation reports

Examples

Example 1: Quick API Transformation

# Analyze existing API (using OpenAPI parser)
# Example: Use swagger-parser or similar library

# Transform responses (using middleware)
# Example: Create response wrapper in your framework

# Output format:
# {
#   "data": {"id": "task_123", "title": "Fix bug"},
#   "error": null,
#   "relates": [
#     {
#       "method": "PUT",
#       "path": "/tasks/{id}",
#       "desc": "Update task info",
#       "schema": "interface UpdateTask { title?: string; completed?: boolean; }"
#     }
#   ]
# }

Example 2: Generate Entry Point

# Task Manager API

Manage tasks and projects with AI-friendly endpoints.

## Entry APIs

### POST /tasks
desc: Create a new task with specified priority  
schema: interface CreateTask { title: string; priority: 'low' | 'medium' | 'high'; }

### GET /tasks
desc: List all tasks with pagination  
schema: interface ListTasks { page?: number; limit?: number; }

Generate this file using:

  • Template engines (Handlebars, Mustache)
  • Static site generators
  • Framework-specific routing
  • Manual file creation

Example 3: Framework-Specific Middleware

// Express.js middleware example
app.use((req, res, next) => {
  const originalSend = res.send;
  res.send = function(data) {
    const transformed = {
      data: data,
      error: null,
      relates: generateRelates(req.path, req.method)
    };
    originalSend.call(this, transformed);
  };
  next();
});
# FastAPI middleware example
from fastapi import Request, Response
import json

async def agentic_middleware(request: Request, call_next):
    response = await call_next(request)
    
    if response.headers.get("content-type", "").startswith("application/json"):
        data = json.loads(response.body)
        transformed = {
            "data": data,
            "error": None,
            "relates": generate_relates(request.url.path, request.method)
        }
        response.body = json.dumps(transformed).encode()
    
    return response

Similar patterns apply to Spring Boot, Go/Gin, and other frameworks.

Reference: Agentic API Response Structure

All transformed APIs must return this structure:

{
  "data": {},    // Business data (current state)
  "error": {     // Error control
    "code": "STABLE_ERROR_CODE",
    "message": "Human-readable message"
  },
  "relates": [   // Related actions (future options)
    {
      "method": "GET|POST|PUT|DELETE",
      "path": "/path/to/resource",
      "desc": "Brief description of the API's intent and parameters",
      "schema": "type Schema = { param: string; }"
    }
  ]
}

Reference: /api/llms.txt Format

# Project Name

Project description, usage guide, and authentication info.

## Entry APIs

### POST /tasks
desc: Create a new task with specified priority  
schema: interface CreateTask { title: string; priority: 'low' | 'medium' | 'high'; }

### GET /tasks
desc: List all tasks with pagination  
schema: interface ListTasks { page?: number; limit?: number; }

Troubleshooting

Missing Relates

Problem: Responses don't include next-step actions Fix: Ensure resource relationship mapping in analyzer, check relates generation logic

Invalid TypeChat Schemas

Problem: Schema validation fails Fix: Use TypeScript interface syntax, validate with TypeChat parser

Validation Errors

Problem: Compliance checks fail Fix: Review validation report, fix missing fields, ensure stable error codes

Advanced: Custom Relates Logic

For complex workflows with conditional next steps:

# For complex workflows with conditional next steps:
# Use business logic to determine relates based on:
# - Current resource state
# - User permissions/roles
# - Workflow stage
# - Contextual factors

# Example logic (pseudocode):
if current_state == 'pending' and user.can_approve:
    relates.append({
        'method': 'POST',
        'path': '/approvals',
        'desc': 'Approve pending request',
        'schema': 'type Approve = { request_id: string; }'
    })

Transform your APIs for the AI agent era!

平台分布

OpenClaw

78.33%
按下载量换算1,572

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills