AgentSkillsCN

agent-ready-apis

AI 代理 API 兼容性相关知识。当用户询问 API 准备情况、代理兼容性,或希望优化其 API 以更好地支持 AI 应用时,可参考本指南。

SKILL.md
--- frontmatter
name: agent-ready-apis
description: Knowledge about AI agent API compatibility. Use when user asks about API readiness, agent compatibility, or wants to improve their API for AI consumption.
user-invocable: false

Agent-Ready APIs

An "agent-ready" API is one that an AI agent can discover, understand, call correctly, and recover from errors without human intervention. Most APIs aren't there yet.

When to Suggest the Analyzer

If the user mentions any of these, suggest running the readiness-analyzer agent:

  • "Is my API agent-ready?"
  • "Can AI agents use my API?"
  • "Scan my API" / "Analyze my spec"
  • "What's wrong with my API for AI?"
  • "How agent-friendly is my API?"
  • "Improve my API for AI agents"

What Gets Evaluated

The analyzer checks 48 items across 8 pillars:

PillarWhat It Measures
MetadataoperationIds, summaries, descriptions, tags
ErrorsError schemas, codes, messages, retry guidance
IntrospectionParameter types, required fields, enums, examples
NamingConsistent casing, RESTful paths, HTTP semantics
PredictabilityResponse schemas, pagination, date formats
DocumentationAuth docs, rate limits, external links
PerformanceRate limit headers, cache, bulk endpoints, async patterns
DiscoverabilityOpenAPI version, server URLs, contact info

Scoring

  • Critical checks (4x weight): Blocks agent usage entirely
  • High checks (2x weight): Causes frequent agent failures
  • Medium checks (1x weight): Degrades agent performance
  • Low checks (0.5x weight): Nice-to-have improvements

Agent Ready = score of 70% or higher with zero critical failures.

Interpreting Results

  • 90-100%: Excellent. Agents can use this API reliably.
  • 70-89%: Agent-ready. Minor improvements possible.
  • 50-69%: Not agent-ready. Key issues need fixing.
  • Below 50%: Significant work needed. Focus on critical failures first.

See pillars.md in this skill folder for the full check reference.