Logo Deductive Reasoning

Deductive Reasoning

Cộng đồng
THUYRan
deductive-reasoning

Thực hiện suy luận diễn dịch pháp lý chặt chẽ dựa trên logic hình thức. Dùng kỹ năng này khi bạn yêu cầu “phân tích logic vụ án”, “kiểm chứng lập luận pháp lý”, “rút ra tam đoạn luận”, “lập sơ đồ mối liên hệ giữa tình tiết vụ án và quy định pháp luật” hoặc “đánh giá tính hợp lệ của một lập luận pháp lý”. Kỹ năng cung cấp khuôn khổ logic hình thức để suy luận pháp lý, chuyển các quy phạm pháp luật và tình tiết vụ án chưa được cấu trúc thành chuỗi lập luận diễn dịch hợp lệ, có thể kiểm chứng và tái lập (P-F-C).

Add to TypingMind

Tổng quan

Nhà phát hànhTHUYRan
Kho mãLegal-Skills-Chinese
Tên kỹ năngdeductive-reasoning
Sao
876
Bản fork
97
Tệp đi kèm
Chỉ có hướng dẫn
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được THUYRan công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Deductive Reasoning trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/THUYRan/Legal-Skills-Chinese/tree/main/English/skills/deductive-reasoning
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân 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
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Deductive Reasoning trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Deductive Reasoning ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Deductive Reasoning với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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”.

Câu hỏi thường gặp

Kỹ năng AI Deductive Reasoning làm được gì?

Thực hiện suy luận diễn dịch pháp lý chặt chẽ dựa trên logic hình thức. Dùng kỹ năng này khi bạn yêu cầu “phân tích logic vụ án”, “kiểm chứng lập luận pháp lý”, “rút ra tam đoạn luận”, “lập sơ đồ mối liên hệ giữa tình tiết vụ án và quy định pháp luật” hoặc “đánh giá tính hợp lệ của một lập luận pháp lý”. Kỹ năng cung cấp khuôn khổ logic hình thức để suy luận pháp lý, chuyển các quy phạm pháp luật và tình tiết vụ án chưa được cấu trúc thành chuỗi lập luận diễn dịch hợp lệ, có thể kiểm chứng và tái lập (P-F-C).

Vì sao nên dùng Deductive Reasoning trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Deductive Reasoning là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Deductive Reasoning trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/THUYRan/Legal-Skills-Chinese/tree/main/English/skills/deductive-reasoning. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Deductive Reasoning?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Deductive Reasoning với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Deductive Reasoning với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Deductive Reasoning có miễn phí không?

Kỹ năng này được THUYRan phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