AGENT SKILL

figure-interaction

Use only when the user asked for a reopenable chat/panel card and the figure or CSV already exists on disk — interaction-write, one sentence, stop. Not for drawing (→ figure-matplotlib / figure-tikz / figure-typst) or manuscript wiring (→ figure-pipeline).

License 许可
MIT
所属仓库
yibocat/prismnext
最近更新
2026-09-05
Stars
★ 4
Forks
0

01 前言 Front Matter

name
figure-interaction
license
MIT
description
Use only when the user asked for a reopenable chat/panel card and the figure or CSV already exists on disk — interaction-write, one sentence, stop. Not for drawing (→ figure-matplotlib / figure-tikz / figure-typst) or manuscript wiring (→ figure-pipeline).

03 SKILL.md 正文

Interaction Figures

A card the user can reopen beside chat. The file must already exist. This skill does not draw and does not touch the manuscript.

When to use

  • The user asked to keep, pin, or reopen a figure/plot in the panel
  • Updating an existing card with a new file for the same visual question

Not: "draw me a figure" (chat already previews the PDF). Not: put it in the paper.

If the file is missing, make it with the drawing skill first, then come back — do not start matplotlib from this skill.

Closed path

  1. Pick the kind — figure.static for a finished PDF/PNG/SVG on disk; a plot.* kind when the value is a real CSV (line / series / scatter / area / bar / histogram / box / density / heatmap — params on the interaction-write tool). One object, one visual question.
  2. Write — interaction-write with a stable name (loss-curve-exp3, not plot1) and a title that states what to see ("Validation loss, 5 seeds, mean ± std"). Embed the returned fenceMarkdown.
  3. Stop. One sentence in chat. The card is the figure.

Same question, better data → update that object. New question → new object. Say what changed in one sentence.

Standards (when writing the spec)

  • Palette: Okabe-Ito only (#0072B2 #E69F00 #009E73 #D55E00 #CC79A7 #56B4E9 #F0E442 #000000). Never red–green.
  • Static exports: transparent background; contrast that survives light and dark; sized for a ~400–600 px sidebar.
  • A panel figure has no caption — title and axes must explain it.
  • Interactive / 3D / custom JS: out of scope; say so and offer static.

Do not

  • latex-compile or \includegraphics
  • Rasterize or delete the source file
  • Hand-edit the output image

04 同仓库更多 Skills

yibocat
yibocat/prismnext

demo-multi-file

Local test skill with an extra notes file

★ 4
yibocat
yibocat/prismnext

writing-results

Use when drafting a Results / Experiments / Analysis section — narrating verified evidence from run receipts, with complete statistical reporting, derivation analysis, and honest treatment of negative results. Every number traces to a run; every claim survives the audit.

★ 4
yibocat
yibocat/prismnext

writing-related-work

Use when drafting a Related Work / literature review section or a standalone synthesis note — organizing prior work into a grounded, cited narrative or comparing methods across papers, from the project library plus staged external discovery. Never cites from memory.

★ 4
yibocat
yibocat/prismnext

writing-preliminaries

Use when drafting a Preliminaries / Background / Notation section — definitions, problem setup, and formal statements the rest of the paper builds on, with notation consistency and machine-checked formal claims. Reference patterns, not molds; include only what later sections actually use.

★ 4
yibocat
yibocat/prismnext

writing-methods

Use when drafting a Methods / Methodology / Approach / Model section — expounding the ideas and the reasoning behind the method, grounded in the project's brief, notes, and prior discussions, with empirical details from run receipts. Structure follows the idea's shape; reference angles, not fixed templates.

★ 4
yibocat
yibocat/prismnext

writing-introduction

Use when drafting or rewriting a paper's Introduction — framing the problem, positioning against prior work, and stating contributions as checkable claims, grounded in the brief, notes, and the library. Reference rhetorical patterns, adapted to the paper — never applied as molds.

★ 4