Source: https://github.com/aipoch/medical-research-skills
Hypothesis Generation (Scientific)
When to Use
- Use this skill when the request matches its documented task boundary.
- Use it when the user can provide the required inputs and expects a structured deliverable.
- Prefer this skill for repeatable, checklist-driven execution rather than open-ended brainstorming.
Key Features
- Scope-focused workflow aligned to: Structured scientific hypothesis formulation from observations; use when you have experimental observations or preliminary data and need testable hypotheses with predictions, mechanisms, and validation experiments.
- Documentation-first workflow with no packaged script requirement.
- Reference material available in
references/ for task-specific guidance.
- Reusable packaged asset(s), including
assets/FORMATTING_GUIDE.md.
- Structured execution path designed to keep outputs consistent and reviewable.
Dependencies
Python: 3.10+. Repository baseline for current packaged skills.
Third-party packages: not explicitly version-pinned in this skill package. Add pinned versions if this skill needs stricter environment control.
Example Usage
Skill directory: 20260316/scientific-skills/Protocol Design/hypothesis-generation
No packaged executable script was detected.
Use the documented workflow in SKILL.md together with the references/assets in this folder.
Example run plan:
- Read the skill instructions and collect the required inputs.
- Follow the documented workflow exactly.
- Use packaged references/assets from this folder when the task needs templates or rules.
- Return a structured result tied to the requested deliverable.
Implementation Details
- Execution model: validate the request, choose the packaged workflow, and produce a bounded deliverable.
- Input controls: confirm the source files, scope limits, output format, and acceptance criteria before running any script.
- Primary implementation surface: instruction-only workflow in
SKILL.md.
- Reference guidance:
references/ contains supporting rules, prompts, or checklists.
- Packaged assets: reusable files are available under
assets/.
- Parameters to clarify first: input path, output path, scope filters, thresholds, and any domain-specific constraints.
- Output discipline: keep results reproducible, identify assumptions explicitly, and avoid undocumented side effects.
1. When to Use
Use this skill when you need to turn observations into testable, mechanistic hypotheses and a validation plan, for example:
- You have experimental observations (e.g., an unexpected phenotype, trend, or anomaly) and need 3-5 competing explanations with clear mechanisms.
- You have preliminary data and must propose testable predictions and decisive experiments to discriminate between hypotheses.
- You are preparing a mechanistic study plan (molecular/cellular/system/population) and need a structured framework for causal reasoning.
- You are doing literature-grounded hypothesis development and want to identify gaps, contradictions, and plausible mechanisms.
- You need a publication-ready hypothesis report (LaTeX) with concise main claims and a detailed appendix.
2. Key Features
- Scientific workflow: observation framing → literature search → evidence synthesis → competing hypotheses → quality evaluation → experiments → predictions → structured report.
- Competing hypotheses (3-5): distinct, mechanistic explanations at appropriate biological/physical scales.
- Quality criteria: testability, falsifiability, parsimony, explanatory power, scope, consistency, novelty (see
references/hypothesis_quality_criteria.md).
- Experiment design patterns: lab, observational, clinical, computational; controls, confounders, and measurement plans (see
references/experimental_design_patterns.md).
- Prediction-first outputs: quantitative/conditional predictions that differentiate hypotheses and specify falsifiers.
- Report packaging: LaTeX template with colored boxes and a strict main-body length budget (see
assets/hypothesis_report_template.tex, assets/hypothesis_generation.sty, assets/FORMATTING_GUIDE.md).
- Mandatory visuals: every hypothesis report must include at least 1-2 AI-generated schematics created via the
scientific-schematics skill.
3. Dependencies
- LaTeX engine: XeLaTeX or LuaLaTeX
- BibTeX: for reference compilation
- Required LaTeX packages (used by
assets/hypothesis_generation.sty):
tcolorbox, xcolor, fontspec, fancyhdr, titlesec, enumitem, booktabs, natbib
- Python (optional, for schematic generation script): Python 3.10+ recommended
- Related skill dependency (mandatory for reports):
scientific-schematics (for 1-2+ diagrams per report)
4. Example Usage
A) Generate required schematics (at least 1-2)
python scripts/generate_schematic.py "Diagram showing 3 competing mechanistic hypotheses linking Observation X to Outcome Y, with key intermediates and predicted readouts." -o figures/hypothesis_framework.png
python scripts/generate_schematic.py "Experimental design flowchart comparing interventions A/B and controls, with primary/secondary endpoints and decision points." -o figures/experimental_design.png
B) Create a LaTeX report using the provided template
- Copy the template assets into a working directory:
mkdir -p hypothesis_report figures
cp assets/hypothesis_report_template.tex hypothesis_report/hypothesis_report.tex
cp assets/hypothesis_generation.sty hypothesis_report/
- Edit
hypothesis_report/hypothesis_report.tex to include:
- Executive summary
- 3-5 hypothesis boxes (each on a fresh page)
- Predictions and critical comparisons
- Appendix A-D with detailed literature, protocols, and evaluations
- References (BibTeX)
- Compile:
cd hypothesis_report
xelatex hypothesis_report.tex
bibtex hypothesis_report
xelatex hypothesis_report.tex
xelatex hypothesis_report.tex
C) Minimal LaTeX snippet demonstrating the required structure
\documentclass{article}
\usepackage{hypothesis_generation}
\usepackage{natbib}
\begin{document}
\begin{summarybox}
\textbf{Executive Summary.} Observation X shows pattern Y under condition Z. We propose 3 competing mechanisms and outline decisive experiments and predictions.
\end{summarybox}
\newpage
\begin{hypothesisbox1}[Hypothesis 1: Mechanism A]
\textbf{Mechanistic explanation.} Brief causal chain describing how A produces Y under Z.
\textbf{Key supporting evidence.}
\begin{itemize}
\item Evidence point 1 \citep{author2023}.
\item Evidence point 2 \citep{author2021}.
\end{itemize}
\textbf{Core assumptions.}
\begin{itemize}
\item Assumption 1.
\end{itemize}
\end{hypothesisbox1}
\newpage
\begin{hypothesisbox2}[Hypothesis 2: Mechanism B]
% Keep concise; move details to Appendix.
\end{hypothesisbox2}
\begin{predictionbox}
\textbf{Testable predictions.}
\begin{itemize}
\item If Hypothesis 1 is correct, intervention I increases readout R by ~20-40\% under Z.
\item If Hypothesis 2 is correct, R does not change, but marker M shifts directionally.
\end{itemize}
\end{predictionbox}
\begin{comparisonbox}
\textbf{Critical comparisons.} Prioritize experiments that maximally separate predictions across hypotheses.
\end{comparisonbox}
\end{document}
5. Implementation Details
5.1 End-to-end workflow (recommended)
- Define the phenomenon
- State the observation/pattern to explain, scope, constraints, and what is known vs unknown.
- Literature search
- Use domain-appropriate sources (e.g., PubMed for biomedical topics; general scholarly search otherwise).
- Apply strategies in
references/literature_search_strategies.md.
- Evidence synthesis
- Summarize consensus mechanisms, contradictions, and gaps; extract candidate causal links.
- Generate 3-5 competing hypotheses
- Each must be mechanistic (how/why), distinct, and grounded in evidence or plausible analogies.
- Evaluate hypothesis quality
- Use criteria in
references/hypothesis_quality_criteria.md:
- Testability, falsifiability, parsimony, explanatory power, scope, consistency, novelty.
- Record strengths/weaknesses explicitly.
- Design experimental tests
- Use patterns in
references/experimental_design_patterns.md.
- Specify: measurements, controls, comparisons, confounders, sample size/statistics (as appropriate).
- Formulate testable predictions
- Provide discriminative predictions (direction, magnitude when possible), boundary conditions, and falsifiers.
- Produce structured report
- Use
assets/hypothesis_report_template.tex and assets/hypothesis_generation.sty.
- Include 1-2+ schematics generated via
scientific-schematics.
5.2 Mandatory schematic requirement
- Every hypothesis generation report must include at least 1-2 diagrams (framework, mechanism, experimental flowchart, decision tree, causal graph).
- Reports without visuals are considered incomplete.
- Recommended placement: one schematic in the main body (overview), additional schematics in the appendix (mechanisms/experimental details).
5.3 LaTeX formatting constraints (overflow prevention)
- The main body should be ≤ 4 pages (template-guided).
- Insert
\newpage before each hypothesis box; tcolorbox environments do not reliably break across pages.
- Keep each hypothesis box to roughly 0.5-0.6 page:
- Mechanism: 1-2 short paragraphs (≈ 6-10 sentences)
- Evidence: 2-3 bullets with key citations
- Assumptions: 1-2 bullets
- Move extended rationale, extra citations, and protocol details to the appendix.
5.4 Citation targets
- Main body: ~10-15 carefully selected citations (only the most decisive evidence).
- Appendix A: ~40-70+ citations for comprehensive coverage.
- Total references goal: 50+ entries when the topic warrants it.
- Use
\citep{author2023} for parenthetical citations (per template conventions).
5.5 Included repository resources
references/hypothesis_quality_criteria.md: evaluation rubric for hypothesis strength.
references/experimental_design_patterns.md: reusable experimental design templates.
references/literature_search_strategies.md: search tactics for PubMed and general scientific sources.
assets/hypothesis_generation.sty: colored box environments and report styling.
assets/hypothesis_report_template.tex: full report template (main body + appendix).
assets/FORMATTING_GUIDE.md: examples and troubleshooting for box usage and layout.
When Not to Use
- Do not use this skill when the required source data, identifiers, files, or credentials are missing.
- Do not use this skill when the user asks for fabricated results, unsupported claims, or out-of-scope conclusions.
- Do not use this skill when a simpler direct answer is more appropriate than the documented workflow.
Required Inputs
- A clearly specified task goal aligned with the documented scope.
- All required files, identifiers, parameters, or environment variables before execution.
- Any domain constraints, formatting requirements, and expected output destination if applicable.
Recommended Workflow
- Validate the request against the skill boundary and confirm all required inputs are present.
- Select the documented execution path and prefer the simplest supported command or procedure.
- Produce the expected output using the documented file format, schema, or narrative structure.
- Run a final validation pass for completeness, consistency, and safety before returning the result.
Output Contract
- Return a structured deliverable that is directly usable without reformatting.
- If a file is produced, prefer a deterministic output name such as
hypothesis_generation_result.md unless the skill documentation defines a better convention.
- Include a short validation summary describing what was checked, what assumptions were made, and any remaining limitations.
Validation and Safety Rules
- Validate required inputs before execution and stop early when mandatory fields or files are missing.
- Do not fabricate measurements, references, findings, or conclusions that are not supported by the provided source material.
- Emit a clear warning when credentials, privacy constraints, safety boundaries, or unsupported requests affect the result.
- Keep the output safe, reproducible, and within the documented scope at all times.
Failure Handling
- If validation fails, explain the exact missing field, file, or parameter and show the minimum fix required.
- If an external dependency or script fails, surface the command path, likely cause, and the next recovery step.
- If partial output is returned, label it clearly and identify which checks could not be completed.
Input Validation
This skill accepts requests that match the documented purpose of hypothesis-generation and include enough context to complete the workflow safely.
Do not continue the workflow when the request is out of scope, missing a critical input, or would require unsupported assumptions. Instead respond:
hypothesis-generation only handles its documented workflow. Please provide the missing required inputs or switch to a more suitable skill.
Quick Validation
Run this minimal verification path before full execution when possible:
No local script validation step is required for this skill.
Expected output format:
Result file: hypothesis_generation_result.md
Validation summary: PASS/FAIL with brief notes
Assumptions: explicit list if any
1---2name: hypothesis-generation-23description: Structured scientific hypothesis formulation from observations; use when you have experimental observations or preliminary data and need testable hypotheses with predictions, mechanisms, and validation experiments.4license: MIT5---6> **Source**: [https://github.com/aipoch/medical-research-skills](https://github.com/aipoch/medical-research-skills)78# Hypothesis Generation (Scientific)910## When to Use1112- Use this skill when the request matches its documented task boundary.13- Use it when the user can provide the required inputs and expects a structured deliverable.14- Prefer this skill for repeatable, checklist-driven execution rather than open-ended brainstorming.1516## Key Features1718- Scope-focused workflow aligned to: Structured scientific hypothesis formulation from observations; use when you have experimental observations or preliminary data and need testable hypotheses with predictions, mechanisms, and validation experiments.19- Documentation-first workflow with no packaged script requirement.20- Reference material available in `references/` for task-specific guidance.21- Reusable packaged asset(s), including `assets/FORMATTING_GUIDE.md`.22- Structured execution path designed to keep outputs consistent and reviewable.2324## Dependencies2526- `Python`: `3.10+`. Repository baseline for current packaged skills.27- `Third-party packages`: `not explicitly version-pinned in this skill package`. Add pinned versions if this skill needs stricter environment control.2829## Example Usage3031```text32Skill directory: 20260316/scientific-skills/Protocol Design/hypothesis-generation33No packaged executable script was detected.34Use the documented workflow in SKILL.md together with the references/assets in this folder.35```3637Example run plan:381. Read the skill instructions and collect the required inputs.392. Follow the documented workflow exactly.403. Use packaged references/assets from this folder when the task needs templates or rules.414. Return a structured result tied to the requested deliverable.4243## Implementation Details4445- Execution model: validate the request, choose the packaged workflow, and produce a bounded deliverable.46- Input controls: confirm the source files, scope limits, output format, and acceptance criteria before running any script.47- Primary implementation surface: instruction-only workflow in `SKILL.md`.48- Reference guidance: `references/` contains supporting rules, prompts, or checklists.49- Packaged assets: reusable files are available under `assets/`.50- Parameters to clarify first: input path, output path, scope filters, thresholds, and any domain-specific constraints.51- Output discipline: keep results reproducible, identify assumptions explicitly, and avoid undocumented side effects.5253## 1. When to Use5455Use this skill when you need to turn observations into **testable, mechanistic hypotheses** and a **validation plan**, for example:5657- You have experimental observations (e.g., an unexpected phenotype, trend, or anomaly) and need 3-5 competing explanations with clear mechanisms.58- You have preliminary data and must propose **testable predictions** and **decisive experiments** to discriminate between hypotheses.59- You are preparing a mechanistic study plan (molecular/cellular/system/population) and need a structured framework for causal reasoning.60- You are doing literature-grounded hypothesis development and want to identify gaps, contradictions, and plausible mechanisms.61- You need a publication-ready hypothesis report (LaTeX) with concise main claims and a detailed appendix.6263## 2. Key Features6465- **Scientific workflow**: observation framing → literature search → evidence synthesis → competing hypotheses → quality evaluation → experiments → predictions → structured report.66- **Competing hypotheses (3-5)**: distinct, mechanistic explanations at appropriate biological/physical scales.67- **Quality criteria**: testability, falsifiability, parsimony, explanatory power, scope, consistency, novelty (see `references/hypothesis_quality_criteria.md`).68- **Experiment design patterns**: lab, observational, clinical, computational; controls, confounders, and measurement plans (see `references/experimental_design_patterns.md`).69- **Prediction-first outputs**: quantitative/conditional predictions that differentiate hypotheses and specify falsifiers.70- **Report packaging**: LaTeX template with colored boxes and a strict main-body length budget (see `assets/hypothesis_report_template.tex`, `assets/hypothesis_generation.sty`, `assets/FORMATTING_GUIDE.md`).71- **Mandatory visuals**: every hypothesis report must include **at least 1-2 AI-generated schematics** created via the `scientific-schematics` skill.7273## 3. Dependencies7475- **LaTeX engine**: XeLaTeX or LuaLaTeX76- **BibTeX**: for reference compilation77- **Required LaTeX packages** (used by `assets/hypothesis_generation.sty`):78 - `tcolorbox`, `xcolor`, `fontspec`, `fancyhdr`, `titlesec`, `enumitem`, `booktabs`, `natbib`79- **Python (optional, for schematic generation script)**: Python 3.10+ recommended80- **Related skill dependency (mandatory for reports)**: `scientific-schematics` (for 1-2+ diagrams per report)8182## 4. Example Usage8384### A) Generate required schematics (at least 1-2)8586```bash87python scripts/generate_schematic.py "Diagram showing 3 competing mechanistic hypotheses linking Observation X to Outcome Y, with key intermediates and predicted readouts." -o figures/hypothesis_framework.png8889python scripts/generate_schematic.py "Experimental design flowchart comparing interventions A/B and controls, with primary/secondary endpoints and decision points." -o figures/experimental_design.png90```9192### B) Create a LaTeX report using the provided template93941) Copy the template assets into a working directory:9596```bash97mkdir -p hypothesis_report figures98cp assets/hypothesis_report_template.tex hypothesis_report/hypothesis_report.tex99cp assets/hypothesis_generation.sty hypothesis_report/100```1011022) Edit `hypothesis_report/hypothesis_report.tex` to include:103- Executive summary104- 3-5 hypothesis boxes (each on a fresh page)105- Predictions and critical comparisons106- Appendix A-D with detailed literature, protocols, and evaluations107- References (BibTeX)1081093) Compile:110111```bash112cd hypothesis_report113xelatex hypothesis_report.tex114bibtex hypothesis_report115xelatex hypothesis_report.tex116xelatex hypothesis_report.tex117```118119### C) Minimal LaTeX snippet demonstrating the required structure120121```latex122\documentclass{article}123\usepackage{hypothesis_generation}124\usepackage{natbib}125126\begin{document}127128\begin{summarybox}129\textbf{Executive Summary.} Observation X shows pattern Y under condition Z. We propose 3 competing mechanisms and outline decisive experiments and predictions.130\end{summarybox}131132\newpage133\begin{hypothesisbox1}[Hypothesis 1: Mechanism A]134\textbf{Mechanistic explanation.} Brief causal chain describing how A produces Y under Z.135136\textbf{Key supporting evidence.}137\begin{itemize}138 \item Evidence point 1 \citep{author2023}.139 \item Evidence point 2 \citep{author2021}.140\end{itemize}141142\textbf{Core assumptions.}143\begin{itemize}144 \item Assumption 1.145\end{itemize}146\end{hypothesisbox1}147148\newpage149\begin{hypothesisbox2}[Hypothesis 2: Mechanism B]150% Keep concise; move details to Appendix.151\end{hypothesisbox2}152153\begin{predictionbox}154\textbf{Testable predictions.}155\begin{itemize}156 \item If Hypothesis 1 is correct, intervention I increases readout R by ~20-40\% under Z.157 \item If Hypothesis 2 is correct, R does not change, but marker M shifts directionally.158\end{itemize}159\end{predictionbox}160161\begin{comparisonbox}162\textbf{Critical comparisons.} Prioritize experiments that maximally separate predictions across hypotheses.163\end{comparisonbox}164165\end{document}166```167168## 5. Implementation Details169170### 5.1 End-to-end workflow (recommended)1711721. **Define the phenomenon**173 - State the observation/pattern to explain, scope, constraints, and what is known vs unknown.1742. **Literature search**175 - Use domain-appropriate sources (e.g., PubMed for biomedical topics; general scholarly search otherwise).176 - Apply strategies in `references/literature_search_strategies.md`.1773. **Evidence synthesis**178 - Summarize consensus mechanisms, contradictions, and gaps; extract candidate causal links.1794. **Generate 3-5 competing hypotheses**180 - Each must be mechanistic (how/why), distinct, and grounded in evidence or plausible analogies.1815. **Evaluate hypothesis quality**182 - Use criteria in `references/hypothesis_quality_criteria.md`:183 - Testability, falsifiability, parsimony, explanatory power, scope, consistency, novelty.184 - Record strengths/weaknesses explicitly.1856. **Design experimental tests**186 - Use patterns in `references/experimental_design_patterns.md`.187 - Specify: measurements, controls, comparisons, confounders, sample size/statistics (as appropriate).1887. **Formulate testable predictions**189 - Provide discriminative predictions (direction, magnitude when possible), boundary conditions, and falsifiers.1908. **Produce structured report**191 - Use `assets/hypothesis_report_template.tex` and `assets/hypothesis_generation.sty`.192 - Include **1-2+ schematics** generated via `scientific-schematics`.193194### 5.2 Mandatory schematic requirement195196- Every hypothesis generation report must include **at least 1-2 diagrams** (framework, mechanism, experimental flowchart, decision tree, causal graph).197- Reports without visuals are considered incomplete.198- Recommended placement: one schematic in the main body (overview), additional schematics in the appendix (mechanisms/experimental details).199200### 5.3 LaTeX formatting constraints (overflow prevention)201202- The main body should be **≤ 4 pages** (template-guided).203- Insert `\newpage` **before each hypothesis box**; `tcolorbox` environments do not reliably break across pages.204- Keep each hypothesis box to roughly **0.5-0.6 page**:205 - Mechanism: 1-2 short paragraphs (≈ 6-10 sentences)206 - Evidence: 2-3 bullets with key citations207 - Assumptions: 1-2 bullets208- Move extended rationale, extra citations, and protocol details to the appendix.209210### 5.4 Citation targets211212- Main body: ~10-15 carefully selected citations (only the most decisive evidence).213- Appendix A: ~40-70+ citations for comprehensive coverage.214- Total references goal: **50+** entries when the topic warrants it.215- Use `\citep{author2023}` for parenthetical citations (per template conventions).216217### 5.5 Included repository resources218219- `references/hypothesis_quality_criteria.md`: evaluation rubric for hypothesis strength.220- `references/experimental_design_patterns.md`: reusable experimental design templates.221- `references/literature_search_strategies.md`: search tactics for PubMed and general scientific sources.222- `assets/hypothesis_generation.sty`: colored box environments and report styling.223- `assets/hypothesis_report_template.tex`: full report template (main body + appendix).224- `assets/FORMATTING_GUIDE.md`: examples and troubleshooting for box usage and layout.225226## When Not to Use227228- Do not use this skill when the required source data, identifiers, files, or credentials are missing.229- Do not use this skill when the user asks for fabricated results, unsupported claims, or out-of-scope conclusions.230- Do not use this skill when a simpler direct answer is more appropriate than the documented workflow.231232## Required Inputs233234- A clearly specified task goal aligned with the documented scope.235- All required files, identifiers, parameters, or environment variables before execution.236- Any domain constraints, formatting requirements, and expected output destination if applicable.237238## Recommended Workflow2392401. Validate the request against the skill boundary and confirm all required inputs are present.2412. Select the documented execution path and prefer the simplest supported command or procedure.2423. Produce the expected output using the documented file format, schema, or narrative structure.2434. Run a final validation pass for completeness, consistency, and safety before returning the result.244245## Output Contract246247- Return a structured deliverable that is directly usable without reformatting.248- If a file is produced, prefer a deterministic output name such as `hypothesis_generation_result.md` unless the skill documentation defines a better convention.249- Include a short validation summary describing what was checked, what assumptions were made, and any remaining limitations.250251## Validation and Safety Rules252253- Validate required inputs before execution and stop early when mandatory fields or files are missing.254- Do not fabricate measurements, references, findings, or conclusions that are not supported by the provided source material.255- Emit a clear warning when credentials, privacy constraints, safety boundaries, or unsupported requests affect the result.256- Keep the output safe, reproducible, and within the documented scope at all times.257258## Failure Handling259260- If validation fails, explain the exact missing field, file, or parameter and show the minimum fix required.261- If an external dependency or script fails, surface the command path, likely cause, and the next recovery step.262- If partial output is returned, label it clearly and identify which checks could not be completed.263264265## Input Validation266267This skill accepts requests that match the documented purpose of `hypothesis-generation` and include enough context to complete the workflow safely.268269Do not continue the workflow when the request is out of scope, missing a critical input, or would require unsupported assumptions. Instead respond:270271> `hypothesis-generation` only handles its documented workflow. Please provide the missing required inputs or switch to a more suitable skill.272273## Quick Validation274275Run this minimal verification path before full execution when possible:276277```text278No local script validation step is required for this skill.279```280281Expected output format:282283```text284Result file: hypothesis_generation_result.md285Validation summary: PASS/FAIL with brief notes286Assumptions: explicit list if any287```