{"data":{"slug":"github-aipoch-medical-research-skills-scientific-skills-other-mindmap-html-generator-c8608d0efef3","title":"Generate Interactive Mindmap HTML from Text","summary":"Convert Markdown, meeting notes, or JSON trees into an offline HTML mindmap for review, presentation, or reporting. The output includes a top toolbar with Export PNG and Fullscreen options.","url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-other-mindmap-html-generator-c8608d0efef3","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-aipoch-medical-research-skills-scientific-skills-other-mindmap-html-generator-c8608d0efef3","markdown_url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-other-mindmap-html-generator-c8608d0efef3.md","download_url":"https:\/\/skillshunter.net\/skills\/github-aipoch-medical-research-skills-scientific-skills-other-mindmap-html-generator-c8608d0efef3\/download","category":{"slug":"content-editorial","name":"Content & Editorial"},"editor_note":"Prioritize preserving the user's original heading hierarchy. If the input has no headings, extract one main topic and several level-1 and level-2 branches. For plain text, the script adaptively splits by blank lines, line breaks, colons, and periods. Ensure the hierarchy is complete and usable for review or reporting.","instructions":"---\nname: mindmap-html-generator\ndescription: Generate offline interactive mindmap HTML and convert Markdown, outlines, meeting notes, chapter structures, or JSON trees into markmap-compatible format. Use when organizing long text into mindmaps, converting meeting notes to mindmap pages, generating final HTML via markmap-cli, or adding browsable mindmaps to deliverables.\nlicense: MIT\nauthor: AIPOCH\n---\n> **Source**: [https:\/\/github.com\/aipoch\/medical-research-skills](https:\/\/github.com\/aipoch\/medical-research-skills)\n\n# Mindmap HTML Generation\n\n## Overview\n\nFirst organize input into a clear tree hierarchy, then call `scripts\/generate_mindmap_html.py` to generate offline HTML.\nPrioritize reusing existing heading structure; do not modify visual code first \u2014 get structure correct, then let the script generate the output.\n\n> Tip: The generated HTML page now includes a top toolbar: Export PNG \/ Fullscreen. Content generation logic remains identical.\n\n## Workflow\n\n### 1. Determine Input Source\n\n- If the user has already provided Markdown headings or lists, render directly.\n- If the user provides meeting notes, long text, or chat logs, first organize into Markdown hierarchy, then render.\n- If the user provides a JSON tree, confirm fields are `text` \/ `children`, then render directly.\n\n### 2. Organize Structure\n\n- Prioritize preserving the user's original heading hierarchy.\n- If the original text has no headings, first extract 1 main topic and several level-1 and level-2 branches.\n- If the original is plain paragraphs or sentences, the script adaptively splits by blank lines, line breaks, colons, and periods.\n- Recommended depth is 2-4 levels to avoid pages becoming hard to read.\n- Keep node text as short phrases; do not stuff entire paragraphs into nodes.\n\n## Content Richness Requirements\n\n- The default goal is not just \"producing a map\" but \"complete information, clear hierarchy, usable for review, presentation, or reporting\".\n- Level-1 branches under root should typically be at least 6; if the topic is information-dense, expand to 8-12.\n- Each level-1 branch should preferably have 3-6 level-2 nodes; do not force equal branch lengths for neatness.\n- If a level-2 node contains methods, conditions, results, mechanisms, impacts, exceptions, or evidence, continue splitting to level-3 nodes.\n- For information-dense paragraphs, prioritize splitting into more nodes rather than compressing into one summary sentence.\n- For long texts, papers, and meeting notes, do not just keep section names \u2014 also include the actual information points under each section.\n- Node text must be concise, but conciseness does not mean deleting details.\n\n## Information Extraction Priority\n\n- Prioritize extracting: background, problem, objective, subject, method, materials, process, key variables, results, mechanism, conclusion, significance, limitations, applications.\n- If the source text contains causal, conditional, parallel, or contrasting relationships, split into multiple nodes.\n- If the source text contains proper nouns, core mechanisms, metrics, sample sizes, models, drugs, groups, or key conclusions, prioritize preserving them.\n- If a level-1 node name is too abstract, add specific child nodes to carry the details.\n- If content can be split into \"subject \/ action \/ result \/ significance\", prefer this structure.\n\n## Paper Input Enhancement Rules\n\n- When processing papers, PDFs, or research abstracts, do not just extract section names \u2014 include information points within each section.\n- Cover at minimum: research background, research question, experimental design, key results, mechanism chain, conclusions and implications.\n- If paper information is sufficient, additionally include: research subject, sample size, model, groups, experimental methods, key molecules or pathways, intervention, efficacy, limitations.\n- If PDF auto-extraction is too coarse, generate intermediate Markdown first, then restructure before rendering.\n\n## Prohibited Behaviors\n\n- Do not distribute branches evenly just for neatness.\n- Do not just restate headings without adding information beneath them.\n- Do not write only one vague summary sentence for each of \"Background, Methods, Results, Conclusion\".\n- Do not omit key numbers, key steps, key mechanisms, or key experimental subjects.\n- Do not sacrifice information density for brevity.\n\n### 3. Configure Script\n\n- Edit the `CONFIG` block at the top of `scripts\/generate_mindmap_html.py`.\n- Common configuration options:\n  - `input_path`: Input file path.\n  - `output_html_path`: Output HTML path.\n  - `output_markdown_path`: Intermediate Markdown path.\n  - `page_title`: Page title.\n  - `fallback_title`: Fallback title when no root heading exists.\n  - `auto_bold_levels`: Heading levels to bold by default, recommend keeping `[1, 2]`.\n  - `plain_text_root_max_children`: Maximum level-1 branches when auto-splitting plain text.\n  - `plain_text_child_max_children`: Maximum child items per level-1 branch when auto-splitting plain text.\n\n### 4. Run Script\n\nRun:\n\n```bash\npython scripts\/generate_mindmap_html.py\n```\n\nThe script will:\n\n1. Read the input file.\n2. Parse tree structure.\n3. Generate intermediate Markdown.\n4. Call `npx markmap-cli` to export offline HTML.\n5. Inject fixed layout and color rules.\n\n### 5. Validate Results\n\n- Open the generated HTML, confirm root node, level-1 branch order, and text display are correct.\n- Confirm only level-1 and level-2 headings remain bold; level-3 and deeper are not bold.\n- Confirm branch counts and child counts follow content variation, not mechanical equal lengths.\n- Self-check that level-1 branches sufficiently cover the topic.\n- Self-check that key numbers, mechanisms, subjects, and conclusions are not omitted.\n- Self-check for multiple level-1 branches with identical structure but empty content.\n- If nodes are too long, go back to compress input text, then re-run the script.\n- If `npx` or `markmap-cli` is missing, install the Node.js environment first.\n\n## Input Rules\n\n- Supports `.md`, `.txt`, `.json`.\n- Markdown: prioritizes ATX headings (`#` to `######`), then indented lists.\n- Plain text prioritizes splitting by blank lines, line breaks, colons, periods, and other punctuation into unequal-length branches and children.\n- JSON must be a single tree with fields `text` and `children`.\n- Output path, page title, and fallback title go in `CONFIG` \u2014 do not pile CLI arguments.\n\n## Style Conventions\n\n- The script has a built-in fixed final layout; manual style changes after HTML export are not recommended.\n- Only `#` and `##` level headings are bold by default; `###` and below automatically remove bold.\n- To adjust bold levels, modify `CONFIG[\"auto_bold_levels\"]`, but bolding level-3+ is not recommended.\n- Exported HTML automatically assigns unified color groups per level-1 branch.\n- Key parameter: `MARKMAP_INIT_OPTIONS[\"colorFreezeLevel\"] = 2`. This freezes colors at \"root + level-1 branch\"; setting to `1` makes the entire map nearly monochrome.\n- To adjust colors, modify `MARKMAP_THEME` \u2014 do not manually edit line colors in exported HTML.\n\n## Resources\n\n### `scripts\/generate_mindmap_html.py`\n\nConverts structured text to markmap source Markdown and generates offline HTML.\n\n### `references\/input-patterns.md`\n\nRead when deciding how to organize input \u2014 contains recommended structure templates and examples.\n\n## Execution Constraints\n\n- All file I\/O must explicitly use `encoding=\"utf-8\"`.\n- When writing JSON, use `ensure_ascii=False`.\n- Prefer modifying script top-level CONFIG; do not hide key parameters in long command lines.\n- Generate offline pages by default; avoid online CDN dependencies.\n\n## When to Use\n\n- Use this skill when the user explicitly needs to perform the core task of mindmap-html-generator and has provided the minimum executable input.\n- Use this skill when you need a structured deliverable rather than general advice.\n- Use this skill when the current task can be completed using this skill's bundled scripts, templates, or reference materials.\n\n## When Not to Use\n\n- Do not proceed when required input files, identifiers, parameters, or context are missing \u2014 ask the user to provide them first.\n- Do not assume capabilities beyond this skill's declared scope when the user requests external operations or inferences.\n- Do not proceed without user confirmation when overwriting existing results, executing high-cost batch operations, or expanding task scope.\n\n## Required Inputs\n\n| Field | Required | Format\/Source | Example | If Missing |\n|---|---|---|---|---|\n| User task description | Yes | Text | Research question, writing goal, analysis objective | Stop and ask user to provide |\n| Primary input material | Depends on task | Text, file path, ID, table, or literature | PMID, PDF, CSV, DOCX, keywords, etc. | Specify which material type is missing |\n| Output preference | No | Text | Language, format, target journal, template | Use skill default format |\n\n## Output Contract\n\n- Primary output: Structured result or target file aligned with this skill's objective.\n- Optional output: Intermediate check notes, issue list, supplementary suggestions, or generated file paths.\n- Format requirement: Unless the user specifies otherwise, prefer stable, reviewable Markdown or JSON; if the skill's bundled script requires a fixed format, use that format.\n- If partially complete: Must explicitly mark as PARTIAL and state which steps are completed and which remain.\n\n## Failure Handling\n\n- Missing critical input: Explicitly state which fields, files, or identifiers are missing and pause.\n- Script, template, or resource execution failure: Report the failing step, likely cause, and recovery suggestions \u2014 do not silently degrade.\n- Partial completion only: Return the verified portion first, then list remaining blockers and suggested next steps.\n\n## User Checkpoints\n\n- Before executing batch processing, overwriting files, long-running searches, or multi-stage generation, confirm scope and output format with the user.\n- Before proceeding when a key judgment is ambiguous, evidence is insufficient, or the workflow is entering the next stage, confirm with the user.\n\n## Input Validation\n\nThis skill accepts requests that match the documented purpose of `mindmap-html-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.\n\n## Quick Validation\n\n- Check that key scripts, templates, or reference file paths this skill depends on exist.\n- Check that the final output contains the core fields, sections, or files specified for this task.\n- Check that results clearly mark assumptions, limitations, and incomplete items.\n","use_cases":["Organize long text into a mindmap for presentation","Convert meeting notes into an interactive HTML mindmap","Generate final HTML from a JSON tree structure"],"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\/mindmap-html-generator\/SKILL.md","source_commit":"686e09dfdb45d9fa1a08664f06bb93769b3c9d91","license":"MIT","version":null,"listing_approved_at":"2026-11-26","created_at":"2026-11-24T15:32:42.000000Z","updated_at":"2026-11-26T09:25:03.000000Z","seo_title":"Generate Interactive Mindmap HTML from Text","seo_description":"Convert Markdown, meeting notes, or JSON trees into an offline HTML mindmap for review, presentation, or reporting.","seo_keywords":["generate mindmap html","convert markdown to mindmap","interactive html mindmap","meeting notes to mindmap","json to mindmap","offline mindmap html"]}}