anima README

项目的 README,来自 github.com/Garinmckayl/anima。合并为一个 markdown 文件:README.md。

Anima

Ask Claude for a biology figure. Get an interactive, sourced, isometric one.

License: MIT CI Release GitHub stars Zero runtime dependencies

A Claude Code skill that turns "show me how cocaine and amphetamine act differently at a dopamine synapse" into a live, standalone page: real structures, a mechanism you can toggle, a readout driven by one small model, and a citation for every number on screen.

Five interactive figures: dopamine receptors, stimulants at the dopamine transporter, the reward pathway, semaglutide on a beta cell, and estrogen in an aggression circuit

Try every figure live (no install) · 35-second launch video · Full demo (MP4) · Request a figure

Why it exists

Most science graphics are either static diagrams or confident-looking animations with no sources. This skill holds itself to a different standard:

Install

npx skills add Garinmckayl/anima -g -a claude-code

Requires Claude Code and Node.js 20.10 or later. The drawing kit uses only Node built-ins and has zero runtime dependencies. Chrome or Chromium is needed only for the capture and verification scripts.

Use it

In Claude Code:

/anima show how cocaine and amphetamine act differently at the dopamine transporter, with a drug selector and sourced mechanisms; standalone HTML
/anima visualize semaglutide acting on a pancreatic beta cell, with glucose-dependent insulin release, cited label numbers and an educational-use note
/anima show D1 and D2 receptor signalling in a striatal neuron, with the G-protein cycle and a receptor-antagonist toggle
/anima make a mid-sagittal brain showing the mesolimbic pathway and one model of how it changes with repeated drug exposure; cite every claim

More to try:

/anima show how CRISPR-Cas9 finds and cuts a target sequence, with a guide-mismatch toggle and cited cleavage numbers
/anima animate the mitochondrial electron transport chain with a proton-gradient readout and an inhibitor toggle

Name the biological subject, the mechanism to explain, the audience and the output format. The skill sizes the job first (Figure, Hero or Epic), collects sources before drawing, builds the page, then checks it the way a reviewer would: zoomed in, in both themes, at phone width.

Each figure builds to a standalone HTML page in dark and light themes. The links open the live pages, so they run in your browser. To open them from a clone, use the files in examples/.

Dopamine receptors (light)
D1-like receptors couple Gαs/olf and raise cAMP; D2-like receptors couple Gαi/o and lower it. Full G-protein cycle, a dopamine-level slider and a generic D2-antagonist toggle.
dopamine receptors
Stimulants at the transporter (light)
None, cocaine or amphetamine. Reuptake, blockade, and amphetamine's transport, vesicle leak and reverse efflux. Skeletal formulas from PubChem.
stimulants dat
Reward and addiction (light)
The mesolimbic pathway, a cue sequence, and one leading model of what changes after repeated exposure. Framed as a model, with sources.
reward addiction
Semaglutide and GLP-1 (light)
A GLP-1 receptor agonist on a beta cell: glucose-dependent insulin release, the molecule's engineered features, and the preclinical-versus-clinical state of the appetite and reward evidence.
Estrogen and aggression (light)
Testosterone to estradiol by aromatase, then estrogen receptor α, in an amygdala-type neuron. States that the human evidence is weak (pooled Fisher z 0.16 across 14 studies).
estrogen aggression
A myelinated neuron (light)
Saltatory conduction along a myelinated axon with a hoverable synapse.
neuron
Sunflower seedling bending toward light (light)
BendLab's two-state model (sensing lag and a saturating bend rate) running live. Move the sliders to see when the rate limit matters and when it can't be read from the trajectory. Model by BendLab, reviewed for accuracy by its author; not peer reviewed. Includes three fitted presets from the author.
sunflower bend

What every figure has

Make your own

Copy the closest example and change the biology:

node examples/dopamine-receptors/build.mjs
node examples/dopamine-receptors/build.mjs --light

