legal-reasoning

Rigorous legal reasoning for any jurisdiction, shown as a semantic reasoning graph. Covers issue spotting, splitting norms into elements and exceptions, subsuming facts, interpretation methods, conflicts of norms (lex superior, specialis, posterior), precedent and analogy, factual and legal causation, burden and standard of proof, defences, deadlines, and administrative-law review (competence, form, grounds, subject, purpose, proportionality). Uses deontic and defeasible logic, argumentation theory and fuzzy degrees for vague legal terms, and returns the answer, a Mermaid graph of rules, facts, steps and counterarguments, and an account of how the conclusion was reached. Use it for any legal question, case or judgment analysis, contract or statute interpretation, legal memo, moot or exam answer, or whenever the user asks how the law applies to facts, even without asking for a graph. Gives legal information, not a substitute for a licensed lawyer.

Qu'est-ce que legal-reasoning ?

legal-reasoning is a Claude Code agent skill that rigorous legal reasoning for any jurisdiction, shown as a semantic reasoning graph. Covers issue spotting, splitting norms into elements and exceptions, subsuming facts, interpretation methods, conflicts of norms (lex superior, specialis, posterior), precedent and analogy, factual and legal causation, burden and standard of proof, defences, deadlines, and administrative-law review (competence, form, grounds, subject, purpose, proportionality). Uses deontic and defeasible logic, argumentation theory and fuzzy degrees for vague legal terms, and returns the answer, a Mermaid graph of rules, facts, steps and counterarguments, and an account of how the conclusion was reached. Use it for any legal question, case or judgment analysis, contract or statute interpretation, legal memo, moot or exam answer, or whenever the user asks how the law applies to facts, even without asking for a graph. Gives legal information, not a substitute for a licensed lawyer.

Compatible avec~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/selcuktopalidu/semantic-reasoning-skills/tree/HEAD/skills/legal-reasoning

Installed? Explore more Recherche et analyse de données skills: affaan-m/uspto-database, affaan-m/scholar-evaluation, affaan-m/literature-review · View all 6 →

Demander à votre IA préférée

Ouvre une nouvelle conversation avec cette compétence d'agent déjà préchargée.

Documentation

Legal reasoning

Analyse the question as a careful jurist would: find the governing norms, take each apart into its conditions, test the facts against every condition, weigh the rival readings and the other side's best case, and show the whole argument as a semantic graph. Details and checklists are in references/legal-methods.md.

Fix the frame first

