Source: https://github.com/aipoch/medical-research-skills
Meta-Analysis Funnel Plot Generator
This skill generates a standardized meta-analysis result section based on a funnel plot image, statistical data, and a title. It orchestrates LLM generation for descriptions and tables, then uses a Python script to assemble the final report.
When to Use
- Use this skill when you need generates a meta-analysis results section description for funnel plots, including statistical tables (egger's, begg's, trim & fill) and figure legends. supports english and chinese outputs. use when user provides a funnel plot image and statistics and wants a formatted report in a reproducible workflow.
- Use this skill when a academic writing task needs a packaged method instead of ad-hoc freeform output.
- Use this skill when the user expects a concrete deliverable, validation step, or file-based result.
- Use this skill when
scripts/main.py is the most direct path to complete the request.
- Use this skill when you need the
meta-results-funnel-plot-generator package behavior rather than a generic answer.
Key Features
- Scope-focused workflow aligned to: Generates a Meta-analysis results section description for funnel plots, including statistical tables (Egger's, Begg's, Trim & Fill) and figure legends. Supports English and Chinese outputs. Use when user provides a funnel plot image and statistics and wants a formatted report.
- Packaged executable path(s):
scripts/main.py.
- Reference material available in
references/ for task-specific guidance.
- Structured execution path designed to keep outputs consistent and reviewable.
Dependencies
Python: 3.10+. Repository baseline for current packaged skills.
Third-party packages: not explicitly version-pinned in this skill package. Add pinned versions if this skill needs stricter environment control.
Example Usage
See ## Usage above for related details.
cd "20260316/scientific-skills/Academic Writing/meta-results-funnel-plot-generator"
python -m py_compile scripts/main.py
python scripts/main.py --help
Example run plan:
- Confirm the user input, output path, and any required config values.
- Edit the in-file
CONFIG block or documented parameters if the script uses fixed settings.
- Run
python scripts/main.py with the validated inputs.
- Review the generated output and return the final artifact with any assumptions called out.
Implementation Details
See ## Workflow above for related details.
- Execution model: validate the request, choose the packaged workflow, and produce a bounded deliverable.
- Input controls: confirm the source files, scope limits, output format, and acceptance criteria before running any script.
- Primary implementation surface:
scripts/main.py.
- Reference guidance:
references/ contains supporting rules, prompts, or checklists.
- Parameters to clarify first: input path, output path, scope filters, thresholds, and any domain-specific constraints.
- Output discipline: keep results reproducible, identify assumptions explicitly, and avoid undocumented side effects.
Usage
Trigger this skill when the user provides:
- Funnel Plot Image: The visual plot.
- Statistics: Text containing statistical data (Egger's test, Begg's test, Trim & Fill).
- Title/Outcome: Context for the analysis.
- Language: "Chinese" or "English".
Workflow
- Generate Description: Use LLM to describe the funnel plot (symmetry, outliers) based on the image and stats.
- Generate Tables: Use LLM to format the provided statistics into three specific Markdown tables:
- Egger's test (Bias assessment)
- Begg's test
- Trim and Fill method
- Assemble Report: Run
scripts/main.py to:
- Clean LLM outputs (remove markdown fences).
- Insert figure reference "(Figure 3)" or "(Figure 3)" into the description. * Combine Description, Image Placeholder, Figure Legend, and Tables into the final output.
Quality Rules
- Language: Output must match the requested language (Chinese/English).
- Structure: The final output must strictly follow the order: Description -> Figure -> Legend -> Tables.
- Formatting: Tables must be standard Markdown.
Reference
See prompts.md for the LLM prompts used in this workflow.
Error Handling
- If required inputs are missing, state exactly which fields are missing and request only the minimum additional information.
- If the task goes outside the documented scope, stop instead of guessing or silently widening the assignment.
- If execution fails, report the failure point, summarize what can still be completed safely, and provide a manual fallback.
- Do not fabricate files, citations, data, search results, or execution outcomes.
Input Validation
This skill accepts requests that match the documented purpose of meta-results-funnel-plot-generator 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-funnel-plot-generator only handles its documented workflow. Please provide the missing required inputs or switch to a more suitable skill.
1---2name: meta-results-funnel-plot-generator3description: Generates a Meta-analysis results section description for funnel plots, including statistical tables (Egger's, Begg's, Trim & Fill) and figure legends. Supports English and Chinese outputs. Use when user provides a funnel plot image and statistics and wants a formatted report.4license: MIT5---6> **Source**: [https://github.com/aipoch/medical-research-skills](https://github.com/aipoch/medical-research-skills)
7
8# Meta-Analysis Funnel Plot Generator
9
10This skill generates a standardized meta-analysis result section based on a funnel plot image, statistical data, and a title. It orchestrates LLM generation for descriptions and tables, then uses a Python script to assemble the final report.
11
12## When to Use
13
14- Use this skill when you need generates a meta-analysis results section description for funnel plots, including statistical tables (egger's, begg's, trim & fill) and figure legends. supports english and chinese outputs. use when user provides a funnel plot image and statistics and wants a formatted report in a reproducible workflow.
15- Use this skill when a academic writing task needs a packaged method instead of ad-hoc freeform output.
16- Use this skill when the user expects a concrete deliverable, validation step, or file-based result.
17- Use this skill when `scripts/main.py` is the most direct path to complete the request.
18- Use this skill when you need the `meta-results-funnel-plot-generator` package behavior rather than a generic answer.
19
20## Key Features
21
22- Scope-focused workflow aligned to: Generates a Meta-analysis results section description for funnel plots, including statistical tables (Egger's, Begg's, Trim & Fill) and figure legends. Supports English and Chinese outputs. Use when user provides a funnel plot image and statistics and wants a formatted report.
23- Packaged executable path(s): `scripts/main.py`.
24- Reference material available in `references/` for task-specific guidance.
25- Structured execution path designed to keep outputs consistent and reviewable.
26
27## Dependencies
28
29- `Python`: `3.10+`. Repository baseline for current packaged skills.
30- `Third-party packages`: `not explicitly version-pinned in this skill package`. Add pinned versions if this skill needs stricter environment control.
31
32## Example Usage
33
34See `## Usage` above for related details.
35
36```bash
37cd "20260316/scientific-skills/Academic Writing/meta-results-funnel-plot-generator"
38python -m py_compile scripts/main.py
39python scripts/main.py --help
40```
41
42Example run plan:
431. Confirm the user input, output path, and any required config values.
442. Edit the in-file `CONFIG` block or documented parameters if the script uses fixed settings.
453. Run `python scripts/main.py` with the validated inputs.
464. Review the generated output and return the final artifact with any assumptions called out.
47
48## Implementation Details
49
50See `## Workflow` above for related details.
51
52- Execution model: validate the request, choose the packaged workflow, and produce a bounded deliverable.
53- Input controls: confirm the source files, scope limits, output format, and acceptance criteria before running any script.
54- Primary implementation surface: `scripts/main.py`.
55- Reference guidance: `references/` contains supporting rules, prompts, or checklists.
56- Parameters to clarify first: input path, output path, scope filters, thresholds, and any domain-specific constraints.
57- Output discipline: keep results reproducible, identify assumptions explicitly, and avoid undocumented side effects.
58
59## Usage
60
61Trigger this skill when the user provides:
621. **Funnel Plot Image**: The visual plot.
632. **Statistics**: Text containing statistical data (Egger's test, Begg's test, Trim & Fill).
643. **Title/Outcome**: Context for the analysis.
654. **Language**: "Chinese" or "English".
66
67## Workflow
68
691. **Generate Description**: Use LLM to describe the funnel plot (symmetry, outliers) based on the image and stats.
702. **Generate Tables**: Use LLM to format the provided statistics into three specific Markdown tables:
71 * Egger's test (Bias assessment)
72 * Begg's test
73 * Trim and Fill method
743. **Assemble Report**: Run `scripts/main.py` to:
75 * Clean LLM outputs (remove markdown fences).
76* Insert figure reference "(Figure 3)" or "(Figure 3)" into the description. * Combine Description, Image Placeholder, Figure Legend, and Tables into the final output.
77
78## Quality Rules
79
80* **Language**: Output must match the requested language (Chinese/English).
81* **Structure**: The final output must strictly follow the order: Description -> Figure -> Legend -> Tables.
82* **Formatting**: Tables must be standard Markdown.
83
84## Reference
85
86See [prompts.md](references/prompts.md) for the LLM prompts used in this workflow.
87
88## Error Handling
89
90- If required inputs are missing, state exactly which fields are missing and request only the minimum additional information.
91- If the task goes outside the documented scope, stop instead of guessing or silently widening the assignment.
92- If execution fails, report the failure point, summarize what can still be completed safely, and provide a manual fallback.
93- Do not fabricate files, citations, data, search results, or execution outcomes.
94
95## Input Validation
96
97This skill accepts requests that match the documented purpose of `meta-results-funnel-plot-generator` and include enough context to complete the workflow safely.
98
99Do not continue the workflow when the request is out of scope, missing a critical input, or would require unsupported assumptions. Instead respond:
100
101> `meta-results-funnel-plot-generator` only handles its documented workflow. Please provide the missing required inputs or switch to a more suitable skill.