{"data":{"slug":"github-aipoch-medical-research-skills-scientific-skills-other-multi-panel-figure-assembler-75867d171f2f","title":"Multi-Panel Figure Assembler","summary":"Assembles exactly 6 image panels (A\u2013F) into a high-resolution composite figure with consistent styling, labels, and publication-ready output in PNG, JPG, or TIFF format.","url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-other-multi-panel-figure-assembler-75867d171f2f","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-aipoch-medical-research-skills-scientific-skills-other-multi-panel-figure-assembler-75867d171f2f","markdown_url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-other-multi-panel-figure-assembler-75867d171f2f.md","download_url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-other-multi-panel-figure-assembler-75867d171f2f\/download","category":{"slug":"data-research","name":"Data & Research"},"editor_note":"Ensure exactly 6 image files are provided and that they are in supported formats (PNG, JPG, JPEG, BMP, TIFF, GIF). The output path must be specified, and the script must be run with valid parameters such as layout (2x3 or 3x2), DPI, and label styling.","instructions":"---\nname: multi-panel-figure-assembler\ndescription: Assemble 6 sub-figures (A\u2013F) into a high-resolution composite figure with consistent labels, padding, and publication-ready DPI.\nlicense: MIT\nauthor: AIPOCH\n---\n> **Source**: [https:\/\/github.com\/aipoch\/medical-research-skills](https:\/\/github.com\/aipoch\/medical-research-skills)\n\n# Multi-Panel Figure Assembler\n\nAssemble 6 sub-figures (A\u2013F) into a high-resolution composite figure with consistent styling, labels, and publication-ready output.\n\n## Input Validation\n\nThis skill accepts: exactly 6 image files (panels A\u2013F) in supported formats, plus an output path, for assembly into a composite figure.\n\nIf the request does not involve assembling exactly 6 image panels into a composite figure \u2014 for example, asking to generate plots from data, edit image content, or assemble a different number of panels \u2014 do not proceed. Instead respond:\n\n> \"multi-panel-figure-assembler is designed to assemble exactly 6 sub-figures (A\u2013F) into a composite image. Your request appears to be outside this scope. Please provide 6 image files and an output path, or use a more appropriate tool for your task. For plot generation from data, consider matplotlib, seaborn, or R ggplot2.\"\n\nDo not attempt any data processing or partial analysis before emitting this refusal. Validate scope first \u2014 this is the absolute first action before any other processing.\n\n## When to Use\n\n- Combining individual plot panels into a single composite figure for publication\n- Standardizing label fonts, padding, and DPI across a figure set\n- Producing 2\u00d73 or 3\u00d72 grid layouts from existing image files\n- Automating figure assembly to ensure reproducibility\n\n**Note:** This skill is fixed to exactly 6 panels (A\u2013F labeling convention). For 4-panel (2\u00d72) or 9-panel (3\u00d73) layouts, a future `--panels` parameter may be added.\n\n## Workflow\n\n1. **Validate input** \u2014 confirm scope and that exactly 6 panels are provided before any processing. Do not generate any output before this check.\n2. Confirm the user objective, required inputs, and non-negotiable constraints.\n3. Use the packaged script path or the documented reasoning path with only the inputs that are actually available.\n4. Return a structured result that separates assumptions, deliverables, risks, and unresolved items.\n5. If execution fails or inputs are incomplete, switch to the fallback path and state exactly what blocked full completion.\n\n## Usage\n\n```text\n# Basic 2\u00d73 layout\npython scripts\/main.py --input A.png B.png C.png D.png E.png F.png --output figure.png\n\n# 3\u00d72 layout at 600 DPI\npython scripts\/main.py --input A.png B.png C.png D.png E.png F.png --output figure.png --layout 3x2 --dpi 600\n\n# Custom label styling\npython scripts\/main.py --input A.png B.png C.png D.png E.png F.png --output figure.png \\\n  --label-size 32 --label-position topright --padding 20 --border 4\n```\n\n## Parameters\n\n| Parameter | Type | Default | Description |\n|-----------|------|---------|-------------|\n| `--input` \/ `-i` | 6 paths | Required | Input image paths for panels A\u2013F |\n| `--output` \/ `-o` | path | Required | Output composite file path |\n| `--layout` \/ `-l` | enum | `2x3` | Grid layout: `2x3` or `3x2` |\n| `--dpi` \/ `-d` | int | `300` | Output DPI |\n| `--label-font` | str | `Arial` | Font family for panel labels |\n| `--label-size` | int | `24` | Font size for panel labels |\n| `--label-position` | str | `topleft` | Label position: `topleft`, `topright`, `bottomleft`, `bottomright` |\n| `--padding` \/ `-p` | int | `10` | Padding between panels (pixels) |\n| `--border` \/ `-b` | int | `2` | Border width around each panel (pixels) |\n| `--bg-color` | str | `white` | Background color (white\/black\/hex) |\n| `--label-color` | str | `black` | Label text color |\n\n## Supported Formats\n\n- Input: PNG, JPG, JPEG, BMP, TIFF, GIF\n- Output: PNG (recommended), JPG, TIFF\n\n## Quick Check\n\n```bash\npython -m py_compile scripts\/main.py\npython scripts\/main.py --help\npython -c \"import PIL; print('Pillow OK')\"\n```\n\n## Error Handling\n\n- If fewer or more than 6 input images are provided, state the count mismatch and stop.\n- If any input file path contains `..\/` or points outside the workspace, reject with a path traversal warning.\n- If the task goes outside the documented scope, stop instead of guessing or silently widening the assignment.\n- If `scripts\/main.py` fails (e.g., returncode=2 from missing required args), report the exact error and provide the correct command syntax.\n- If PIL\/Pillow is not installed, print: `pip install Pillow numpy` and exit with a non-zero code.\n- Do not fabricate files, citations, or execution outcomes.\n\n## Fallback Template\n\nWhen execution fails or inputs are incomplete, respond with this structure:\n\n```\nFALLBACK REPORT\n\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\nObjective      : [restate the goal]\nBlocked by     : [exact missing input or error \u2014 e.g., only 4 of 6 panels provided]\nPartial result : [what can be completed \u2014 e.g., layout plan, parameter defaults]\nAssumptions    : [layout, DPI, label style assumed]\nConstraints    : [format requirements, DPI minimum]\nRisks          : [aspect ratio mismatch, font availability]\nUnresolved     : [what still needs user input]\nNext step      : [minimum action needed to unblock]\n\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n```\n\n## Response Template\n\nUse the following fixed structure for non-trivial requests:\n\n1. Objective\n2. Inputs Received\n3. Assumptions\n4. Workflow\n5. Deliverable\n6. Risks and Limits\n7. Next Checks\n\nIf the request is simple, compress the structure but keep assumptions and limits explicit when they affect correctness.\n\n## Notes\n\n- Input images are automatically resized to match the largest dimension while maintaining aspect ratio\n- For best results, use input images with similar aspect ratios\n- Label fonts require the font to be available on the system; Arial falls back to DejaVu Sans if unavailable\n- PNG output preserves transparency if any input images have alpha channels\n\n## Prerequisites\n\n```text\npip install Pillow numpy\n```\n","use_cases":["Combining individual plot panels into a single composite figure for publication","Standardizing label fonts, padding, and DPI across a figure set","Producing 2\u00d73 or 3\u00d72 grid layouts from existing image files","Automating figure assembly to ensure reproducibility"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/aipoch\/medical-research-skills\/blob\/686e09dfdb45d9fa1a08664f06bb93769b3c9d91\/scientific-skills\/Other\/multi-panel-figure-assembler\/SKILL.md","source_commit":"686e09dfdb45d9fa1a08664f06bb93769b3c9d91","license":"MIT","version":null,"listing_approved_at":"2026-11-26","created_at":"2026-11-24T15:35:09.000000Z","updated_at":"2026-11-26T09:25:03.000000Z","seo_title":"Assemble 6 Panels into Composite Figure","seo_description":"Combine 6 image panels into a publication-ready composite figure with consistent labels, padding, and DPI. Use the multi-panel-figure-assembler tool for precise layout.","seo_keywords":["assemble 6 panels into figure","composite figure layout","publication-ready image","multi-panel figure tool","standardize figure labels","grid layout for images"]}}