Meta criteria generator

From aipoch/medical-research-skills · View interactive version

Meta criteria generator is an AI agent skill from the GitHub repository aipoch/medical-research-skills. Generates scientifically sound inclusion and exclusion criteria for Meta-Analysis based on a given title or keywords. Use when user wants to design eligibility criteria for a systematic review or meta-analysis.

How to use this skill

Skill file

Source: https://github.com/aipoch/medical-research-skills

When to Use

Key Features

Dependencies

Example Usage

See ## Usage above for related details.

cd "20260316/scientific-skills/Data Analytics/meta-criteria-generator"
python -m py_compile scripts/extract_criteria.py
python scripts/extract_criteria.py --help

Example run plan:

  1. Confirm the user input, output path, and any required config values.
  2. Edit the in-file CONFIG block or documented parameters if the script uses fixed settings.
  3. Run python scripts/extract_criteria.py with the validated inputs.
  4. Review the generated output and return the final artifact with any assumptions called out.

Implementation Details

Validation Shortcut

Run this minimal command first to verify the supported execution path:

python scripts/extract_criteria.py --help

Meta-Analysis Criteria Generator

This skill generates inclusion and exclusion criteria for Meta-Analysis based on the PICO framework (Population, Intervention, Comparator, Outcomes) and Study Design.

Usage

  1. Ask for Title/Keywords: If not provided, ask the user for the Meta-Analysis topic.
  2. Generate Inclusion Criteria: Use LLM to generate criteria based on the input.
  3. Generate Exclusion Criteria: Use LLM to generate exclusion criteria that do not contradict the inclusion criteria.
  4. Format Output: Use scripts/extract_criteria.py to extract the final criteria from the LLM outputs and present them clearly.

Workflow Details

Step 1: Generate Inclusion Criteria

Prompt the LLM to act as a Meta-Analysis expert.

Input: User provided title/keywords.

Requirements:

Step 2: Generate Exclusion Criteria

Prompt the LLM to generate exclusion criteria.

Input: Inclusion Criteria from Step 1, User title.

Requirements:

Step 3: Extract and Format

Run the extraction script to clean up the outputs.

python scripts/extract_criteria.py --inclusion "<inclusion_text>" --exclusion "<exclusion_text>"

Quality Rules

When Not to Use

Required Inputs

Recommended Workflow

  1. Validate the request against the skill boundary and confirm all required inputs are present.
  2. Select the documented execution path and prefer the simplest supported command or procedure.
  3. Produce the expected output using the documented file format, schema, or narrative structure.
  4. Run a final validation pass for completeness, consistency, and safety before returning the result.

Output Contract

Validation and Safety Rules

Failure Handling

Quick Validation

Run this minimal verification path before full execution when possible:

python scripts/extract_criteria.py --help

Expected output format:

Result file: meta_criteria_generator_result.md
Validation summary: PASS/FAIL with brief notes
Assumptions: explicit list if any

Deterministic Output Rules

Completion Checklist

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.