Deductive Reasoningのロゴ

Deductive Reasoning

コミュニティ
THUYRan
deductive-reasoning

形式論理に基づいて、厳密な法的演繹推論を行います。ユーザーが「事件の論理を分析」「法的推論を検証」「三段論法を抽出」「事件の事実と法規定の関係を整理」「法的主張の妥当性を評価」と求めた場合に、このスキルを使います。構造化されていない法規範や事件の事実を、妥当性を検証・再現できる演繹的な論証の流れ(P-F-C)に変換するための、法的推論の形式論理フレームワークを提供します。

Add to TypingMind

概要

公開者THUYRan
リポジトリLegal-Skills-Chinese
スキル名deductive-reasoning
スター
876
フォーク
97
同梱ファイル
指示のみ
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    THUYRanがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Deductive Reasoning」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/THUYRan/Legal-Skills-Chinese/tree/main/English/skills/deductive-reasoning
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/THUYRan/Legal-Skills-Chinese.git /tmp/Legal-Skills-Chinese
mkdir -p .claude/skills
cp -r /tmp/Legal-Skills-Chinese/English/skills/deductive-reasoning .claude/skills/deductive-reasoning
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでDeductive Reasoningを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にDeductive Reasoningを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Deductive Reasoningは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Chinese source (authoritative): ../../skills/deductive-reasoning/SKILL.md

Deductive Reasoning

Description

Perform rigorous legal deductive reasoning based on formal logic. Use this skill when the user asks to “analyze case logic”, “verify legal reasoning”, “extract a syllogism”, “map the relationship between case facts and legal provisions”, or “assess the validity of a legal argument”. Provides a formal-logic framework for legal reasoning that turns unstructured legal norms and case facts into valid, testable, and reproducible deductive argument chains (P-F-C).

Instruction Steps

Step 1: Input

Read the case materials provided by the user and classify them into the following three initial states (if missing, temporarily record as empty):

  1. Major premise (Provision, P): Legal rules, including written law (statutes, regulations, rules) as well as case law, social norms, etc.
  2. Minor premise (Fact, f/F):
    • Natural minor premise (f): Natural events, acts, states, etc. (parties’ oral statements or factual narratives, e.g., “A asked B to transport goods”).
    • Legal minor premise (F): Events, acts, or states with legal significance (a lawyer’s or judge’s characterization of natural facts, e.g., “A and B formed a carriage contract relationship”).
  3. Conclusion (hypothesis) (Conclusion, C): Partial or final conclusions drawn in judgment documents (e.g., guilty/not guilty, breach/no breach). Partial conclusions include intermediate conclusions or hypothesis conclusions awaiting verification, such as issues summarized by the judge, or preliminary inferences by parties or counsel.

Example: 【Major premise】: empty 【Minor premise – legal facts】: empty 【Minor premise – natural facts】: Company Jia entrusted transport of a shipment of goods to consignee Company Yi. Company Jia’s legal representative contacted by phone and entrusted a certain motor transport company with the carriage. The motor transport company did not conclude a written carriage contract with Company Jia. During transport, a traffic accident caused by the driver’s negligence damaged the goods. Company Yi therefore could not receive the goods on time and suffered loss. 【Conclusion (hypothesis)】 Against whom should Company Yi claim compensation? Company Yi believes it can claim against the transport company.

Step 2: Reasoning

Strictly perform the following Parts A and B, and cycle alternately until all logic is closed and no further supplementation is needed:

A. Complete the logical structure of each part
  1. Major premise (P): Organize the logical structure; if there is no express provision, supply an implied major premise. Identify the type:
    • Categorical syllogism: Applicable to constitutive elements and conditions of establishment. Form: All acts satisfying feature $X$ have legal consequence $Y$.
    • Hypothetical syllogism: Applicable to “if … then …” rules.
      • Affirming the antecedent (modus ponens): $X \rightarrow Y$; the facts satisfy $X$, $\therefore Y$. (Most common)
      • Denying the consequent (modus tollens): $X \rightarrow Y$; $\neg Y$, $\therefore \neg X$. (Used for defenses and excluding legality)
  2. Minor premise (f/F):
    1. Clarify the nature, sequence, causation, and subordination of events.
    2. Clarify the legal relationships among subjects; check whether a legal relationship exists between each pair of subjects.
    3. Exhaust each relationship; mark missing or ambiguous legal relationships.
  3. Conclusion (C): Rank and filter multiple conclusions; identify and mark “intermediate conclusions”.
B. Link relationships and identify the middle term

Note: The middle term appears in both premises but not in the conclusion. It is the bridge connecting the syllogism, typically the “condition part” of a legal rule.

  1. Fact subsumption (f-F): Link from the natural minor premise to the legal minor premise; extract and state the middle term (e.g., the mediating concept from “failure to pay the balance” to “fundamental breach”).
  2. Finding the norm (F-P): Link from the legal minor premise to the relevant legal major premise; extract and state the middle term that triggers the provision.
  3. Deriving the conclusion (P-F-C): From the legal major premise and legal minor premise, reason to the conclusion; write it in a complete standard syllogism format; verify that the middle term has been correctly derived.

Step 3: Output

Each time this skill is invoked, output two parts strictly in the following format:

1. Explainable reasoning chain

Use a clear P-F-C structure diagram or hierarchical list to show how the conclusion traces step by step, through intermediate conclusions, legal minor premises, and natural minor premises, back and links to the corresponding major premises. Clearly mark the middle term used at each step.

