Check typed single-cell metadata, labelled count matrices, and observation binding across an exported handoff. Use when comparing exports from tools such as AnnData, Seurat or SingleCellExperiment, or when a downstream step assigns metadata to an observation-indexed matrix.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Audit Single Cell Handoff?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/vxxqv-audit-single-cell-handoff)
---
name: audit-single-cell-handoff
description: Check typed single-cell metadata, labelled count matrices, and observation binding across an exported handoff. Use when comparing exports from tools such as AnnData, Seurat or SingleCellExperiment, or when a downstream step assigns metadata to an observation-indexed matrix.
---
# Audit a single-cell handoff
Identify the exports actually consumed downstream. Use the original typed metadata snapshots, count bundles, and observation sidecars. Check the downstream code or its interface for binding by ID or by position. When binding is unclear, run the independent metadata and count audits and mark binding unresolved.
For the supported layouts and commands, read [Replay a handoff](references/replay.md). Use the existing installed release tools if available. Check their versions and write separate local receipts for each comparison.
1. **Metadata.** Compare typed snapshots. Keep literal IDs, nulls, empty strings, and category declarations. Use a reorder policy only when the handoff permits that change.
2. **Counts.** Compare matrices by their declared feature and observation labels. Preserve all-zero features and observations. Equal dimensions, marginals and nonzero counts can coincide with changed entries.
3. **Binding.** Compare the metadata snapshot used by the consumer with the observation sidecar it will assign to. For an ID join, check a keyed binding. For row-by-row assignment, check a positional binding. Use a declared expected roster for a keyed subset.
Keep the status of each check. Exit `0` means the requested check passed, `1` means the check found a mismatch, and `2` means invalid input or an operational error. Retain the valid receipts when another check fails. A saved receipt describes the evidence recorded in it. When the source exports are available, replay the comparison to verify the current files.
Report the versions, comparison options, each result, and the smallest useful evidence. Keep source files, detailed findings, and tool diagnostics local unless the user authorizes sharing. Aggregate results may still contain small totals or fingerprints. Review those fields before copying a receipt into a public report.
The audit covers the supplied exports and the declared join convention. Scientific validity, cohort eligibility and downstream model performance require separate evidence.