跳到主要内容
SkillVault logo SkillVault
免费 ChatGPT GPTs Claude Code Cursor

hypogenic

Automated LLM-driven hypothesis generation and testing on tabular datasets. Use when you want to systematically explore hypotheses about patterns in empirical data (e.g., deception detection, content analysis). Combines literature insights with data-driven hypothesis testing. For manual hypothesis formulation use hypothesis-generation; for creative ideation use scientific-brainstorming.

0 次下载 0 次浏览 更新于 Oct 31, 2026 v1.0.0
hypogenic skill cover

下方技能配置(提示词、变量、安装步骤)保留英文原文。.aiskill 文件直接面向 AI 智能体,统一使用英文以确保跨平台行为一致。

概述

Automated LLM-driven hypothesis generation and testing on tabular datasets. Use when you want to systematically explore hypotheses about patterns in empirical data (e.g., deception detection, content analysis). Combines literature insights with data-driven hypothesis testing. For manual hypothesis formulation use hypothesis-generation; for creative ideation use scientific-brainstorming.

Source: https://github.com/DenDen047/claude-scientific-skills · MIT LICENSE · © 2025 K-Dense Inc.

系统提示词

定义智能体角色、规则与输出格式的指令块。

system-prompt.txt
# Hypogenic

## Overview

Hypogenic provides automated hypothesis generation and testing using large language models to accelerate scientific discovery. The framework supports three approaches: HypoGeniC (data-driven hypothesis generation), HypoRefine (synergistic literature and data integration), and Union methods (mechanistic combination of literature and data-driven hypotheses).

## Quick Start

Get started with Hypogenic in minutes:

```bash
# Install the package
uv pip install hypogenic

# Clone example datasets
git clone https://github.com/ChicagoHAI/HypoGeniC-datasets.git ./data

# Run basic hypothesis generation
hypogenic_generation --config ./data/your_task/config.yaml --method hypogenic --num_hypotheses 20

# Run inference on generated hypotheses
hypogenic_inference --config ./data/your_task/config.yaml --hypotheses output/hypotheses.json
```

**Or use Python API:**

```python
from hypogenic import BaseTask

# Create task with your configuration
task = BaseTask(config_path="./data/your_task/config.yaml")

# Generate hypotheses
task.generate_hypotheses(method="hypogenic", num_hypotheses=20)

# Run inference
results = task.inference(hypothesis_bank="./output/hypotheses.json")
```

## When to Use This Skill

Use this skill when working on:
- Generating scientific hypotheses from observational datasets
- Testing multiple competing hypotheses systematically
- Combining literature insights with empirical patterns
- Accelerating research discovery through automated hypothesis ideation
- Domains requiring hypothesis-driven analysis: deception detection, AI-generated content identification, mental health indicators, predictive modeling, or other empirical research

## Key Features

**Automated Hypothesis Generation**
- Generate 10-20+ testable hypotheses from data in minutes
- Iterative refinement based on validation performance
- Support for both API-based (OpenAI, Anthropic) and local LLMs

**Literature Integration**
- Extract insights from research papers via PDF processing
- Combine theoretical foundations with empirical patterns
- Systematic literature-to-hypothesis pipeline with GROBID

**Performance Optimization**
- Redis caching reduces API costs for repeated experiments
- Parallel processing for large-scale hypothesis testing
- Adaptive refinement focuses on challenging examples

**Flexible Configuration**
- Template-based prompt engineering with variable injection
- Custom label extraction for domain-specific tasks
- Modular architecture for easy extension

**Proven Results**
- 8.97% improvement over few-shot baselines
- 15.75% improvement over literature-only approaches
- 80-84% hypothesis diversity (non-redundant insights)
- Human evaluators report significant decision-making improvements

## Core Capabilities

### 1. HypoGeniC: Data-Driven Hypothesis Generation

Generate hypotheses solely from observational data through iterative refinement.

**Process:**
1. Initialize with a small data subset to generate candidate hypotheses
2. Iteratively refine hypotheses based on performance
3. Replace poorly-performing hypotheses with new ones from challenging examples

**Best for:** Exploratory research without existing literature, pattern discovery in novel datasets

### 2. HypoRefine: Literature and Data Integration

Synergistically combine existing literature with empirical data through an agentic framework.

**Process:**
1. Extract insights from relevant research papers (typically 10 papers)
2. Generate theory-grounded hypotheses from literature
3. Generate data-driven hypotheses from observational patterns
4. Refine both hypothesis banks through iterative improvement

**Best for:** Research with established theoretical foundations, validating or extending existing theories

### 3. Union Methods

Mechanistically combine literature-only hypotheses with framework outputs.

**Variants:**
- **Literature ∪ HypoGeniC**: Combines literature hypotheses with data-driven generation
- **Literature ∪ HypoRefine**: Combines literature hypotheses with integrated approach

**Best for:** Comprehensive hypothesis coverage, eliminating redundancy while maintaining diverse perspectives

## Installation

Install via pip:
```bash
uv pip install hypogenic
```

**Optional dependencies:**
- **Redis server** (port 6832): Enables caching of LLM responses to significantly reduce API costs during iterative hypothesis generation
- **s2orc-doc2json**: Required for processing literature PDFs in HypoRefine workflows
- **GROBID**: Required for PDF preprocessing (see Literature Processing section)

**Clone example datasets:**
```bash
# For HypoGeniC examples
git clone https://github.com/ChicagoHAI/HypoGeniC-datasets.git ./data

# For HypoRefine/Union examples
git clone https://github.com/ChicagoHAI/Hypothesis-agent-datasets.git ./data
```

## Dataset Format

Datasets must follow HuggingFace datasets format with specific naming conventions:

**Required files:**
- `<TASK>_train.json`: Training data
- `<TASK>_val.json`: Validation data  
- `<TASK>_test.json`: Test data

**Required keys in JSON:**
- `text_features_1` through `text_features_n`: Lists of strings containing feature values
- `label`: List of strings containing ground truth labels

**Example (headline click prediction):**
```json
{
  "headline_1": [
    "What Up, Comet? You Just Got *PROBED*",
    "Scientists Made a Breakthrough in Quantum Computing"
  ],
  "headline_2": [
    "Scientists Everywhere Were Holding Their Breath Today. Here's Why.",
    "New Quantum Computer Achieves Milestone"
  ],
  "label": [
    "Headline 2 has more clicks than Headline 1",
    "Headline 1 has more clicks than Headline 2"
  ]
}
```

**Important notes:**
- All lists must have the same length
- Label format must match your `extract_label()` function output format
- Feature keys can be customized to match your domain (e.g., `review_text`, `post_content`, etc.)

## Configuration

Each task requires a `config.yaml` file specifying:

**Required elements:**
- Dataset paths (train/val/test)
- Prompt templates for:
  - Observations generation
  - Batched hypothesis generation
  - Hypothesis inference
  - Relevance checking
  - Adaptive methods (for HypoRefine)

**Template capabilities:**
- Dataset placeholders for dynamic variable injection (e.g., `${text_features_1}`, `${num_hypotheses}`)
- Custom label extraction functions for domain-specific parsing
- Role-based prompt structure (system, user, assistant roles)

**Configuration structure:**
```yaml
task_name: your_task_name

train_data_path: ./your_task_train.json
val_data_path: ./your_task_val.json
test_data_path: ./your_task_test.json

prompt_templates:
  # Extra keys for reusable prompt components
  observations: |
    Feature 1: ${text_features_1}
    Feature 2: ${text_features_2}
    Observation: ${label}
  
  # Required templates
  batched_generation:
    system: "Your system prompt here"
    user: "Your user prompt with ${num_hypotheses} placeholder"
  
  inference:
    system: "Your inference system prompt"
    user: "Your inference user prompt"
  
  # Optional templates for advanced features
  few_shot_baseline: {...}
  is_relevant: {...}
  adaptive_inference: {...}
  adaptive_selection: {...}
```

Refer to `references/config_template.yaml` for a complete example configuration.

## Literature Processing (HypoRefine/Union Methods)

To use literature-based hypothesis generation, you must preprocess PDF papers:

**Step 1: Setup GROBID** (first time only)
```bash
bash ./modules/setup_grobid.sh
```

**Step 2: Add PDF files**
Place research papers in `literature/YOUR_TASK_NAME/raw/`

**Step 3: Process PDFs**
```bash
# Start GROBID service
bash ./modules/run_grobid.sh

# Process PDFs for your task
cd examples
python pdf_preprocess.py --task_name YOUR_TASK_NAME
```

This converts PDFs to structured format for hypothesis extraction. Automated literature search will be supported in future releases.

## CLI Usage

### Hypothesis Generation

```bash
hypogenic_generation --help
```

**Key parameters:**
- Task configuration file path
- Model selection (API-based or local)
- Generation method (HypoGeniC, HypoRefine, or Union)
- Number of hypotheses to generate
- Output directory for hypothesis banks

### Hypothesis Inference

```bash
hypogenic_inference --help
```

**Key parameters:**
- Task configuration file path
- Hypothesis bank file path
- Test dataset path
- Inference method (default or multi-hypothesis)
- Output file for results

## Python API Usage

For programmatic control and custom workflows, use Hypogenic directly in your Python code:

### Basic HypoGeniC Generation

```python
from hypogenic import BaseTask

# Clone example datasets first
# git clone https://github.com/ChicagoHAI/HypoGeniC-datasets.git ./data

# Load your task with custom extract_label function
task = BaseTask(
    config_path="./data/your_task/config.yaml",
    extract_label=lambda text: extract_your_label(text)
)

# Generate hypotheses
task.generate_hypotheses(
    method="hypogenic",
    num_hypotheses=20,
    output_path="./output/hypotheses.json"
)

# Run inference
results = task.inference(
    hypothesis_bank="./output/hypotheses.json",
    test_data="./data/your_task/your_task_test.json"
)
```

