Logo von Decision Table

Decision Table

Community
jdm4pku
decision-table

Create decision tables and decision trees to specify complex business logic with multiple conditions and outcomes. Use when requirements involve combinatorial logic that is error-prone to express in prose.

Übersicht

Herausgeberjdm4pku
RepositoryRE-Skills
Skill-Namedecision-table
Sterne
27
Forks
1
Mitgelieferte Dateien
2
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • 2 mitgelieferte Dateien

    Skripte, Vorlagen und Referenzmaterial, die das Modell bei der Arbeit lesen kann. Die Dateien sind schreibgeschützt und werden niemals ausgeführt.

  • Open Source

    Von jdm4pku auf GitHub veröffentlicht. Prüfen Sie den Quellinhalt vor der Installation.

Installation

Installieren Sie den KI-Skill Decision Table in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner — liest SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/jdm4pku/RE-Skills/tree/main/skills/decision-table
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill anlegen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format lesen kann, kann diesen Skill nutzen — kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/jdm4pku/RE-Skills.git /tmp/RE-Skills
mkdir -p .claude/skills
cp -r /tmp/RE-Skills/skills/decision-table .claude/skills/decision-table
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Decision Table in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Decision Table automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Decision Table nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Keys.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

Purpose

Express complex business logic as decision tables or decision trees. Use this when multiple interacting conditions determine system behavior, and prose requirements would be ambiguous or incomplete.

Decision tables guarantee completeness. If you have N binary conditions, the table has 2^N columns. Every column gets a defined action. No gaps, no ambiguity.

Key Concepts

Decision Table Structure

Rule 1Rule 2Rule 3Rule 4
Conditions
Condition A?YYNN
Condition B?YNYN
Actions
Action XXX
Action YXX
  • Conditions (upper half): Input conditions that can be true or false
  • Actions (lower half): System behaviors triggered by condition combinations
  • Rules (columns): Each unique combination of conditions and its resulting actions
  • X marks which actions execute for each rule

Decision Table Types

Limited-entry: Conditions are binary (Y/N). Full coverage = 2^N rules.

Extended-entry: Conditions have multiple values (e.g., "Order total: <$50 / $50-$100 / >$100"). More compact but harder to verify completeness.

Decision Tree (Alternative Representation)

A decision tree shows the same logic as a branching diagram:

Order total?
├── < $50
│   └── Shipping: Standard ($5)
├── $50 - $100
│   ├── Member? 
│   │   ├── Yes -> Shipping: Free
│   │   └── No -> Shipping: Reduced ($3)
└── > $100
    └── Shipping: Free

When to use which:

  • Decision table -- When completeness checking is critical (regulated, safety). Tables make gaps visible.
  • Decision tree -- When the logic is hierarchical and some conditions only matter in certain branches. Trees are more readable for stakeholders.

Completeness Check

For a limited-entry decision table with N conditions:

  • Expected number of rules = 2^N
  • If you have fewer rules, either:
    • Some combinations are consolidated (marked with "--" meaning "don't care")
    • Some combinations are missing (a bug)

Anti-Patterns

  • The Missing Column -- Not accounting for all condition combinations. This is the exact bug decision tables prevent.
  • Ambiguous Conditions -- "Large order" instead of "Order total > $100." Conditions must be precise and binary.
  • Redundant Rules -- Two columns with identical conditions but different actions. This is a contradiction.

Application

Step 1: Identify the Decision

Look for requirements with language like:

  • "If X and Y, then..."
  • "Depending on..."
  • "When A but not B..."
  • Multiple nested if-then-else statements

Step 2: List All Conditions

Extract every condition that affects the outcome. Phrase each as a yes/no question for limited-entry tables.

Example conditions:

  • Is the order total >= $100?
  • Is the customer a member?
  • Is the shipping address domestic?

Step 3: List All Possible Actions

List every possible system action:

  • Apply free shipping
  • Apply standard shipping rate
  • Apply international surcharge
  • Send membership discount offer

Step 4: Build the Table

  1. Calculate rules: 2^N for N binary conditions (2^3 = 8 rules for 3 conditions)
  2. Fill in condition combinations systematically (alternate Y/N to ensure completeness)
  3. For each rule, mark which actions apply

Step 5: Simplify (Optional)

