Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

counterfactual-reasoning

БесплатноБез исполняемых скриптовНе проверен

Trigger this skill when you need to assess how legal outcomes would differ if a given fact, act, or condition did not exist or were altered. Typical trigger…

THUYRanот THUYRan★ 1 015 звёзд на GitHub

Об этом скилле

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

Counterfactual Reasoning(反事实推理)

I. Overview Table

Item Content
Capability Name Counterfactual Reasoning
English Name Counterfactual Reasoning
Capability Type Atomic legal reasoning capability
Core Question "If X had not occurred / had been altered, would outcome Y still have arisen?"
Classic Formulations But-for Test; Conditio Sine Qua Non (indispensable condition)
Applicable Domains Tort law, contract law, criminal law, administrative law, insurance law, competition law, constitutional review
Input The actual chain of facts + the target variable to be hypothetically altered
Output Projection of the counterfactual world + comparative analysis versus the actual world + legal conclusion
Difficulty Level ★★★★☆ (advanced reasoning; requires tight logical control)
Risk Level High—errors in counterfactual reasoning may directly cause erroneous causation findings

II. Legal Disclaimer

Important notice: Counterfactual reasoning is a tool of legal analysis. Its conclusions depend on accurate mastery of the facts and correct application of legal rules. This skill file provides a methodological framework and does not constitute legal advice on any specific case. Counterfactual reasoning inherently involves hypothetical judgments about events that did not occur and therefore carries intrinsic uncertainty. In practice, it should be combined with rules of evidence, standards of proof, and the case law of the relevant jurisdiction for an integrated judgment.

III. Core Concepts

3.1 The Nature of Counterfactual Reasoning

Counterfactual reasoning is a hypothetical method of causal analysis. Its core logical structure is:

Actual world: A occurs → B occurs
Counterfactual world: Assume A does not occur → Does B still occur?

If B no longer occurs → A is a cause of B (A has causal contribution to B)
If B still occurs → A is not a cause of B (A has no causal contribution to B)

3.2 Key Term Definitions

Term Definition Example
Target Variable The fact/act/condition that is assumed to be altered or removed "The defendant's speeding"
Outcome Variable The legal consequence whose change (or lack of change) is to be observed "The plaintiff's personal injury"
Counterfactual World The hypothetical situation after the target variable is altered "A world in which the defendant drove at a lawful speed"
Actual World The factual state of affairs that actually occurred "The defendant sped and injured the plaintiff"
Background Conditions Other facts held constant in the counterfactual analysis "Weather, road conditions, and the plaintiff's location at the time"
But-for Causation The "but-for" test—but for A, B would not have occurred "But for the defendant's speeding, the collision would not have occurred"
NESS Test Necessary Element of a Sufficient Set test Used in complex multi-cause, single-effect scenarios
Novus Actus Interveniens (Interruption of the Causal Chain) An intervening factor that severs the original causal chain Intervention by a third party's intentional act

3.3 Philosophical Foundations of Counterfactual Reasoning

The use of counterfactual reasoning in law rests on the following assumptions:

  1. Possible-worlds semantics: We can meaningfully discuss "what would have happened if things had been different"
  2. Minimal departure principle: The counterfactual world should resemble the actual world as closely as possible, differing only in the target variable
  3. Stability of causal laws: Natural and social regularities continue to hold in the counterfactual world
  4. Judgment-possibility assumption: Outcomes in the counterfactual world can be judged within a reasonable range

3.4 Relationship Between the But-for Test and the NESS Test

                    Causation Tests
                        │
            ┌───────────┴───────────┐
            │                       │
   Single-cause, single-effect   Multi-cause, single-effect
            │                       │
      But-for Test              NESS Test
     "But for A, not B"     "A is a necessary element
                             of some sufficient set"
            │                       │
   Simple counterfactual      Compound counterfactual
   (remove a single variable) (analyze multi-variable interaction)

IV. Complete Workflow

Phase One: Issue Identification and Framework Construction

Step 1: Identify the Need for Counterfactual Reasoning

Trigger signal detection:

  • Appearances of formulations such as "if … then … would not …"
  • Need to determine causation between an act and an outcome
  • Need
Полный SKILL.md на GitHub

Установить counterfactual-reasoning в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл counterfactual-reasoning?

Trigger this skill when you need to assess how legal outcomes would differ if a given fact, act, or condition did not exist or were altered. Typical trigger scenarios include: causation determinations (whether harm would still have occurred without the act), allocation of fault and liability shares, delimiting the scope of damages, calculating contract breach losses, hypothetical legality tests for administrative acts, assessing interruption of criminal causation, and legislative impact assessment. The core method is to construct a 'counterfactual world' that differs from the actual world only in the target variable, compare outcome differences between the two worlds, and thereby determine the target variable's contribution to the result.

Как установить скилл counterfactual-reasoning?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл counterfactual-reasoning запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить counterfactual-reasoning с