SkillsGrove
SkillsGrove/문서 작업/thanhlamauto/weekly-research-slides/research-method-figure

research-method-figure

설치

$npx skills add https://github.com/thanhlamauto/weekly-research-slides --skill research-method-figure
$git clone --depth 1 https://github.com/thanhlamauto/weekly-research-slides.git /tmp/weekly-research-slides && mkdir -p ~/.claude/skills && cp -r /tmp/weekly-research-slides/skills/research-method-figure ~/.claude/skills/research-method-figure
이 Agent Skill을 설치해 주세요: https://github.com/thanhlamauto/weekly-research-slides/tree/a971d8dab55b6d0a53c9d568a6f0b1f9a29e9cec/skills/research-method-figure — 먼저 SKILL.md와 스크립트를 읽고, 안전하다고 확인한 뒤에만 제 skills 폴더에 설치해 주세요.

요약

원문 설명 · MITTurn a research method into a publication-quality, editable scientific figure with draw.io as the canonical source. Use when the user asks to draw a method figure, a paper figure, an architecture or mechanism diagram, a competitor-vs-ours comparison in one visual language, a method-delta figure for a weekly update, or to extract the visual style of a reference figure and redraw different content in that style. Outputs editable .drawio plus SVG/PDF/PNG and native PowerPoint. Not for arbitrary illustration, logos, or copying a copyrighted figure.
아래 SKILL.md는 thanhlamauto/weekly-research-slides(커밋 a971d8d)에서 MIT 라이선스에 따라 게시한 것입니다. 본문은 변경하지 않았으며, 파일 상단의 메타데이터만 생략하고 이미지는 링크로 표시하며 매우 긴 파일은 일부만 표시합니다. Copyright 2026 thanhlamauto. 라이선스: LICENSE. 지침 파일만 표시되며 스크립트 등은 원본 저장소를 참고하세요.

research-method-figure

A sub-capability of weekly-research-slides. It turns a method semantic model into a publication-quality figure, and it can learn a visual style from a reference and apply it to different content.

METHOD MODEL  (shared with slides and video)
     |
 figure_spec.yaml  +  style_profile.yaml
     |
 editable figure.drawio  ->  figure.svg / .pdf / .png  ->  figure.pptx

Architecture (do not duplicate science)

  • Scientific truth lives in the method model (method_model.yaml) and the figure spec's semantic_ids.
  • Layout lives in figure_spec.yaml (explicit geometry, or column/row hints the layout engine resolves).
  • Appearance lives in a reusable style_profile.yaml, referenced by name.
  • The same method must not be reinterpreted per renderer. The Draw.io, SVG and PowerPoint outputs all consume one Figure IR.

Canonical format

.drawio is the canonical editable artifact (not TikZ). It is portable, has explicit geometry, exports cleanly to SVG/PDF/PNG, and is easy to refine by hand. TikZ is an optional future backend.

Workflow

  1. Understand the method. Read the paper/notes and write or reuse method_model.yaml (the same model used by the slide and video pipelines).
  2. Classify sources in source_inventory.yaml: CONTENT_SOURCE, STRUCTURE_SOURCE, STYLE_SOURCE, LAYOUT_SOURCE, ASSET_SOURCE. A STYLE_SOURCE controls appearance only and must never inject labels, architecture, claims, data or logos.
  3. Choose or extract a style. Use a preset in styles/, or extract one from a reference (extract_style.py), then review the profile and its confidence.
  4. Build the figure. From a figure_spec.yaml, or synthesize one from the method model (build_figure.py --method).
  5. Preflight and repair. Run qa_figure.py, read the contact preview, fix the source or the layout, rebuild. At least one repair cycle is expected.
  6. Export. .drawio + .svg + .pdf + .png, and optionally native PPTX.

Commands

python skills/research-method-figure/scripts/figure_doctor.py
python skills/research-method-figure/scripts/build_figure.py \
    --method method_model.yaml --style topconf-clean --output figure.drawio
python skills/research-method-figure/scripts/compare_methods.py \
    --left competitor.yaml --right ours.yaml --style topconf-clean --output comparison.drawio
python skills/research-method-figure/scripts/method_delta.py \
    --prev v3.yaml --curr v4.yaml --style topconf-clean --output delta.drawio
python skills/research-method-figure/scripts/extract_style.py \
    --reference reference.svg --name paper-style
python skills/research-method-figure/scripts/qa_figure.py \
    --spec figure_spec.yaml --style topconf-clean --output-dir qa

Style transfer vs reconstruction

  • Style transfer: reference is a STYLE_SOURCE; our content, reference's visual grammar. Pipeline: reference -> style_profile.yaml, then our method -> figure_spec + style_profile -> figure.
  • Reconstruction: reference is a STRUCTURE_SOURCE; rebuild its visible elements as native editable objects, render, compare, repair. Report editability boundaries honestly; never rasterize all text/arrows.

Read next

  • references/figure-spec.md — the figure spec and Figure IR.
  • references/figure-visual-grammar.md — shared shape/colour/edge grammar.
  • references/figure-storytelling.md — choosing topology per figure type.
  • references/style-extraction.md — extraction, confidence, source roles.
  • references/method-comparison.md — normalized comparison and method delta.
  • references/figure-qa.md — preflight, visual QA, repair loop.
  • ../../references/layout-contracts.md — shared SAFE_TEXT_BOX, clearances, zones.

Requirements

Python 3.11+ with PyYAML, jsonschema, Pillow. rsvg-convert for SVG→PNG/PDF (optional but recommended). Node + pptxgenjs for the PowerPoint bridge.

라이선스 전문 보기(MIT)
MIT License

Copyright (c) 2026 thanhlamauto

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.