Look for conditions that do not matter for certain rules. If the action is the same regardless of Condition C's value, consolidate two rules into one with "--" for Condition C.

Step 6: Validate

  • Number of rules = 2^N (or fewer with documented consolidation)
  • Every rule has at least one action
  • No two rules have identical condition combinations (no duplicates)
  • No two rules have the same conditions but different actions (no contradictions)
  • Review with domain expert: "For this combination, is this the right action?"

Examples

See examples/sample.md for complete decision tables.

Mini example:

markdown
## Chemical Disposal Authorization

| | Rule 1 | Rule 2 | Rule 3 | Rule 4 |
|---|--------|--------|--------|--------|
| **Conditions** | | | | |
| Chemical is hazardous? | Y | Y | N | N |
| Quantity > 5 kg? | Y | N | Y | N |
| **Actions** | | | | |
| Require EHS officer approval | X | X | | |
| Require lab director approval | X | | | |
| Technician can self-authorize | | | X | X |
| Generate hazmat disposal form | X | X | | |
| Generate standard disposal form | | | X | X |

Common Pitfalls

Pitfall 1: Incomplete Table

Symptom: The table has 6 rules for 3 binary conditions (should be 8).

Consequence: Two combinations have no defined behavior. When they occur in production, the system does something unpredictable.

Fix: Always calculate 2^N and account for every combination. If two rules are identical, consolidate explicitly with "--" for the irrelevant condition.


Pitfall 2: Contradictory Rules

Symptom: Two rules have the same condition values but specify different actions.

Consequence: The requirement is contradictory. Developers pick one; it may be wrong.

Fix: Review contradictions with domain experts. One rule is wrong -- find out which.


Pitfall 3: Conditions Are Not Binary

Symptom: "Customer type: Gold / Silver / Bronze" in a limited-entry table.

Consequence: The table is incomplete because multi-valued conditions do not fit the Y/N format.

Fix: Either use extended-entry tables, or convert to binary: "Is customer Gold?", "Is customer Silver?" (with constraint that only one can be true).

References

Related Skills

  • skills/business-rule/SKILL.md -- Decision tables implement complex business rules
  • skills/srs-document/SKILL.md -- Decision tables appear in SRS Appendix B (Analysis Models)
  • skills/acceptance-criteria/SKILL.md -- Decision table rules map directly to acceptance criteria
  • skills/requirements-analysis-process/SKILL.md -- Decision table analysis is part of the analysis workflow

External Frameworks

  • Karl Wiegers & Joy Beatty, Software Requirements, Third Edition (2013) -- Chapter 12
  • Systematic Software Testing (2002) -- Decision table testing technique

Skill type: Component Dependencies: References skills/business-rule/SKILL.md Used by: skills/srs-document/SKILL.md, skills/requirements-analysis-process/SKILL.md

Mitgelieferte Dateien

Das Modell liest diese Dateien bei Bedarf, während der Skill geladen ist. Sie werden als lesbare Dateien bereitgestellt und niemals ausgeführt.

Häufig gestellte Fragen

Was macht der KI-Skill Decision Table?

Create decision tables and decision trees to specify complex business logic with multiple conditions and outcomes. Use when requirements involve combinatorial logic that is error-prone to express in prose.

Warum Decision Table in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Decision Table besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Decision Table in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/jdm4pku/RE-Skills/tree/main/skills/decision-table ein. TypingMind liest die Datei SKILL.md, bündelt die zugehörigen Dateien und installiert alles als Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Decision Table nutzen?

Jedes Modell, das Sie in TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Decision Table verwenden?

So viele Sie möchten. Solange ein Modell Skills unterstützt, können Sie Decision Table damit verwenden – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama und weitere – alles in TypingMind mit Ihren eigenen API-Schlüsseln.

Ist der KI-Skill Decision Table kostenlos?

Der Skill wird von jdm4pku auf GitHub veröffentlicht. Die Lizenzbedingungen finden Sie im Repository. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: eine Datei namens SKILL.md mit einem Namen und einer Beschreibung sowie allen Skripten, Vorlagen oder Referenzdateien, die das Modell möglicherweise benötigt. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und benötigen daher weder Server noch API-Schlüssel oder Laufzeitumgebung. Sie funktionieren mit jedem Modell.

Alle

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