### HypoRefine/Union Methods

```python
# For literature-integrated approaches
# git clone https://github.com/ChicagoHAI/Hypothesis-agent-datasets.git ./data

# Generate with HypoRefine
task.generate_hypotheses(
    method="hyporefine",
    num_hypotheses=15,
    literature_path="./literature/your_task/",
    output_path="./output/"
)
# This generates 3 hypothesis banks:
# - HypoRefine (integrated approach)
# - Literature-only hypotheses
# - Literature∪HypoRefine (union)
```

### Multi-Hypothesis Inference

```python
from examples.multi_hyp_inference import run_multi_hypothesis_inference

# Test multiple hypotheses simultaneously
results = run_multi_hypothesis_inference(
    config_path="./data/your_task/config.yaml",
    hypothesis_bank="./output/hypotheses.json",
    test_data="./data/your_task/your_task_test.json"
)
```

### Custom Label Extraction

The `extract_label()` function is critical for parsing LLM outputs. Implement it based on your task:

```python
def extract_label(llm_output: str) -> str:
    """Extract predicted label from LLM inference text.
    
    Default behavior: searches for 'final answer:\s+(.*)' pattern.
    Customize for your domain-specific output format.
    """
    import re
    match = re.search(r'final answer:\s+(.*)', llm_output, re.IGNORECASE)
    if match:
        return match.group(1).strip()
    return llm_output.strip()
```

**Important:** Extracted labels must match the format of `label` values in your dataset for correct accuracy calculation.

## Workflow Examples

### Example 1: Data-Driven Hypothesis Generation (HypoGeniC)

**Scenario:** Detecting AI-generated content without prior theoretical framework

**Steps:**
1. Prepare dataset with text samples and labels (human vs. AI-generated)
2. Create `config.yaml` with appropriate prompt templates
3. Run hypothesis generation:
   ```bash
   hypogenic_generation --config config.yaml --method hypogenic --num_hypotheses 20
   ```
4. Run inference on test set:
   ```bash
   hypogenic_inference --config config.yaml --hypotheses output/hypotheses.json --test_data data/test.json
   ```
5. Analyze results for patterns like formality, grammatical precision, and tone differences

### Example 2: Literature-Informed Hypothesis Testing (HypoRefine)

**Scenario:** Deception detection in hotel reviews building on existing research

**Steps:**
1. Collect 10 relevant papers on linguistic deception cues
2. Prepare dataset with genuine and fraudulent reviews
3. Configure `config.yaml` with literature processing and data generation templates
4. Run HypoRefine:
   ```bash
   hypogenic_generation --config config.yaml --method hyporefine --papers papers/ --num_hypotheses 15
   ```
5. Test hypotheses examining pronoun frequency, detail specificity, and other linguistic patterns
6. Compare literature-based and data-driven hypothesis performance

### Example 3: Comprehensive Hypothesis Coverage (Union Method)

**Scenario:** Mental stress detection maximizing hypothesis diversity

**Steps:**
1. Generate literature hypotheses from mental health research papers
2. Generate data-driven hypotheses from social media posts
3. Run Union method to combine and deduplicate:
   ```bash
   hypogenic_generation --config config.yaml --method union --literature_hypotheses lit_hyp.json
   ```
4. Inference captures both theoretical constructs (posting behavior changes) and data patterns (emotional language shifts)

## Performance Optimization

**Caching:** Enable Redis caching to reduce API costs and computation time for repeated LLM calls

**Parallel Processing:** Leverage multiple workers for large-scale hypothesis generation and testing

**Adaptive Refinement:** Use challenging examples to iteratively improve hypothesis quality

## Expected Outcomes

Research using hypogenic has demonstrated:
- 14.19% accuracy improvement in AI-content detection tasks
- 7.44% accuracy improvement in deception detection tasks
- 80-84% of hypothesis pairs offering distinct, non-redundant insights
- High helpfulness ratings from human evaluators across multiple research domains

## Troubleshooting

**Issue:** Generated hypotheses are too generic
**Solution:** Refine prompt templates in `config.yaml` to request more specific, testable hypotheses

**Issue:** Poor inference performance
**Solution:** Ensure dataset has sufficient training examples, adjust hypothesis generation parameters, or increase number of hypotheses

**Issue:** Label extraction failures
**Solution:** Implement custom `extract_label()` function for domain-specific output parsing

**Issue:** GROBID PDF processing fails
**Solution:** Ensure GROBID service is running (`bash ./modules/run_grobid.sh`) and PDFs are valid research papers

## Creating Custom Tasks

To add a new task or dataset to Hypogenic:

### Step 1: Prepare Your Dataset

Create three JSON files following the required format:
- `your_task_train.json`
- `your_task_val.json`
- `your_task_test.json`

Each file must have keys for text features (`text_features_1`, etc.) and `label`.

### Step 2: Create config.yaml

Define your task configuration with:
- Task name and dataset paths
- Prompt templates for observations, generation, inference
- Any extra keys for reusable prompt components
- Placeholder variables (e.g., `${text_features_1}`, `${num_hypotheses}`)

### Step 3: Implement extract_label Function

Create a custom label extraction function that parses LLM outputs for your domain:

```python
from hypogenic import BaseTask

def extract_my_label(llm_output: str) -> str:
    """Custom label extraction for your task.
    
    Must return labels in same format as dataset 'label' field.
    """
    # Example: Extract from specific format
    if "Final prediction:" in llm_output:
        return llm_output.split("Final prediction:")[-1].strip()
    
    # Fallback to default pattern
    import re
    match = re.search(r'final answer:\s+(.*)', llm_output, re.IGNORECASE)
    return match.group(1).strip() if match else llm_output.strip()

# Use your custom task
task = BaseTask(
    config_path="./your_task/config.yaml",
    extract_label=extract_my_label
)
```

### Step 4: (Optional) Process Literature

For HypoRefine/Union methods:
1. Create `literature/your_task_name/raw/` directory
2. Add relevant research paper PDFs
3. Run GROBID preprocessing
4. Process with `pdf_preprocess.py`

### Step 5: Generate and Test

Run hypothesis generation and inference using CLI or Python API:

```bash
# CLI approach
hypogenic_generation --config your_task/config.yaml --method hypogenic --num_hypotheses 20
hypogenic_inference --config your_task/config.yaml --hypotheses output/hypotheses.json

# Or use Python API (see Python API Usage section)
```

## Repository Structure

Understanding the repository layout:

```
hypothesis-generation/
├── hypogenic/              # Core package code
├── hypogenic_cmd/          # CLI entry points
├── hypothesis_agent/       # HypoRefine agent framework
├── literature/            # Literature processing utilities
├── modules/               # GROBID and preprocessing modules
├── examples/              # Example scripts
│   ├── generation.py      # Basic HypoGeniC generation
│   ├── union_generation.py # HypoRefine/Union generation
│   ├── inference.py       # Single hypothesis inference
│   ├── multi_hyp_inference.py # Multiple hypothesis inference
│   └── pdf_preprocess.py  # Literature PDF processing
├── data/                  # Example datasets (clone separately)
├── tests/                 # Unit tests
└── IO_prompting/          # Prompt templates and experiments
```

