Agent Skills
› wibus-wee/see
› principle-type-system-discipline
principle-type-system-discipline
GitHub该技能指导在数据建模、API设计及外部数据摄入时,通过类型系统约束使非法状态难以表示,将外部原始数据解析为内部有意义类型,提升系统健壮性。
触发场景
数据建模
API设计
外部数据摄入
安装
npx skills add wibus-wee/see --skill principle-type-system-discipline -g -y
SKILL.md
Frontmatter
{
"name": "principle-type-system-discipline",
"description": "Make invalid states hard or impossible to represent and parse external primitives into meaningful internal types at the edge. Use at data modeling, API design, or external data ingestion points."
}
Type System Discipline
Trigger
At data modeling, API design, or external data ingestion points.
Rule
Make invalid states hard or impossible to represent and parse external primitives into meaningful internal types at the edge.
Application
- Name the concrete decision this principle changes.
- Apply the rule to that decision, not as a decorative citation.
- Prefer evidence from the current repository/runtime over generic preference.
- If the principle conflicts with an explicit user constraint, keep the constraint and state the tradeoff.
版本历史
- b47adae 当前 2026-11-26 00:11


