{"data":{"slug":"github-aipoch-medical-research-skills-scientific-skills-academic-writing-meta-baseline-generator-adef888aa7ad","title":"Generate Meta-Analysis Baseline Characteristics (English\/Chinese)","summary":"Generates a standardized 'Baseline Characteristics' section for meta-analysis papers, including a descriptive text summary and a formatted Markdown table. Requires baseline data and language specification.","url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-academic-writing-meta-baseline-generator-adef888aa7ad","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-aipoch-medical-research-skills-scientific-skills-academic-writing-meta-baseline-generator-adef888aa7ad","markdown_url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-academic-writing-meta-baseline-generator-adef888aa7ad.md","download_url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-academic-writing-meta-baseline-generator-adef888aa7ad\/download","category":{"slug":"data-research","name":"Data & Research"},"editor_note":"Ensure the input includes baseline data in a structured format (e.g., JSON or text) and specify the target language (Chinese or English). The script will insert `(Table 1)` before the final punctuation of the text description and format the Markdown table with a clear title.","instructions":"---\nname: meta-baseline-generator\ndescription: 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.\nlicense: MIT\nauthor: AIPOCH\n---\n> **Source**: [https:\/\/github.com\/aipoch\/medical-research-skills](https:\/\/github.com\/aipoch\/medical-research-skills)\n\n# Meta-Analysis Baseline Generator\n\nThis skill generates a standardized \"Baseline Characteristics\" section for meta-analysis papers, including a descriptive text summary and a formatted Markdown table.\n\n## When to Use\n\n- 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.\n- Use this skill when a academic writing task needs a packaged method instead of ad-hoc freeform output.\n- Use this skill when the user expects a concrete deliverable, validation step, or file-based result.\n- Use this skill when `scripts\/text_processor.py` is the most direct path to complete the request.\n- Use this skill when you need the `meta-baseline-generator` package behavior rather than a generic answer.\n\n## Key Features\n\n- 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.\n- Packaged executable path(s): `scripts\/text_processor.py`.\n- Reference material available in `references\/` for task-specific guidance.\n- Structured execution path designed to keep outputs consistent and reviewable.\n\n## Dependencies\n\n- `Python`: `3.10+`. Repository baseline for current packaged skills.\n- `Third-party packages`: `not explicitly version-pinned in this skill package`. Add pinned versions if this skill needs stricter environment control.\n\n## Example Usage\n\n```bash\ncd \"20260316\/scientific-skills\/Academic Writing\/meta-baseline-generator\"\npython -m py_compile scripts\/text_processor.py\npython scripts\/text_processor.py --help\n```\n\nExample run plan:\n1. Confirm the user input, output path, and any required config values.\n2. Edit the in-file `CONFIG` block or documented parameters if the script uses fixed settings.\n3. Run `python scripts\/text_processor.py` with the validated inputs.\n4. Review the generated output and return the final artifact with any assumptions called out.\n\n## Implementation Details\n\nSee `## Workflow` above for related details.\n\n- Execution model: validate the request, choose the packaged workflow, and produce a bounded deliverable.\n- Input controls: confirm the source files, scope limits, output format, and acceptance criteria before running any script.\n- Primary implementation surface: `scripts\/text_processor.py`.\n- Reference guidance: `references\/` contains supporting rules, prompts, or checklists.\n- Parameters to clarify first: input path, output path, scope filters, thresholds, and any domain-specific constraints.\n- Output discipline: keep results reproducible, identify assumptions explicitly, and avoid undocumented side effects.\n\n## Workflow\n\n1.  **Gather Inputs**: Ensure you have the following from the user:\n    *   `title`: The title of the meta-analysis.\n    *   `baseline_information`: The raw baseline data (JSON, text, etc.).\n    *   `language`: The target output language (\"Chinese\" or \"English\").\n\n2.  **Generate Text Description (LLM)**:\n    *   Use the \"Text Description Generation\" prompt in [references\/prompts.md](references\/prompts.md).\n    *   Input: `title`, `baseline_information`, `language`.\n    *   Output: A paragraph describing the study characteristics.\n\n3.  **Generate Markdown Table (LLM)**:\n    *   Use the \"Markdown Table Generation\" prompt in [references\/prompts.md](references\/prompts.md).\n    *   Input: `baseline_information`, `language`.\n    *   Output: A Markdown table wrapped in curly braces (e.g., `{ | Table | }`).\n\n4.  **Process and Combine (Script)**:\n    *   Run `scripts\/text_processor.py` to format the final output.\n    *   The script performs the following deterministic operations:\n        *   Inserts `(Table 1)` before the last punctuation of the text description.\n        *   Cleans markdown code fences from the table output.\n        *   Adds the standard table title and headers.\n    *   **Execution**:\n        ```python\n        import sys\n        sys.path.append('scripts')\n        from text_processor import process_content\n        \n        final_result = process_content(\n            text_description=step2_output, \n            raw_table=step3_output, \n            language=language\n        )\n        print(final_result)\n        ```\n\n5.  **Output**: Present the `final_result` to the user.\n\n## Rules\n\n*   **Language Consistency**: Ensure the output language strictly matches the user's request (Chinese\/English).\n*   **Citation Insertion**: The citation `(Table 1) MUST be inserted *before* the final punctuation of the description text.\n*   **Table Format**: The table must be a standard Markdown table with a clear title.\n\n## Testing Guidelines\n\nWhen testing this skill:\n\n1. **Verify UTF-8 encoding**: Ensure the output displays Chinese characters correctly (e.g., `\u3010Results\u3011` not `\ufffd\ufffdResults\ufffd\ufffd`).\n2. **Check citation placement**: The citation tag should appear immediately before the final punctuation mark.\n3. **Test edge cases**:\n   - Empty or missing baseline fields (marked as \"-\" in table)\n   - Special characters in study names (e.g., umlauts: L\u00fcbbert \u2192 Luebbert)\n   - Various punctuation marks (. ! ? \u3002\uff01\uff1f)\n4. **Validate table structure**: Ensure markdown table has proper column alignment (`|:---|`).\n\n## Error Handling\n\n- If required inputs are missing, state exactly which fields are missing and request only the minimum additional information.\n- If the task goes outside the documented scope, stop instead of guessing or silently widening the assignment.\n- If execution fails, report the failure point, summarize what can still be completed safely, and provide a manual fallback.\n- Do not fabricate files, citations, data, search results, or execution outcomes.\n\n## Input Validation\n\nThis skill accepts requests that match the documented purpose of `meta-baseline-generator` and include enough context to complete the workflow safely.\n\nDo not continue the workflow when the request is out of scope, missing a critical input, or would require unsupported assumptions. Instead respond:\n\n> `meta-baseline-generator` only handles its documented workflow. Please provide the missing required inputs or switch to a more suitable skill.\n","use_cases":["Generate a formatted baseline characteristics section for a meta-analysis paper.","Create a reproducible workflow for academic writing tasks.","Produce a concrete deliverable with validation steps for baseline data."],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/aipoch\/medical-research-skills\/blob\/686e09dfdb45d9fa1a08664f06bb93769b3c9d91\/scientific-skills\/Academic%20Writing\/meta-baseline-generator\/SKILL.md","source_commit":"686e09dfdb45d9fa1a08664f06bb93769b3c9d91","license":"MIT","version":null,"listing_approved_at":"2026-11-24","created_at":"2026-11-23T10:08:49.000000Z","updated_at":"2026-11-24T07:14:21.000000Z","seo_title":"Generate Meta-Analysis Baseline Characteristics (English\/Chinese)","seo_description":"Generate a meta-analysis baseline characteristics section with text and table. Supports Chinese and English. Use when the user provides baseline data and wants a reproduc","seo_keywords":["meta-analysis baseline characteristics","generate baseline table","academic writing tool","meta-analysis text description","baseline data formatting"]}}