[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EFM0FBF6M98KER98MY4TD5":3,"skill-same:01M7EFM0FBF6M98KER98MY4TD5":68},{"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":30,"commitSha":31,"skillDirectory":32,"forksCount":14,"repositoryHtmlUrl":33,"repositoryHomepageUrl":33,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":35,"install":36,"resources":49},"01M7EFM0FBF6M98KER98MY4TD5","bio-single-cell-preprocessing",null,"Quality control, ambient-RNA handling, normalization, and feature selection for single-cell RNA-seq using Scanpy (Python) and Seurat (R). Use when filtering low-quality cells with MAD-adaptive thresholds, setting tissue-aware mito cutoffs, removing ambient RNA (SoupX\u002FCellBender\u002FDecontX), choosing a normalization (shifted-log vs scran vs sctransform vs Pearson residuals), selecting highly variable genes, or deciding whether to scale and regress out covariates.","Mr-Nobody-Anonymous\u002FAll-skills","Mr-Nobody-Anonymous","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F184253119?v=4","01M7AEXFJHKTYQW5R0ZCQQTWFV","anonymous","01M7C00M3GQR4QKP9GZA42GFAK",0,"MIT","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-single-cell-preprocessing\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: bio-single-cell-preprocessing\ndescription: Quality control, ambient-RNA handling, normalization, and feature selection for single-cell RNA-seq using Scanpy (Python) and Seurat (R). Use when filtering low-quality cells with MAD-adaptive thresholds, setting tissue-aware mito cutoffs, removing ambient RNA (SoupX\u002FCellBender\u002FDecontX), choosing a normalization (shifted-log vs scran vs sctransform vs Pearson residuals), selecting highly variable genes, or deciding whether to scale and regress out covariates.\ntool_type: mixed\nprimary_tool: Seurat\nsource: \"https:\u002F\u002Fgithub.com\u002FGPTomics\u002FbioSkills\"\nsource_repository: \"GPTomics\u002FbioSkills\"\nsource_path: \"single-cell\u002Fpreprocessing\u002FSKILL.md\"\nlicense: \"MIT\"\nimported_at: \"2026-09-20\"\n---\n\n## Version Compatibility\n\nReference examples tested with: scanpy 1.10+, Seurat 5.0+, scran 1.30+\n\nBefore using code patterns, verify installed versions match. If versions differ:\n- Python: `pip show \u003Cpackage>` then `help(module.function)` to check signatures\n- R: `packageVersion('\u003Cpkg>')` then `?function_name` to verify parameters\n\nIf code throws ImportError, AttributeError, or TypeError, introspect the installed\npackage and adapt the example to match the actual API rather than retrying.\n\n# Single-Cell Preprocessing\n\n**\"Preprocess my scRNA-seq data\"** -> Remove bad barcodes, correct technical biases, and select informative genes before dimensionality reduction.\n- Python: `calculate_qc_metrics()` -> filter -> `normalize_total()`+`log1p()` -> `highly_variable_genes()`\n- R: QC -> `NormalizeData()` or `SCTransform()` -> `FindVariableFeatures()` -> `ScaleData()`\n\n## Governing Principle\n\nEvery preprocessing choice propagates to every downstream result, and the two highest-leverage choices both encode a hidden biological assumption.\n\nNormalization assumes near-constant total mRNA per cell. Shifted-log CP10k, scran deconvolution, and sctransform all divide by a per-cell size factor meant to capture only capture-efficiency and sequencing depth. They silently assume total transcriptome size is roughly constant across cell types, so a cell's total UMI count is a pure technical nuisance. This is false for plasma\u002Fantibody-secreting cells, secretory epithelia, hepatocytes, large neurons, and S\u002FG2M cells, which carry 2-10x more mRNA. Dividing them to a common total deflates every gene that is not one of their few dominant transcripts (a compositional see-saw), and partially erases real proliferation biology. The honest framing: single-cell measures proportions, not absolute amounts.\n\nQC metrics are biology metrics in disguise. `pct_counts_mt` conflates apoptosis, genuine metabolic activity (cardiomyocytes\u002Fhepatocytes\u002Fmuscle are constitutively 20-40% mito and healthy), dissociation stress, and technical contamination. A flat global mito cutoff deletes entire healthy parenchymal populations and the survivors still cluster cleanly, so the loss is invisible. Use adaptive, tissue-aware thresholds and treat all three QC covariates jointly.\n\nA beautiful UMAP proves nothing. Compositional normalization bias, deleted high-mito parenchyma, dissociation-stress clusters, ambient-induced co-expression, and residual homotypic doublets are all compatible with tidy clusters. The dangerous artifacts are precisely the ones that do not look like artifacts.\n\n## Canonical Pipeline Order\n\n1. Load the RAW (unfiltered) droplet matrix.\n2. Empty-droplet calling (EmptyDrops, FDR\u003C=0.001 on raw) or CellBender (folds calling + denoising).\n3. Ambient-RNA removal (optional; SoupX\u002FDecontX\u002FCellBender) - BEFORE QC, because it needs the soup estimate.\n4. QC filtering: cells (MAD on counts\u002Fgenes\u002Fmito) + genes (`min_cells`).\n5. Doublet detection - per sample, on raw counts (see single-cell\u002Fdoublet-detection).\n6. Normalization - shifted-log default, or scran\u002FPearson.\n7. HVG selection - mind the raw-vs-lognorm input per flavor.\n8. Scaling (optional, increasingly skipped).\n9. PCA on HVG (~50 comps), then neighbors\u002Fclustering.\n\nAmbient correction needs the raw matrix and must precede QC filtering; once subset to cells, the soup estimate is gone. Doublet detection runs on raw counts, so stash counts before normalizing.\n\nSteps 1-5 are per-sample operations performed BEFORE merge or integration: empty-droplet calling, ambient removal (SoupX `load10X` is inherently per-run), adaptive QC, and doublet detection all reason about one capture's droplet population, so QC-then-merge is correct and merge-then-QC leaks batch effects into every threshold and contaminates the soup and doublet-scoring neighborhoods. Merge only after each sample is cleaned.\n\n## Quality Control\n\n**Goal:** Remove empty\u002Fdying\u002Fstressed barcodes using data-driven thresholds that do not delete real cell types.\n\n**Approach:** Annotate mito\u002Fribo\u002Fhemoglobin gene sets, compute joint QC metrics, then flag outliers by median absolute deviation (MAD) on the log scale rather than fixed cutoffs.\n\n```python\nimport scanpy as sc\nimport numpy as np\nfrom scipy.stats import median_abs_deviation\n\nadata.var['mt'] = adata.var_names.str.startswith('MT-')                       # mouse: 'mt-'\nadata.var['ribo'] = adata.var_names.str.startswith(('RPS', 'RPL'))\nadata.var['hb'] = adata.var_names.str.contains(r'^HB[ABDEGMQZ]\\d*(?!\\w)')      # explicit subunits, not legacy ^HB[^(P)]\nsc.pp.calculate_qc_metrics(adata, qc_vars=['mt', 'ribo', 'hb'], percent_top=[20], log1p=True, inplace=True)\n# inplace defaults to False and returns DataFrames; pass inplace=True to write .obs\u002F.var\n\ndef is_outlier(adata, metric, nmads):\n    M = adata.obs[metric]\n    return (M \u003C np.median(M) - nmads * median_abs_deviation(M)) | (np.median(M) + nmads * median_abs_deviation(M) \u003C M)\n\nadata.obs['outlier'] = (is_outlier(adata, 'log1p_total_counts', 5) | is_outlier(adata, 'log1p_n_genes_by_counts', 5)\n                        | is_outlier(adata, 'pct_counts_in_top_20_genes', 5))\nadata.obs['mt_outlier'] = is_outlier(adata, 'pct_counts_mt', 3) | (adata.obs['pct_counts_mt'] > 8)\nadata = adata[~(adata.obs['outlier'] | adata.obs['mt_outlier'])].copy()\nsc.pp.filter_genes(adata, min_cells=3)\n```\n\nWhen samples differ in depth\u002Fquality or were sequenced in separate batches, compute MAD thresholds PER SAMPLE, not globally: a single global MAD over-cuts the shallow batch and under-cuts the deep one. Apply `is_outlier` within each `batch_key` group (the same per-batch logic the HVG step uses).\n\n```python\nflags = ['log1p_total_counts', 'log1p_n_genes_by_counts', 'pct_counts_in_top_20_genes']\nadata.obs['outlier'] = adata.obs.groupby('sample', observed=True).apply(\n    lambda g: (is_outlier(adata[g.index], flags[0], 5) | is_outlier(adata[g.index], flags[1], 5)\n               | is_outlier(adata[g.index], flags[2], 5))).droplevel(0)\n```\n\n```r\n# '^MT-' matches gene SYMBOLS; with Ensembl-ID feature names it matches nothing and the mito filter silently does nothing\nseurat_obj[['percent.mt']] \u003C- PercentageFeatureSet(seurat_obj, pattern = '^MT-')\nVlnPlot(seurat_obj, features = c('nFeature_RNA', 'nCount_RNA', 'percent.mt'), ncol = 3)\nseurat_obj \u003C- subset(seurat_obj, subset = nFeature_RNA > 200 & nFeature_RNA \u003C 5000 & percent.mt \u003C 20)\n```\n\n### QC Thresholds and Rationale\n\n| Metric | Reference value | Rationale and caveat |\n|--------|-----------------|----------------------|\n| `min_genes` | 200 | Below this is mostly empty droplets \u002F debris; raise for deep data |\n| `log1p_total_counts` \u002F `log1p_n_genes_by_counts` | 5 MAD | sc-best-practices loosens from scater's 3 MAD to avoid cutting real biology; filter on the log scale (depth is right-skewed) |\n| `pct_counts_in_top_20_genes` | 5 MAD | High value flags low-complexity \u002F dying cells |\n| `pct_counts_mt` | 3 MAD plus hard >8% | Tissue-dependent: 5-20% typical, but cardiomyocytes\u002Fhepatocytes\u002Fmuscle are constitutively high; nuclei are ~0-2% and any mito flags ambient |\n| `min_cells` (genes) | 3 | Remove genes seen in too few cells to be informative |\n\nFixed cutoffs are a fast first pass for well-characterized tissue but silently delete valid populations; MAD-adaptive is the modern default; miQC (a mito-vs-detected-genes mixture model) helps when that relationship varies across samples.\n\n### Mito and Dissociation Confounds\n\nHigh mito is ambiguous: apoptosis co-occurs with low gene counts and apoptotic markers, while warm-dissociation stress co-occurs with immediate-early genes (FOS, JUN, JUNB, EGR1) and heat-shock proteins (HSPA1A\u002FB) at normal gene counts. The IEG\u002FHSP program creates a spurious \"activated\u002Fstressed\" cluster that passes every count\u002Fmito filter, is cell-type-specific in magnitude (so it does not cancel as a uniform batch effect), and overlaps real immune\u002Fstem activation, so naive removal can itself delete biology. Score the dissociation module per cell, then exclude those genes from HVG\u002Fclustering or flag and interpret cautiously; cold-protease digestion and single-nucleus assays reduce the artifact. For nuclei, standard mito thresholds are meaningless (baseline near zero) - lean on counts\u002Fgenes outliers.\n\n## Ambient RNA Removal\n\n**Goal:** Remove cell-free \"soup\" mRNA that inflates off-target markers (hemoglobin everywhere in PBMCs, hepatocyte genes in non-hepatocytes) and fabricates co-expression.\n\n**Approach:** Estimate the soup profile and a per-cell contamination fraction, then subtract; pick ONE tool and validate that a known-specific marker survives.\n\n| Tool | Input | Needs empty droplets? | Strength | Fails \u002F risk |\n|------|-------|-----------------------|----------|--------------|\n| SoupX (R) | Cell Ranger raw+filtered | Yes | Fast, interpretable rho, auto-estimate | `autoEstCont` fails on homogeneous data; single global soup wrong when ambient is heterogeneous |\n| CellBender (Python, GPU) | RAW h5 | Yes (core of model) | Deep generative; removes ambient + barcode noise; also does cell-calling; strong on nuclei | Over-removes real low-abundance genes at high `--fpr`; black-box; slow |\n| DecontX (R, celda) | Filtered cells | No | No raw needed; easy SCE\u002FSeurat integration | Relies on cluster purity |\n\n```r\nlibrary(SoupX)\nsc \u003C- load10X('cellranger_outs\u002F')          # needs BOTH raw and filtered\nsc \u003C- autoEstCont(sc)                       # estimates contamination fraction rho\ncounts_adj \u003C- adjustCounts(sc, roundToInt = TRUE)   # output is non-integer by default; round for NB models\n```\n\nSoupX and CellBender disagree on what \"ambient\" is: SoupX subtracts a per-cell scalar of a single global soup profile; CellBender learns a probabilistic per-droplet background in a generative model. There is no consensus on which is better - CellBender is more powerful and more dangerous. Subtracting a shared soup vector from every cell can manufacture artificial negative correlations and zero out genes cells genuinely lacked, so validate. Matters most for solid tumors, snRNA-seq, and blood. Do not stack tools; double-correction compounds over-removal.\n\n## Normalization\n\n**Goal:** Remove per-cell depth bias and stabilize variance so high-expression genes do not dominate PCA\u002FkNN distances.\n\n**Approach:** Default to shifted-log; reach for scran on shallow data and Pearson residuals on UMI count models; never normalize already-normalized data.\n\n```python\nadata.layers['counts'] = adata.X.copy()                  # stash raw before normalizing (HVG\u002Fdoublets need it)\nsc.pp.normalize_total(adata)                             # target_sum=None scales each cell to the dataset MEDIAN; pass target_sum=1e4 for the historical, arbitrary CP10k\nsc.pp.log1p(adata)                                       # natural-log(1+x); the variance-stabilizing transform (no target_sum argument)\n```\n\n```r\nseurat_obj \u003C- NormalizeData(seurat_obj, normalization.method = 'LogNormalize', scale.factor = 10000)\n# or variance-stabilized: seurat_obj \u003C- SCTransform(seurat_obj, verbose = FALSE)\n```\n\n| Method | Model \u002F assumption | Use when | Fails when |\n|--------|--------------------|----------|------------|\n| Shifted-log (CP10k \u002F median) | Size-factor + log1p; constant total mRNA | General default; strong, fast, defensible | Composition-divergent types (plasma, cycling) distort fold-changes |\n| scran deconvolution | Pooled size factors robust to composition | Low-depth, high-dropout, plate-based | R-only; needs pre-clustering (`quickCluster`); factors can go negative |\n| sctransform v1\u002Fv2 | NB regularized regression (Pearson residuals) | Seurat depth removal for HVG\u002Fviz | Slow; off the count scale; v1 overfits theta (use v2) |\n| Analytic Pearson residuals | `r=(x-mu)\u002Fsqrt(mu+mu^2\u002Ftheta)` | UMI HVG+PCA without ad-hoc steps | Experimental; residual variance depends on theta and depth; clip to +\u002F-sqrt(n) |\n\nAhlmann-Eltze and Huber 2023 found plain shifted-log + PCA performs as well as or better than sctransform, Pearson residuals, and GLM-PCA on kNN-overlap recovery, so shifted-log is the defensible default and the sophisticated methods are \"use if preferred,\" not mandated. Because methods genuinely compete here, verify current best practice against the installed tool's docs before committing. Normalize raw counts exactly once and keep the transform consistent across HVG, scaling, and PCA.\n\n## Highly Variable Genes\n\n**Goal:** Restrict PCA\u002Fclustering to genes carrying biological signal.\n\n**Approach:** Select a flavor, then feed it the input type it expects - the single most consequential gotcha is that dispersion flavors want log-normalized data while `seurat_v3` and Pearson want RAW COUNTS.\n\n```python\n# seurat_v3 reads raw counts from a layer and REQUIRES n_top_genes; needs the scikit-misc package\nsc.pp.highly_variable_genes(adata, n_top_genes=2000, flavor='seurat_v3', layer='counts')\n```\n\n| Flavor | Function | Input | n_top_genes required? | Extra dependency |\n|--------|----------|-------|-----------------------|------------------|\n| `seurat` (default) | `sc.pp.highly_variable_genes` | log-normalized | No | - |\n| `cell_ranger` | `sc.pp.highly_variable_genes` | log-normalized | No | - |\n| `seurat_v3` | `sc.pp.highly_variable_genes` | RAW counts | Yes | scikit-misc |\n| `pearson_residuals` | `sc.experimental.pp.highly_variable_genes` | RAW counts | recommended | - |\n\nRunning `seurat_v3` on logged values, or `seurat` on raw counts, runs silently and yields garbage HVGs. The field is shifting toward binomial-deviance and Pearson-residual feature selection on raw counts because dispersion HVGs are sensitive to the upstream normalization choice. Set `batch_key` to compute HVGs per batch and avoid batch-specific technical genes.\n\n## Scaling and Regressing Out\n\n**Goal:** Optionally equalize gene weight in PCA, and remove unwanted covariates - both now discouraged as reflexive defaults.\n\n**Approach:** Prefer PCA on log-normalized HVG without scaling; regress out only a validated, non-confounded covariate.\n\n```python\nsc.pp.scale(adata, max_value=10)        # max_value default is None (no clipping); 10 is an explicit choice to cap z-scores\n# sc.pp.regress_out(adata, ['total_counts', 'pct_counts_mt'])   # scanpy itself warns this overcorrects\n```\n\n\"Always regress out mito and total_counts\" is folklore: those covariates are confounded with real cell identity and state (cycling cells legitimately have more RNA), so regressing them erases biology and can collapse data into a blob. Modern normalization already stabilizes depth; address unwanted variation with integration (Harmony, scVI) rather than linear regression. Scaling inflates lowly-expressed noisy genes; sc-best-practices runs PCA on the normalized layer directly.\n\n## Common Errors\n\n| Symptom | Cause | Fix |\n|---------|-------|-----|\n| HVGs look random; clustering is mush | `seurat_v3` fed log-normalized (or `seurat` fed raw) | Feed each flavor its required input; use `layer='counts'` for `seurat_v3` |\n| An entire healthy cell type disappeared | Flat mito cutoff deleted high-mito parenchyma | Use MAD\u002Ftissue-aware thresholds; inspect what was removed |\n| Values inflated ~2x after re-running normalization | Normalized already-normalized data | Normalize raw once; restore from `layers['counts']` |\n| `ModuleNotFoundError: skmisc` | `seurat_v3` needs scikit-misc | `pip install scikit-misc` |\n| QC metrics missing from `.obs` | `calculate_qc_metrics` `inplace` defaults to False | Pass `inplace=True` |\n| Proliferation \u002F activation signal vanished | Regressed out `total_counts` \u002F cell-cycle confounded with biology | Do not reflexively regress; validate the covariate is not confounded |\n| New \"stressed\u002Ftransitional\" cluster | Warm-dissociation IEG\u002FHSP artifact | Score the dissociation module; exclude those genes from HVG\u002Fclustering |\n| Off-target markers everywhere (Hb, Ig) | Ambient RNA contamination | Run SoupX\u002FCellBender\u002FDecontX on the raw matrix before QC |\n| Spike to ~2x counts deflated other genes | Compositional see-saw from a few dominant genes | Use `exclude_highly_expressed=True` or scran; report relative, not absolute, expression |\n| Almost all cells filtered \u002F tiny survivor count | MAD ~ 0 on a low-variance, tiny, or nuclei sample (>50% share a value), so `is_outlier` flags every non-median cell | Assert `n_obs > 0` and a sane survival fraction; fall back to fixed cutoffs when MAD is ~0 |\n| Mito filter removes nothing (percent.mt all 0) | `'^MT-'` pattern matched against Ensembl-ID feature names | Use gene symbols, or match the mito Ensembl IDs \u002F a mito gene list |\n| Shallow batch over-filtered, deep batch under-filtered | Global MAD thresholds across samples of differing depth | Compute `is_outlier` per `batch_key`\u002Fsample group |\n| Batch effects baked into QC\u002Fsoup\u002Fdoublet calls | Merged samples before QC, ambient, and doublet steps | Run steps 1-5 per sample, then merge |\n\n## Related Skills\n\n- single-cell\u002Fdata-io - load the raw matrix before preprocessing\n- single-cell\u002Fdoublet-detection - per-sample doublet calling around the QC step\n- single-cell\u002Fclustering - PCA, neighbors, and clustering after preprocessing\n- single-cell\u002Fbatch-integration - correct batch effects instead of regressing them out\n- single-cell\u002Fmarkers-annotation - find markers after clustering\n- differential-expression\u002Fdeseq2-basics - pseudobulk DE across samples (avoids single-cell pseudo-replication)\n\n## References\n\n- Heumos L, Schaar AC, Lance C, et al. (2023) Best practices for single-cell analysis across modalities. Nature Reviews Genetics 24:550-572. DOI 10.1038\u002Fs41576-023-00586-w\n- Ahlmann-Eltze C, Huber W (2023) Comparison of transformations for single-cell RNA-seq data. Nature Methods 20:665-672. DOI 10.1038\u002Fs41592-023-01814-1\n- Lun ATL, Bach K, Marioni JC (2016) Pooling across cells to normalize single-cell RNA sequencing data (scran). Genome Biology 17:75. DOI 10.1186\u002Fs13059-016-0947-7\n- Hafemeister C, Satija R (2019) Normalization and variance stabilization of single-cell RNA-seq data using regularized negative binomial regression (sctransform). Genome Biology 20:296. DOI 10.1186\u002Fs13059-019-1874-1\n- Choudhary S, Satija R (2022) Comparison and evaluation of statistical error models for scRNA-seq (sctransform v2). Genome Biology 23:27. DOI 10.1186\u002Fs13059-021-02584-9\n- Lause J, Berens P, Kobak D (2021) Analytic Pearson residuals for normalization of single-cell RNA-seq UMI data. Genome Biology 22:258. DOI 10.1186\u002Fs13059-021-02451-7\n- Vallejos CA, Risso D, Scialdone A, Dudoit S, Marioni JC (2017) Normalizing single-cell RNA sequencing data: challenges and opportunities. Nature Methods 14(6):565-571. DOI 10.1038\u002Fnmeth.4292\n- Osorio D, Cai JJ (2021) Systematic determination of the mitochondrial proportion in human and mouse tissues for scRNA-seq quality control. Bioinformatics 37(7):963-967. DOI 10.1093\u002Fbioinformatics\u002Fbtaa751\n- Hippen AA, Falco MM, Weber LM, et al. (2021) miQC: An adaptive probabilistic framework for quality control of single-cell RNA-seq data. PLoS Computational Biology 17(8):e1009290. DOI 10.1371\u002Fjournal.pcbi.1009290\n- Young MD, Behjati S (2020) SoupX removes ambient RNA contamination from droplet-based single-cell RNA sequencing data. GigaScience 9(12):giaa151. DOI 10.1093\u002Fgigascience\u002Fgiaa151\n- Fleming SJ, Chaffin MD, Arduini A, et al. (2023) Unsupervised removal of systematic background noise (CellBender remove-background). Nature Methods 20:1323-1335. DOI 10.1038\u002Fs41592-023-01943-7\n- van den Brink SC, Sage F, Vertesy A, et al. (2017) Single-cell sequencing reveals dissociation-induced gene expression in tissue subpopulations. Nature Methods 14(10):935-936. DOI 10.1038\u002Fnmeth.4437\n- Squair JW, Gautier M, Kathe C, et al. (2021) Confronting false discoveries in single-cell differential expression. Nature Communications 12:5692. DOI 10.1038\u002Fs41467-021-25960-2\n","## Version Compatibility\n\nReference examples tested with: scanpy 1.10+, Seurat 5.0+, scran 1.30+\n\nBefore using code patterns, verify installed versions match. If versions differ:\n- Python: `pip show \u003Cpackage>` then `help(module.function)` to check signatures\n- R: `packageVersion('\u003Cpkg>')` then `?function_name` to verify parameters\n\nIf code throws ImportError, AttributeError, or TypeError, introspect the installed\npackage and adapt the example to match the actual API rather than retrying.\n\n# Single-Cell Preprocessing\n\n**\"Preprocess my scRNA-seq data\"** -> Remove bad barcodes, correct technical biases, and select informative genes before dimensionality reduction.\n- Python: `calculate_qc_metrics()` -> filter -> `normalize_total()`+`log1p()` -> `highly_variable_genes()`\n- R: QC -> `NormalizeData()` or `SCTransform()` -> `FindVariableFeatures()` -> `ScaleData()`\n\n## Governing Principle\n\nEvery preprocessing choice propagates to every downstream result, and the two highest-leverage choices both encode a hidden biological assumption.\n\nNormalization assumes near-constant total mRNA per cell. Shifted-log CP10k, scran deconvolution, and sctransform all divide by a per-cell size factor meant to capture only capture-efficiency and sequencing depth. They silently assume total transcriptome size is roughly constant across cell types, so a cell's total UMI count is a pure technical nuisance. This is false for plasma\u002Fantibody-secreting cells, secretory epithelia, hepatocytes, large neurons, and S\u002FG2M cells, which carry 2-10x more mRNA. Dividing them to a common total deflates every gene that is not one of their few dominant transcripts (a compositional see-saw), and partially erases real proliferation biology. The honest framing: single-cell measures proportions, not absolute amounts.\n\nQC metrics are biology metrics in disguise. `pct_counts_mt` conflates apoptosis, genuine metabolic activity (cardiomyocytes\u002Fhepatocytes\u002Fmuscle are constitutively 20-40% mito and healthy), dissociation stress, and technical contamination. A flat global mito cutoff deletes entire healthy parenchymal populations and the survivors still cluster cleanly, so the loss is invisible. Use adaptive, tissue-aware thresholds and treat all three QC covariates jointly.\n\nA beautiful UMAP proves nothing. Compositional normalization bias, deleted high-mito parenchyma, dissociation-stress clusters, ambient-induced co-expression, and residual homotypic doublets are all compatible with tidy clusters. The dangerous artifacts are precisely the ones that do not look like artifacts.\n\n## Canonical Pipeline Order\n\n1. Load the RAW (unfiltered) droplet matrix.\n2. Empty-droplet calling (EmptyDrops, FDR\u003C=0.001 on raw) or CellBender (folds calling + denoising).\n3. Ambient-RNA removal (optional; SoupX\u002FDecontX\u002FCellBender) - BEFORE QC, because it needs the soup estimate.\n4. QC filtering: cells (MAD on counts\u002Fgenes\u002Fmito) + genes (`min_cells`).\n5. Doublet detection - per sample, on raw counts (see single-cell\u002Fdoublet-detection).\n6. Normalization - shifted-log default, or scran\u002FPearson.\n7. HVG selection - mind the raw-vs-lognorm input per flavor.\n8. Scaling (optional, increasingly skipped).\n9. PCA on HVG (~50 comps), then neighbors\u002Fclustering.\n\nAmbient correction needs the raw matrix and must precede QC filtering; once subset to cells, the soup estimate is gone. Doublet detection runs on raw counts, so stash counts before normalizing.\n\nSteps 1-5 are per-sample operations performed BEFORE merge or integration: empty-droplet calling, ambient removal (SoupX `load10X` is inherently per-run), adaptive QC, and doublet detection all reason about one capture's droplet population, so QC-then-merge is correct and merge-then-QC leaks batch effects into every threshold and contaminates the soup and doublet-scoring neighborhoods. Merge only after each sample is cleaned.\n\n## Quality Control\n\n**Goal:** Remove empty\u002Fdying\u002Fstressed barcodes using data-driven thresholds that do not delete real cell types.\n\n**Approach:** Annotate mito\u002Fribo\u002Fhemoglobin gene sets, compute joint QC metrics, then flag outliers by median absolute deviation (MAD) on the log scale rather than fixed cutoffs.\n\n```python\nimport scanpy as sc\nimport numpy as np\nfrom scipy.stats import median_abs_deviation\n\nadata.var['mt'] = adata.var_names.str.startswith('MT-')                       # mouse: 'mt-'\nadata.var['ribo'] = adata.var_names.str.startswith(('RPS', 'RPL'))\nadata.var['hb'] = adata.var_names.str.contains(r'^HB[ABDEGMQZ]\\d*(?!\\w)')      # explicit subunits, not legacy ^HB[^(P)]\nsc.pp.calculate_qc_metrics(adata, qc_vars=['mt', 'ribo', 'hb'], percent_top=[20], log1p=True, inplace=True)\n# inplace defaults to False and returns DataFrames; pass inplace=True to write .obs\u002F.var\n\ndef is_outlier(adata, metric, nmads):\n    M = adata.obs[metric]\n    return (M \u003C np.median(M) - nmads * median_abs_deviation(M)) | (np.median(M) + nmads * median_abs_deviation(M) \u003C M)\n\nadata.obs['outlier'] = (is_outlier(adata, 'log1p_total_counts', 5) | is_outlier(adata, 'log1p_n_genes_by_counts', 5)\n                        | is_outlier(adata, 'pct_counts_in_top_20_genes', 5))\nadata.obs['mt_outlier'] = is_outlier(adata, 'pct_counts_mt', 3) | (adata.obs['pct_counts_mt'] > 8)\nadata = adata[~(adata.obs['outlier'] | adata.obs['mt_outlier'])].copy()\nsc.pp.filter_genes(adata, min_cells=3)\n```\n\nWhen samples differ in depth\u002Fquality or were sequenced in separate batches, compute MAD thresholds PER SAMPLE, not globally: a single global MAD over-cuts the shallow batch and under-cuts the deep one. Apply `is_outlier` within each `batch_key` group (the same per-batch logic the HVG step uses).\n\n```python\nflags = ['log1p_total_counts', 'log1p_n_genes_by_counts', 'pct_counts_in_top_20_genes']\nadata.obs['outlier'] = adata.obs.groupby('sample', observed=True).apply(\n    lambda g: (is_outlier(adata[g.index], flags[0], 5) | is_outlier(adata[g.index], flags[1], 5)\n               | is_outlier(adata[g.index], flags[2], 5))).droplevel(0)\n```\n\n```r\n# '^MT-' matches gene SYMBOLS; with Ensembl-ID feature names it matches nothing and the mito filter silently does nothing\nseurat_obj[['percent.mt']] \u003C- PercentageFeatureSet(seurat_obj, pattern = '^MT-')\nVlnPlot(seurat_obj, features = c('nFeature_RNA', 'nCount_RNA', 'percent.mt'), ncol = 3)\nseurat_obj \u003C- subset(seurat_obj, subset = nFeature_RNA > 200 & nFeature_RNA \u003C 5000 & percent.mt \u003C 20)\n```\n\n### QC Thresholds and Rationale\n\n| Metric | Reference value | Rationale and caveat |\n|--------|-----------------|----------------------|\n| `min_genes` | 200 | Below this is mostly empty droplets \u002F debris; raise for deep data |\n| `log1p_total_counts` \u002F `log1p_n_genes_by_counts` | 5 MAD | sc-best-practices loosens from scater's 3 MAD to avoid cutting real biology; filter on the log scale (depth is right-skewed) |\n| `pct_counts_in_top_20_genes` | 5 MAD | High value flags low-complexity \u002F dying cells |\n| `pct_counts_mt` | 3 MAD plus hard >8% | Tissue-dependent: 5-20% typical, but cardiomyocytes\u002Fhepatocytes\u002Fmuscle are constitutively high; nuclei are ~0-2% and any mito flags ambient |\n| `min_cells` (genes) | 3 | Remove genes seen in too few cells to be informative |\n\nFixed cutoffs are a fast first pass for well-characterized tissue but silently delete valid populations; MAD-adaptive is the modern default; miQC (a mito-vs-detected-genes mixture model) helps when that relationship varies across samples.\n\n### Mito and Dissociation Confounds\n\nHigh mito is ambiguous: apoptosis co-occurs with low gene counts and apoptotic markers, while warm-dissociation stress co-occurs with immediate-early genes (FOS, JUN, JUNB, EGR1) and heat-shock proteins (HSPA1A\u002FB) at normal gene counts. The IEG\u002FHSP program creates a spurious \"activated\u002Fstressed\" cluster that passes every count\u002Fmito filter, is cell-type-specific in magnitude (so it does not cancel as a uniform batch effect), and overlaps real immune\u002Fstem activation, so naive removal can itself delete biology. Score the dissociation module per cell, then exclude those genes from HVG\u002Fclustering or flag and interpret cautiously; cold-protease digestion and single-nucleus assays reduce the artifact. For nuclei, standard mito thresholds are meaningless (baseline near zero) - lean on counts\u002Fgenes outliers.\n\n## Ambient RNA Removal\n\n**Goal:** Remove cell-free \"soup\" mRNA that inflates off-target markers (hemoglobin everywhere in PBMCs, hepatocyte genes in non-hepatocytes) and fabricates co-expression.\n\n**Approach:** Estimate the soup profile and a per-cell contamination fraction, then subtract; pick ONE tool and validate that a known-specific marker survives.\n\n| Tool | Input | Needs empty droplets? | Strength | Fails \u002F risk |\n|------|-------|-----------------------|----------|--------------|\n| SoupX (R) | Cell Ranger raw+filtered | Yes | Fast, interpretable rho, auto-estimate | `autoEstCont` fails on homogeneous data; single global soup wrong when ambient is heterogeneous |\n| CellBender (Python, GPU) | RAW h5 | Yes (core of model) | Deep generative; removes ambient + barcode noise; also does cell-calling; strong on nuclei | Over-removes real low-abundance genes at high `--fpr`; black-box; slow |\n| DecontX (R, celda) | Filtered cells | No | No raw needed; easy SCE\u002FSeurat integration | Relies on cluster purity |\n\n```r\nlibrary(SoupX)\nsc \u003C- load10X('cellranger_outs\u002F')          # needs BOTH raw and filtered\nsc \u003C- autoEstCont(sc)                       # estimates contamination fraction rho\ncounts_adj \u003C- adjustCounts(sc, roundToInt = TRUE)   # output is non-integer by default; round for NB models\n```\n\nSoupX and CellBender disagree on what \"ambient\" is: SoupX subtracts a per-cell scalar of a single global soup profile; CellBender learns a probabilistic per-droplet background in a generative model. There is no consensus on which is better - CellBender is more powerful and more dangerous. Subtracting a shared soup vector from every cell can manufacture artificial negative correlations and zero out genes cells genuinely lacked, so validate. Matters most for solid tumors, snRNA-seq, and blood. Do not stack tools; double-correction compounds over-removal.\n\n## Normalization\n\n**Goal:** Remove per-cell depth bias and stabilize variance so high-expression genes do not dominate PCA\u002FkNN distances.\n\n**Approach:** Default to shifted-log; reach for scran on shallow data and Pearson residuals on UMI count models; never normalize already-normalized data.\n\n```python\nadata.layers['counts'] = adata.X.copy()                  # stash raw before normalizing (HVG\u002Fdoublets need it)\nsc.pp.normalize_total(adata)                             # target_sum=None scales each cell to the dataset MEDIAN; pass target_sum=1e4 for the historical, arbitrary CP10k\nsc.pp.log1p(adata)                                       # natural-log(1+x); the variance-stabilizing transform (no target_sum argument)\n```\n\n```r\nseurat_obj \u003C- NormalizeData(seurat_obj, normalization.method = 'LogNormalize', scale.factor = 10000)\n# or variance-stabilized: seurat_obj \u003C- SCTransform(seurat_obj, verbose = FALSE)\n```\n\n| Method | Model \u002F assumption | Use when | Fails when |\n|--------|--------------------|----------|------------|\n| Shifted-log (CP10k \u002F median) | Size-factor + log1p; constant total mRNA | General default; strong, fast, defensible | Composition-divergent types (plasma, cycling) distort fold-changes |\n| scran deconvolution | Pooled size factors robust to composition | Low-depth, high-dropout, plate-based | R-only; needs pre-clustering (`quickCluster`); factors can go negative |\n| sctransform v1\u002Fv2 | NB regularized regression (Pearson residuals) | Seurat depth removal for HVG\u002Fviz | Slow; off the count scale; v1 overfits theta (use v2) |\n| Analytic Pearson residuals | `r=(x-mu)\u002Fsqrt(mu+mu^2\u002Ftheta)` | UMI HVG+PCA without ad-hoc steps | Experimental; residual variance depends on theta and depth; clip to +\u002F-sqrt(n) |\n\nAhlmann-Eltze and Huber 2023 found plain shifted-log + PCA performs as well as or better than sctransform, Pearson residuals, and GLM-PCA on kNN-overlap recovery, so shifted-log is the defensible default and the sophisticated methods are \"use if preferred,\" not mandated. Because methods genuinely compete here, verify current best practice against the installed tool's docs before committing. Normalize raw counts exactly once and keep the transform consistent across HVG, scaling, and PCA.\n\n## Highly Variable Genes\n\n**Goal:** Restrict PCA\u002Fclustering to genes carrying biological signal.\n\n**Approach:** Select a flavor, then feed it the input type it expects - the single most consequential gotcha is that dispersion flavors want log-normalized data while `seurat_v3` and Pearson want RAW COUNTS.\n\n```python\n# seurat_v3 reads raw counts from a layer and REQUIRES n_top_genes; needs the scikit-misc package\nsc.pp.highly_variable_genes(adata, n_top_genes=2000, flavor='seurat_v3', layer='counts')\n```\n\n| Flavor | Function | Input | n_top_genes required? | Extra dependency |\n|--------|----------|-------|-----------------------|------------------|\n| `seurat` (default) | `sc.pp.highly_variable_genes` | log-normalized | No | - |\n| `cell_ranger` | `sc.pp.highly_variable_genes` | log-normalized | No | - |\n| `seurat_v3` | `sc.pp.highly_variable_genes` | RAW counts | Yes | scikit-misc |\n| `pearson_residuals` | `sc.experimental.pp.highly_variable_genes` | RAW counts | recommended | - |\n\nRunning `seurat_v3` on logged values, or `seurat` on raw counts, runs silently and yields garbage HVGs. The field is shifting toward binomial-deviance and Pearson-residual feature selection on raw counts because dispersion HVGs are sensitive to the upstream normalization choice. Set `batch_key` to compute HVGs per batch and avoid batch-specific technical genes.\n\n## Scaling and Regressing Out\n\n**Goal:** Optionally equalize gene weight in PCA, and remove unwanted covariates - both now discouraged as reflexive defaults.\n\n**Approach:** Prefer PCA on log-normalized HVG without scaling; regress out only a validated, non-confounded covariate.\n\n```python\nsc.pp.scale(adata, max_value=10)        # max_value default is None (no clipping); 10 is an explicit choice to cap z-scores\n# sc.pp.regress_out(adata, ['total_counts', 'pct_counts_mt'])   # scanpy itself warns this overcorrects\n```\n\n\"Always regress out mito and total_counts\" is folklore: those covariates are confounded with real cell identity and state (cycling cells legitimately have more RNA), so regressing them erases biology and can collapse data into a blob. Modern normalization already stabilizes depth; address unwanted variation with integration (Harmony, scVI) rather than linear regression. Scaling inflates lowly-expressed noisy genes; sc-best-practices runs PCA on the normalized layer directly.\n\n## Common Errors\n\n| Symptom | Cause | Fix |\n|---------|-------|-----|\n| HVGs look random; clustering is mush | `seurat_v3` fed log-normalized (or `seurat` fed raw) | Feed each flavor its required input; use `layer='counts'` for `seurat_v3` |\n| An entire healthy cell type disappeared | Flat mito cutoff deleted high-mito parenchyma | Use MAD\u002Ftissue-aware thresholds; inspect what was removed |\n| Values inflated ~2x after re-running normalization | Normalized already-normalized data | Normalize raw once; restore from `layers['counts']` |\n| `ModuleNotFoundError: skmisc` | `seurat_v3` needs scikit-misc | `pip install scikit-misc` |\n| QC metrics missing from `.obs` | `calculate_qc_metrics` `inplace` defaults to False | Pass `inplace=True` |\n| Proliferation \u002F activation signal vanished | Regressed out `total_counts` \u002F cell-cycle confounded with biology | Do not reflexively regress; validate the covariate is not confounded |\n| New \"stressed\u002Ftransitional\" cluster | Warm-dissociation IEG\u002FHSP artifact | Score the dissociation module; exclude those genes from HVG\u002Fclustering |\n| Off-target markers everywhere (Hb, Ig) | Ambient RNA contamination | Run SoupX\u002FCellBender\u002FDecontX on the raw matrix before QC |\n| Spike to ~2x counts deflated other genes | Compositional see-saw from a few dominant genes | Use `exclude_highly_expressed=True` or scran; report relative, not absolute, expression |\n| Almost all cells filtered \u002F tiny survivor count | MAD ~ 0 on a low-variance, tiny, or nuclei sample (>50% share a value), so `is_outlier` flags every non-median cell | Assert `n_obs > 0` and a sane survival fraction; fall back to fixed cutoffs when MAD is ~0 |\n| Mito filter removes nothing (percent.mt all 0) | `'^MT-'` pattern matched against Ensembl-ID feature names | Use gene symbols, or match the mito Ensembl IDs \u002F a mito gene list |\n| Shallow batch over-filtered, deep batch under-filtered | Global MAD thresholds across samples of differing depth | Compute `is_outlier` per `batch_key`\u002Fsample group |\n| Batch effects baked into QC\u002Fsoup\u002Fdoublet calls | Merged samples before QC, ambient, and doublet steps | Run steps 1-5 per sample, then merge |\n\n## Related Skills\n\n- single-cell\u002Fdata-io - load the raw matrix before preprocessing\n- single-cell\u002Fdoublet-detection - per-sample doublet calling around the QC step\n- single-cell\u002Fclustering - PCA, neighbors, and clustering after preprocessing\n- single-cell\u002Fbatch-integration - correct batch effects instead of regressing them out\n- single-cell\u002Fmarkers-annotation - find markers after clustering\n- differential-expression\u002Fdeseq2-basics - pseudobulk DE across samples (avoids single-cell pseudo-replication)\n\n## References\n\n- Heumos L, Schaar AC, Lance C, et al. (2023) Best practices for single-cell analysis across modalities. Nature Reviews Genetics 24:550-572. DOI 10.1038\u002Fs41576-023-00586-w\n- Ahlmann-Eltze C, Huber W (2023) Comparison of transformations for single-cell RNA-seq data. Nature Methods 20:665-672. DOI 10.1038\u002Fs41592-023-01814-1\n- Lun ATL, Bach K, Marioni JC (2016) Pooling across cells to normalize single-cell RNA sequencing data (scran). Genome Biology 17:75. DOI 10.1186\u002Fs13059-016-0947-7\n- Hafemeister C, Satija R (2019) Normalization and variance stabilization of single-cell RNA-seq data using regularized negative binomial regression (sctransform). Genome Biology 20:296. DOI 10.1186\u002Fs13059-019-1874-1\n- Choudhary S, Satija R (2022) Comparison and evaluation of statistical error models for scRNA-seq (sctransform v2). Genome Biology 23:27. DOI 10.1186\u002Fs13059-021-02584-9\n- Lause J, Berens P, Kobak D (2021) Analytic Pearson residuals for normalization of single-cell RNA-seq UMI data. Genome Biology 22:258. DOI 10.1186\u002Fs13059-021-02451-7\n- Vallejos CA, Risso D, Scialdone A, Dudoit S, Marioni JC (2017) Normalizing single-cell RNA sequencing data: challenges and opportunities. Nature Methods 14(6):565-571. DOI 10.1038\u002Fnmeth.4292\n- Osorio D, Cai JJ (2021) Systematic determination of the mitochondrial proportion in human and mouse tissues for scRNA-seq quality control. Bioinformatics 37(7):963-967. DOI 10.1093\u002Fbioinformatics\u002Fbtaa751\n- Hippen AA, Falco MM, Weber LM, et al. (2021) miQC: An adaptive probabilistic framework for quality control of single-cell RNA-seq data. PLoS Computational Biology 17(8):e1009290. DOI 10.1371\u002Fjournal.pcbi.1009290\n- Young MD, Behjati S (2020) SoupX removes ambient RNA contamination from droplet-based single-cell RNA sequencing data. GigaScience 9(12):giaa151. DOI 10.1093\u002Fgigascience\u002Fgiaa151\n- Fleming SJ, Chaffin MD, Arduini A, et al. (2023) Unsupervised removal of systematic background noise (CellBender remove-background). Nature Methods 20:1323-1335. DOI 10.1038\u002Fs41592-023-01943-7\n- van den Brink SC, Sage F, Vertesy A, et al. (2017) Single-cell sequencing reveals dissociation-induced gene expression in tissue subpopulations. Nature Methods 14(10):935-936. DOI 10.1038\u002Fnmeth.4437\n- Squair JW, Gautier M, Kathe C, et al. (2021) Confronting false discoveries in single-cell differential expression. Nature Communications 12:5692. DOI 10.1038\u002Fs41467-021-25960-2\n",{"name":5,"source":24,"license":15,"tool_type":25,"description":7,"imported_at":26,"source_path":27,"primary_tool":28,"source_repository":29},"https:\u002F\u002Fgithub.com\u002FGPTomics\u002FbioSkills","mixed","2026-09-20","single-cell\u002Fpreprocessing\u002FSKILL.md","Seurat","GPTomics\u002FbioSkills","main","2d1750717747097b602acf30bd09a7cbd4b4c6ea","awesome_skills\u002Fbiology\u002Fbio-single-cell-preprocessing","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous","2026-11-09 11:45:36",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-single-cell-preprocessing",{"tool":42,"command":43},"bunx","bunx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-single-cell-preprocessing",{"tool":45,"command":46},"pnpm","pnpm dlx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-single-cell-preprocessing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-single-cell-preprocessing\u002FSKILL.md",true,[50,56,62],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"examples\u002Fpreprocess_scanpy.py","SCRIPT","脚本",2261,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-single-cell-preprocessing\u002Fexamples\u002Fpreprocess_scanpy.py",{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"examples\u002Fpreprocess_seurat.R","OTHER","其他",875,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-single-cell-preprocessing\u002Fexamples\u002Fpreprocess_seurat.R",{"path":63,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":66,"sourceHtmlUrl":67},"usage-guide.md","REFERENCE","参考文档",4546,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-single-cell-preprocessing\u002Fusage-guide.md",[69,77,84,91,98,105],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":76},"01M7FFFZPC2025JQQHPHDX154J","dei-assessment","Assess diversity, equity, and inclusion with metrics. TRIGGERS - Use when user needs help with dei-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-assessment\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":76},"01M7FFFWN8H4WA7A6Y398QKB6J","dei-action-plan","Create DEI action plans with goals and initiatives. TRIGGERS - Use when user needs help with dei-action-plan related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-action-plan\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":76},"01M7FFFSHTM0QZRVZ2NRJTJ0PY","culture-fit-assessment","Design culture add assessment processes. TRIGGERS - Use when user needs help with culture-fit-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fculture-fit-assessment\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":76},"01M7FFFMA12RKEQA38KHJSXXPS","cowork-to-code-bridge","Use an already-installed, independently verified cowork-to-code bridge to run narrowly approved actions on the user's own macOS, Linux, or WSL2 machine through a local file queue.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcowork-to-code-bridge\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":76},"01M7FFFH1F6M8YRGW5V487GH1K","counter-offer-response","Draft counter-offer responses for retention. TRIGGERS - Use when user needs help with counter-offer-response related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcounter-offer-response\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":76},"01M7FFFDGEHV8Y7J9N40HZXW52","continuous-feedback-system","Design continuous feedback systems. TRIGGERS - Use when user needs help with continuous-feedback-system related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcontinuous-feedback-system\u002FSKILL.md",[],[]]