一键导入
ggai-single-cell-spatial
Single-cell and spatial transcriptomics plotting guidance for ggai Agents.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Single-cell and spatial transcriptomics plotting guidance for ggai Agents.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Generate a single biomedical entity as a reusable cutout asset (transparent alpha background, no labels) suitable for compositing into diagrams. Use when the goal is to produce one isolated subject — a cell, vessel, tissue cutaway, signaling cloud — that will later be placed into a scene, rather than rendering a complete figure.
Produce a schematic, illustration, biomedical cartoon, or pure conceptual figure without underlying data. Calls an image model directly with a structured prompt, generates one or more candidates, scores them on basic visual proxies, and saves the best. Use when the goal is "draw / illustrate / diagram / sketch" and no data frame is in scope.
Decide which R visualization engine to use for a figure: ggplot2, grid/grob, base graphics, ComplexHeatmap, circlize, ggraph/DiagrammeR, htmlwidget (plotly/leaflet), or composite (patchwork/cowplot/aplot). Load this skill when the user names a non-ggplot library, when the figure shape suggests a specialized library, or when ggplot would require contortions to reach the intended result.
Produce interactive web visualizations using `plotly`, `leaflet`, `DT`, `networkD3`, or any other `htmlwidgets`-based library. Default output is a self-contained HTML file (always works). Static PNG export is supported when the optional `webshot2` package and a headless Chrome (via `chromote`) are available.
Compose multiple plots into a single figure using `patchwork`, `cowplot`, or `aplot`. Use whenever the user wants more than one panel — labeled multi-panel figures, side-by-side comparisons, A/B/C panels with shared legend, plots stacked over a metadata strip, or any layout that exceeds what a single ggplot's `facet_*` can express.
Lift the visual quality of an existing data figure by redrawing it with an image model that uses the original ggplot as a hard constraint. Preserves data semantics (positions, groups, scales, labels) while improving typography, composition, and surface polish. Use when the user has a working figure but wants it to look like a publication, cover, or polished talk slide.
| name | ggai-single-cell-spatial |
| description | Single-cell and spatial transcriptomics plotting guidance for ggai Agents. |
| when_to_use | Use for single-cell RNA-seq, Seurat, SingleCellExperiment, UMAP/t-SNE/PCA, marker genes, FeaturePlot, DotPlot, heatmap, violin/boxplot, or spatial transcriptomics plotting requests. |
Help ggai produce biologically honest, editable ggplot figures for common single-cell and spatial transcriptomics tasks. Treat this as domain guidance, not a source-specific data collector.
UMAP or t-SNE cell embedding:
UMAP_1, UMAP_2, tSNE_1, tSNE_2,
PC_1, PC_2;cell_type, cluster, seurat_clusters,
sample, condition;nCount_RNA, nFeature_RNA, percent.mt.Feature expression map:
Marker dot plot:
cell_type or cluster;gene;Spatial spot map:
spatial_x, spatial_y,
spatial_y_plot, imagecol, imagerow;coord_equal() or coord_fixed() for embedding and tissue coordinate
maps.levels() / unique().spatial_y_plot.Before committing, check the following:
pct_expression remains the size encoding in dot plots;avg_expression remains the color/fill encoding in dot plots;UMAP 1, UMAP 2, Tissue x, Tissue y,
Expression, Cell type, Cluster.ggai-r-fonts skill before
adding font-specific code.Commit when the ggplot validates and the visual encodings match the biological intent. If the plot is only a flattened data-frame approximation of a richer Seurat/SpatialFeaturePlot output, state that limitation in the source note or subtitle.
Declare a blocker or limitation when: