Skip to main content
ClaudeWave
Skill2.3k repo starsupdated 23d ago

hypothesis-generation

This Claude Code skill generates testable scientific hypotheses by systematically formulating evidence-based explanations from observations, designing experiments, and exploring competing explanations across scientific domains. Use it when developing hypotheses from preliminary data, designing experiments to test research questions, exploring alternative explanations for phenomena, or planning mechanistic studies requiring structured hypothesis generation and visual documentation through required scientific schematics.

Install in Claude Code
Copy
git clone --depth 1 https://github.com/K-Dense-AI/claude-scientific-writer /tmp/hypothesis-generation && cp -r /tmp/hypothesis-generation/skills/hypothesis-generation ~/.claude/skills/hypothesis-generation
Then start a new Claude Code session; the skill loads automatically.

SKILL.md

# Scientific Hypothesis Generation

Turn an observation into a transparent set of candidate explanations and tests. A hypothesis is a proposal to be challenged, not a finding, fact, diagnosis, or recommendation.

## Non-negotiable boundaries

Before using unpublished, sensitive, controlled, personal, proprietary, export-controlled, or security-relevant material:

1. Confirm authorization and the applicable institutional, funder, publisher, data-use, privacy, and AI policies.
2. Keep the material local unless an authorized human explicitly approves a named external destination and data scope.
3. Minimize inputs. Do not place sensitive or unpublished data in web searches or external AI systems without authorization.
4. Stop at the appropriate human, animal, biosafety, dual-use, data-governance, or regulatory gate.

Never:

- present a hypothesis, mechanism, causal effect, citation, or apparent pattern as established evidence;
- claim novelty because a quick search found nothing;
- infer causation from association, temporal order alone, predictive accuracy, or model output;
- supply patient-specific diagnosis, treatment, dose, prognosis, or other clinical advice;
- provide harmful experimental optimization or operational detail for pathogens, toxins, weapons, evasion, or other misuse;
- bypass IRB/REC, IACUC, IBC, biosafety, dual-use, privacy, legal, or regulatory review;
- fabricate sources, identifiers, search coverage, data, results, approvals, or preregistration;
- automatically score, rank, select, accept, or reject scientific hypotheses.

If a request crosses a safety gate, produce only a high-level risk/oversight note and route it to the qualified local authority. Do not continue with operational detail.

## Keep the objects distinct

| Object | Meaning |
|---|---|
| **Observation** | What was measured, noticed, or reported, with provenance and uncertainty |
| **Research question** | The answerable question that defines scope |
| **Hypothesis** | A candidate explanatory or relational proposition |
| **Mechanism** | The proposed process connecting conditions to an outcome |
| **Causal estimand** | The precisely defined causal contrast to estimate |
| **Prediction** | An observable implication derived before checking the target result |
| **Alternative explanation** | A rival account, including bias or non-causal explanations |
| **Null hypothesis** | A specified no-effect/no-difference model used by an analysis |
| **Negative control** | A control expected not to operate through the proposed mechanism |
| **Operationalization** | How a construct becomes a variable, measurement, intervention, or category |
| **Analysis plan** | Prespecified transformations, models, contrasts, uncertainty, and decision rules |
| **Evidence** | Observations or sources that bear on a claim; never the claim itself |

Do not collapse these labels. A mechanistic story is not a prediction; a prediction is not evidence; rejection of one null does not prove a mechanism; support for one candidate does not eliminate unconsidered rivals.

## Workflow

### 1. Run the scope and safety gate

Record:

- accountable human owner and intended use;
- data sensitivity, authorization, retention, and permitted processing;
- affected people, animals, ecosystems, communities, or security interests;
- required ethics, feasibility, biosafety, dual-use, and regulatory reviews;
- unresolved blocks and domain expertise needed.

No script approval is an ethics, safety, regulatory, or scientific approval.

### 2. Freeze the observation

Write the observation before interpretation:

- measurement or source;
- population, system, place, and time;
- unit of observation and unit of analysis;
- uncertainty, missingness, exclusions, and preprocessing;
- whether the pattern was expected, exploratory, or selected after viewing results.

Use “reported,” “observed,” or “associated,” not causal language, unless a causal design and estimand justify it.

### 3. Frame the research question

Choose a framework only when it fits:

- **PICO/PICOT** for intervention/effectiveness questions: population, intervention, comparator, outcome, and optionally time.
- **PECO** for exposure questions.
- **Population–index test–reference standard–target condition** for diagnostic accuracy.
- **Population–prognostic factor–outcome–time** for prognosis.
- A domain-specific construct–context–outcome frame for qualitative, descriptive, mechanistic, or theoretical work.

PICO is not a universal template. Define stakeholders, context, boundaries, feasibility, and what answer would change knowledge or practice. FINER is a question-refinement mnemonic—Feasible, Interesting, Novel, Ethical, Relevant—not a scoring system. Treat “Novel” as unresolved until a documented, fit-for-purpose search and expert review support it.

### 4. Establish a dated evidence boundary

Search before making literature-dependent statements. Prefer primary research, official policies, primary methods papers, current reporting guidelines, and systematic reviews used for orientation.

Record:

- search date and cutoff;
- databases/indexes, queries, filters, and screening boundary;
- included and excluded source types;
- sources supporting, challenging, or contextualizing each claim;
- known access, language, database, and time limitations.

A search can establish what was searched, not universal absence. Say “not located within the documented search boundary,” never “no prior work exists.” Use `assets/search_boundary_template.json`, `assets/evidence_ledger_template.csv`, and `references/literature_search_strategies.md`.

### 5. Generate rivals before choosing tests

Create multiple candidates from genuinely different explanatory classes when plausible:

- proposed mechanism;
- measurement or processing artifact;
- confounding or common cause;
- selection or attrition;
- conditioning on a collider;
- reverse causation;
- temporal, contextual, or boundary-condition differences;
- stochastic variati
citation-managementSkill

Comprehensive citation management for academic research. Search Google Scholar and PubMed for papers, extract accurate metadata, validate citations, and generate properly formatted BibTeX entries. This skill should be used when you need to find papers, verify citation information, convert DOIs to BibTeX, or ensure reference accuracy in scientific writing.

clinical-decision-supportSkill

Prepare and validate research-only clinical decision-support evaluation, evidence-profile, cohort, survival, biomarker/model, privacy, and governance artifacts. Use for aggregate or synthetic research documentation and traceability—not patient care or live clinical operation.

clinical-reportsSkill

Create safety-bounded draft structures and run local deterministic checks for clinical case, diagnostic, trial, safety, and aggregate research reports. Use only with synthetic, de-identified, or aggregate inputs and verified source-fact manifests; every output requires qualified review.

docxSkill

Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.

pdfSkill

Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.

pptxSkill

Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions \"deck,\" \"slides,\" \"presentation,\" or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill.

xlsxSkill

Create, edit, analyze, or convert Excel spreadsheets (.xlsx, .xlsm, .xltx) where the workbook file is the primary deliverable. Use for formulas, formatting, financial models, multi-sheet workbooks, and tabular cleanup exported to Excel. Also applies to .csv/.tsv when the user wants spreadsheet output. Do NOT use for Word documents, HTML reports, standalone Python scripts, database pipelines, or Google Sheets API work.

generate-imageSkill

Generate or edit images with AI models through the OpenRouter Image API (Gemini, FLUX, Seedream, Recraft, GPT-Image). Use for photos, illustrations, artwork, concept art, visual assets, logos, and image editing or compositing from reference images. For flowcharts, circuits, pathways, and other technical diagrams, use the scientific-schematics skill instead.