deductive-reasoning
FreeNo executable scriptsNot checkedPerform rigorous legal deductive reasoning based on formal logic. Use this skill when the user asks to "analyze case logic", "verify legal reasoning"…
by THUYRan★ 1,015 GitHub starsAbout this skill
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):
- Major premise (Provision, P): Legal rules, including written law (statutes, regulations, rules) as well as case law, social norms, etc.
- 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”).
- 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
- 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)
- Minor premise (f/F):
- Clarify the nature, sequence, causation, and subordination of events.
- Clarify the legal relationships among subjects; check whether a legal relationship exists between each pair of subjects.
- Exhaust each relationship; mark missing or ambiguous legal relationships.
- 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.
- 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”).
- 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.
- 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:
- Fact subsumption
| Natural facts (f: Raw Facts)
Install deductive-reasoning in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the deductive-reasoning skill do?
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).
How do I install the deductive-reasoning skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the deductive-reasoning skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
theme-factory
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…
by Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
by Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropic