Skip to content
eld-model-term-card logo

LDE Term Card作成

eld-model-term-card

LDE(Law-Driven Engineering)のTerm Card作成スキル。 ドメインの語彙(Vocabulary)を標準フォーマットで文書化し、名辞抽象を具体化する。 使用タイミング: (1) 新しいTermを追加する時、(2) 既存Termを更新する時、 (3) Vocabulary Catalogに新規エントリを追加する時、(4) Phase Dでカード化する時

SKILL.md

Full skill instructions

LDE Term Card作成

Term分類

種別定義例
Term(用語)ビジネス上の概念・名詞「利用可能在庫」「注文」
Type(型)技術的な型・構造OrderId, Quantity
Value(値制約)値の範囲・形式1 ≤ qty ≤ 100
Context(文脈)用語が使われる文脈「在庫管理」「注文処理」

分類時の注意

  • Term: 「言葉」ではなく「運用単位」として定義する
  • Type: Brand/​Newtype/​ADTで意味的区別を強制
  • Value: 境界での検証・正規化を必須化
  • Context: 同じ言葉でも文脈で意味が変わる場合を明確化

Term Cardテンプレート

## TERM-<domain>-<name> (ID)

### 基本情報
- Meaning: <定義(1〜2文)>
- Context: <使用される文脈・ドメイン>
- Synonyms: <同義語があれば列挙>
- Non-goals: <この用語が意味しないもの>

### 型・形状
- Type/​Shape: <技術的な型表現>
- Constraints: <値制約>
- Example Values: <具体例>

### 境界と接地
- IO Boundaries: <どこで入力/出力されるか>
- Validation: <境界での検証方法>
- Normalization: <正規化処理>
- Observable Fields: <ログ/テレメトリで観測するフィールド>

### 関連Law
- Related Laws (at least one for S0/​S1 Terms):
  - <関連するLaw ID>

相互拘束ルール

  • 重要Termは孤立禁止: S0/​S1 TermはRelated Lawsを最低1つ持つ
  • Related LawsはLink Mapと連動: /​lde-link-map で Term ↔ Law の関係を管理

作成手順

  1. Term同定: ドメインで使う語彙を特定
  2. 分類: Term / Type / Value / Context に分類
  3. Meaning記述: 定義を1〜2文で明確に記述
  4. Context定義: どの文脈で使われるかを明確化
  5. Type/​Shape定義: 技術的な型表現を決定
  6. Boundaries定義: IO境界での検証・正規化を設計
  7. Observable Fields設定: ログ/テレメトリで観測するフィールド
  8. Related Laws紐付け: 関連するLawを明示(S0/​S1は必須)
  9. Link Map更新: /​lde-link-map で Term ↔ Law の関係を記録

実例:利用可能在庫

## TERM-inventory-available

### 基本情報
- Meaning: 現時点で注文に割り当て可能な在庫数量
- Context: 在庫管理、注文処理
- Synonyms: 有効在庫、販売可能在庫
- Non-goals: 物理的な在庫数(予約済みを含む)

### 型・形状
- Type/​Shape: `AvailableStock = Brand<number, 'AvailableStock'>`
- Constraints: `available ≥ 0`, `available ≤ total`
- Example Values: 0, 50, 1000

### 境界と接地
- IO Boundaries:
  - Input: 在庫API、管理画面
  - Output: 注文API、商品詳細
- Validation: `z.number().nonnegative().max(MAX_STOCK)`
- Normalization: 小数点以下切り捨て
- Observable Fields: `inventory.available`, `inventory.available_diff`

### 関連Law
- Related Laws:
  - LAW-inv-available-balance(利用可能在庫の計算式)
  - LAW-pre-order-quantity(注文数量上限)

実例:注文数量

## TERM-order-quantity

### 基本情報
- Meaning: 1回の注文で指定される商品数量
- Context: 注文処理
- Synonyms: 購入数量、オーダー数
- Non-goals: カート内の合計数量

