跳到技能内容
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
词映 AI导航
工具库Skills 技能
我的收藏
词映 AI导航
发现工具选型指南Skills 技能AI 快讯AI图片AI视频AI文档AI办公AI助手AI搜索AI编程AI音频AI设计AI智能体模型与开发AI学习模型评测AI提示词内容检测AI金融AI 3D扫描与识别其他工具跨境电商 AI
Skills directory/retailcrm/core-ui-extensions-examples/api-contract-guard

Codex Review Typed API Contracts for Order State Changes

Define mutation inputs, response types, errors, and persistence boundaries from the business capability.

中文

Install in Codex

Use a local API design or code, type definitions, and synthetic request examples.

  1. Copy the pinned `.codex/skills/api-contract-guard/` directory into `.agents/skills/api-contract-guard/` in the project.
  2. Have Codex state the endpoint's business capability, then list request, result, and failure types.

Example task

Design `moveOrderToProcessingStatus` for a local fixture using an order ID and target state. Define valid transition, invalid transition, and missing order outcomes.

What to check

The contract documents input, success, both errors, and when the change is persisted. Client and storage semantics remain traceable.

Original SKILL.md on GitHub · Updated 2026-11-13

Frequently asked question

Should an endpoint inherit its storage helper's name?

Name the API for the caller's business action. The storage helper can retain implementation terminology.

Related skills from this repository

  • Codex Audit CRM Domain Contracts and Status Ownership
  • Codex Separate Page, Pagination, and API Responsibilities
Browse Codex skills in the Chinese directory
词映 AI 导航Skills 技能
工具分类全部工具已本地化技能选型指南AI 快讯