Alterlab hypothesis gen

From NVlabs/Skill2Env · View interactive version

Alterlab hypothesis gen is an AI agent skill from the GitHub repository NVlabs/Skill2Env. 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:

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 (Maximum 4 pages):

  1. Executive Summary - Brief overview in summary box (0.5-1 page)
  2. Competing Hypotheses - Each hypothesis in its own colored box with brief mechanistic explanation and key evidence (2-2.5 pages for 3-5 hypotheses)
  1. Testable Predictions - Key predictions in amber boxes (0.5-1 page)
  2. Critical Comparisons - Priority comparison boxes (0.5-1 page)

Keep main text highly concise - only the most essential information. All details go to appendices.

Page Break Strategy:

Appendices (Comprehensive, Detailed):

Colored Box Usage:

Use the custom box environments from hypothesis_generation.sty:

Each hypothesis box should contain (keep concise for 4-page limit):

All detailed explanations, additional evidence, and comprehensive discussions belong in the appendices.

Critical Overflow Prevention:

Citation Requirements:

Aim for extensive citation to support all claims:

Main text citations should be selective - cite only the most critical papers. All comprehensive citation and detailed literature discussion belongs in the appendices. Use \citep{author2023} for parenthetical citations.

LaTeX Compilation:

The template requires XeLaTeX or LuaLaTeX for proper rendering:

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

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

Page Overflow Prevention:

To prevent content from overflowing on pages, follow these critical guidelines:

  1. Monitor Box Content Length: Each hypothesis box should fit comfortably on a single page. If content exceeds ~0.7 pages, it will likely overflow.
  1. Use Strategic Page Breaks: Insert \newpage before boxes that contain substantial content:

```latex

\newpage

\begin{hypothesisbox1}[Hypothesis 1: Title]

% Long content here

\end{hypothesisbox1}

```

  1. Keep Main Text Boxes Concise: For the 4-page main text limit:
  1. Break Long Content: If a hypothesis requires extensive explanation, split across main text and appendix:
  1. Test Page Boundaries: Before each new box, consider if remaining page space is sufficient. If less than 0.6 pages remain, use \newpage to start the box on a fresh page.
  1. Appendix Page Management: In appendices, use \newpage between major sections to avoid overflow in detailed content areas.

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

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.