AgentSkillsCN

phase-1-schema

定义术语与数据结构的技能。 涵盖领域术语、实体、关系,以及 Schema 设计。 当您启动新项目,或数据结构尚不清晰时,请主动使用此技能。 触发条件:schema、术语、数据模型、实体、 스키마、용어、데이터 모델、 スキーマ、用語、データモデル、 模式、术语、数据模型、 esquema、terminología、modelo de datos、 schéma、terminologie、 modèle de données、 Schema、Terminologie、Datenmodell、 schema、terminologia、modello dati、 请勿用于:仅涉及 UI 的改动或部署任务

SKILL.md
--- frontmatter
name: phase-1-schema
description: |
  Skill for defining terminology and data structures.
  Covers domain terminology, entities, relationships, and schema design.

  Use proactively when starting a new project or when data structures are unclear.

  Triggers: schema, terminology, data model, entity,
  스키마, 용어, 데이터 모델,
  スキーマ, 用語, データモデル,
  模式, 术语, 数据模型,
  esquema, terminología, modelo de datos,
  schéma, terminologie, modèle de données,
  Schema, Terminologie, Datenmodell,
  schema, terminologia, modello dati

  Do NOT use for: UI-only changes, deployment

Phase 1: Schema/Terminology Definition

Define the language and data structures of your project

Purpose

Create a shared vocabulary and data model before writing any code.

Deliverables

1. Terminology Glossary

markdown
## Terms

| Term | Definition | Example |
|------|------------|---------|
| User | A registered account | john@email.com |
| Order | A purchase transaction | ORD-123 |
| Product | An item for sale | Blue Widget |

2. Entity Definitions

typescript
interface User {
  id: string;
  email: string;
  name: string;
  createdAt: Date;
}

interface Order {
  id: string;
  userId: string;
  items: OrderItem[];
  total: number;
  status: 'pending' | 'paid' | 'shipped';
}

3. Relationship Diagram

code
User (1) ──── (N) Order (N) ──── (N) Product
              │
              └── (N) OrderItem

Output

Save to: docs/01-plan/schema.md

Next Phase

After completion: /phase-2-convention or /pdca design {feature}