[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ECSTVRNAGF3BS3R5WJ05AW":3,"skill-same:01M7ECSTVRNAGF3BS3R5WJ05AW":151},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M7ECSTVRNAGF3BS3R5WJ05AW","scanpy",null,"Standard single-cell RNA-seq analysis pipeline. Use for QC, normalization, dimensionality reduction (PCA\u002FUMAP\u002Ft-SNE), clustering, differential expression, visualization, and converting R-friendly single-cell formats such as Seurat or SingleCellExperiment RDS files into h5ad for Scanpy. Best for exploratory scRNA-seq analysis with established workflows. For deep learning models use scvi-tools; for data format questions use anndata.","sanjeevafk\u002Fagent-skills","sanjeevafk","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F230678117?v=4","01M7C540EFY46ETG1NNWKS5X3Q","Sanjeev","01M7C540F366J5C1D587BMKH9Q",0,"BSD-3-Clause","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fscanpy\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: scanpy\ndescription: Standard single-cell RNA-seq analysis pipeline. Use for QC, normalization, dimensionality reduction (PCA\u002FUMAP\u002Ft-SNE), clustering, differential expression, visualization, and converting R-friendly single-cell formats such as Seurat or SingleCellExperiment RDS files into h5ad for Scanpy. Best for exploratory scRNA-seq analysis with established workflows. For deep learning models use scvi-tools; for data format questions use anndata.\nlicense: BSD-3-Clause\nmetadata:\n  version: \"1.5\"\n  skill-author: K-Dense Inc.\n---\n\n# Scanpy: Single-Cell Analysis\n\n## Overview\n\nScanpy is a scalable Python toolkit for analyzing single-cell RNA-seq data, built on AnnData. Apply this skill for complete single-cell workflows including quality control, normalization, dimensionality reduction, clustering, marker gene identification, visualization, and trajectory analysis. Current stable release: **scanpy 1.12.x** (January 2026).\n\n## Installation\n\nRequires Python **3.12+** (scanpy 1.12 dropped Python ≤3.11) and anndata **≥0.10**.\n\n```bash\nuv pip install \"scanpy[leiden]\"\n```\n\nThe `[leiden]` extra installs `python-igraph` and `leidenalg`, required for Leiden clustering. For reproducible environments, pin a version: `uv pip install \"scanpy[leiden]==1.12.1\"`.\n\nFor large or out-of-core datasets, many functions support [Dask](https:\u002F\u002Fdocs.dask.org\u002F) arrays (experimental):\n\n```bash\nuv pip install \"scanpy[leiden]\" dask\n```\n\nSee the [Using dask with Scanpy](https:\u002F\u002Fscanpy.scverse.org\u002Fen\u002Fstable\u002Ftutorials\u002Fexperimental\u002Fdask.html) tutorial. For GPU-accelerated scanpy-like operations, use [rapids-singlecell](https:\u002F\u002Frapids-singlecell.readthedocs.io\u002F) as a separate package.\n\nIf the input is an R-native single-cell object (`.rds`, `.RData`, Seurat, or SingleCellExperiment), first convert it to `.h5ad` with R tooling, then load it with Scanpy. Read `references\u002Fr_interop.md` for agent-run installation and conversion instructions across macOS, Linux, and Windows.\n\nFor AnnData structure and I\u002FO details, use the **anndata** skill. For probabilistic models and batch correction, use **scvi-tools**.\n\n## When to Use This Skill\n\nThis skill should be used when:\n- Analyzing single-cell RNA-seq data (.h5ad, 10X, CSV formats)\n- Working with R-friendly single-cell datasets (`.rds`, `.RData`, Seurat, SingleCellExperiment) that need conversion to `.h5ad`\n- Performing quality control on scRNA-seq datasets\n- Creating UMAP, t-SNE, or PCA visualizations\n- Identifying cell clusters and finding marker genes\n- Annotating cell types based on gene expression\n- Conducting trajectory inference or pseudotime analysis\n- Generating publication-quality single-cell plots\n\n## Script Toolkit (prefer these over writing code from scratch)\n\nThis skill bundles ready-to-run CLI scripts in `scripts\u002F` for every common step. **Run these instead of hand-writing scanpy code** — they handle file loading by extension, figure setup, sensible defaults, raw-count preservation, and progress logging. Each reads and writes `.h5ad`, so they chain together, and each has its own `--help`. Only drop down to writing scanpy code when a task isn't covered by a script or needs unusual customization.\n\nAll scripts use a shared `scripts\u002F_common.py` helper (loading, saving, figure config) — keep it alongside the others. Run from the skill directory or pass full paths; figures default to `.\u002Ffigures\u002F`.\n\n| Script | Purpose | Typical call |\n|--------|---------|--------------|\n| `run_pipeline.py` | **Full workflow in one command**: load → QC → normalize → HVG → PCA → (batch) → UMAP → Leiden → markers | `python scripts\u002Frun_pipeline.py raw.h5ad -o processed.h5ad` |\n| `inspect_data.py` | Summarize an unknown dataset (shape, obs\u002Fvar, layers, what's already computed, raw vs normalized) | `python scripts\u002Finspect_data.py data.h5ad` |\n| `convert.py` | Load any format (10x dir\u002F.h5, csv, loom, mtx) and write `.h5ad` | `python scripts\u002Fconvert.py 10x_dir\u002F -o data.h5ad` |\n| `qc_analysis.py` | QC metrics, before\u002Fafter plots, filtering, optional Scrublet doublets | `python scripts\u002Fqc_analysis.py raw.h5ad -o qc.h5ad --scrublet` |\n| `preprocess.py` | Normalize, log1p, HVG, optional scale\u002Fregress (keeps `counts` layer + `raw`) | `python scripts\u002Fpreprocess.py qc.h5ad -o norm.h5ad` |\n| `reduce_dimensions.py` | PCA + variance plot, neighbors, UMAP, optional t-SNE | `python scripts\u002Freduce_dimensions.py norm.h5ad -o red.h5ad` |\n| `batch_correct.py` | Integration: harmony \u002F bbknn \u002F combat | `python scripts\u002Fbatch_correct.py red.h5ad -o int.h5ad --method harmony --batch-key sample` |\n| `cluster.py` | Leiden (or louvain) at one or many resolutions | `python scripts\u002Fcluster.py red.h5ad -o clu.h5ad --resolution 0.3 0.6 1.0` |\n| `find_markers.py` | `rank_genes_groups` + per-group CSVs + marker plots | `python scripts\u002Ffind_markers.py clu.h5ad --groupby leiden -o clu.h5ad` |\n| `annotate.py` | Map clusters → cell types from JSON\u002FCSV; optional marker reference dotplot | `python scripts\u002Fannotate.py clu.h5ad -o ann.h5ad --mapping map.json` |\n| `score_genes.py` | Score gene signatures (JSON) and\u002For cell-cycle phase | `python scripts\u002Fscore_genes.py ann.h5ad -o scored.h5ad --gene-sets sigs.json` |\n| `pseudobulk.py` | Aggregate counts by sample × cell type → matrix for pydeseq2 | `python scripts\u002Fpseudobulk.py ann.h5ad --by sample cell_type --out-prefix pb` |\n| `subset.py` | Subset by obs values or gene list (optionally clear stale embeddings) | `python scripts\u002Fsubset.py ann.h5ad -o tcells.h5ad --obs cell_type --keep \"T cells\"` |\n| `plot.py` | Generate umap\u002Ftsne\u002Fpca\u002Fviolin\u002Fdotplot\u002Fheatmap\u002Fetc. from a processed object | `python scripts\u002Fplot.py ann.h5ad --kind dotplot --genes CD3D CD14 --groupby cell_type` |\n\n### One-shot end-to-end run\n\n```bash\n# Counts → clustered, marker-annotated object + figures + marker CSVs\npython scripts\u002Frun_pipeline.py raw.h5ad -o processed.h5ad \\\n    --resolution 0.5 --n-top-genes 2000 --scrublet\n# With multi-sample integration:\npython scripts\u002Frun_pipeline.py raw.h5ad -o processed.h5ad --batch-key sample --batch-method harmony\n# Reproducible parameters via JSON (keys mirror flag names with underscores):\npython scripts\u002Frun_pipeline.py raw.h5ad -o processed.h5ad --config params.json\n```\n\n### Step-by-step chain (when you need to inspect\u002Fiterate between stages)\n\n```bash\npython scripts\u002Fqc_analysis.py        raw.h5ad  -o qc.h5ad   --scrublet\npython scripts\u002Fpreprocess.py         qc.h5ad   -o norm.h5ad --n-top-genes 2000\npython scripts\u002Freduce_dimensions.py  norm.h5ad -o red.h5ad  --n-pcs 40\npython scripts\u002Fcluster.py            red.h5ad  -o clu.h5ad  --resolution 0.3 0.5 0.8\npython scripts\u002Ffind_markers.py       clu.h5ad  -o clu.h5ad  --groupby leiden --use-raw\n# inspect results\u002Fmarkers\u002F*.csv, decide labels, write a mapping JSON, then:\npython scripts\u002Fannotate.py           clu.h5ad  -o ann.h5ad  --mapping celltypes.json\n```\n\nThe sections below document the underlying scanpy calls each script performs — read them when customizing beyond the script flags.\n\n## Quick Start\n\n### Basic Import and Setup\n\n```python\nimport scanpy as sc\nimport pandas as pd\nimport numpy as np\n\n# Configure settings\nsc.settings.verbosity = 3\nsc.settings.set_figure_params(dpi=80, facecolor='white')\nsc.settings.figdir = '.\u002Ffigures\u002F'\nsc.settings.autosave = True  # Preferred over per-plot save= (deprecated in scanpy 1.12)\n```\n\n### Loading Data\n\n```python\n# From 10X Genomics\nadata = sc.read_10x_mtx('path\u002Fto\u002Fdata\u002F')\nadata = sc.read_10x_h5('path\u002Fto\u002Fdata.h5')\n\n# From h5ad (AnnData format)\nadata = sc.read_h5ad('path\u002Fto\u002Fdata.h5ad')\n\n# From CSV\nadata = sc.read_csv('path\u002Fto\u002Fdata.csv')\n```\n\nFor R-native files, do not try to parse Seurat `.rds` directly in Python. Convert first:\n\n```bash\n# See references\u002Fr_interop.md for installing R and conversion packages.\nRscript convert_rds_to_h5ad.R input.rds output.h5ad\n```\n\n```python\nadata = sc.read_h5ad('output.h5ad')\n```\n\n### Understanding AnnData Structure\n\nThe AnnData object is the core data structure in scanpy:\n\n```python\nadata.X          # Expression matrix (cells × genes)\nadata.obs        # Cell metadata (DataFrame)\nadata.var        # Gene metadata (DataFrame)\nadata.uns        # Unstructured annotations (dict)\nadata.obsm       # Multi-dimensional cell data (PCA, UMAP)\nadata.raw        # Raw data backup\n\n# Access cell and gene names\nadata.obs_names  # Cell barcodes\nadata.var_names  # Gene names\n```\n\n## Standard Analysis Workflow\n\nThe seven steps, with code and the parameters that matter at each, are in\n[references\u002Fanalysis_workflow.md](references\u002Fanalysis_workflow.md):\n\n1. **Quality control** — filter cells and genes; inspect mitochondrial fraction and counts\n   before choosing thresholds rather than copying defaults.\n2. **Normalization and preprocessing** — normalize, log-transform, select highly variable\n   genes, and keep `.raw` for later plotting.\n3. **Dimensionality reduction** — PCA, then the neighbour graph, then UMAP.\n4. **Clustering** — Leiden at a resolution chosen for the question, not the default.\n5. **Marker gene identification** — ranked genes per cluster.\n6. **Cell type annotation** — mapping clusters to types from markers.\n7. **Save results** — writing the annotated `AnnData`.\n\nCommon follow-on tasks — publication plots, trajectory inference, pseudobulk differential\nexpression between conditions, gene set scoring, and batch correction — are in the same\nfile. See also [references\u002Fstandard_workflow.md](references\u002Fstandard_workflow.md) and\n[references\u002Fplotting_guide.md](references\u002Fplotting_guide.md).\n\n## Key Parameters to Adjust\n\n### Quality Control\n- `min_genes`: Minimum genes per cell (typically 200-500)\n- `min_cells`: Minimum cells per gene (typically 3-10)\n- `pct_counts_mt`: Mitochondrial threshold (typically 5-20%)\n\n### Normalization\n- `target_sum`: Target counts per cell (default 1e4)\n\n### Feature Selection\n- `n_top_genes`: Number of HVGs (typically 2000-3000)\n- `min_mean`, `max_mean`, `min_disp`: HVG selection parameters\n\n### Dimensionality Reduction\n- `n_pcs`: Number of principal components (check variance ratio plot)\n- `n_neighbors`: Number of neighbors (typically 10-30)\n\n### Clustering\n- `resolution`: Clustering granularity (0.4-1.2, higher = more clusters)\n\n## Common Pitfalls and Best Practices\n\n1. **Always save raw counts**: `adata.raw = adata` before filtering genes\n2. **Check QC plots carefully**: Adjust thresholds based on dataset quality\n3. **Use Leiden clustering**: `sc.tl.louvain` is deprecated in scanpy 1.12\n4. **Try multiple clustering resolutions**: Find optimal granularity\n5. **Validate cell type annotations**: Use multiple marker genes\n6. **Use `use_raw=True` for gene expression plots**: Shows normalized counts from `.raw`\n7. **Check PCA variance ratio**: Determine optimal number of PCs\n8. **Save intermediate results**: Long workflows can fail partway through\n9. **Pseudobulk for DE**: Do not treat `rank_genes_groups` p-values as rigorous DE between conditions\n10. **Save plots via settings**: Use `sc.settings.autosave` instead of deprecated `save=` on plot functions\n11. **Convert R objects before Scanpy**: Use R packages to convert Seurat or SingleCellExperiment `.rds` files to `.h5ad`, preserving counts, metadata, and gene identifiers\n\n## Bundled Resources\n\n### scripts\u002F (CLI toolkit)\nA composable set of `.h5ad`-in\u002F`.h5ad`-out scripts covering the whole workflow plus a one-command end-to-end pipeline. See the **Script Toolkit** section above for the full table and chaining examples. Each script has `--help`. Files:\n\n- `_common.py` — shared loading\u002Fsaving\u002Ffigure helpers imported by the others (not a CLI)\n- `run_pipeline.py` — full pipeline in one command (flags or `--config` JSON)\n- `inspect_data.py`, `convert.py` — explore and load\u002Fconvert any input format\n- `qc_analysis.py`, `preprocess.py`, `reduce_dimensions.py`, `batch_correct.py`, `cluster.py` — pipeline steps\n- `find_markers.py`, `annotate.py`, `score_genes.py`, `pseudobulk.py` — markers, annotation, scoring, DE prep\n- `subset.py`, `plot.py` — subset by metadata\u002Fgenes; generate any standard plot\n\n**Default to these scripts before writing scanpy code from scratch.**\n\n### references\u002Fstandard_workflow.md\nComplete step-by-step workflow with detailed explanations and code examples for:\n- Data loading and setup\n- Quality control with visualization\n- Normalization and scaling\n- Feature selection\n- Dimensionality reduction (PCA, UMAP, t-SNE)\n- Clustering (Leiden)\n- Doublet detection (scrublet) and pseudobulk aggregation\n- Marker gene identification\n- Cell type annotation\n- Trajectory inference\n- Differential expression\n\nRead this reference when performing a complete analysis from scratch.\n\n### references\u002Fapi_reference.md\nQuick reference guide for scanpy functions organized by module:\n- Reading\u002Fwriting data (`sc.read_*`, `adata.write_*`)\n- Preprocessing (`sc.pp.*`)\n- Tools (`sc.tl.*`)\n- Plotting (`sc.pl.*`)\n- AnnData structure and manipulation\n- Settings and utilities\n\nUse this for quick lookup of function signatures and common parameters.\n\n### references\u002Fplotting_guide.md\nComprehensive visualization guide including:\n- Quality control plots\n- Dimensionality reduction visualizations\n- Clustering visualizations\n- Marker gene plots (heatmaps, dot plots, violin plots)\n- Trajectory and pseudotime plots\n- Publication-quality customization\n- Multi-panel figures\n- Color palettes and styling\n\nConsult this when creating publication-ready figures.\n\n### references\u002Fr_interop.md\nAgent runbook for installing R on macOS, Linux, and Windows, installing CRAN\u002FBioconductor conversion packages, inspecting `.rds`\u002F`.RData` inputs, converting Seurat or SingleCellExperiment objects to `.h5ad`, and validating the result in Scanpy.\n\n### assets\u002Fanalysis_template.py\nComplete analysis template providing a full workflow from data loading through cell type annotation. Copy and customize this template for new analyses:\n\n```bash\ncp assets\u002Fanalysis_template.py my_analysis.py\n# Edit parameters and run\npython my_analysis.py\n```\n\nThe template includes all standard steps with configurable parameters and helpful comments.\n\n### assets\u002F JSON templates\nEdit-and-pass templates so you don't author config\u002Fmappings from scratch:\n- `assets\u002Fpipeline_config.json` — parameter set for `run_pipeline.py --config`\n- `assets\u002Fcelltype_mapping.json` — cluster → cell-type map for `annotate.py --mapping`\n- `assets\u002Fgene_signatures.json` — gene-set signatures for `score_genes.py --gene-sets`\n\n## Additional Resources\n\n- **Official scanpy documentation**: https:\u002F\u002Fscanpy.scverse.org\u002Fen\u002Fstable\u002F\n- **Scanpy tutorials**: https:\u002F\u002Fscanpy.scverse.org\u002Fen\u002Fstable\u002Ftutorials\u002Findex.html\n- **Release notes**: https:\u002F\u002Fscanpy.scverse.org\u002Fen\u002Fstable\u002Frelease-notes\u002Findex.html\n- **scverse ecosystem**: https:\u002F\u002Fscverse.org\u002F (related tools: squidpy, scvi-tools, cellrank)\n- **R interoperability**: https:\u002F\u002Fwww.bioconductor.org\u002Fpackages\u002Frelease\u002Fbioc\u002Fhtml\u002Fzellkonverter.html and https:\u002F\u002Fmojaveazure.github.io\u002Fseurat-disk\u002F\n- **Best practices**: Luecken & Theis (2019) \"Current best practices in single-cell RNA-seq\"\n\n## Tips for Effective Analysis\n\n1. **Start with the template**: Use `assets\u002Fanalysis_template.py` as a starting point\n2. **Run QC script first**: Use `scripts\u002Fqc_analysis.py` for initial filtering\n3. **Consult references as needed**: Load workflow and API references into context\n4. **Iterate on clustering**: Try multiple resolutions and visualization methods\n5. **Validate biologically**: Check marker genes match expected cell types\n6. **Document parameters**: Record QC thresholds and analysis settings\n7. **Save checkpoints**: Write intermediate results at key steps\n","# Scanpy: Single-Cell Analysis\n\n## Overview\n\nScanpy is a scalable Python toolkit for analyzing single-cell RNA-seq data, built on AnnData. Apply this skill for complete single-cell workflows including quality control, normalization, dimensionality reduction, clustering, marker gene identification, visualization, and trajectory analysis. Current stable release: **scanpy 1.12.x** (January 2026).\n\n## Installation\n\nRequires Python **3.12+** (scanpy 1.12 dropped Python ≤3.11) and anndata **≥0.10**.\n\n```bash\nuv pip install \"scanpy[leiden]\"\n```\n\nThe `[leiden]` extra installs `python-igraph` and `leidenalg`, required for Leiden clustering. For reproducible environments, pin a version: `uv pip install \"scanpy[leiden]==1.12.1\"`.\n\nFor large or out-of-core datasets, many functions support [Dask](https:\u002F\u002Fdocs.dask.org\u002F) arrays (experimental):\n\n```bash\nuv pip install \"scanpy[leiden]\" dask\n```\n\nSee the [Using dask with Scanpy](https:\u002F\u002Fscanpy.scverse.org\u002Fen\u002Fstable\u002Ftutorials\u002Fexperimental\u002Fdask.html) tutorial. For GPU-accelerated scanpy-like operations, use [rapids-singlecell](https:\u002F\u002Frapids-singlecell.readthedocs.io\u002F) as a separate package.\n\nIf the input is an R-native single-cell object (`.rds`, `.RData`, Seurat, or SingleCellExperiment), first convert it to `.h5ad` with R tooling, then load it with Scanpy. Read `references\u002Fr_interop.md` for agent-run installation and conversion instructions across macOS, Linux, and Windows.\n\nFor AnnData structure and I\u002FO details, use the **anndata** skill. For probabilistic models and batch correction, use **scvi-tools**.\n\n## When to Use This Skill\n\nThis skill should be used when:\n- Analyzing single-cell RNA-seq data (.h5ad, 10X, CSV formats)\n- Working with R-friendly single-cell datasets (`.rds`, `.RData`, Seurat, SingleCellExperiment) that need conversion to `.h5ad`\n- Performing quality control on scRNA-seq datasets\n- Creating UMAP, t-SNE, or PCA visualizations\n- Identifying cell clusters and finding marker genes\n- Annotating cell types based on gene expression\n- Conducting trajectory inference or pseudotime analysis\n- Generating publication-quality single-cell plots\n\n## Script Toolkit (prefer these over writing code from scratch)\n\nThis skill bundles ready-to-run CLI scripts in `scripts\u002F` for every common step. **Run these instead of hand-writing scanpy code** — they handle file loading by extension, figure setup, sensible defaults, raw-count preservation, and progress logging. Each reads and writes `.h5ad`, so they chain together, and each has its own `--help`. Only drop down to writing scanpy code when a task isn't covered by a script or needs unusual customization.\n\nAll scripts use a shared `scripts\u002F_common.py` helper (loading, saving, figure config) — keep it alongside the others. Run from the skill directory or pass full paths; figures default to `.\u002Ffigures\u002F`.\n\n| Script | Purpose | Typical call |\n|--------|---------|--------------|\n| `run_pipeline.py` | **Full workflow in one command**: load → QC → normalize → HVG → PCA → (batch) → UMAP → Leiden → markers | `python scripts\u002Frun_pipeline.py raw.h5ad -o processed.h5ad` |\n| `inspect_data.py` | Summarize an unknown dataset (shape, obs\u002Fvar, layers, what's already computed, raw vs normalized) | `python scripts\u002Finspect_data.py data.h5ad` |\n| `convert.py` | Load any format (10x dir\u002F.h5, csv, loom, mtx) and write `.h5ad` | `python scripts\u002Fconvert.py 10x_dir\u002F -o data.h5ad` |\n| `qc_analysis.py` | QC metrics, before\u002Fafter plots, filtering, optional Scrublet doublets | `python scripts\u002Fqc_analysis.py raw.h5ad -o qc.h5ad --scrublet` |\n| `preprocess.py` | Normalize, log1p, HVG, optional scale\u002Fregress (keeps `counts` layer + `raw`) | `python scripts\u002Fpreprocess.py qc.h5ad -o norm.h5ad` |\n| `reduce_dimensions.py` | PCA + variance plot, neighbors, UMAP, optional t-SNE | `python scripts\u002Freduce_dimensions.py norm.h5ad -o red.h5ad` |\n| `batch_correct.py` | Integration: harmony \u002F bbknn \u002F combat | `python scripts\u002Fbatch_correct.py red.h5ad -o int.h5ad --method harmony --batch-key sample` |\n| `cluster.py` | Leiden (or louvain) at one or many resolutions | `python scripts\u002Fcluster.py red.h5ad -o clu.h5ad --resolution 0.3 0.6 1.0` |\n| `find_markers.py` | `rank_genes_groups` + per-group CSVs + marker plots | `python scripts\u002Ffind_markers.py clu.h5ad --groupby leiden -o clu.h5ad` |\n| `annotate.py` | Map clusters → cell types from JSON\u002FCSV; optional marker reference dotplot | `python scripts\u002Fannotate.py clu.h5ad -o ann.h5ad --mapping map.json` |\n| `score_genes.py` | Score gene signatures (JSON) and\u002For cell-cycle phase | `python scripts\u002Fscore_genes.py ann.h5ad -o scored.h5ad --gene-sets sigs.json` |\n| `pseudobulk.py` | Aggregate counts by sample × cell type → matrix for pydeseq2 | `python scripts\u002Fpseudobulk.py ann.h5ad --by sample cell_type --out-prefix pb` |\n| `subset.py` | Subset by obs values or gene list (optionally clear stale embeddings) | `python scripts\u002Fsubset.py ann.h5ad -o tcells.h5ad --obs cell_type --keep \"T cells\"` |\n| `plot.py` | Generate umap\u002Ftsne\u002Fpca\u002Fviolin\u002Fdotplot\u002Fheatmap\u002Fetc. from a processed object | `python scripts\u002Fplot.py ann.h5ad --kind dotplot --genes CD3D CD14 --groupby cell_type` |\n\n### One-shot end-to-end run\n\n```bash\n# Counts → clustered, marker-annotated object + figures + marker CSVs\npython scripts\u002Frun_pipeline.py raw.h5ad -o processed.h5ad \\\n    --resolution 0.5 --n-top-genes 2000 --scrublet\n# With multi-sample integration:\npython scripts\u002Frun_pipeline.py raw.h5ad -o processed.h5ad --batch-key sample --batch-method harmony\n# Reproducible parameters via JSON (keys mirror flag names with underscores):\npython scripts\u002Frun_pipeline.py raw.h5ad -o processed.h5ad --config params.json\n```\n\n### Step-by-step chain (when you need to inspect\u002Fiterate between stages)\n\n```bash\npython scripts\u002Fqc_analysis.py        raw.h5ad  -o qc.h5ad   --scrublet\npython scripts\u002Fpreprocess.py         qc.h5ad   -o norm.h5ad --n-top-genes 2000\npython scripts\u002Freduce_dimensions.py  norm.h5ad -o red.h5ad  --n-pcs 40\npython scripts\u002Fcluster.py            red.h5ad  -o clu.h5ad  --resolution 0.3 0.5 0.8\npython scripts\u002Ffind_markers.py       clu.h5ad  -o clu.h5ad  --groupby leiden --use-raw\n# inspect results\u002Fmarkers\u002F*.csv, decide labels, write a mapping JSON, then:\npython scripts\u002Fannotate.py           clu.h5ad  -o ann.h5ad  --mapping celltypes.json\n```\n\nThe sections below document the underlying scanpy calls each script performs — read them when customizing beyond the script flags.\n\n## Quick Start\n\n### Basic Import and Setup\n\n```python\nimport scanpy as sc\nimport pandas as pd\nimport numpy as np\n\n# Configure settings\nsc.settings.verbosity = 3\nsc.settings.set_figure_params(dpi=80, facecolor='white')\nsc.settings.figdir = '.\u002Ffigures\u002F'\nsc.settings.autosave = True  # Preferred over per-plot save= (deprecated in scanpy 1.12)\n```\n\n### Loading Data\n\n```python\n# From 10X Genomics\nadata = sc.read_10x_mtx('path\u002Fto\u002Fdata\u002F')\nadata = sc.read_10x_h5('path\u002Fto\u002Fdata.h5')\n\n# From h5ad (AnnData format)\nadata = sc.read_h5ad('path\u002Fto\u002Fdata.h5ad')\n\n# From CSV\nadata = sc.read_csv('path\u002Fto\u002Fdata.csv')\n```\n\nFor R-native files, do not try to parse Seurat `.rds` directly in Python. Convert first:\n\n```bash\n# See references\u002Fr_interop.md for installing R and conversion packages.\nRscript convert_rds_to_h5ad.R input.rds output.h5ad\n```\n\n```python\nadata = sc.read_h5ad('output.h5ad')\n```\n\n### Understanding AnnData Structure\n\nThe AnnData object is the core data structure in scanpy:\n\n```python\nadata.X          # Expression matrix (cells × genes)\nadata.obs        # Cell metadata (DataFrame)\nadata.var        # Gene metadata (DataFrame)\nadata.uns        # Unstructured annotations (dict)\nadata.obsm       # Multi-dimensional cell data (PCA, UMAP)\nadata.raw        # Raw data backup\n\n# Access cell and gene names\nadata.obs_names  # Cell barcodes\nadata.var_names  # Gene names\n```\n\n## Standard Analysis Workflow\n\nThe seven steps, with code and the parameters that matter at each, are in\n[references\u002Fanalysis_workflow.md](references\u002Fanalysis_workflow.md):\n\n1. **Quality control** — filter cells and genes; inspect mitochondrial fraction and counts\n   before choosing thresholds rather than copying defaults.\n2. **Normalization and preprocessing** — normalize, log-transform, select highly variable\n   genes, and keep `.raw` for later plotting.\n3. **Dimensionality reduction** — PCA, then the neighbour graph, then UMAP.\n4. **Clustering** — Leiden at a resolution chosen for the question, not the default.\n5. **Marker gene identification** — ranked genes per cluster.\n6. **Cell type annotation** — mapping clusters to types from markers.\n7. **Save results** — writing the annotated `AnnData`.\n\nCommon follow-on tasks — publication plots, trajectory inference, pseudobulk differential\nexpression between conditions, gene set scoring, and batch correction — are in the same\nfile. See also [references\u002Fstandard_workflow.md](references\u002Fstandard_workflow.md) and\n[references\u002Fplotting_guide.md](references\u002Fplotting_guide.md).\n\n## Key Parameters to Adjust\n\n### Quality Control\n- `min_genes`: Minimum genes per cell (typically 200-500)\n- `min_cells`: Minimum cells per gene (typically 3-10)\n- `pct_counts_mt`: Mitochondrial threshold (typically 5-20%)\n\n### Normalization\n- `target_sum`: Target counts per cell (default 1e4)\n\n### Feature Selection\n- `n_top_genes`: Number of HVGs (typically 2000-3000)\n- `min_mean`, `max_mean`, `min_disp`: HVG selection parameters\n\n### Dimensionality Reduction\n- `n_pcs`: Number of principal components (check variance ratio plot)\n- `n_neighbors`: Number of neighbors (typically 10-30)\n\n### Clustering\n- `resolution`: Clustering granularity (0.4-1.2, higher = more clusters)\n\n## Common Pitfalls and Best Practices\n\n1. **Always save raw counts**: `adata.raw = adata` before filtering genes\n2. **Check QC plots carefully**: Adjust thresholds based on dataset quality\n3. **Use Leiden clustering**: `sc.tl.louvain` is deprecated in scanpy 1.12\n4. **Try multiple clustering resolutions**: Find optimal granularity\n5. **Validate cell type annotations**: Use multiple marker genes\n6. **Use `use_raw=True` for gene expression plots**: Shows normalized counts from `.raw`\n7. **Check PCA variance ratio**: Determine optimal number of PCs\n8. **Save intermediate results**: Long workflows can fail partway through\n9. **Pseudobulk for DE**: Do not treat `rank_genes_groups` p-values as rigorous DE between conditions\n10. **Save plots via settings**: Use `sc.settings.autosave` instead of deprecated `save=` on plot functions\n11. **Convert R objects before Scanpy**: Use R packages to convert Seurat or SingleCellExperiment `.rds` files to `.h5ad`, preserving counts, metadata, and gene identifiers\n\n## Bundled Resources\n\n### scripts\u002F (CLI toolkit)\nA composable set of `.h5ad`-in\u002F`.h5ad`-out scripts covering the whole workflow plus a one-command end-to-end pipeline. See the **Script Toolkit** section above for the full table and chaining examples. Each script has `--help`. Files:\n\n- `_common.py` — shared loading\u002Fsaving\u002Ffigure helpers imported by the others (not a CLI)\n- `run_pipeline.py` — full pipeline in one command (flags or `--config` JSON)\n- `inspect_data.py`, `convert.py` — explore and load\u002Fconvert any input format\n- `qc_analysis.py`, `preprocess.py`, `reduce_dimensions.py`, `batch_correct.py`, `cluster.py` — pipeline steps\n- `find_markers.py`, `annotate.py`, `score_genes.py`, `pseudobulk.py` — markers, annotation, scoring, DE prep\n- `subset.py`, `plot.py` — subset by metadata\u002Fgenes; generate any standard plot\n\n**Default to these scripts before writing scanpy code from scratch.**\n\n### references\u002Fstandard_workflow.md\nComplete step-by-step workflow with detailed explanations and code examples for:\n- Data loading and setup\n- Quality control with visualization\n- Normalization and scaling\n- Feature selection\n- Dimensionality reduction (PCA, UMAP, t-SNE)\n- Clustering (Leiden)\n- Doublet detection (scrublet) and pseudobulk aggregation\n- Marker gene identification\n- Cell type annotation\n- Trajectory inference\n- Differential expression\n\nRead this reference when performing a complete analysis from scratch.\n\n### references\u002Fapi_reference.md\nQuick reference guide for scanpy functions organized by module:\n- Reading\u002Fwriting data (`sc.read_*`, `adata.write_*`)\n- Preprocessing (`sc.pp.*`)\n- Tools (`sc.tl.*`)\n- Plotting (`sc.pl.*`)\n- AnnData structure and manipulation\n- Settings and utilities\n\nUse this for quick lookup of function signatures and common parameters.\n\n### references\u002Fplotting_guide.md\nComprehensive visualization guide including:\n- Quality control plots\n- Dimensionality reduction visualizations\n- Clustering visualizations\n- Marker gene plots (heatmaps, dot plots, violin plots)\n- Trajectory and pseudotime plots\n- Publication-quality customization\n- Multi-panel figures\n- Color palettes and styling\n\nConsult this when creating publication-ready figures.\n\n### references\u002Fr_interop.md\nAgent runbook for installing R on macOS, Linux, and Windows, installing CRAN\u002FBioconductor conversion packages, inspecting `.rds`\u002F`.RData` inputs, converting Seurat or SingleCellExperiment objects to `.h5ad`, and validating the result in Scanpy.\n\n### assets\u002Fanalysis_template.py\nComplete analysis template providing a full workflow from data loading through cell type annotation. Copy and customize this template for new analyses:\n\n```bash\ncp assets\u002Fanalysis_template.py my_analysis.py\n# Edit parameters and run\npython my_analysis.py\n```\n\nThe template includes all standard steps with configurable parameters and helpful comments.\n\n### assets\u002F JSON templates\nEdit-and-pass templates so you don't author config\u002Fmappings from scratch:\n- `assets\u002Fpipeline_config.json` — parameter set for `run_pipeline.py --config`\n- `assets\u002Fcelltype_mapping.json` — cluster → cell-type map for `annotate.py --mapping`\n- `assets\u002Fgene_signatures.json` — gene-set signatures for `score_genes.py --gene-sets`\n\n## Additional Resources\n\n- **Official scanpy documentation**: https:\u002F\u002Fscanpy.scverse.org\u002Fen\u002Fstable\u002F\n- **Scanpy tutorials**: https:\u002F\u002Fscanpy.scverse.org\u002Fen\u002Fstable\u002Ftutorials\u002Findex.html\n- **Release notes**: https:\u002F\u002Fscanpy.scverse.org\u002Fen\u002Fstable\u002Frelease-notes\u002Findex.html\n- **scverse ecosystem**: https:\u002F\u002Fscverse.org\u002F (related tools: squidpy, scvi-tools, cellrank)\n- **R interoperability**: https:\u002F\u002Fwww.bioconductor.org\u002Fpackages\u002Frelease\u002Fbioc\u002Fhtml\u002Fzellkonverter.html and https:\u002F\u002Fmojaveazure.github.io\u002Fseurat-disk\u002F\n- **Best practices**: Luecken & Theis (2019) \"Current best practices in single-cell RNA-seq\"\n\n## Tips for Effective Analysis\n\n1. **Start with the template**: Use `assets\u002Fanalysis_template.py` as a starting point\n2. **Run QC script first**: Use `scripts\u002Fqc_analysis.py` for initial filtering\n3. **Consult references as needed**: Load workflow and API references into context\n4. **Iterate on clustering**: Try multiple resolutions and visualization methods\n5. **Validate biologically**: Check marker genes match expected cell types\n6. **Document parameters**: Record QC thresholds and analysis settings\n7. **Save checkpoints**: Write intermediate results at key steps\n",{"name":5,"license":15,"metadata":24,"description":7},{"version":25,"skill-author":26},"1.5","K-Dense Inc.","main","4e084e84eb42fc53e144c89c0f7f48b39c8a4b0f","collections\u002Fscientific-skills\u002Fscanpy",1,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills","https:\u002F\u002Fgithub.com\u002Fsanjeevafk","First make it work. Then make it right. Then make it fast.","2026-11-14 13:36:16",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add sanjeevafk\u002Fagent-skills --skill scanpy",{"tool":41,"command":42},"bunx","bunx skills add sanjeevafk\u002Fagent-skills --skill scanpy",{"tool":44,"command":45},"pnpm","pnpm dlx skills add sanjeevafk\u002Fagent-skills --skill scanpy","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fscanpy\u002FSKILL.md",true,[49,55,61,65,69,75,79,83,87,91,95,99,103,107,111,115,119,123,127,131,135,139,143,147],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"assets\u002Fanalysis_template.py","SCRIPT","脚本",9806,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fscanpy\u002Fassets\u002Fanalysis_template.py",{"path":56,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":60},"assets\u002Fcelltype_mapping.json","ASSET","资产文件",184,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fscanpy\u002Fassets\u002Fcelltype_mapping.json",{"path":62,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":63,"sourceHtmlUrl":64},"assets\u002Fgene_signatures.json",355,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fscanpy\u002Fassets\u002Fgene_signatures.json",{"path":66,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":67,"sourceHtmlUrl":68},"assets\u002Fpipeline_config.json",380,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fscanpy\u002Fassets\u002Fpipeline_config.json",{"path":70,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Fanalysis_workflow.md","REFERENCE","参考文档",6668,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fscanpy\u002Freferences\u002Fanalysis_workflow.md",{"path":76,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":77,"sourceHtmlUrl":78},"references\u002Fapi_reference.md",8441,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fscanpy\u002Freferences\u002Fapi_reference.md",{"path":80,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":81,"sourceHtmlUrl":82},"references\u002Fplotting_guide.md",10094,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fscanpy\u002Freferences\u002Fplotting_guide.md",{"path":84,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":85,"sourceHtmlUrl":86},"references\u002Fr_interop.md",10800,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fscanpy\u002Freferences\u002Fr_interop.md",{"path":88,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":89,"sourceHtmlUrl":90},"references\u002Fstandard_workflow.md",6146,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fscanpy\u002Freferences\u002Fstandard_workflow.md",{"path":92,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":93,"sourceHtmlUrl":94},"scripts\u002F_common.py",4459,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fscanpy\u002Fscripts\u002F_common.py",{"path":96,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":97,"sourceHtmlUrl":98},"scripts\u002Fannotate.py",3604,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fscanpy\u002Fscripts\u002Fannotate.py",{"path":100,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":101,"sourceHtmlUrl":102},"scripts\u002Fbatch_correct.py",2745,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fscanpy\u002Fscripts\u002Fbatch_correct.py",{"path":104,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":105,"sourceHtmlUrl":106},"scripts\u002Fcluster.py",2523,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fscanpy\u002Fscripts\u002Fcluster.py",{"path":108,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":109,"sourceHtmlUrl":110},"scripts\u002Fconvert.py",1514,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fscanpy\u002Fscripts\u002Fconvert.py",{"path":112,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":113,"sourceHtmlUrl":114},"scripts\u002Ffind_markers.py",3445,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fscanpy\u002Fscripts\u002Ffind_markers.py",{"path":116,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":117,"sourceHtmlUrl":118},"scripts\u002Finspect_data.py",2886,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fscanpy\u002Fscripts\u002Finspect_data.py",{"path":120,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":121,"sourceHtmlUrl":122},"scripts\u002Fplot.py",3595,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fscanpy\u002Fscripts\u002Fplot.py",{"path":124,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":125,"sourceHtmlUrl":126},"scripts\u002Fpreprocess.py",3801,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fscanpy\u002Fscripts\u002Fpreprocess.py",{"path":128,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":129,"sourceHtmlUrl":130},"scripts\u002Fpseudobulk.py",2972,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fscanpy\u002Fscripts\u002Fpseudobulk.py",{"path":132,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":133,"sourceHtmlUrl":134},"scripts\u002Fqc_analysis.py",4645,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fscanpy\u002Fscripts\u002Fqc_analysis.py",{"path":136,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":137,"sourceHtmlUrl":138},"scripts\u002Freduce_dimensions.py",2684,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fscanpy\u002Fscripts\u002Freduce_dimensions.py",{"path":140,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":141,"sourceHtmlUrl":142},"scripts\u002Frun_pipeline.py",8112,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fscanpy\u002Fscripts\u002Frun_pipeline.py",{"path":144,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":145,"sourceHtmlUrl":146},"scripts\u002Fscore_genes.py",3743,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fscanpy\u002Fscripts\u002Fscore_genes.py",{"path":148,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":149,"sourceHtmlUrl":150},"scripts\u002Fsubset.py",2533,"https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fcollections\u002Fscientific-skills\u002Fscanpy\u002Fscripts\u002Fsubset.py",[152,160,168,177,185,192],{"skillNo":153,"name":154,"nameZh":6,"description":155,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":156,"licenseFileUrl":6,"sourceHtmlUrl":157,"categories":158,"keywords":159,"publishedAt":19},"01M7EFHX67M3KKXT1BXVPA5ADT","zarr-python","Chunked N-D arrays for cloud storage (Zarr-Python 3). Compressed arrays, parallel I\u002FO, S3\u002FGCS via fsspec, NumPy\u002FDask\u002FXarray compatible, for large-scale scientific computing pipelines.","MIT","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzarr-python\u002FSKILL.md",[],[],{"skillNo":161,"name":162,"nameZh":6,"description":163,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":156,"licenseFileUrl":164,"sourceHtmlUrl":165,"categories":166,"keywords":167,"publishedAt":19},"01M7EFFQGM51TZBGRENXY50ZYM","whiteboard-diagrams","Create accurate, simple, hand-drawn whiteboard diagrams from a user's process, system, architecture, learning workflow, comparison, or causal explanation. Use when the user asks for a scribbly whiteboard visual, educational workflow graphic, hand-drawn explainer, or diagram like the bundled reference; ask one focused clarification question when the subject or relationships are missing, then generate and visually verify the final image.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwhiteboard-diagrams\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwhiteboard-diagrams\u002FSKILL.md",[],[],{"skillNo":169,"name":170,"nameZh":6,"description":171,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":172,"licenseFileUrl":173,"sourceHtmlUrl":174,"categories":175,"keywords":176,"publishedAt":19},"01M7EFF1CSQNTDMHFK4ZGY6NYK","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":178,"name":179,"nameZh":6,"description":180,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":172,"licenseFileUrl":181,"sourceHtmlUrl":182,"categories":183,"keywords":184,"publishedAt":19},"01M7EFE8106X6C28FT8PA74427","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-artifacts-builder\u002FSKILL.md",[],[],{"skillNo":186,"name":187,"nameZh":6,"description":188,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":156,"licenseFileUrl":6,"sourceHtmlUrl":189,"categories":190,"keywords":191,"publishedAt":19},"01M7EFCSNZM9G7ZHS6F127Q71X","verification-loop","A comprehensive verification system for Claude Code sessions.","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fverification-loop\u002FSKILL.md",[],[],{"skillNo":193,"name":194,"nameZh":6,"description":195,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":156,"licenseFileUrl":196,"sourceHtmlUrl":197,"categories":198,"keywords":199,"publishedAt":19},"01M7EFCE7EZMKPRYDDNKBQ9EEH","vercel-deploy","Deploy applications and websites to Vercel. Use when the user requests deployment actions like \"deploy my app\", \"deploy and give me the link\", \"push this live\", or \"create a preview deployment\".","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-deploy\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsanjeevafk\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-deploy\u002FSKILL.md",[],[]]