Example:

  1. Fact subsumption
Natural facts (f: Raw Facts)Legal minor premise (F: Legal Facts)Characterization
f1: There is an arrangement for delivery of goods between Jia and YiF1: There is a contractual relationship between Jia and YiAn arrangement for delivery of goods usually implies a sales or supply contract
f2: Jia entrusted Bing by phone to transport the goodsF2: There is a carriage contract relationship between Jia and BingEntrustment by phone may constitute a valid oral carriage contract
f3: During transport, Bing’s driver carelessly opened the truck door, causing loss of goods; Yi failed to receive the goods on time and suffered lossF21: As carrier, Bing’s driver’s negligence caused damage to the goodsThe carrier is responsible for its staff’s negligence
f3 (same as above)Consequence of F11: Jia’s non-performance toward YiBreach caused by a third party
f5 (missing)❗ No statement whether a contract or agreement exists between Yi and BingF3 (missing): Whether a contractual relationship exists between Yi and BingNo contractual relationship stated; default is that none exists.
  1. Finding the norm
Legal minor premise FCorresponding legal norm PTriggering middle term (Middle Term)
F1: Contractual relationship between Jia and YiP1: Civil Code Art. 465(2): A lawfully established contract is legally binding only on the parties.Parties to the contract
F21: As carrier, Bing’s driver’s negligence caused damage to the goodsP3 (first sentence) Civil Code Art. 593: Breach due to a third party → liability to the counterparty.Party in breach due to a third party
F2: Carriage contract relationship between Jia and BingP3 (second sentence) Civil Code Art. 593: Disputes between a party and a third party → handled according to law or agreement.Disputes between a party and a third party
F21 (same as above)P2: Civil Code Art. 832: Carrier causes cargo damage → carrier bears liability for compensation.Carrier causes cargo damage
F3 (missing)❗: Whether Yi and Bing are parties to a contractP1: Civil Code Art. 465(2): same as aboveParties to the contract
  1. Reasoning chain C1: Yi recovers from Jia

C1‑1: Jia owes contractual duties to Yi P1: All parties to a contract → bound by the contract F1: Jia and Yi are parties to the contract C1‑1: Jia owes contractual duties to Yi

C1: Yi may recover from Jia P3‑1: Breach due to a third party → liability to the counterparty F21: Bing’s negligence caused Jia’s breach toward Yi C1: Yi may recover from Jia

C2′: Yi recovers from Bing

P1: All parties to a contract → bound by the contract F3 (missing): Yi and Bing are parties to the contract C2′: Yi may recover from Bing

C3: Jia recovers from Bing

C3‑1: Bing bears liability to Jia for compensation P2: Carrier causes cargo damage → carrier bears liability for compensation F21: Bing caused cargo damage C3‑1: Bing bears liability to Jia for compensation

C3: Jia may recover from Bing P3‑2: Disputes between a party and a third party → handled according to law or agreement F2: There is a carriage contract relationship between Jia and Bing C3: Jia may recover from Bing

2. Validity explanation report

Verify the form of the reasoning against the following standards and output a report:

  • Validity conclusion: Clearly state which parts of the reasoning chain are “valid” and which are “invalid”.
  • Fallacy explanation: If invalid, specifically identify which logical fallacy it is. When verifying validity, strictly check the following three common logical fallacies:
  1. Affirming the Consequent: - Erroneous form: $P \rightarrow Q$, $Q$, $\therefore P$.
    • Explanation: Treating “the result occurred” as “this must have been the cause”.
  2. Denying the Antecedent:
    • Erroneous form: $P \rightarrow Q$, $\neg P$, $\therefore \neg Q$.
    • Explanation: Treating “this cause is absent” as “the result will not occur”.
  3. Fallacy of Four Terms:
    • Erroneous form: All $A$ are $B$. All $C$ are $D$. $\therefore$ All $A$ are $D$.
    • Explanation: The middle term does not truly connect, or the concept was switched (the middle term must be distributed at least once).

Example:

ConclusionFormal validityMiddle-term statusFallacy typeExplanation
C1: Yi recovers from JiaValidMiddle term presentNoneReasoning chain complete
C2′: Yi recovers from BingInvalidMiddle term missingAffirming the consequentPremise forced in; reasoning structure broken
C3: Jia recovers from BingValidMiddle term presentNoneReasoning chain complete

Skill Boundaries & Troubleshooting Guide (Troubleshooting & Constraints)

Validity judgment depends only on form, not on content. Even if the major or minor premise is factually false, so long as the logical form is correct, the reasoning must still be judged “valid”.

よくある質問

AIスキル「Deductive Reasoning」では何ができますか?

形式論理に基づいて、厳密な法的演繹推論を行います。ユーザーが「事件の論理を分析」「法的推論を検証」「三段論法を抽出」「事件の事実と法規定の関係を整理」「法的主張の妥当性を評価」と求めた場合に、このスキルを使います。構造化されていない法規範や事件の事実を、妥当性を検証・再現できる演繹的な論証の流れ(P-F-C)に変換するための、法的推論の形式論理フレームワークを提供します。

TypingMindでDeductive Reasoningを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Deductive Reasoningはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにDeductive Reasoningをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/THUYRan/Legal-Skills-Chinese/tree/main/English/skills/deductive-reasoningを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Deductive Reasoningを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Deductive Reasoningで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもDeductive Reasoningを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Deductive Reasoning」は無料ですか?

THUYRanがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