Jurisdiction and legal system (civil, common, mixed, religious); area of law; the date that matters (the law in force when the facts happened may differ from today's); the procedural posture (advice, negotiation, first instance, appeal); and what decision is sought. If the jurisdiction is unknown and changes the answer, ask, or answer for the most likely one and say so.

Method

  1. Issues. List each legal question separately. Each gets its own branch and its own conclusion.
  2. Norms. Identify the applicable rules with exact citations (instrument, article, paragraph; case name, court, year). Check the current wording, amendments and date of effect with a search tool when you have one; otherwise mark the rule unverified. Record where each norm sits in the hierarchy.
  3. Elements. Rewrite every norm as conditions and consequence, with its exceptions: C₁ ∧ C₂ ∧ ¬E₁ → O(consequence). One fact node per condition shows which one is weak.
  4. Subsumption. Test the facts against each condition. Disputed facts carry a probability; open-textured terms (reasonable, gross negligence, good faith, public interest, material) carry a truth degree derived from a stated standard. Note who bears the burden of proof for each element and which standard of proof applies.
  5. Interpretation. Where the text is open, set out the readings as rival hypotheses and decide among them by grammatical, systematic, historical and teleological arguments (in common law also literal, golden and mischief rules and the canons). Say why the winning reading wins.
  6. Conflicts. Resolve clashing norms by lex superior, lex specialis and lex posterior, remembering that a later general rule does not by itself displace an earlier special one.
  7. Precedent and analogy. Extract the ratio decidendi, compare the material facts, and model relevant differences as undercutters (distinguishing).
  8. Causation, where liability turns on it: factual causation (but-for, NESS) and legal causation (foreseeability, adequacy, the protective purpose of the rule) (references/causal-reasoning.md).
  9. Defences and procedure. Limitation and other deadlines, jurisdiction and competence, standing, admissibility, exhaustion of remedies. These can decide a matter before the merits; put any deadline at the top of the answer.
  10. Conclude per issue, then overall, and name the facts or documents that would change the outcome.

Administrative law

Review an act of a public authority element by element. In Turkish and French-influenced systems the elements are competence (yetki), form and procedure (şekil), grounds (sebep), subject matter (konu) and purpose (maksat) — İYUK art. 2 lists them as the grounds for annulment. In other systems use the local grounds (for example illegality, irrationality, procedural impropriety) and the proportionality test: legitimate aim, suitability, necessity, and balance in the strict sense. A defect in any element is a separate attack on the act's legality.

Graph roles

Use role on nodes: issue, norm, element, exception, interpretation, precedent, defence, burden, deadline. Deontic content goes in formal (O, P, F). Each element-to-fact match is a step with method deduction.subsumption; applying a rule that admits exceptions is defeasible.default; analogy and precedent use defeasible.analogy and defeasible.precedent.

Rigor rules

  • One proposition per node. Resolve pronouns; normalise dates, units and currencies (references/nlp-extraction.md).
  • Name the method of every step and say in its why field why that rule or method is warranted here. Call a step deductive only when its rule is strict and all its premises are present (references/formal-logic.md).
  • Keep vagueness (μ) apart from uncertainty (p) (references/fuzzy-logic.md). Unknown is a gap, not 0.5.
  • Answer why and what-if questions causally, never from correlation alone (references/causal-reasoning.md).
  • Do arithmetic in code when you can; otherwise show every step so it can be checked.
  • Never invent a source, citation, statute, case, standard, dataset or figure. Mark what you could not verify as unverified and say so in the answer.
  • State the strongest objection to your own conclusion and answer it, or concede and weaken the conclusion.

Output

Give three parts, in this order and in the user's language.

  1. Answer. The conclusion in plain words, with a calibrated confidence and the conditions it rests on.
  2. Reasoning graph. A Mermaid flowchart TD of the semantic reasoning graph: only the nodes that carry the argument (usually 6–25), drawn with the conventions in references/graph-spec.md (read it before the first graph in a conversation). Show μ (fuzzy truth) and p (probability) where they matter. If you can run code, or the user wants machine-readable output, also write the JSON form and run python scripts/rgraph.py check graph.json and explain graph.json; fix every error before answering.
  3. How and why I reasoned. Explain the graph; do not argue a second time.
    • How: the facts and rules used and the method of each step.
    • Why: why each rule or method applies here (its warrant), why the strongest rival conclusion or objection loses (contrast), and which premises carry most of the weight (attribution).
    • What if: the smallest change in the facts or values that would flip the answer (counterfactual), and what is still unknown.

Build the graph before settling on the answer; if the graph does not support the answer, change the answer. Present the graph as an explicit, checkable reconstruction of the argument, not as a record of hidden internal computation. A quick factual question can get a short answer without a graph unless the user asks for one.

Boundaries

This is legal information and analysis, not legal advice. Say so once, plainly, when the user is deciding what to do, and recommend a licensed lawyer for anything with deadlines, money at stake, criminal exposure or court proceedings. Never invent statutes, articles, cases or quotations; an authority you could not verify is marked as such. Do not help anyone evade the law, fabricate evidence or intimidate a party.

Files

references/legal-methods.md (norm structure, interpretation, conflicts, proof, schemes, legality review, checklists); the shared method files references/graph-spec.md, formal-logic.md, fuzzy-logic.md, causal-reasoning.md, nlp-extraction.md; scripts/rgraph.py to check and render graph JSON.

Skills associés