Medical-research-skills meta-baseline-generator
Generates a meta-analysis baseline characteristics section (text + table) from raw data. Supports Chinese and English. Use when the user provides baseline data and wants a formatted results section.
install
source · Clone the upstream repo
git clone https://github.com/aipoch/medical-research-skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/aipoch/medical-research-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/scientific-skills/Academic Writing/meta-baseline-generator" ~/.claude/skills/aipoch-medical-research-skills-meta-baseline-generator && rm -rf "$T"
manifest:
scientific-skills/Academic Writing/meta-baseline-generator/SKILL.mdsource content
Meta-Analysis Baseline Generator
This skill generates a standardized "Baseline Characteristics" section for meta-analysis papers, including a descriptive text summary and a formatted Markdown table.
When to Use
- Use this skill when you need generates a meta-analysis baseline characteristics section (text + table) from raw data. supports chinese and english. use when the user provides baseline data and wants a formatted results section 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
is the most direct path to complete the request.scripts/text_processor.py - Use this skill when you need the
package behavior rather than a generic answer.meta-baseline-generator
Key Features
- Scope-focused workflow aligned to: Generates a meta-analysis baseline characteristics section (text + table) from raw data. Supports Chinese and English. Use when the user provides baseline data and wants a formatted results section.
- Packaged executable path(s):
.scripts/text_processor.py - Reference material available in
for task-specific guidance.references/ - Structured execution path designed to keep outputs consistent and reviewable.
Dependencies
:Python
. Repository baseline for current packaged skills.3.10+
:Third-party packages
. Add pinned versions if this skill needs stricter environment control.not explicitly version-pinned in this skill package
Example Usage
cd "20260316/scientific-skills/Academic Writing/meta-baseline-generator" python -m py_compile scripts/text_processor.py python scripts/text_processor.py --help
Example run plan:
- Confirm the user input, output path, and any required config values.
- Edit the in-file
block or documented parameters if the script uses fixed settings.CONFIG - Run
with the validated inputs.python scripts/text_processor.py - 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/text_processor.py - Reference guidance:
contains supporting rules, prompts, or checklists.references/ - 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.
Workflow
-
Gather Inputs: Ensure you have the following from the user:
: The title of the meta-analysis.title
: The raw baseline data (JSON, text, etc.).baseline_information
: The target output language ("Chinese" or "English").language
-
Generate Text Description (LLM):
- Use the "Text Description Generation" prompt in references/prompts.md.
- Input:
,title
,baseline_information
.language - Output: A paragraph describing the study characteristics.
-
Generate Markdown Table (LLM):
- Use the "Markdown Table Generation" prompt in references/prompts.md.
- Input:
,baseline_information
.language - Output: A Markdown table wrapped in curly braces (e.g.,
).{ | Table | }
-
Process and Combine (Script):
- Run
to format the final output.scripts/text_processor.py - The script performs the following deterministic operations:
- Inserts
before the last punctuation of the text description.(Table 1) - Cleans markdown code fences from the table output.
- Adds the standard table title and headers.
- Inserts
- Execution:
import sys sys.path.append('scripts') from text_processor import process_content final_result = process_content( text_description=step2_output, raw_table=step3_output, language=language ) print(final_result)
- Run
-
Output: Present the
to the user.final_result
Rules
- Language Consistency: Ensure the output language strictly matches the user's request (Chinese/English).
- Citation Insertion: The citation `(Table 1) MUST be inserted before the final punctuation of the description text.
- Table Format: The table must be a standard Markdown table with a clear title.
Testing Guidelines
When testing this skill:
- Verify UTF-8 encoding: Ensure the output displays Chinese characters correctly (e.g.,
not【Results】
).��Results�� - Check citation placement: The citation tag should appear immediately before the final punctuation mark.
- Test edge cases:
- Empty or missing baseline fields (marked as "-" in table)
- Special characters in study names (e.g., umlauts: Lübbert → Luebbert)
- Various punctuation marks (. ! ? 。!?)
- Validate table structure: Ensure markdown table has proper column alignment (
).|:---|