AGENT SKILL
review-schema-first
Review schema as a single source of truth (Schema-first)
- License 许可
- MIT
- 所属仓库
- yida29/archrip
- 最近更新
- 2026-11-12
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- review-schema-first
- description
- Review schema as a single source of truth (Schema-first)
- argument-hint
- [schema name | scope: git diff | path | notes]
- user-invocable
- true
02 资源文件 2
- 参考文档references/api-reference.md6.8 KB
- 参考文档references/troubleshooting.md6.6 KB
03 SKILL.md 正文
Schema-first review — single source of truth & contracts
Audit whether the project has one authoritative schema, and whether all producers/consumers conform.
Scope
Use $ARGUMENTS to select the schema (default: the main JSON/data contract) and its producers/consumers.
Checklist
- Where is the authoritative schema? (JSON Schema / OpenAPI / protobuf / TS types)
- Is it duplicated as hand-written TS interfaces elsewhere?
- Do validators enforce the same rules as the schema?
- Are there multiple variants (input vs processed output)? If yes, are they explicitly versioned?
- Do templates/examples/docs match the schema?
- Is the schema reference URL pinned (tagged) vs
main?
Output format
- SSoT map: schema file(s) + all producers/consumers
- Divergences (schema vs code vs docs), with file paths
- Minimum path to Schema-first
- e.g. split input/output schemas, generate types, use a single validator
$ARGUMENTS
04 同仓库更多 Skills
review-ux-diagnostics
Review UX and diagnostics (errors, hints, verbose mode)
★ 1
review-typescript-strict
TypeScript Strict Modeガイドラインを適用してコードレビュー・修正を行う。
★ 1
review-test-strategy
Review test strategy and regression resistance
★ 1
review-supply-chain
Review supply-chain and code-execution risks
★ 1
review-srp
Review codebase for SRP (Single Responsibility) and boundaries
★ 1
review-error-handling
Review error handling consistency and debuggability
★ 1