Meta results sensitivity analysis

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

Meta results sensitivity analysis is an AI agent skill from the GitHub repository aipoch/medical-research-skills. Generates the "Results" section for meta-analysis sensitivity analysis based on statistical tables and titles. Use when the user wants to describe sensitivity analysis results or format sensitivity tables for a meta-analysis paper.

How to use this skill

Skill file

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

When to Use

Use this skill when:

  1. The user provides a sensitivity analysis table (Leave-One-Out) and wants a textual description.
  2. The user needs to format the "Results" section for a meta-analysis paper regarding sensitivity checks.
  3. The user specifies a target language (Chinese or English) for the output.

Key Features

Dependencies

Example Usage

See ## Usage above for related details.

cd "20260316/scientific-skills/Academic Writing/meta-results-sensitivity-analysis"
python -m py_compile scripts/validate_skill.py
python scripts/validate_skill.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/validate_skill.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.

Validation Shortcut

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

python scripts/validate_skill.py --help

Meta Sensitivity Analysis Generator

This skill generates a descriptive "Results" section for meta-analysis sensitivity analysis. It processes statistical tables (Leave-One-Out method), generates a textual description using an LLM, and formats the output with proper table citations and legends.

Workflow

  1. Generate Description: The LLM describes the sensitivity analysis table based on the meta-analysis title and outcome name.
  2. Format Output: A script inserts the table citation (e.g., (Table 5)) and formats the table with a standard legend.

Usage

Input Parameters

Example

from scripts.format_result import format_sensitivity_result

# 1. LLM generates the description (simulated)

# description = llm.generate(prompt="Describe the sensitivity table...", context=inputs)

# 2. Script formats the final result

# final_output = format_sensitivity_result(

#     text=description,

#     table_data=inputs['sensitivity_table'],

#     language=inputs['language']

# )

Quality Rules

  1. Language: Output must be strictly in the user-specified language.
  2. Formatting: Remove any JSON formatting from LLM output.
  3. Citation: Must insert table citation (Table 5) before the last punctuation of the description.

When Not to Use

Required Inputs

Output Contract

Validation and Safety Rules

Failure Handling

Input Validation

This skill accepts requests that match the documented purpose of meta-results-sensitivity-analysis 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:

meta-results-sensitivity-analysis 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: meta_results_sensitivity_analysis_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.