AGENT SKILL

project-api-validation

Apply this repository's webhook request-validation and error-code contract when API acceptance or rejection behavior changes.

License 许可
MIT
最近更新
2026-09-10
Stars
★ 34
Forks
3

01 前言 Front Matter

name
project-api-validation
metadata
{ "job": "api-error-code-maintenance" }
description
Apply this repository's webhook request-validation and error-code contract when API acceptance or rejection behavior changes.

03 SKILL.md 正文

Project API validation

Use this procedure for request-validation changes:

  1. Inspect the target webhook handler and its unit tests.
  2. Preserve absent, empty, and already accepted inputs.
  3. Preserve errors.problem(field, code) and reject invalid input before any registry mutation.
  4. Add every new error code to contracts/error-codes.json; keep it sorted and unique.
  5. Run python3 -m unittest -q.
  6. Run python3 tools/verify_error_catalog.py.

Do not use this Skill for internal algorithms or release documentation.

04 同仓库更多 Skills