roast-figure

Audit research figures and source code for visualization errors.

2|Updated May 31, 2026
One-click install
npx skills add https://github.com/kangning-huang/knhuang-research-skills --skill roast-figure
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: roast-figure
Source: https://github.com/kangning-huang/knhuang-research-skills/tree/main/skills/roast-figure
Command: npx skills add https://github.com/kangning-huang/knhuang-research-skills --skill roast-figure

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill prevents embarrassing and costly errors in research figures by performing an adversarial audit of both the visual output and the underlying generating code.

Core Features & Use Cases

  • Code Autopsy: Detects common programming pitfalls like positional legend mapping, color-meaning inconsistencies, and axis scaling errors.
  • Visual Audit: Evaluates figures for communication clarity, statistical honesty, and professional standards.
  • Use Case: Before submitting a manuscript, use this to catch a legend swap in a ggplot2 chart that would otherwise misrepresent your data to reviewers.

Quick Start

Run the roast-figure command on your generated figure file and its corresponding script to receive a comprehensive quality report.

Frequently Asked Questions about roast-figure

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check my research figures for legend swaps and color inconsistencies before submission?

To check for legend swaps and color inconsistencies, perform an adversarial quality assurance audit on both the rendered image files and their source code. This process detects data visualization errors before publication.

Can I audit ggplot2 and matplotlib charts for statistical honesty and communication clarity?

Adversarial quality assurance audits ggplot2 and matplotlib charts by evaluating rendered figures and source code for statistical honesty and communication clarity. The Skill validates figure integrity against established lab standards.

What is adversarial quality assurance for data visualization?

Adversarial quality assurance for data visualization is a technique that analyzes both rendered figure images and their underlying generating code. It targets common pitfalls like axis mislabeling and positional legend mapping in R and Python environments.

Does figure quality assurance work with both R and Python environments?

Figure quality assurance works with both R and Python environments, specifically targeting visualization errors in ggplot2 and matplotlib scripts. It validates figure integrity by performing a code autopsy and visual audit on the generated outputs.

How do I find axis mislabeling and scaling errors in my data science plots?

To find axis mislabeling and scaling errors in data science plots, run an adversarial code autopsy on your visualization scripts. This process detects positional mapping pitfalls and validates the rendered figure output.