mathmodel-figure-templates
Skill này làm gì
Skill cung cấp các script Python chạy sẵn cho các mẫu trực quan hóa khoa học dùng trong sandbox LaTeX của MathModel. Skill dành cho sinh viên và nhà nghiên cứu cần biểu đồ chuẩn theo kiểu nghiên cứu cho báo cáo.
Khi nào nên dùng
- ✓Khi bạn cần một biểu đồ khoa học chuẩn, như đường cong ROC hoặc ma trận tương quan, cho báo cáo.
- ✓Khi bạn muốn tái tạo một mẫu biểu đồ mà công cụ MathModel liệt kê.
- ✓Khi bạn muốn lưu biểu đồ thành tệp PNG, PDF và SVG cho bài báo.
Liên kết skill
https://github.com/jihe520/MathModelAgent/blob/main/skills/mathmodel-figure-templates/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tái tạo mẫu ROC kiểm định chéo và lưu thành PNG, PDF và SVG trong thư mục báo cáo của tôi.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill tìm mẫu tương ứng theo ID, chạy script đi kèm trong không gian làm việc của bạn và lưu kết quả vào thư mục figures. Skill trả về đường dẫn ảnh và bản sao script để bạn chỉnh sửa.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
MathModel Figure Templates
This skill is bundled into the LaTeX sandbox at /home/user/.claude/skills/mathmodel-figure-templates. It contains ready-to-run Python/matplotlib scripts for the figure templates exposed in the MathModel Improve tab.
Fast Path
- Match the requested chart in
references/figure-catalog.md. - From
/home/user/workspace, run the renderer with the template id:
python3 /home/user/.claude/skills/mathmodel-figure-templates/scripts/render_template.py paired-raincloud
- The renderer copies the bundled template script into
绘图复刻/scripts/, runs it there, and writes outputs to绘图复刻/outputs/. - Return the generated PNG/PDF/SVG paths and the copied script path to the user.
Use --list to show supported ids:
python3 /home/user/.claude/skills/mathmodel-figure-templates/scripts/render_template.py --list
Output Contract
- Work under the current workspace unless the user gives another path.
- Default project folder:
绘图复刻. - Script path:
绘图复刻/scripts/make_<template>.py. - Outputs:
绘图复刻/outputs/<template>_replica.png,.pdf,.svg. - Use the bundled scripts as the first choice; edit the copied workspace script only when the user requests customization.
- The bundled scripts use deterministic simulated data. Do not claim simulated values reproduce a source study exactly.
Template Ids
multiclass-shap-combopaired-raincloudcv-roc-citaylor-diagramcorrelation-pairgridprediction-marginal-gridrf-tpe-surfacegrouped-corr-split-violingrouped-circular-heatmapurban-park-cooling-combonature-chord-diagram
When Customizing
If the user asks for changes, copy/run the nearest template first, then edit the copied file in 绘图复刻/scripts/. Preserve:
MPLCONFIGDIRbefore importing matplotlib.- deterministic seeds for simulated data.
- PNG/PDF/SVG export.
- readable labels, legends, and high-DPI output.
Use references/plot-recipes.md for implementation patterns.
Câu hỏi thường gặp
Skill có dùng dữ liệu thật của bạn không?
Mô tả cho biết các script đi kèm dùng dữ liệu mô phỏng, nên các giá trị không tái tạo chính xác một nghiên cứu gốc.
Các tệp được lưu ở đâu?
Kết quả nằm trong thư mục figures của không gian làm việc, dưới dạng PNG, PDF và SVG.
Bạn có thể xem danh sách mẫu không?
Có. Trình kết xuất có tùy chọn liệt kê, hiển thị tất cả ID mẫu được hỗ trợ.
Chi tiết
Mô tả gốc của tác giả
Use this skill in the MathModel LaTeX sandbox when the user asks to reproduce built-in scientific visualization templates, especially prompts from the Improve tab mentioning $mathmodel-figure-templates, 科研绘图模板, SHAP蜂群柱状图, 配对云雨图, 交叉验证ROC, 泰勒图, 相关矩阵组合图, 预测真实值边缘分布图, TPE调参3D曲面, 下三角相关矩阵半边小提琴图, 分组环形热图, 城市公园降温组合图, or Nature和弦图. It provides ready-to-run Python scripts bundled inside the skill.
repo: jihe520/MathModelAgent
Độ phổ biến
- Sao GitHub
- 6.3k
- Vị trí xếp hạng
- #14375
- Giấy phép
- —
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
Skill tương tự
gifgrep
394kCho phép agent của bạn tìm thư viện GIF, xem trước kết quả, tải một GIF, và lấy một khung hình tĩnh hoặc bảng ghép nhiều khung hình.
meme-maker
394kCho phép agent của bạn chọn một mẫu meme, thêm chú thích của riêng bạn và tạo meme dưới dạng ảnh SVG hoặc PNG.
ios-icon-gen
280kGiúp agent tạo biểu tượng cho ứng dụng iOS. Dùng biểu tượng của Apple hoặc từ các nguồn khác để tạo đúng định dạng tệp.