figure-creation

A guide for creating figures in Stencila Markdown, including images, charts made from code, multi-panel layouts, and annotated SVG graphics. Stencila Markdown is a Markdown format with support for executable and structured research content.

In plain words
What is it for?
Use it to plan or add simple figures, code-generated charts, subfigure grids, and SVG callouts in .smd documents.
Why use it?
It provides the syntax and layout patterns needed to make figures with captions, numbering, cross-references, and annotations.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/stencila/stencila/figure-creation
Any agent
npx skills add stencila/stencila --skill figure-creation
Clone the repo
git clone --depth 1 https://github.com/stencila/stencila

Made for: Claude Code, Codex.

Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,508 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00092 $0.05508
Opus 5 $0.00046 $0.02754
Sonnet 5 $0.00018 $0.01102
Haiku 4.5 $0.00009 $0.00551

Measured 3d ago against content hash 7f1b6cc81c31, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

figure-creation scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

Fix any errors and warnings before proceeding to visual verification with `snap`. To suppress a collision warning for an intentional overlap, place `<!-- lint-ignore collision -->` before the component.
.stencila/skills/figure-creation/SKILL.md · 453 lines

How it starts

The opening of the file, as written. The whole thing — 453 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Overview

Create, edit, or plan figures in Stencila Markdown (.smd) documents. Figures wrap images or executable output with captions, auto-numbered labels, cross-references, multi-panel grid layouts, and SVG annotation overlays.

If the user asks for strategy, options, or a figure specification rather than immediate file edits, provide a plan that covers the recommended figure structure, layout, caption approach, overlay strategy, and any missing inputs. Do not imply that implementation has already happened.

References

Condensed references for quick lookup (try these first):

Full documentation (large — load only when the condensed references are insufficient):

Required Inputs

Input Required Description
Target .smd file or figure location Required Which document and where in it the figure should go, or which existing figure should be revised
Source images, existing figure content, or executable code/data Required The content the figure will display or the current figure material to revise
Caption text or intent Required What the caption should say or convey
Annotation/overlay intent Optional What to annotate, highlight, or label
Panel order and layout preference Optional How subfigures should be arranged
Calibration or scale info Optional Known scale for scale bars (e.g., "130px = 20 μm")
Orientation semantics Optional Axis meanings for compass indicators (e.g., N/S, A/P D/V)
Image dimensions Optional Pixel dimensions if precise overlay coordinates matter
Delivery mode Optional Whether the user wants design/specification guidance or an actual .smd edit

Read the full file on GitHub · 453 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 453 lines · 92 tokens per session scan C 7f1b6cc81c31

Subscribe to this mod's changes

figure-creation is a skill published in the GitHub repository stencila/stencila (900 stars, last pushed 3d ago), licensed Apache-2.0. It adds 92 tokens to every session and 5,508 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

fin-viz-launch

Skill "fin-viz-launch" from csmar432/finai-research, covering fin-viz-launch, 触发条件, 三种工作模式, 模式一:快速模式 (quick mode) and 关键词 → 预设映射.

csmar432/finai-research · 45 tokens

protein-function-prediction

Predict protein function and properties from amino acid sequence using BioT5. Use this skill when: (1) You have a protein sequence and want to understand its biological function, (2) You need to identify enzyme activity, pathway involvement, or molecular interactions, (3) You want a concise description of protein…

PharMolix/OpenBioMed · 73 tokens

Bio Image Processing Skills Index

Skills for biological image analysis: cell/nucleus segmentation, image restoration, and spatial data processing.

aristoteleo/PantheonOS · 25 tokens

Single-Cell Analysis Skills Index

Core skills for single-cell RNA-seq analysis: quality control, cell type annotation, and trajectory inference. These are high-priority actionable workflows — load them first for common single-cell tasks.

aristoteleo/PantheonOS · 48 tokens

bulkrna-geneid-mapping

Load when converting gene identifiers between Ensembl, Entrez, and HGNC symbol in a bulk RNA-seq count matrix. Skip when the input is already in the desired identifier system; organisms outside human/mouse; non-bulk-counts inputs.

TianGzlab/OmicsClaw · 59 tokens

genomics-variant-annotation

Load when summarising functional impact of an annotated variant CSV — per-IMPACT counts (HIGH / MODERATE / LOW / MODIFIER), top consequences, gene-affected count. Skip when input is a raw VCF (convert with bcftools +split-vep first); calling raw variants (use genomics-variant-calling); filtering VCFs (use…

TianGzlab/OmicsClaw · 91 tokens