AgentSkillsCN

analyze-api

分析公共接口与 API 合约。在评审 API 设计,或验证接口有效性时,此技能将助你事半功倍。

SKILL.md
--- frontmatter
name: analyze-api
description: "Analyze public interfaces and API contracts. Use when reviewing API design or checking validation."

Analyze API

Audit interfaces using the interface-contract-analyzer agent.

What It Analyzes

  • HTTP/REST APIs
  • CLI interfaces
  • Library exports
  • Message contracts
  • Config schemas

When to Use

  • "Review API design"
  • "Check input validation"
  • "Find breaking changes"
  • "Document the API"

Output

code
### Interface Inventory
| Type | Name | Location |

### Input Validation Audit
| Interface | Parameter | Validation | Gap |

### Output Consistency
| Interface | Success | Error | Consistent |

### Breaking Change Risks
| Interface | Current | Risk | Migration |

### Recommendations
| Priority | Interface | Issue | Fix |

Agent

Use subagent_type: interface-contract-analyzer