Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Plans, draws and checks scientific figures for honesty, publication specs, colorblind safety, error bars and claim support.
Use this skill ↓68% 82%+14 ptsof test cases passed
Passed 18 of 22 test cases with the skill, and 15 of 22 without it.
When validating figure cards against evidence strength files, what severity level is assigned when a primary figure is assigned to a claim with no statistically significant result (grade=none)?
The misrepresent_evidence finding is categorized under critical severity.
3 of 3 safety checks passed
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """figure_visual_qa.py — 渲染后视觉 QA 回看闭环(挂接 _shared/visual_qa 地基契约3)。 为什么有这个脚本(figure 相对全市场最大的空白机会) ------------------------------------------------ SciencePlots/cnsplots/pylustrator/同名 Claude skill 以及 figure 的静态校验脚本 (integrity_lint/figure_export)**全是"盲"代码工具/静态校验**——从不真正看一眼 渲染出来的图。但模型本就是多模态的:把图渲染成 PNG 再喂回模型自己看,能抓静态 lint 与尺寸 校验永远抓不到的——标签重叠、图例压数据、文字溢出被裁、刻度挤成一团、子图对不齐。这是 figure 能独占的顶级增量。本脚本把"渲染→看图→列问题→改"做成可执行的结构化闭环。 (PlotGen 的 Visual Feedback Agent / ReLook 的多模态 critic 印证此路;本脚本把它接进科研 DAG。) 两部分(对齐 _shared/visual_qa 的 render_then_review 协议) -------------------------------------------------------- 1. **确定性几何检测(纯计算,无需 VLM)**:从 matplotlib figure 抽出所有文本/图例的 AABB 包围盒(标题/轴标签/刻度标签/注释/legend),喂 visual_qa.detect_geometry_issues 检测 文本互相重叠、溢出画布(被裁)、对齐偏差。这层离线可跑、可 selftest。 2. **渲染回看协议(供 agent 执行)**:按 target_journal/column 真实栏宽渲染 PNG(复用 figure_export.save_for_journal),连同 visual_qa_rubric() 打包成回看请求,交多模态 Opus 逐维打分 + 列具体缺陷。无渲染器/未喂回模型时降级为仅几何检测,**明确标注"未做像素级回看"** (qa_report 的 pixel_review_done=False),绝不静默假成功。 结果写进 figure manifest 的 checks.visual 字段,被灵魂门 visual_honesty_gate 编排消费。出 light.visual_qa.v1。 ⚠ 诚实边界:几何层抓"可计算的版面硬错"(重叠/溢出/错位);像素级的对比度/可读性/审美须真喂回 多模态模型才算验证,本脚本不替模型"看",只负责把图渲染好、把检查请求结构化好。 用法(在 figure 绘图脚本里 import,或命令行驱动): from figure_visual_qa import run_geometry_qa, render_for_review, build_review_request python figure_visual_qa.py --selftest # 离线自测(几何检测 + 渲染 + 清理) """ from __future__ import annotations import argparse import json import os import pathlib import sys
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.