Meta feasibility analyzer

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

Meta feasibility analyzer is an AI agent skill from the GitHub repository aipoch/medical-research-skills. Analyzes the feasibility of a proposed Meta-analysis topic by searching for existing Meta-analyses and Clinical Trials on PubMed/ClinicalTrials.gov. Use when you need to evaluate if a topic is viable for a new Meta-analysis.

How to use this skill

Skill file

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

Meta Feasibility Analyzer

This skill evaluates the feasibility of conducting a new Meta-analysis on a given topic (title). It checks for existing Meta-analyses and available Clinical Trials to determine if there is a gap or sufficient new evidence.

When to Use

Key Features

Dependencies

Example Usage

cd "20260316/scientific-skills/Data Analytics/meta-feasibility-analyzer"
python -m py_compile scripts/feasibility_ops.py
python scripts/feasibility_ops.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/feasibility_ops.py with the validated inputs.
  4. Review the generated output and return the final artifact with any assumptions called out.

Implementation Details

See ## Workflow above for related details.

Workflow

Follow these steps to perform the analysis.

1. Generate Search Query

First, analyze the user's proposed title to generate a valid PubMed search query.

Prompt for LLM:

Role: Medical Search Expert
Task: Extract keywords from the following title and create a PubMed search query.
Title: "{{input_the_title}}"

Rules:
1. Extract keywords (Disease, Intervention, Outcome).
2. Convert to standard MeSH terms if possible.
3. Combine with AND/OR.
4. Enclose the final query in braces {}.
5. Do NOT include "meta analysis" in the query.

Example Output:
{(ovarian cancer) AND (chemotherapy) AND (bevacizumab)}

2. Extract Query String

Run the extraction script to get the clean query string.

python scripts/feasibility_ops.py extract --text "{{llm_output}}"

Store the output as {{search_query}}.

3. Search Clinical Trials

Search for Clinical Trials via the PubMed API.

python scripts/feasibility_ops.py search --query "{{search_query}}" --type clinical

Store the result JSON as {{clinical_json}}.

4. Process Clinical Results

Format the clinical trial results and check the count.

python scripts/feasibility_ops.py clinical --json '{{clinical_json}}' --query "{{search_query}}"

Parse the output JSON to get:

5. Feasibility Check (Stage 1)

If clinical_count == 0:

If clinical_count > 0:

6. Search Meta-Analyses

Search for existing Meta-analyses via the PubMed API using the same query.

python scripts/feasibility_ops.py search --query "{{search_query}}" --type meta

Store the result JSON as {{meta_json}}.

7. Process Meta Results

Format the meta-analysis results.

python scripts/feasibility_ops.py meta --json '{{meta_json}}'

Parse the output JSON to get:

8. Final Feasibility Analysis

Analyze the results to determine final feasibility.

Prompt for LLM:

Role: Clinical Research Expert
Task: Assess Meta-analysis feasibility.

Input:
Title: "{{input_the_title}}"
Existing Meta-Analyses:
{{meta_summary}}

Existing Clinical Trials:
{{clinical_summary}}

Logic:
1. If NO existing Meta-analyses + YES Clinical Trials -> ✅ FEASIBLE.
2. If YES existing Meta-analyses:
   - Check the dates. Are there new Clinical Trials published AFTER the latest Meta-analysis?
   - If YES new trials -> ✅ FEASIBLE (Update is possible).
   - If NO new trials -> ⚠️ NOT FEASIBLE (Already covered).

Output Format:
"{{input_the_title}}"
[Conclusion: ✅ Feasible / ⚠️ Not Feasible]
Reason: [Explain based on the logic above]

9. Output

Present the final analysis to the user.

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.