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.

53 stars

Best use case

meta-baseline-generator is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

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.

Teams using meta-baseline-generator should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/meta-baseline-generator/SKILL.md --create-dirs "https://raw.githubusercontent.com/aipoch/medical-research-skills/main/scientific-skills/Academic Writing/meta-baseline-generator/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/meta-baseline-generator/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How meta-baseline-generator Compares

Feature / Agentmeta-baseline-generatorStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

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.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

> **Source**: [https://github.com/aipoch/medical-research-skills](https://github.com/aipoch/medical-research-skills)
# 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 `scripts/text_processor.py` is the most direct path to complete the request.
- Use this skill when you need the `meta-baseline-generator` package behavior rather than a generic answer.

## 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 `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

```bash
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:
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/text_processor.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.

- 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: `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.

## Workflow

1.  **Gather Inputs**: Ensure you have the following from the user:
    *   `title`: The title of the meta-analysis.
    *   `baseline_information`: The raw baseline data (JSON, text, etc.).
    *   `language`: The target output language ("Chinese" or "English").

2.  **Generate Text Description (LLM)**:
    *   Use the "Text Description Generation" prompt in [references/prompts.md](references/prompts.md).
    *   Input: `title`, `baseline_information`, `language`.
    *   Output: A paragraph describing the study characteristics.

3.  **Generate Markdown Table (LLM)**:
    *   Use the "Markdown Table Generation" prompt in [references/prompts.md](references/prompts.md).
    *   Input: `baseline_information`, `language`.
    *   Output: A Markdown table wrapped in curly braces (e.g., `{ | Table | }`).

4.  **Process and Combine (Script)**:
    *   Run `scripts/text_processor.py` to format the final output.
    *   The script performs the following deterministic operations:
        *   Inserts `(Table 1)` before the last punctuation of the text description.
        *   Cleans markdown code fences from the table output.
        *   Adds the standard table title and headers.
    *   **Execution**:
        ```python
        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)
        ```

5.  **Output**: Present the `final_result` to the user.

## 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:

1. **Verify UTF-8 encoding**: Ensure the output displays Chinese characters correctly (e.g., `【Results】` not `��Results��`).
2. **Check citation placement**: The citation tag should appear immediately before the final punctuation mark.
3. **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 (. ! ? 。!?)
4. **Validate table structure**: Ensure markdown table has proper column alignment (`|:---|`).

Related Skills

research-proposal-generator

53
from aipoch/medical-research-skills

Generates a comprehensive research proposal design based on input literature, including hypothesis, mechanism verification, and budget. Use when the user wants to design a research project from a paper.

meta-protocol-writer

53
from aipoch/medical-research-skills

Generates a PROSPERO-compliant Meta-analysis protocol based on Title and PICOS. Use when the user wants to write a protocol for a systematic review or meta-analysis.

short-video-script-generator

53
from aipoch/medical-research-skills

Generate popular science short video scripts based on topic, duration, and style. Invoke when the user needs to create scripts for short science videos.

plan-generator

53
from aipoch/medical-research-skills

Automatically generates a Markdown final-exam review plan or lab experiment schedule when you provide a date range, tasks/items, and available daily hours (via interactive prompts or a one-time JSON input).

paper-tweet-generator

53
from aipoch/medical-research-skills

Generates a structured reading tweet from an academic paper (PDF, Word, or Text), highlighting specific product advantages. Use when the user wants to turn a document into a social media post or reading summary.

meta-search-builder

53
from aipoch/medical-research-skills

Medical literature search strategy generator. Given a user's natural-language description (e.g., meta-analysis topic, PICOS elements, research question), automatically extract medical entities (disease, intervention, population, outcomes) and generate professional search queries for seven major databases (PubMed, Cochrane, Embase, Web of Science, CNKI, Wanfang, VIP). Useful for developing search strategies for systematic reviews and meta-analyses.

meeting-minutes-generator

53
from aipoch/medical-research-skills

Generates structured meeting minutes from text transcripts. Use when the user provides text content and wants a structured summary with a signature.

medical-case-report-generator

53
from aipoch/medical-research-skills

Generates a patient-friendly medical case report tweet from case images and disease name. Use when the user provides a medical case image and wants a structured report or tweet.

market-research-report-generator

53
from aipoch/medical-research-skills

Generates professional market research reports by analyzing business intent, decision levels, and conducting multi-source data retrieval (Web, PubMed, Clinical Trials).

expert-interview-generator

53
from aipoch/medical-research-skills

Generates a full expert interview article including introduction, Q&A body, and summary based on interview questions and expert background. Use when you have interview questions and an expert profile and need a polished article.

conference-tweet-generator

53
from aipoch/medical-research-skills

Generates academic conference tweets and summaries by filtering abstracts, translating content, and creating engaging titles. Use when you need to process conference abstracts into social media content.

academic-poster-generator

53
from aipoch/medical-research-skills

Complete workflow for generating academic research posters from PDF literature; use when you need to extract paper content from PDFs and produce a LaTeX-based poster (beamerposter/tikzposter/baposter) with mandatory figure generation and a final rendered HTML deliverable.