**Key directories:**
- **hypogenic/**: Main package with BaseTask and generation logic
- **examples/**: Reference implementations for common workflows
- **literature/**: Tools for PDF processing and literature extraction
- **modules/**: External tool integrations (GROBID, etc.)

## Related Publications

### HypoBench (2025)

Liu, H., Huang, S., Hu, J., Zhou, Y., & Tan, C. (2025). HypoBench: Towards Systematic and Principled Benchmarking for Hypothesis Generation. arXiv preprint arXiv:2504.11524.

- **Paper:** https://arxiv.org/abs/2504.11524
- **Description:** Benchmarking framework for systematic evaluation of hypothesis generation methods

**BibTeX:**
```bibtex
@misc{liu2025hypobenchsystematicprincipledbenchmarking,
      title={HypoBench: Towards Systematic and Principled Benchmarking for Hypothesis Generation}, 
      author={Haokun Liu and Sicong Huang and Jingyu Hu and Yangqiaoyu Zhou and Chenhao Tan},
      year={2025},
      eprint={2504.11524},
      archivePrefix={arXiv},
      primaryClass={cs.AI},
      url={https://arxiv.org/abs/2504.11524}, 
}
```

### Literature Meets Data (2024)

Liu, H., Zhou, Y., Li, M., Yuan, C., & Tan, C. (2024). Literature Meets Data: A Synergistic Approach to Hypothesis Generation. arXiv preprint arXiv:2410.17309.

- **Paper:** https://arxiv.org/abs/2410.17309
- **Code:** https://github.com/ChicagoHAI/hypothesis-generation
- **Description:** Introduces HypoRefine and demonstrates synergistic combination of literature-based and data-driven hypothesis generation

**BibTeX:**
```bibtex
@misc{liu2024literaturemeetsdatasynergistic,
      title={Literature Meets Data: A Synergistic Approach to Hypothesis Generation}, 
      author={Haokun Liu and Yangqiaoyu Zhou and Mingxuan Li and Chenfei Yuan and Chenhao Tan},
      year={2024},
      eprint={2410.17309},
      archivePrefix={arXiv},
      primaryClass={cs.AI},
      url={https://arxiv.org/abs/2410.17309}, 
}
```

### Hypothesis Generation with Large Language Models (2024)

Zhou, Y., Liu, H., Srivastava, T., Mei, H., & Tan, C. (2024). Hypothesis Generation with Large Language Models. In Proceedings of EMNLP Workshop of NLP for Science.

- **Paper:** https://aclanthology.org/2024.nlp4science-1.10/
- **Description:** Original HypoGeniC framework for data-driven hypothesis generation

**BibTeX:**
```bibtex
@inproceedings{zhou2024hypothesisgenerationlargelanguage,
      title={Hypothesis Generation with Large Language Models}, 
      author={Yangqiaoyu Zhou and Haokun Liu and Tejes Srivastava and Hongyuan Mei and Chenhao Tan},
      booktitle = {Proceedings of EMNLP Workshop of NLP for Science},
      year={2024},
      url={https://aclanthology.org/2024.nlp4science-1.10/},
}
```

## Additional Resources

### Official Links

- **GitHub Repository:** https://github.com/ChicagoHAI/hypothesis-generation
- **PyPI Package:** https://pypi.org/project/hypogenic/
- **License:** MIT License
- **Issues & Support:** https://github.com/ChicagoHAI/hypothesis-generation/issues

### Example Datasets

Clone these repositories for ready-to-use examples:

```bash
# HypoGeniC examples (data-driven only)
git clone https://github.com/ChicagoHAI/HypoGeniC-datasets.git ./data

# HypoRefine/Union examples (literature + data)
git clone https://github.com/ChicagoHAI/Hypothesis-agent-datasets.git ./data
```

### Community & Contributions

- **Contributors:** 7+ active contributors
- **Stars:** 89+ on GitHub
- **Topics:** research-tool, interpretability, hypothesis-generation, scientific-discovery, llm-application

For contributions or questions, visit the GitHub repository and check the issues page.

## Local Resources

### references/

`config_template.yaml` - Complete example configuration file with all required prompt templates and parameters. This includes:
- Full YAML structure for task configuration
- Example prompt templates for all methods
- Placeholder variable documentation
- Role-based prompt examples

### scripts/

Scripts directory is available for:
- Custom data preparation utilities
- Format conversion tools
- Analysis and evaluation scripts
- Integration with external tools

### assets/

Assets directory is available for:
- Example datasets and templates
- Sample hypothesis banks
- Visualization outputs
- Documentation supplements

用户提示词模板

填充变量后发送,即可运行该技能: {{variables}}

user-template.txt

变量

名称 必填 说明 示例

完整技能配置

标准 .aiskill 文件,提供 JSON 与 YAML 两种格式。

hypogenic.aiskill (JSON)
{
  "format": "aiskill/v1",
  "skill": {
    "name": "hypogenic",
    "slug": "hypogenic",
    "version": "1.0.0",
    "description": "Automated LLM-driven hypothesis generation and testing on tabular datasets. Use when you want to systematically explore hypotheses about patterns in empirical data (e.g., deception detection, content analysis). Combines literature insights with data-driven hypothesis testing. For manual hypothesis formulation use hypothesis-generation; for creative ideation use scientific-brainstorming.",
    "category": "Research",
    "tags": [
      "research-science",
      "llm",
      "testing",
      "research"
    ],
    "platforms": [
      "chatgpt",
      "claude-code",
      "cursor"
    ],
    "tested_environment": "Agent Skills convention (SKILL.md) — works with Claude Code, Cursor, ChatGPT/Codex and compatible agents",
    "license": "MIT LICENSE"
  },
  "prompts": {
    "system": "# Hypogenic\r\n\r\n## Overview\r\n\r\nHypogenic provides automated hypothesis generation and testing using large language models to accelerate scientific discovery. The framework supports three approaches: HypoGeniC (data-driven hypothesis generation), HypoRefine (synergistic literature and data integration), and Union methods (mechanistic combination of literature and data-driven hypotheses).\r\n\r\n## Quick Start\r\n\r\nGet started with Hypogenic in minutes:\r\n\r\n```bash\r\n# Install the package\r\nuv pip install hypogenic\r\n\r\n# Clone example datasets\r\ngit clone https://github.com/ChicagoHAI/HypoGeniC-datasets.git ./data\r\n\r\n# Run basic hypothesis generation\r\nhypogenic_generation --config ./data/your_task/config.yaml --method hypogenic --num_hypotheses 20\r\n\r\n# Run inference on generated hypotheses\r\nhypogenic_inference --config ./data/your_task/config.yaml --hypotheses output/hypotheses.json\r\n```\r\n\r\n**Or use Python API:**\r\n\r\n```python\r\nfrom hypogenic import BaseTask\r\n\r\n# Create task with your configuration\r\ntask = BaseTask(config_path=\"./data/your_task/config.yaml\")\r\n\r\n# Generate hypotheses\r\ntask.generate_hypotheses(method=\"hypogenic\", num_hypotheses=20)\r\n\r\n# Run inference\r\nresults = task.inference(hypothesis_bank=\"./output/hypotheses.json\")\r\n```\r\n\r\n## When to Use This Skill\r\n\r\nUse this skill when working on:\r\n- Generating scientific hypotheses from observational datasets\r\n- Testing multiple competing hypotheses systematically\r\n- Combining literature insights with empirical patterns\r\n- Accelerating research discovery through automated hypothesis ideation\r\n- Domains requiring hypothesis-driven analysis: deception detection, AI-generated content identification, mental health indicators, predictive modeling, or other empirical research\r\n\r\n## Key Features\r\n\r\n**Automated Hypothesis Generation**\r\n- Generate 10-20+ testable hypotheses from data in minutes\r\n- Iterative refinement based on validation performance\r\n- Support for both API-based (OpenAI, Anthropic) and local LLMs\r\n\r\n**Literature Integration**\r\n- Extract insights from research papers via PDF processing\r\n- Combine theoretical foundations with empirical patterns\r\n- Systematic literature-to-hypothesis pipeline with GROBID\r\n\r\n**Performance Optimization**\r\n- Redis caching reduces API costs for repeated experiments\r\n- Parallel processing for large-scale hypothesis testing\r\n- Adaptive refinement focuses on challenging examples\r\n\r\n**Flexible Configuration**\r\n- Template-based prompt engineering with variable injection\r\n- Custom label extraction for domain-specific tasks\r\n- Modular architecture for easy extension\r\n\r\n**Proven Results**\r\n- 8.97% improvement over few-shot baselines\r\n- 15.75% improvement over literature-only approaches\r\n- 80-84% hypothesis diversity (non-redundant insights)\r\n- Human evaluators report significant decision-making improvements\r\n\r\n## Core Capabilities\r\n\r\n### 1. HypoGeniC: Data-Driven Hypothesis Generation\r\n\r\nGenerate hypotheses solely from observational data through iterative refinement.\r\n\r\n**Process:**\r\n1. Initialize with a small data subset to generate candidate hypotheses\r\n2. Iteratively refine hypotheses based on performance\r\n3. Replace poorly-performing hypotheses with new ones from challenging examples\r\n\r\n**Best for:** Exploratory research without existing literature, pattern discovery in novel datasets\r\n\r\n### 2. HypoRefine: Literature and Data Integration\r\n\r\nSynergistically combine existing literature with empirical data through an agentic framework.\r\n\r\n**Process:**\r\n1. Extract insights from relevant research papers (typically 10 papers)\r\n2. Generate theory-grounded hypotheses from literature\r\n3. Generate data-driven hypotheses from observational patterns\r\n4. Refine both hypothesis banks through iterative improvement\r\n\r\n**Best for:** Research with established theoretical foundations, validating or extending existing theories\r\n\r\n### 3. Union Methods\r\n\r\nMechanistically combine literature-only hypotheses with framework outputs.\r\n\r\n**Variants:**\r\n- **Literature ∪ HypoGeniC**: Combines literature hypotheses with data-driven generation\r\n- **Literature ∪ HypoRefine**: Combines literature hypotheses with integrated approach\r\n\r\n**Best for:** Comprehensive hypothesis coverage, eliminating redundancy while maintaining diverse perspectives\r\n\r\n## Installation\r\n\r\nInstall via pip:\r\n```bash\r\nuv pip install hypogenic\r\n```\r\n\r\n**Optional dependencies:**\r\n- **Redis server** (port 6832): Enables caching of LLM responses to significantly reduce API costs during iterative hypothesis generation\r\n- **s2orc-doc2json**: Required for processing literature PDFs in HypoRefine workflows\r\n- **GROBID**: Required for PDF preprocessing (see Literature Processing section)\r\n\r\n**Clone example datasets:**\r\n```bash\r\n# For HypoGeniC examples\r\ngit clone https://github.com/ChicagoHAI/HypoGeniC-datasets.git ./data\r\n\r\n# For HypoRefine/Union examples\r\ngit clone https://github.com/ChicagoHAI/Hypothesis-agent-datasets.git ./data\r\n```\r\n\r\n## Dataset Format\r\n\r\nDatasets must follow HuggingFace datasets format with specific naming conventions:\r\n\r\n**Required files:**\r\n- `<TASK>_train.json`: Training data\r\n- `<TASK>_val.json`: Validation data  \r\n- `<TASK>_test.json`: Test data\r\n\r\n**Required keys in JSON:**\r\n- `text_features_1` through `text_features_n`: Lists of strings containing feature values\r\n- `label`: List of strings containing ground truth labels\r\n\r\n**Example (headline click prediction):**\r\n```json\r\n{\r\n  \"headline_1\": [\r\n    \"What Up, Comet? You Just Got *PROBED*\",\r\n    \"Scientists Made a Breakthrough in Quantum Computing\"\r\n  ],\r\n  \"headline_2\": [\r\n    \"Scientists Everywhere Were Holding Their Breath Today. Here's Why.\",\r\n    \"New Quantum Computer Achieves Milestone\"\r\n  ],\r\n  \"label\": [\r\n    \"Headline 2 has more clicks than Headline 1\",\r\n    \"Headline 1 has more clicks than Headline 2\"\r\n  ]\r\n}\r\n```\r\n\r\n**Important notes:**\r\n- All lists must have the same length\r\n- Label format must match your `extract_label()` function output format\r\n- Feature keys can be customized to match your domain (e.g., `review_text`, `post_content`, etc.)\r\n\r\n## Configuration\r\n\r\nEach task requires a `config.yaml` file specifying:\r\n\r\n**Required elements:**\r\n- Dataset paths (train/val/test)\r\n- Prompt templates for:\r\n  - Observations generation\r\n  - Batched hypothesis generation\r\n  - Hypothesis inference\r\n  - Relevance checking\r\n  - Adaptive methods (for HypoRefine)\r\n\r\n**Template capabilities:**\r\n- Dataset placeholders for dynamic variable injection (e.g., `${text_features_1}`, `${num_hypotheses}`)\r\n- Custom label extraction functions for domain-specific parsing\r\n- Role-based prompt structure (system, user, assistant roles)\r\n\r\n**Configuration structure:**\r\n```yaml\r\ntask_name: your_task_name\r\n\r\ntrain_data_path: ./your_task_train.json\r\nval_data_path: ./your_task_val.json\r\ntest_data_path: ./your_task_test.json\r\n\r\nprompt_templates:\r\n  # Extra keys for reusable prompt components\r\n  observations: |\r\n    Feature 1: ${text_features_1}\r\n    Feature 2: ${text_features_2}\r\n    Observation: ${label}\r\n  \r\n  # Required templates\r\n  batched_generation:\r\n    system: \"Your system prompt here\"\r\n    user: \"Your user prompt with ${num_hypotheses} placeholder\"\r\n  \r\n  inference:\r\n    system: \"Your inference system prompt\"\r\n    user: \"Your inference user prompt\"\r\n  \r\n  # Optional templates for advanced features\r\n  few_shot_baseline: {...}\r\n  is_relevant: {...}\r\n  adaptive_inference: {...}\r\n  adaptive_selection: {...}\r\n```\r\n\r\nRefer to `references/config_template.yaml` for a complete example configuration.\r\n\r\n## Literature Processing (HypoRefine/Union Methods)\r\n\r\nTo use literature-based hypothesis generation, you must preprocess PDF papers:\r\n\r\n**Step 1: Setup GROBID** (first time only)\r\n```bash\r\nbash ./modules/setup_grobid.sh\r\n```\r\n\r\n**Step 2: Add PDF files**\r\nPlace research papers in `literature/YOUR_TASK_NAME/raw/`\r\n\r\n**Step 3: Process PDFs**\r\n```bash\r\n# Start GROBID service\r\nbash ./modules/run_grobid.sh\r\n\r\n# Process PDFs for your task\r\ncd examples\r\npython pdf_preprocess.py --task_name YOUR_TASK_NAME\r\n```\r\n\r\nThis converts PDFs to structured format for hypothesis extraction. Automated literature search will be supported in future releases.\r\n\r\n## CLI Usage\r\n\r\n### Hypothesis Generation\r\n\r\n```bash\r\nhypogenic_generation --help\r\n```\r\n\r\n**Key parameters:**\r\n- Task configuration file path\r\n- Model selection (API-based or local)\r\n- Generation method (HypoGeniC, HypoRefine, or Union)\r\n- Number of hypotheses to generate\r\n- Output directory for hypothesis banks\r\n\r\n### Hypothesis Inference\r\n\r\n```bash\r\nhypogenic_inference --help\r\n```\r\n\r\n**Key parameters:**\r\n- Task configuration file path\r\n- Hypothesis bank file path\r\n- Test dataset path\r\n- Inference method (default or multi-hypothesis)\r\n- Output file for results\r\n\r\n## Python API Usage\r\n\r\nFor programmatic control and custom workflows, use Hypogenic directly in your Python code:\r\n\r\n### Basic HypoGeniC Generation\r\n\r\n```python\r\nfrom hypogenic import BaseTask\r\n\r\n# Clone example datasets first\r\n# git clone https://github.com/ChicagoHAI/HypoGeniC-datasets.git ./data\r\n\r\n# Load your task with custom extract_label function\r\ntask = BaseTask(\r\n    config_path=\"./data/your_task/config.yaml\",\r\n    extract_label=lambda text: extract_your_label(text)\r\n)\r\n\r\n# Generate hypotheses\r\ntask.generate_hypotheses(\r\n    method=\"hypogenic\",\r\n    num_hypotheses=20,\r\n    output_path=\"./output/hypotheses.json\"\r\n)\r\n\r\n# Run inference\r\nresults = task.inference(\r\n    hypothesis_bank=\"./output/hypotheses.json\",\r\n    test_data=\"./data/your_task/your_task_test.json\"\r\n)\r\n```\r\n\r\n### HypoRefine/Union Methods\r\n\r\n```python\r\n# For literature-integrated approaches\r\n# git clone https://github.com/ChicagoHAI/Hypothesis-agent-datasets.git ./data\r\n\r\n# Generate with HypoRefine\r\ntask.generate_hypotheses(\r\n    method=\"hyporefine\",\r\n    num_hypotheses=15,\r\n    literature_path=\"./literature/your_task/\",\r\n    output_path=\"./output/\"\r\n)\r\n# This generates 3 hypothesis banks:\r\n# - HypoRefine (integrated approach)\r\n# - Literature-only hypotheses\r\n# - Literature∪HypoRefine (union)\r\n```\r\n\r\n### Multi-Hypothesis Inference\r\n\r\n```python\r\nfrom examples.multi_hyp_inference import run_multi_hypothesis_inference\r\n\r\n# Test multiple hypotheses simultaneously\r\nresults = run_multi_hypothesis_inference(\r\n    config_path=\"./data/your_task/config.yaml\",\r\n    hypothesis_bank=\"./output/hypotheses.json\",\r\n    test_data=\"./data/your_task/your_task_test.json\"\r\n)\r\n```\r\n\r\n### Custom Label Extraction\r\n\r\nThe `extract_label()` function is critical for parsing LLM outputs. Implement it based on your task:\r\n\r\n```python\r\ndef extract_label(llm_output: str) -> str:\r\n    \"\"\"Extract predicted label from LLM inference text.\r\n    \r\n    Default behavior: searches for 'final answer:\\s+(.*)' pattern.\r\n    Customize for your domain-specific output format.\r\n    \"\"\"\r\n    import re\r\n    match = re.search(r'final answer:\\s+(.*)', llm_output, re.IGNORECASE)\r\n    if match:\r\n        return match.group(1).strip()\r\n    return llm_output.strip()\r\n```\r\n\r\n**Important:** Extracted labels must match the format of `label` values in your dataset for correct accuracy calculation.\r\n\r\n## Workflow Examples\r\n\r\n### Example 1: Data-Driven Hypothesis Generation (HypoGeniC)\r\n\r\n**Scenario:** Detecting AI-generated content without prior theoretical framework\r\n\r\n**Steps:**\r\n1. Prepare dataset with text samples and labels (human vs. AI-generated)\r\n2. Create `config.yaml` with appropriate prompt templates\r\n3. Run hypothesis generation:\r\n   ```bash\r\n   hypogenic_generation --config config.yaml --method hypogenic --num_hypotheses 20\r\n   ```\r\n4. Run inference on test set:\r\n   ```bash\r\n   hypogenic_inference --config config.yaml --hypotheses output/hypotheses.json --test_data data/test.json\r\n   ```\r\n5. Analyze results for patterns like formality, grammatical precision, and tone differences\r\n\r\n### Example 2: Literature-Informed Hypothesis Testing (HypoRefine)\r\n\r\n**Scenario:** Deception detection in hotel reviews building on existing research\r\n\r\n**Steps:**\r\n1. Collect 10 relevant papers on linguistic deception cues\r\n2. Prepare dataset with genuine and fraudulent reviews\r\n3. Configure `config.yaml` with literature processing and data generation templates\r\n4. Run HypoRefine:\r\n   ```bash\r\n   hypogenic_generation --config config.yaml --method hyporefine --papers papers/ --num_hypotheses 15\r\n   ```\r\n5. Test hypotheses examining pronoun frequency, detail specificity, and other linguistic patterns\r\n6. Compare literature-based and data-driven hypothesis performance\r\n\r\n### Example 3: Comprehensive Hypothesis Coverage (Union Method)\r\n\r\n**Scenario:** Mental stress detection maximizing hypothesis diversity\r\n\r\n**Steps:**\r\n1. Generate literature hypotheses from mental health research papers\r\n2. Generate data-driven hypotheses from social media posts\r\n3. Run Union method to combine and deduplicate:\r\n   ```bash\r\n   hypogenic_generation --config config.yaml --method union --literature_hypotheses lit_hyp.json\r\n   ```\r\n4. Inference captures both theoretical constructs (posting behavior changes) and data patterns (emotional language shifts)\r\n\r\n## Performance Optimization\r\n\r\n**Caching:** Enable Redis caching to reduce API costs and computation time for repeated LLM calls\r\n\r\n**Parallel Processing:** Leverage multiple workers for large-scale hypothesis generation and testing\r\n\r\n**Adaptive Refinement:** Use challenging examples to iteratively improve hypothesis quality\r\n\r\n## Expected Outcomes\r\n\r\nResearch using hypogenic has demonstrated:\r\n- 14.19% accuracy improvement in AI-content detection tasks\r\n- 7.44% accuracy improvement in deception detection tasks\r\n- 80-84% of hypothesis pairs offering distinct, non-redundant insights\r\n- High helpfulness ratings from human evaluators across multiple research domains\r\n\r\n## Troubleshooting\r\n\r\n**Issue:** Generated hypotheses are too generic\r\n**Solution:** Refine prompt templates in `config.yaml` to request more specific, testable hypotheses\r\n\r\n**Issue:** Poor inference performance\r\n**Solution:** Ensure dataset has sufficient training examples, adjust hypothesis generation parameters, or increase number of hypotheses\r\n\r\n**Issue:** Label extraction failures\r\n**Solution:** Implement custom `extract_label()` function for domain-specific output parsing\r\n\r\n**Issue:** GROBID PDF processing fails\r\n**Solution:** Ensure GROBID service is running (`bash ./modules/run_grobid.sh`) and PDFs are valid research papers\r\n\r\n## Creating Custom Tasks\r\n\r\nTo add a new task or dataset to Hypogenic:\r\n\r\n### Step 1: Prepare Your Dataset\r\n\r\nCreate three JSON files following the required format:\r\n- `your_task_train.json`\r\n- `your_task_val.json`\r\n- `your_task_test.json`\r\n\r\nEach file must have keys for text features (`text_features_1`, etc.) and `label`.\r\n\r\n### Step 2: Create config.yaml\r\n\r\nDefine your task configuration with:\r\n- Task name and dataset paths\r\n- Prompt templates for observations, generation, inference\r\n- Any extra keys for reusable prompt components\r\n- Placeholder variables (e.g., `${text_features_1}`, `${num_hypotheses}`)\r\n\r\n### Step 3: Implement extract_label Function\r\n\r\nCreate a custom label extraction function that parses LLM outputs for your domain:\r\n\r\n```python\r\nfrom hypogenic import BaseTask\r\n\r\ndef extract_my_label(llm_output: str) -> str:\r\n    \"\"\"Custom label extraction for your task.\r\n    \r\n    Must return labels in same format as dataset 'label' field.\r\n    \"\"\"\r\n    # Example: Extract from specific format\r\n    if \"Final prediction:\" in llm_output:\r\n        return llm_output.split(\"Final prediction:\")[-1].strip()\r\n    \r\n    # Fallback to default pattern\r\n    import re\r\n    match = re.search(r'final answer:\\s+(.*)', llm_output, re.IGNORECASE)\r\n    return match.group(1).strip() if match else llm_output.strip()\r\n\r\n# Use your custom task\r\ntask = BaseTask(\r\n    config_path=\"./your_task/config.yaml\",\r\n    extract_label=extract_my_label\r\n)\r\n```\r\n\r\n### Step 4: (Optional) Process Literature\r\n\r\nFor HypoRefine/Union methods:\r\n1. Create `literature/your_task_name/raw/` directory\r\n2. Add relevant research paper PDFs\r\n3. Run GROBID preprocessing\r\n4. Process with `pdf_preprocess.py`\r\n\r\n### Step 5: Generate and Test\r\n\r\nRun hypothesis generation and inference using CLI or Python API:\r\n\r\n```bash\r\n# CLI approach\r\nhypogenic_generation --config your_task/config.yaml --method hypogenic --num_hypotheses 20\r\nhypogenic_inference --config your_task/config.yaml --hypotheses output/hypotheses.json\r\n\r\n# Or use Python API (see Python API Usage section)\r\n```\r\n\r\n## Repository Structure\r\n\r\nUnderstanding the repository layout:\r\n\r\n```\r\nhypothesis-generation/\r\n├── hypogenic/              # Core package code\r\n├── hypogenic_cmd/          # CLI entry points\r\n├── hypothesis_agent/       # HypoRefine agent framework\r\n├── literature/            # Literature processing utilities\r\n├── modules/               # GROBID and preprocessing modules\r\n├── examples/              # Example scripts\r\n│   ├── generation.py      # Basic HypoGeniC generation\r\n│   ├── union_generation.py # HypoRefine/Union generation\r\n│   ├── inference.py       # Single hypothesis inference\r\n│   ├── multi_hyp_inference.py # Multiple hypothesis inference\r\n│   └── pdf_preprocess.py  # Literature PDF processing\r\n├── data/                  # Example datasets (clone separately)\r\n├── tests/                 # Unit tests\r\n└── IO_prompting/          # Prompt templates and experiments\r\n```\r\n\r\n**Key directories:**\r\n- **hypogenic/**: Main package with BaseTask and generation logic\r\n- **examples/**: Reference implementations for common workflows\r\n- **literature/**: Tools for PDF processing and literature extraction\r\n- **modules/**: External tool integrations (GROBID, etc.)\r\n\r\n## Related Publications\r\n\r\n### HypoBench (2025)\r\n\r\nLiu, H., Huang, S., Hu, J., Zhou, Y., & Tan, C. (2025). HypoBench: Towards Systematic and Principled Benchmarking for Hypothesis Generation. arXiv preprint arXiv:2504.11524.\r\n\r\n- **Paper:** https://arxiv.org/abs/2504.11524\r\n- **Description:** Benchmarking framework for systematic evaluation of hypothesis generation methods\r\n\r\n**BibTeX:**\r\n```bibtex\r\n@misc{liu2025hypobenchsystematicprincipledbenchmarking,\r\n      title={HypoBench: Towards Systematic and Principled Benchmarking for Hypothesis Generation}, \r\n      author={Haokun Liu and Sicong Huang and Jingyu Hu and Yangqiaoyu Zhou and Chenhao Tan},\r\n      year={2025},\r\n      eprint={2504.11524},\r\n      archivePrefix={arXiv},\r\n      primaryClass={cs.AI},\r\n      url={https://arxiv.org/abs/2504.11524}, \r\n}\r\n```\r\n\r\n### Literature Meets Data (2024)\r\n\r\nLiu, H., Zhou, Y., Li, M., Yuan, C., & Tan, C. (2024). Literature Meets Data: A Synergistic Approach to Hypothesis Generation. arXiv preprint arXiv:2410.17309.\r\n\r\n- **Paper:** https://arxiv.org/abs/2410.17309\r\n- **Code:** https://github.com/ChicagoHAI/hypothesis-generation\r\n- **Description:** Introduces HypoRefine and demonstrates synergistic combination of literature-based and data-driven hypothesis generation\r\n\r\n**BibTeX:**\r\n```bibtex\r\n@misc{liu2024literaturemeetsdatasynergistic,\r\n      title={Literature Meets Data: A Synergistic Approach to Hypothesis Generation}, \r\n      author={Haokun Liu and Yangqiaoyu Zhou and Mingxuan Li and Chenfei Yuan and Chenhao Tan},\r\n      year={2024},\r\n      eprint={2410.17309},\r\n      archivePrefix={arXiv},\r\n      primaryClass={cs.AI},\r\n      url={https://arxiv.org/abs/2410.17309}, \r\n}\r\n```\r\n\r\n### Hypothesis Generation with Large Language Models (2024)\r\n\r\nZhou, Y., Liu, H., Srivastava, T., Mei, H., & Tan, C. (2024). Hypothesis Generation with Large Language Models. In Proceedings of EMNLP Workshop of NLP for Science.\r\n\r\n- **Paper:** https://aclanthology.org/2024.nlp4science-1.10/\r\n- **Description:** Original HypoGeniC framework for data-driven hypothesis generation\r\n\r\n**BibTeX:**\r\n```bibtex\r\n@inproceedings{zhou2024hypothesisgenerationlargelanguage,\r\n      title={Hypothesis Generation with Large Language Models}, \r\n      author={Yangqiaoyu Zhou and Haokun Liu and Tejes Srivastava and Hongyuan Mei and Chenhao Tan},\r\n      booktitle = {Proceedings of EMNLP Workshop of NLP for Science},\r\n      year={2024},\r\n      url={https://aclanthology.org/2024.nlp4science-1.10/},\r\n}\r\n```\r\n\r\n## Additional Resources\r\n\r\n### Official Links\r\n\r\n- **GitHub Repository:** https://github.com/ChicagoHAI/hypothesis-generation\r\n- **PyPI Package:** https://pypi.org/project/hypogenic/\r\n- **License:** MIT License\r\n- **Issues & Support:** https://github.com/ChicagoHAI/hypothesis-generation/issues\r\n\r\n### Example Datasets\r\n\r\nClone these repositories for ready-to-use examples:\r\n\r\n```bash\r\n# HypoGeniC examples (data-driven only)\r\ngit clone https://github.com/ChicagoHAI/HypoGeniC-datasets.git ./data\r\n\r\n# HypoRefine/Union examples (literature + data)\r\ngit clone https://github.com/ChicagoHAI/Hypothesis-agent-datasets.git ./data\r\n```\r\n\r\n### Community & Contributions\r\n\r\n- **Contributors:** 7+ active contributors\r\n- **Stars:** 89+ on GitHub\r\n- **Topics:** research-tool, interpretability, hypothesis-generation, scientific-discovery, llm-application\r\n\r\nFor contributions or questions, visit the GitHub repository and check the issues page.\r\n\r\n## Local Resources\r\n\r\n### references/\r\n\r\n`config_template.yaml` - Complete example configuration file with all required prompt templates and parameters. This includes:\r\n- Full YAML structure for task configuration\r\n- Example prompt templates for all methods\r\n- Placeholder variable documentation\r\n- Role-based prompt examples\r\n\r\n### scripts/\r\n\r\nScripts directory is available for:\r\n- Custom data preparation utilities\r\n- Format conversion tools\r\n- Analysis and evaluation scripts\r\n- Integration with external tools\r\n\r\n### assets/\r\n\r\nAssets directory is available for:\r\n- Example datasets and templates\r\n- Sample hypothesis banks\r\n- Visualization outputs\r\n- Documentation supplements",
    "user_template": ""
  },
  "variables": [],
  "install": {
    "steps": [
      {
        "title": "Download & unzip",
        "detail": "Download the .zip package from SkillVault and unzip it. The hypogenic/ folder contains SKILL.md plus any companion scripts, references and assets."
      },
      {
        "title": "Copy into your agent skills directory",
        "detail": "Move the folder into your agent's skills directory — e.g. ~/.claude/skills/ (Claude Code), .codex/skills/, .cursor/skills/ or your project's .claude/skills/ folder — then restart or reload the session."
      },
      {
        "title": "Use it",
        "detail": "Describe the task in natural language; the agent loads the skill automatically when the request matches the skill description."
      }
    ]
  },
  "usage": {
    "steps": []
  },
  "metadata": {
    "author": "SkillVault",
    "source": "https://skillvault.top/skills/hypogenic",
    "exported_at": "2026-11-03T07:43:13.709Z"
  }
}
hypogenic.aiskill (YAML)
format: aiskill/v1
skill:
  name: hypogenic
  slug: hypogenic
  version: 1.0.0
  description: >-
    Automated LLM-driven hypothesis generation and testing on tabular datasets. Use when you want to
    systematically explore hypotheses about patterns in empirical data (e.g., deception detection,
    content analysis). Combines literature insights with data-driven hypothesis testing. For manual
    hypothesis formulation use hypothesis-generation; for creative ideation use
    scientific-brainstorming.
  category: Research
  tags:
    - research-science
    - llm
    - testing
    - research
  platforms:
    - chatgpt
    - claude-code
    - cursor
  tested_environment: >-
    Agent Skills convention (SKILL.md) — works with Claude Code, Cursor, ChatGPT/Codex and
    compatible agents
  license: MIT LICENSE
prompts:
  system: "# Hypogenic\r\n\r\n## Overview\r\n\r\nHypogenic provides automated hypothesis generation and testing using large language models to accelerate scientific discovery. The framework supports three approaches: HypoGeniC (data-driven hypothesis generation), HypoRefine (synergistic literature and data integration), and Union methods (mechanistic combination of literature and data-driven hypotheses).\r\n\r\n## Quick Start\r\n\r\nGet started with Hypogenic in minutes:\r\n\r\n```bash\r\n# Install the package\r\nuv pip install hypogenic\r\n\r\n# Clone example datasets\r\ngit clone https://github.com/ChicagoHAI/HypoGeniC-datasets.git ./data\r\n\r\n# Run basic hypothesis generation\r\nhypogenic_generation --config ./data/your_task/config.yaml --method hypogenic --num_hypotheses 20\r\n\r\n# Run inference on generated hypotheses\r\nhypogenic_inference --config ./data/your_task/config.yaml --hypotheses output/hypotheses.json\r\n```\r\n\r\n**Or use Python API:**\r\n\r\n```python\r\nfrom hypogenic import BaseTask\r\n\r\n# Create task with your configuration\r\ntask = BaseTask(config_path=\"./data/your_task/config.yaml\")\r\n\r\n# Generate hypotheses\r\ntask.generate_hypotheses(method=\"hypogenic\", num_hypotheses=20)\r\n\r\n# Run inference\r\nresults = task.inference(hypothesis_bank=\"./output/hypotheses.json\")\r\n```\r\n\r\n## When to Use This Skill\r\n\r\nUse this skill when working on:\r\n- Generating scientific hypotheses from observational datasets\r\n- Testing multiple competing hypotheses systematically\r\n- Combining literature insights with empirical patterns\r\n- Accelerating research discovery through automated hypothesis ideation\r\n- Domains requiring hypothesis-driven analysis: deception detection, AI-generated content identification, mental health indicators, predictive modeling, or other empirical research\r\n\r\n## Key Features\r\n\r\n**Automated Hypothesis Generation**\r\n- Generate 10-20+ testable hypotheses from data in minutes\r\n- Iterative refinement based on validation performance\r\n- Support for both API-based (OpenAI, Anthropic) and local LLMs\r\n\r\n**Literature Integration**\r\n- Extract insights from research papers via PDF processing\r\n- Combine theoretical foundations with empirical patterns\r\n- Systematic literature-to-hypothesis pipeline with GROBID\r\n\r\n**Performance Optimization**\r\n- Redis caching reduces API costs for repeated experiments\r\n- Parallel processing for large-scale hypothesis testing\r\n- Adaptive refinement focuses on challenging examples\r\n\r\n**Flexible Configuration**\r\n- Template-based prompt engineering with variable injection\r\n- Custom label extraction for domain-specific tasks\r\n- Modular architecture for easy extension\r\n\r\n**Proven Results**\r\n- 8.97% improvement over few-shot baselines\r\n- 15.75% improvement over literature-only approaches\r\n- 80-84% hypothesis diversity (non-redundant insights)\r\n- Human evaluators report significant decision-making improvements\r\n\r\n## Core Capabilities\r\n\r\n### 1. HypoGeniC: Data-Driven Hypothesis Generation\r\n\r\nGenerate hypotheses solely from observational data through iterative refinement.\r\n\r\n**Process:**\r\n1. Initialize with a small data subset to generate candidate hypotheses\r\n2. Iteratively refine hypotheses based on performance\r\n3. Replace poorly-performing hypotheses with new ones from challenging examples\r\n\r\n**Best for:** Exploratory research without existing literature, pattern discovery in novel datasets\r\n\r\n### 2. HypoRefine: Literature and Data Integration\r\n\r\nSynergistically combine existing literature with empirical data through an agentic framework.\r\n\r\n**Process:**\r\n1. Extract insights from relevant research papers (typically 10 papers)\r\n2. Generate theory-grounded hypotheses from literature\r\n3. Generate data-driven hypotheses from observational patterns\r\n4. Refine both hypothesis banks through iterative improvement\r\n\r\n**Best for:** Research with established theoretical foundations, validating or extending existing theories\r\n\r\n### 3. Union Methods\r\n\r\nMechanistically combine literature-only hypotheses with framework outputs.\r\n\r\n**Variants:**\r\n- **Literature ∪ HypoGeniC**: Combines literature hypotheses with data-driven generation\r\n- **Literature ∪ HypoRefine**: Combines literature hypotheses with integrated approach\r\n\r\n**Best for:** Comprehensive hypothesis coverage, eliminating redundancy while maintaining diverse perspectives\r\n\r\n## Installation\r\n\r\nInstall via pip:\r\n```bash\r\nuv pip install hypogenic\r\n```\r\n\r\n**Optional dependencies:**\r\n- **Redis server** (port 6832): Enables caching of LLM responses to significantly reduce API costs during iterative hypothesis generation\r\n- **s2orc-doc2json**: Required for processing literature PDFs in HypoRefine workflows\r\n- **GROBID**: Required for PDF preprocessing (see Literature Processing section)\r\n\r\n**Clone example datasets:**\r\n```bash\r\n# For HypoGeniC examples\r\ngit clone https://github.com/ChicagoHAI/HypoGeniC-datasets.git ./data\r\n\r\n# For HypoRefine/Union examples\r\ngit clone https://github.com/ChicagoHAI/Hypothesis-agent-datasets.git ./data\r\n```\r\n\r\n## Dataset Format\r\n\r\nDatasets must follow HuggingFace datasets format with specific naming conventions:\r\n\r\n**Required files:**\r\n- `<TASK>_train.json`: Training data\r\n- `<TASK>_val.json`: Validation data  \r\n- `<TASK>_test.json`: Test data\r\n\r\n**Required keys in JSON:**\r\n- `text_features_1` through `text_features_n`: Lists of strings containing feature values\r\n- `label`: List of strings containing ground truth labels\r\n\r\n**Example (headline click prediction):**\r\n```json\r\n{\r\n  \"headline_1\": [\r\n    \"What Up, Comet? You Just Got *PROBED*\",\r\n    \"Scientists Made a Breakthrough in Quantum Computing\"\r\n  ],\r\n  \"headline_2\": [\r\n    \"Scientists Everywhere Were Holding Their Breath Today. Here's Why.\",\r\n    \"New Quantum Computer Achieves Milestone\"\r\n  ],\r\n  \"label\": [\r\n    \"Headline 2 has more clicks than Headline 1\",\r\n    \"Headline 1 has more clicks than Headline 2\"\r\n  ]\r\n}\r\n```\r\n\r\n**Important notes:**\r\n- All lists must have the same length\r\n- Label format must match your `extract_label()` function output format\r\n- Feature keys can be customized to match your domain (e.g., `review_text`, `post_content`, etc.)\r\n\r\n## Configuration\r\n\r\nEach task requires a `config.yaml` file specifying:\r\n\r\n**Required elements:**\r\n- Dataset paths (train/val/test)\r\n- Prompt templates for:\r\n  - Observations generation\r\n  - Batched hypothesis generation\r\n  - Hypothesis inference\r\n  - Relevance checking\r\n  - Adaptive methods (for HypoRefine)\r\n\r\n**Template capabilities:**\r\n- Dataset placeholders for dynamic variable injection (e.g., `${text_features_1}`, `${num_hypotheses}`)\r\n- Custom label extraction functions for domain-specific parsing\r\n- Role-based prompt structure (system, user, assistant roles)\r\n\r\n**Configuration structure:**\r\n```yaml\r\ntask_name: your_task_name\r\n\r\ntrain_data_path: ./your_task_train.json\r\nval_data_path: ./your_task_val.json\r\ntest_data_path: ./your_task_test.json\r\n\r\nprompt_templates:\r\n  # Extra keys for reusable prompt components\r\n  observations: |\r\n    Feature 1: ${text_features_1}\r\n    Feature 2: ${text_features_2}\r\n    Observation: ${label}\r\n  \r\n  # Required templates\r\n  batched_generation:\r\n    system: \"Your system prompt here\"\r\n    user: \"Your user prompt with ${num_hypotheses} placeholder\"\r\n  \r\n  inference:\r\n    system: \"Your inference system prompt\"\r\n    user: \"Your inference user prompt\"\r\n  \r\n  # Optional templates for advanced features\r\n  few_shot_baseline: {...}\r\n  is_relevant: {...}\r\n  adaptive_inference: {...}\r\n  adaptive_selection: {...}\r\n```\r\n\r\nRefer to `references/config_template.yaml` for a complete example configuration.\r\n\r\n## Literature Processing (HypoRefine/Union Methods)\r\n\r\nTo use literature-based hypothesis generation, you must preprocess PDF papers:\r\n\r\n**Step 1: Setup GROBID** (first time only)\r\n```bash\r\nbash ./modules/setup_grobid.sh\r\n```\r\n\r\n**Step 2: Add PDF files**\r\nPlace research papers in `literature/YOUR_TASK_NAME/raw/`\r\n\r\n**Step 3: Process PDFs**\r\n```bash\r\n# Start GROBID service\r\nbash ./modules/run_grobid.sh\r\n\r\n# Process PDFs for your task\r\ncd examples\r\npython pdf_preprocess.py --task_name YOUR_TASK_NAME\r\n```\r\n\r\nThis converts PDFs to structured format for hypothesis extraction. Automated literature search will be supported in future releases.\r\n\r\n## CLI Usage\r\n\r\n### Hypothesis Generation\r\n\r\n```bash\r\nhypogenic_generation --help\r\n```\r\n\r\n**Key parameters:**\r\n- Task configuration file path\r\n- Model selection (API-based or local)\r\n- Generation method (HypoGeniC, HypoRefine, or Union)\r\n- Number of hypotheses to generate\r\n- Output directory for hypothesis banks\r\n\r\n### Hypothesis Inference\r\n\r\n```bash\r\nhypogenic_inference --help\r\n```\r\n\r\n**Key parameters:**\r\n- Task configuration file path\r\n- Hypothesis bank file path\r\n- Test dataset path\r\n- Inference method (default or multi-hypothesis)\r\n- Output file for results\r\n\r\n## Python API Usage\r\n\r\nFor programmatic control and custom workflows, use Hypogenic directly in your Python code:\r\n\r\n### Basic HypoGeniC Generation\r\n\r\n```python\r\nfrom hypogenic import BaseTask\r\n\r\n# Clone example datasets first\r\n# git clone https://github.com/ChicagoHAI/HypoGeniC-datasets.git ./data\r\n\r\n# Load your task with custom extract_label function\r\ntask = BaseTask(\r\n    config_path=\"./data/your_task/config.yaml\",\r\n    extract_label=lambda text: extract_your_label(text)\r\n)\r\n\r\n# Generate hypotheses\r\ntask.generate_hypotheses(\r\n    method=\"hypogenic\",\r\n    num_hypotheses=20,\r\n    output_path=\"./output/hypotheses.json\"\r\n)\r\n\r\n# Run inference\r\nresults = task.inference(\r\n    hypothesis_bank=\"./output/hypotheses.json\",\r\n    test_data=\"./data/your_task/your_task_test.json\"\r\n)\r\n```\r\n\r\n### HypoRefine/Union Methods\r\n\r\n```python\r\n# For literature-integrated approaches\r\n# git clone https://github.com/ChicagoHAI/Hypothesis-agent-datasets.git ./data\r\n\r\n# Generate with HypoRefine\r\ntask.generate_hypotheses(\r\n    method=\"hyporefine\",\r\n    num_hypotheses=15,\r\n    literature_path=\"./literature/your_task/\",\r\n    output_path=\"./output/\"\r\n)\r\n# This generates 3 hypothesis banks:\r\n# - HypoRefine (integrated approach)\r\n# - Literature-only hypotheses\r\n# - Literature∪HypoRefine (union)\r\n```\r\n\r\n### Multi-Hypothesis Inference\r\n\r\n```python\r\nfrom examples.multi_hyp_inference import run_multi_hypothesis_inference\r\n\r\n# Test multiple hypotheses simultaneously\r\nresults = run_multi_hypothesis_inference(\r\n    config_path=\"./data/your_task/config.yaml\",\r\n    hypothesis_bank=\"./output/hypotheses.json\",\r\n    test_data=\"./data/your_task/your_task_test.json\"\r\n)\r\n```\r\n\r\n### Custom Label Extraction\r\n\r\nThe `extract_label()` function is critical for parsing LLM outputs. Implement it based on your task:\r\n\r\n```python\r\ndef extract_label(llm_output: str) -> str:\r\n    \"\"\"Extract predicted label from LLM inference text.\r\n    \r\n    Default behavior: searches for 'final answer:\\s+(.*)' pattern.\r\n    Customize for your domain-specific output format.\r\n    \"\"\"\r\n    import re\r\n    match = re.search(r'final answer:\\s+(.*)', llm_output, re.IGNORECASE)\r\n    if match:\r\n        return match.group(1).strip()\r\n    return llm_output.strip()\r\n```\r\n\r\n**Important:** Extracted labels must match the format of `label` values in your dataset for correct accuracy calculation.\r\n\r\n## Workflow Examples\r\n\r\n### Example 1: Data-Driven Hypothesis Generation (HypoGeniC)\r\n\r\n**Scenario:** Detecting AI-generated content without prior theoretical framework\r\n\r\n**Steps:**\r\n1. Prepare dataset with text samples and labels (human vs. AI-generated)\r\n2. Create `config.yaml` with appropriate prompt templates\r\n3. Run hypothesis generation:\r\n   ```bash\r\n   hypogenic_generation --config config.yaml --method hypogenic --num_hypotheses 20\r\n   ```\r\n4. Run inference on test set:\r\n   ```bash\r\n   hypogenic_inference --config config.yaml --hypotheses output/hypotheses.json --test_data data/test.json\r\n   ```\r\n5. Analyze results for patterns like formality, grammatical precision, and tone differences\r\n\r\n### Example 2: Literature-Informed Hypothesis Testing (HypoRefine)\r\n\r\n**Scenario:** Deception detection in hotel reviews building on existing research\r\n\r\n**Steps:**\r\n1. Collect 10 relevant papers on linguistic deception cues\r\n2. Prepare dataset with genuine and fraudulent reviews\r\n3. Configure `config.yaml` with literature processing and data generation templates\r\n4. Run HypoRefine:\r\n   ```bash\r\n   hypogenic_generation --config config.yaml --method hyporefine --papers papers/ --num_hypotheses 15\r\n   ```\r\n5. Test hypotheses examining pronoun frequency, detail specificity, and other linguistic patterns\r\n6. Compare literature-based and data-driven hypothesis performance\r\n\r\n### Example 3: Comprehensive Hypothesis Coverage (Union Method)\r\n\r\n**Scenario:** Mental stress detection maximizing hypothesis diversity\r\n\r\n**Steps:**\r\n1. Generate literature hypotheses from mental health research papers\r\n2. Generate data-driven hypotheses from social media posts\r\n3. Run Union method to combine and deduplicate:\r\n   ```bash\r\n   hypogenic_generation --config config.yaml --method union --literature_hypotheses lit_hyp.json\r\n   ```\r\n4. Inference captures both theoretical constructs (posting behavior changes) and data patterns (emotional language shifts)\r\n\r\n## Performance Optimization\r\n\r\n**Caching:** Enable Redis caching to reduce API costs and computation time for repeated LLM calls\r\n\r\n**Parallel Processing:** Leverage multiple workers for large-scale hypothesis generation and testing\r\n\r\n**Adaptive Refinement:** Use challenging examples to iteratively improve hypothesis quality\r\n\r\n## Expected Outcomes\r\n\r\nResearch using hypogenic has demonstrated:\r\n- 14.19% accuracy improvement in AI-content detection tasks\r\n- 7.44% accuracy improvement in deception detection tasks\r\n- 80-84% of hypothesis pairs offering distinct, non-redundant insights\r\n- High helpfulness ratings from human evaluators across multiple research domains\r\n\r\n## Troubleshooting\r\n\r\n**Issue:** Generated hypotheses are too generic\r\n**Solution:** Refine prompt templates in `config.yaml` to request more specific, testable hypotheses\r\n\r\n**Issue:** Poor inference performance\r\n**Solution:** Ensure dataset has sufficient training examples, adjust hypothesis generation parameters, or increase number of hypotheses\r\n\r\n**Issue:** Label extraction failures\r\n**Solution:** Implement custom `extract_label()` function for domain-specific output parsing\r\n\r\n**Issue:** GROBID PDF processing fails\r\n**Solution:** Ensure GROBID service is running (`bash ./modules/run_grobid.sh`) and PDFs are valid research papers\r\n\r\n## Creating Custom Tasks\r\n\r\nTo add a new task or dataset to Hypogenic:\r\n\r\n### Step 1: Prepare Your Dataset\r\n\r\nCreate three JSON files following the required format:\r\n- `your_task_train.json`\r\n- `your_task_val.json`\r\n- `your_task_test.json`\r\n\r\nEach file must have keys for text features (`text_features_1`, etc.) and `label`.\r\n\r\n### Step 2: Create config.yaml\r\n\r\nDefine your task configuration with:\r\n- Task name and dataset paths\r\n- Prompt templates for observations, generation, inference\r\n- Any extra keys for reusable prompt components\r\n- Placeholder variables (e.g., `${text_features_1}`, `${num_hypotheses}`)\r\n\r\n### Step 3: Implement extract_label Function\r\n\r\nCreate a custom label extraction function that parses LLM outputs for your domain:\r\n\r\n```python\r\nfrom hypogenic import BaseTask\r\n\r\ndef extract_my_label(llm_output: str) -> str:\r\n    \"\"\"Custom label extraction for your task.\r\n    \r\n    Must return labels in same format as dataset 'label' field.\r\n    \"\"\"\r\n    # Example: Extract from specific format\r\n    if \"Final prediction:\" in llm_output:\r\n        return llm_output.split(\"Final prediction:\")[-1].strip()\r\n    \r\n    # Fallback to default pattern\r\n    import re\r\n    match = re.search(r'final answer:\\s+(.*)', llm_output, re.IGNORECASE)\r\n    return match.group(1).strip() if match else llm_output.strip()\r\n\r\n# Use your custom task\r\ntask = BaseTask(\r\n    config_path=\"./your_task/config.yaml\",\r\n    extract_label=extract_my_label\r\n)\r\n```\r\n\r\n### Step 4: (Optional) Process Literature\r\n\r\nFor HypoRefine/Union methods:\r\n1. Create `literature/your_task_name/raw/` directory\r\n2. Add relevant research paper PDFs\r\n3. Run GROBID preprocessing\r\n4. Process with `pdf_preprocess.py`\r\n\r\n### Step 5: Generate and Test\r\n\r\nRun hypothesis generation and inference using CLI or Python API:\r\n\r\n```bash\r\n# CLI approach\r\nhypogenic_generation --config your_task/config.yaml --method hypogenic --num_hypotheses 20\r\nhypogenic_inference --config your_task/config.yaml --hypotheses output/hypotheses.json\r\n\r\n# Or use Python API (see Python API Usage section)\r\n```\r\n\r\n## Repository Structure\r\n\r\nUnderstanding the repository layout:\r\n\r\n```\r\nhypothesis-generation/\r\n├── hypogenic/              # Core package code\r\n├── hypogenic_cmd/          # CLI entry points\r\n├── hypothesis_agent/       # HypoRefine agent framework\r\n├── literature/            # Literature processing utilities\r\n├── modules/               # GROBID and preprocessing modules\r\n├── examples/              # Example scripts\r\n│   ├── generation.py      # Basic HypoGeniC generation\r\n│   ├── union_generation.py # HypoRefine/Union generation\r\n│   ├── inference.py       # Single hypothesis inference\r\n│   ├── multi_hyp_inference.py # Multiple hypothesis inference\r\n│   └── pdf_preprocess.py  # Literature PDF processing\r\n├── data/                  # Example datasets (clone separately)\r\n├── tests/                 # Unit tests\r\n└── IO_prompting/          # Prompt templates and experiments\r\n```\r\n\r\n**Key directories:**\r\n- **hypogenic/**: Main package with BaseTask and generation logic\r\n- **examples/**: Reference implementations for common workflows\r\n- **literature/**: Tools for PDF processing and literature extraction\r\n- **modules/**: External tool integrations (GROBID, etc.)\r\n\r\n## Related Publications\r\n\r\n### HypoBench (2025)\r\n\r\nLiu, H., Huang, S., Hu, J., Zhou, Y., & Tan, C. (2025). HypoBench: Towards Systematic and Principled Benchmarking for Hypothesis Generation. arXiv preprint arXiv:2504.11524.\r\n\r\n- **Paper:** https://arxiv.org/abs/2504.11524\r\n- **Description:** Benchmarking framework for systematic evaluation of hypothesis generation methods\r\n\r\n**BibTeX:**\r\n```bibtex\r\n@misc{liu2025hypobenchsystematicprincipledbenchmarking,\r\n      title={HypoBench: Towards Systematic and Principled Benchmarking for Hypothesis Generation}, \r\n      author={Haokun Liu and Sicong Huang and Jingyu Hu and Yangqiaoyu Zhou and Chenhao Tan},\r\n      year={2025},\r\n      eprint={2504.11524},\r\n      archivePrefix={arXiv},\r\n      primaryClass={cs.AI},\r\n      url={https://arxiv.org/abs/2504.11524}, \r\n}\r\n```\r\n\r\n### Literature Meets Data (2024)\r\n\r\nLiu, H., Zhou, Y., Li, M., Yuan, C., & Tan, C. (2024). Literature Meets Data: A Synergistic Approach to Hypothesis Generation. arXiv preprint arXiv:2410.17309.\r\n\r\n- **Paper:** https://arxiv.org/abs/2410.17309\r\n- **Code:** https://github.com/ChicagoHAI/hypothesis-generation\r\n- **Description:** Introduces HypoRefine and demonstrates synergistic combination of literature-based and data-driven hypothesis generation\r\n\r\n**BibTeX:**\r\n```bibtex\r\n@misc{liu2024literaturemeetsdatasynergistic,\r\n      title={Literature Meets Data: A Synergistic Approach to Hypothesis Generation}, \r\n      author={Haokun Liu and Yangqiaoyu Zhou and Mingxuan Li and Chenfei Yuan and Chenhao Tan},\r\n      year={2024},\r\n      eprint={2410.17309},\r\n      archivePrefix={arXiv},\r\n      primaryClass={cs.AI},\r\n      url={https://arxiv.org/abs/2410.17309}, \r\n}\r\n```\r\n\r\n### Hypothesis Generation with Large Language Models (2024)\r\n\r\nZhou, Y., Liu, H., Srivastava, T., Mei, H., & Tan, C. (2024). Hypothesis Generation with Large Language Models. In Proceedings of EMNLP Workshop of NLP for Science.\r\n\r\n- **Paper:** https://aclanthology.org/2024.nlp4science-1.10/\r\n- **Description:** Original HypoGeniC framework for data-driven hypothesis generation\r\n\r\n**BibTeX:**\r\n```bibtex\r\n@inproceedings{zhou2024hypothesisgenerationlargelanguage,\r\n      title={Hypothesis Generation with Large Language Models}, \r\n      author={Yangqiaoyu Zhou and Haokun Liu and Tejes Srivastava and Hongyuan Mei and Chenhao Tan},\r\n      booktitle = {Proceedings of EMNLP Workshop of NLP for Science},\r\n      year={2024},\r\n      url={https://aclanthology.org/2024.nlp4science-1.10/},\r\n}\r\n```\r\n\r\n## Additional Resources\r\n\r\n### Official Links\r\n\r\n- **GitHub Repository:** https://github.com/ChicagoHAI/hypothesis-generation\r\n- **PyPI Package:** https://pypi.org/project/hypogenic/\r\n- **License:** MIT License\r\n- **Issues & Support:** https://github.com/ChicagoHAI/hypothesis-generation/issues\r\n\r\n### Example Datasets\r\n\r\nClone these repositories for ready-to-use examples:\r\n\r\n```bash\r\n# HypoGeniC examples (data-driven only)\r\ngit clone https://github.com/ChicagoHAI/HypoGeniC-datasets.git ./data\r\n\r\n# HypoRefine/Union examples (literature + data)\r\ngit clone https://github.com/ChicagoHAI/Hypothesis-agent-datasets.git ./data\r\n```\r\n\r\n### Community & Contributions\r\n\r\n- **Contributors:** 7+ active contributors\r\n- **Stars:** 89+ on GitHub\r\n- **Topics:** research-tool, interpretability, hypothesis-generation, scientific-discovery, llm-application\r\n\r\nFor contributions or questions, visit the GitHub repository and check the issues page.\r\n\r\n## Local Resources\r\n\r\n### references/\r\n\r\n`config_template.yaml` - Complete example configuration file with all required prompt templates and parameters. This includes:\r\n- Full YAML structure for task configuration\r\n- Example prompt templates for all methods\r\n- Placeholder variable documentation\r\n- Role-based prompt examples\r\n\r\n### scripts/\r\n\r\nScripts directory is available for:\r\n- Custom data preparation utilities\r\n- Format conversion tools\r\n- Analysis and evaluation scripts\r\n- Integration with external tools\r\n\r\n### assets/\r\n\r\nAssets directory is available for:\r\n- Example datasets and templates\r\n- Sample hypothesis banks\r\n- Visualization outputs\r\n- Documentation supplements"
  user_template: ""
variables: []
install:
  steps:
    - title: Download & unzip
      detail: >-
        Download the .zip package from SkillVault and unzip it. The hypogenic/ folder contains
        SKILL.md plus any companion scripts, references and assets.
    - title: Copy into your agent skills directory
      detail: >-
        Move the folder into your agent's skills directory — e.g. ~/.claude/skills/ (Claude Code),
        .codex/skills/, .cursor/skills/ or your project's .claude/skills/ folder — then restart or
        reload the session.
    - title: Use it
      detail: >-
        Describe the task in natural language; the agent loads the skill automatically when the
        request matches the skill description.
usage:
  steps: []
metadata:
  author: SkillVault
  source: https://skillvault.top/skills/hypogenic
  exported_at: "2026-11-03T07:43:13.709Z"

安装指南

  1. 1

    Download & unzip

    Download the .zip package from SkillVault and unzip it. The hypogenic/ folder contains SKILL.md plus any companion scripts, references and assets.

  2. 2

    Copy into your agent skills directory

    Move the folder into your agent's skills directory — e.g. ~/.claude/skills/ (Claude Code), .codex/skills/, .cursor/skills/ or your project's .claude/skills/ folder — then restart or reload the session.

  3. 3

    Use it

    Describe the task in natural language; the agent loads the skill automatically when the request matches the skill description.

使用方法

平台兼容性

ChatGPT GPTs

OpenAI

将系统提示词粘贴到 GPT 的「Instructions」字段,并把用户模板作为起始消息使用。

官方文档

Claude Code

Anthropic

将导出的 .aiskill JSON 保存为项目中的技能文件,或将系统提示词粘贴进 CLAUDE.md / 斜杠命令 Markdown 文件。

官方文档

Cursor

Anysphere

将系统提示词复制到 .cursor/rules/*.mdc(或设置中的 Project Rules),并在智能体提示词中引用用户模板。

官方文档

相关技能