Each build.mjs imports the kit from kit/ and writes standalone pages next to itself. kit/blob.mjs draws organic forms, kit/branch.mjs branching structures, kit/chem.mjs molecules, helices and ribbons, and kit/bio-audit.mjs checks membrane intersections, label targets and declared scale. WebGL shaders and a 3D mode are optional extras for figures that need them.

Record a demo of your own figures with scripts/make-demo.mjs (needs Chrome and ffmpeg), and check a page with scripts/capture.mjs, scripts/drive.mjs and scripts/lines.mjs. CONTRIBUTING.md lists every check.

How it works

Sources and limits

Every displayed number, including sizes, concentrations, potentials, rates and doses, must cite its source in the caption or a sources block, with species, tissue, conditions and units. Schematic scales are labelled as schematic.

These are educational figures. They are not medical advice, not a validated anatomy atlas, and not a diagnostic or prescribing tool. Drug figures explain mechanism only. Biology varies between species, tissues and individuals, and a 2D or isometric illustration cannot capture every spatial relationship.

If you or someone you know is struggling with substance use, a local health service or helpline can help.

Contribute

Anima grows by figures. If a subject you know well is missing, request it or send a pull request with one. Issues labelled good first issue are a place to start, and CONTRIBUTING.md lists every check.

If Anima saved you time, a star helps others find it.

License

MIT. See LICENSE.

anima (Garinmckayl/anima)

正在搜索数据库…

287 ·GitHub
这是什么?Anima 是一个 Claude Code 技能,可以把通俗的生物学问题转化为可交互、有出处的等距图:一个独立网页,展示真实结构、可切换的机制动画和实时数值读数,并为每个显示的数字附上引用出处。
这是个应用,还是 Claude Code 帮我生成的内容?它不是可以直接运行的应用,而是安装在 Claude Code 内的一个技能。你描述生物学主题后,Claude Code 会调用该技能生成一个独立的 HTML 网页,你可以用浏览器打开。
我要怎么用它来生成图?在 Claude Code 中,你需要说明生物学对象、要解释的机制、受众和输出格式。随后,该技能会判断任务规模(Figure、Hero 或 Epic),收集来源,构建页面,并检查放大后的效果、浅色和深色两种主题,以及手机宽度下的显示。
使用前需要先安装什么?你需要安装 Claude Code 和 Node.js 20.10 或更高版本。绘图工具包本身只使用 Node 内置模块,运行时零依赖;只有可选的截图和验证脚本才需要 Chrome 或 Chromium。
它会提供药物剂量或医疗建议吗?不会。涉及药物的图只解释作用机制,不提供剂量、给药途径、用药时间表或任何建议,并且每张图都明确标注为科普用途,而非医疗建议。
它怎么保证屏幕上的数字可靠?屏幕上显示的每个数值(尺寸、浓度、电位、速率或剂量)都必须在图注或来源说明中注明出处,包括物种、组织、实验条件和单位;无法核实的数字会被省略,而不是进行估算。
每张生成的图都包含什么?一个带边框的卡片,包含图号、标题和交互提示;由小型模型驱动的实时读数;悬停和键盘操作的说明;暂停控制;减弱动态效果时的静态画面;来源说明区;以及浅色和深色两种主题。
我能不用示例,自己做一张新图吗?可以。你可以复制最接近的现有示例并加以修改,复用工具包中的模块(kit/blob.mjs、kit/branch.mjs、kit/chem.mjs、kit/bio-audit.mjs)。这些模块都被各个 build.mjs 导入,分别用于绘制有机形态、分支结构和分子,并进行膜结构和标注检查。
为什么要做 Anima,而不是用常见的科学动画?大多数生物学图形要么是静态的,要么看起来很权威却没有出处。Anima 坚持绘制真实结构,为每个数字标注出处,说明置信度等级,并且只对机制做动画,不添加装饰性内容。
大小
18.9 MB
星标
287
更新
提交Nov 17
时长
1个月
提交 · 90 天