Alterlab hypothesis gen

From AlterLab-IEU/AlterLab-Academic-Skills · View interactive version

Alterlab hypothesis gen is an AI agent skill from the GitHub repository AlterLab-IEU/AlterLab-Academic-Skills. Formulates structured, testable hypotheses from experimental observations using a scientific-method framework — derives predictions, proposes mechanisms, and designs experiments to test them, then renders a LaTeX report. Use when turning observations or data into falsifiable, mechanistic hypotheses,

How to use this skill

Skill file

Scientific Hypothesis Generation

Overview

Hypothesis generation is a systematic process for developing testable explanations. Formulate evidence-based hypotheses from observations, design experiments, explore competing explanations, and develop predictions. Apply this skill for scientific inquiry across domains.

When to Use This Skill

This skill should be used when:

Does NOT Trigger

| Scenario | Use Instead |

|----------|-------------|

| Open-ended, blue-sky ideation with no specific observation to explain yet | alterlab-scientific-brainstorm |

| Automated LLM-driven hypothesis generation and testing over a tabular dataset (HypoGeniC) | alterlab-hypogenic |

| A standalone systematic review or PRISMA evidence synthesis as the deliverable | alterlab-literature-review |

| Grading the evidence quality or design flaws of existing claims | alterlab-scientific-thinking |

| Freezing hypotheses and the analysis plan in a pre-registration before data collection | alterlab-preregistration-discipline |

Hand-off rule. When the request matches a row above, open your answer by naming that skill by its exact id (for example alterlab-scientific-brainstorm) and saying in one line why it fits better, then stop applying this skill's procedure. Name it even when you also need to ask for missing input. If only part of the request is out of scope, name the skill for that part and do only the in-scope part. A brief general pointer is fine; the named skill does the work.

An open-ended brainstorming request still asks for ideas, so after naming alterlab-scientific-brainstorm give a short, varied list of loose research directions the user can react to — no hypotheses, predictions or experiment designs, which are this skill's outputs.

Workflow

Follow this systematic process to generate robust scientific hypotheses:

1. Understand the Phenomenon

Start by clarifying the observation, question, or phenomenon that requires explanation:

2. Conduct Comprehensive Literature Search

Search existing scientific literature to ground hypotheses in current evidence. Use both PubMed (for biomedical topics) and general web search (for broader scientific domains):

For biomedical topics:

For all scientific domains:

Search strategy:

3. Synthesize Existing Evidence

Analyze and integrate findings from literature search:

4. Generate Competing Hypotheses

Develop 3-5 distinct hypotheses that could explain the phenomenon. Each hypothesis should:

Strategies for generating hypotheses:

5. Evaluate Hypothesis Quality

Assess each hypothesis against established quality criteria from references/hypothesis_quality_criteria.md:

Testability: Can the hypothesis be empirically tested?

Falsifiability: What observations would disprove it?

Parsimony: Is it the simplest explanation that fits the evidence?

Explanatory Power: How much of the phenomenon does it explain?

Scope: What range of observations does it cover?

Consistency: Does it align with established principles?

Novelty: Does it offer new insights beyond existing explanations?

Explicitly note the strengths and weaknesses of each hypothesis.

6. Design Experimental Tests

For each viable hypothesis, propose specific experiments or studies to test it. Consult references/experimental_design_patterns.md for common approaches:

Experimental design elements:

Consider multiple approaches:

7. Formulate Testable Predictions

For each hypothesis, generate specific, quantitative predictions:

8. Present Structured Output

Generate a professional LaTeX document using the template in assets/hypothesis_report_template.tex. The report should be well-formatted with colored boxes for visual organization and divided into a concise main text with comprehensive appendices.

Document Structure:

Main Text (about 4 pages):

  1. Executive Summary — brief overview in summarybox (0.5-1 page)
  2. Competing Hypotheses — each hypothesis in its own colored box with a brief mechanistic explanation and key evidence (2-2.5 pages for 3-5 hypotheses)
  3. Testable Predictions — key predictions in predictionbox (0.5-1 page)
  4. Critical Comparisons — priority comparisons in comparisonbox (0.5-1 page)

Keep the main text to the essentials; everything else goes to the appendices:

Colored Box Usage (environments from hypothesis_generation.sty):

Each hypothesis box contains:

Page overflow. The boxes in hypothesis_generation.sty are not breakable tcolorboxes, so a box taller than the space left on the page runs off the bottom and the PDF becomes unreadable. Keep each hypothesis box to about 0.6 page (15-20 lines); move longer mechanism detail and extra evidence to Appendix A. Before each box, start a fresh page with \newpage if less than ~0.6 page remains, and put \newpage between major appendix sections.

\newpage
\begin{hypothesisbox1}[Hypothesis 1: Title]
% mechanistic explanation, 2-3 evidence bullets, 1-2 assumptions
\end{hypothesisbox1}

Citation Requirements:

Cite only sources you actually retrieved and checked during the literature search — never invent or pad references to reach a target, because a fabricated citation undermines the whole report. For a sparse literature, fewer verified citations are the right answer. Use \citep{author2023} for parenthetical citations.

LaTeX Compilation:

The template requires XeLaTeX or LuaLaTeX (it loads fontspec):

xelatex hypothesis_report.tex
bibtex hypothesis_report
xelatex hypothesis_report.tex
xelatex hypothesis_report.tex

Required packages: hypothesis_generation.sty must be in the same directory or on the LaTeX path. It requires tcolorbox, xcolor, fontspec, fancyhdr, titlesec, enumitem, booktabs, and natbib.

Quick Reference: See assets/FORMATTING_GUIDE.md for detailed examples of all box types, color schemes, and common formatting patterns.

Quality Standards

Ensure all generated hypotheses meet these standards:

Resources

references/

assets/

Related Skills

Part of the AlterLab Academic Skills suite.

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.