Scienceclaw reasoning

From beita6969/ScienceClaw · View interactive version

Scienceclaw reasoning is an AI agent skill from the GitHub repository beita6969/ScienceClaw. Perform multi-step scientific reasoning, proof construction, causal inference, and logical argumentation. Use when: (1) deriving conclusions from premises, (2) causal analysis, (3) mathematical proofs, (4) hypothesis evaluation, (5) counterfactual reasoning. NOT for: simple factual questions (use sc

How to use this skill

Skill file

ScienceCLAW Reasoning

Perform multi-step scientific reasoning, proof construction, causal inference, and logical argumentation across all scientific disciplines.

When to Use

Use this skill when the user:

When NOT to Use

Do not use this skill when:

Chain-of-Thought Templates

All reasoning tasks should follow explicit chain-of-thought patterns. Make every step visible and verifiable.

General Reasoning Template

Step 1: STATE the problem clearly
  - Identify what is given (premises, data, constraints)
  - Identify what is asked (conclusion, proof, evaluation)
  - Identify the reasoning type needed

Step 2: PLAN the reasoning path
  - Select the appropriate reasoning framework
  - Identify intermediate steps needed
  - Note potential pitfalls or branching points

Step 3: EXECUTE each reasoning step
  - Show each inference explicitly
  - Justify each step with a rule, law, or principle
  - Flag assumptions made at each step

Step 4: VALIDATE the conclusion
  - Check for logical consistency
  - Verify against known constraints
  - Test with edge cases or counterexamples

Step 5: COMMUNICATE the result
  - State the conclusion clearly
  - Summarize the key reasoning path
  - Note confidence level and limitations

Hypothesis Evaluation Template

1. STATE each hypothesis precisely
2. IDENTIFY observable predictions that differ between hypotheses
3. COMPARE predictions against available evidence
4. ASSESS fit: which hypothesis explains more evidence with fewer assumptions?
5. CHECK for confounds or alternative explanations
6. CONCLUDE with ranked hypotheses and confidence levels

Counterfactual Reasoning Template

1. SPECIFY the counterfactual condition ("If X had been Y instead of Z...")
2. IDENTIFY the causal model connecting X to downstream outcomes
3. TRACE the causal chain forward from the altered condition
4. COMPARE the counterfactual outcome with the actual outcome
5. ASSESS sensitivity: how robust is the counterfactual conclusion?

Formal vs. Informal Reasoning

Formal Reasoning

Use formal reasoning when the domain supports it (mathematics, logic, theoretical physics, formal linguistics):

Notation conventions:

Informal Reasoning

Use informal reasoning when formal methods are impractical (most empirical sciences, social sciences):

Quality criteria for informal reasoning:

Integration with Code for Verification

When reasoning can be verified computationally, recommend or invoke code execution:

Verification Scenarios

| Reasoning Type | Code Verification |

|---|---|

| Mathematical proof | Symbolic computation (SymPy) to verify algebraic steps |

| Statistical inference | Monte Carlo simulation to validate analytical results |

| Causal claim | DAG analysis with DoWhy or similar causal inference libraries |

| Optimization argument | Numerical optimization to confirm analytical solution |

| Combinatorial argument | Exhaustive enumeration for small cases |

| Differential equation | Numerical integration to verify analytical solution |

Verification Protocol

  1. Complete the reasoning chain first (do not rely on code as the primary method)
  2. Identify which steps are amenable to computational verification
  3. Specify the verification approach and expected outcome
  4. If code-execution skill is available, invoke it for verification
  5. Reconcile any discrepancies between analytical reasoning and numerical results

Discipline-Specific Reasoning Patterns

Mathematical Proofs

Structure for mathematical reasoning:

Requirements:

Example structure:

**Theorem**: [Statement]

**Proof**:
Let [variable definitions].
By [axiom/definition], we have [step 1].
From [step 1] and [known result], it follows that [step 2].
...
Therefore, [conclusion]. QED

Causal Inference for Social Science

Apply the potential outcomes framework or structural causal models:

Key causal reasoning pitfalls to flag:

Mechanistic Reasoning for Natural Science

Trace physical, chemical, or biological mechanisms:

Mechanistic reasoning quality checks:

Reasoning Quality Assurance

Logical Validity Checks

Before finalizing any reasoning chain, verify:

Assumption Tracking

Maintain an explicit list of assumptions throughout the reasoning:

Assumptions:
  A1: [Description] - [Justification or "assumed for simplicity"]
  A2: [Description] - [Justification or "standard in this field"]
  ...

Sensitivity: Conclusion is robust to relaxation of A1 but sensitive to A2.

Confidence Calibration

Rate the overall reasoning confidence:

Response Structure Template

## Problem Statement

[Clear restatement of the reasoning task]

## Reasoning Framework

[Selected approach and justification]

## Reasoning Chain

### Step 1: [Description]
[Detailed reasoning with justification]

### Step 2: [Description]
[Detailed reasoning with justification]

...

## Conclusion

[Clear statement of the derived result]

## Assumptions and Limitations

[Explicit list of assumptions and sensitivity analysis]

## Verification

[Computational verification results or recommendations]

## Confidence: [Level]

[Brief justification of confidence rating]

Integration with Other Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.