### 型・形状
- Type/​Shape: `OrderQuantity = Brand<number, 'OrderQuantity'>`
- Constraints: `1 ≤ qty ≤ 100`
- Example Values: 1, 5, 10

### 境界と接地
- IO Boundaries:
  - Input: 注文API、購入画面
  - Output: 確認画面、注文履歴
- Validation: `z.number().int().min(1).max(100)`
- Normalization: 整数化(Math.floor)
- Observable Fields: `order.quantity`, `order.total_items`

### 関連Law
- Related Laws:
  - LAW-pre-order-quantity(注文数量上限)
  - LAW-policy-bulk-order(大量注文ポリシー)

Vocabulary Catalog更新

Term Card作成後、Vocabulary Catalogに追加:

| ID | Meaning | Context | Type | Owner | Status |
|----|---------|---------|------|-------|--------|
| TERM-inventory-available | 利用可能在庫 | 在庫管理 | S1 | inventory-team | Active |
| TERM-order-quantity | 注文数量 | 注文処理 | S2 | order-team | Active |

よくある失敗パターン

名辞インフレ(Term/型だけ増える)

  • 症状: Term/型が増えるがRelated Lawsが空
  • 対策: S0/​S1 TermはRelated Lawsを必須化

型の過信

  • 症状: Brand/​Newtypeがあるが境界検証が薄い
  • 対策: IO BoundaryとValidationを必須化

品質チェック

チェック項目確認内容
意味明確性Meaningが1〜2文で明確か
境界定義IO Boundariesが具体的か
検証実装Validationが実装されているか
観測可能Observable Fieldsが設定されているか
Law紐付けS0/​S1 TermにRelated Lawsがあるか

品質優先原則(Superpowers統合)

核心原則

  1. Epistemic Humility: 推測を事実として扱わない。unknownと言う勇気を持つ
  2. Evidence First: 結論ではなく因果と証拠を中心にする
  3. Minimal Change: 最小単位で変更し、即時検証する
  4. Grounded Laws: Lawは検証可能・観測可能でなければならない
  5. Source of Truth: 真実は常に現在のコード。要約はインデックス

「速さより質」の実践

  • 要件の曖昧さによる手戻りを根本から排除
  • テストなし実装を許さない
  • 観測不能な変更を防ぐ

完了の定義

  • Evidence Ladder目標レベル達成
  • Issue Contractの物差し満足
  • Law/​Termが接地している(Grounding Map確認)
  • Link Mapに孤立がない
  • ロールバック可能な状態

停止条件

以下が発生したら即座に停止し、追加計測またはスコープ縮小:

  • 予測と現実の継続的乖離(想定外テスト失敗3回以上)
  • 観測不能な変更の増加(物差しで検証できない変更)
  • ロールバック線の崩壊(戻せない変更の発生)

More Other skills

Delegate independent tasks to specialized agents working concurrently with isolated context.

295.4K 206.3K
View

Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.

179.7K 100.1K
View

Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.

179.7K 89.5K
View

A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).

179.7K 76.1K
View

Fundamental design principles for writing maintainable, testable Python code.

40.2K 21.9K
View

Modern responsive layouts using container queries, fluid typography, CSS Grid, and mobile-first strategies.

40.2K 20K
View

Generate Playwright tests from scenarios using interactive browser exploration and validation.

39.7K 18.2K
View

Modern React state management with Redux Toolkit, Zustand, Jotai, and React Query for every state category.

40.2K 14.7K
View

GDPR-compliant data handling with consent management, data subject rights, and privacy controls.

40.2K 14.3K
View

Python error handling patterns including input validation, exception hierarchies, and partial failure handling. Use when implementing validation logic, designing exception strategies, handling batch processing failures, or building robust APIs.

40.2K 13.5K
View

Detailed multi-file refactor planning with safety checks and rollback guidance.

39.7K 13K
View