opencode-skills-collection 4.1.15 → 4.1.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (452) hide show
  1. package/README.md +0 -1
  2. package/bundled-skills/.antigravity-install-manifest.json +1 -214
  3. package/bundled-skills/advanced-evaluation/SKILL.md +44 -21
  4. package/bundled-skills/ai-sre-incident-response/SKILL.md +4 -5
  5. package/bundled-skills/antigravity-maintainer-batch-release/SKILL.md +13 -77
  6. package/bundled-skills/api-integration/SKILL.md +22 -6
  7. package/bundled-skills/api-rate-limit-handler/SKILL.md +27 -34
  8. package/bundled-skills/awareness-stage-mapper/SKILL.md +1 -1
  9. package/bundled-skills/brand-perception-psychologist/SKILL.md +1 -1
  10. package/bundled-skills/content-strategy/SKILL.md +1 -1
  11. package/bundled-skills/content-strategy/references/headless-cms.md +3 -5
  12. package/bundled-skills/copywriting-psychologist/SKILL.md +1 -1
  13. package/bundled-skills/customer-psychographic-profiler/SKILL.md +1 -1
  14. package/bundled-skills/data-storytelling/SKILL.md +2 -4
  15. package/bundled-skills/deprecation-and-migration/SKILL.md +1 -3
  16. package/bundled-skills/emotional-arc-designer/SKILL.md +1 -1
  17. package/bundled-skills/glasser/SKILL.md +1 -1
  18. package/bundled-skills/headline-psychologist/SKILL.md +1 -1
  19. package/bundled-skills/identity-mirror/SKILL.md +1 -1
  20. package/bundled-skills/jobs-to-be-done-analyst/SKILL.md +1 -1
  21. package/bundled-skills/liuguang-banlan-ui/SKILL.md +18 -22
  22. package/bundled-skills/liuguang-banlan-ui/assets/starter/launcher.css +2 -2
  23. package/bundled-skills/liuguang-banlan-ui/assets/starter/obsidian/index.html +4 -5
  24. package/bundled-skills/liuguang-banlan-ui/assets/starter/obsidian/theme-config.js +10 -3
  25. package/bundled-skills/liuguang-banlan-ui/assets/starter/obsidian/theme.css +62 -48
  26. package/bundled-skills/liuguang-banlan-ui/assets/starter/opal/index.html +4 -5
  27. package/bundled-skills/liuguang-banlan-ui/assets/starter/opal/theme-config.js +35 -27
  28. package/bundled-skills/liuguang-banlan-ui/assets/starter/opal/theme.css +62 -48
  29. package/bundled-skills/liuguang-banlan-ui/assets/starter/shared/spectral-field.js +148 -135
  30. package/bundled-skills/liuguang-banlan-ui/references/style-contract.md +7 -26
  31. package/bundled-skills/liuguang-banlan-ui/references/verification.md +7 -19
  32. package/bundled-skills/liuguang-banlan-ui/scripts/measure_preview.py +47 -78
  33. package/bundled-skills/liuguang-banlan-ui/scripts/validate_manifest.py +3 -34
  34. package/bundled-skills/loki-mode/examples/todo-app-generated/backend/package-lock.json +12 -16
  35. package/bundled-skills/loki-mode/examples/todo-app-generated/backend/package.json +2 -4
  36. package/bundled-skills/loki-mode/examples/todo-app-generated/frontend/package-lock.json +15 -15
  37. package/bundled-skills/loki-mode/examples/todo-app-generated/frontend/package.json +2 -3
  38. package/bundled-skills/loss-aversion-designer/SKILL.md +1 -1
  39. package/bundled-skills/objection-preemptor/SKILL.md +1 -1
  40. package/bundled-skills/on-call-handoff-patterns/SKILL.md +4 -6
  41. package/bundled-skills/onboarding-cro/SKILL.md +2 -6
  42. package/bundled-skills/onboarding-psychologist/SKILL.md +1 -1
  43. package/bundled-skills/parallel-search-mcp/SKILL.md +0 -12
  44. package/bundled-skills/pitch-psychologist/SKILL.md +1 -1
  45. package/bundled-skills/price-psychology-strategist/SKILL.md +1 -1
  46. package/bundled-skills/python-testing-patterns/resources/implementation-playbook.md +2 -6
  47. package/bundled-skills/riffkit/SKILL.md +13 -22
  48. package/bundled-skills/scarcity-urgency-psychologist/SKILL.md +1 -1
  49. package/bundled-skills/seo-content-refresher/SKILL.md +4 -8
  50. package/bundled-skills/sequence-psychologist/SKILL.md +1 -1
  51. package/bundled-skills/social-proof-architect/SKILL.md +1 -1
  52. package/bundled-skills/subject-line-psychologist/SKILL.md +1 -1
  53. package/bundled-skills/system-prompt-lookup/SKILL.md +1 -1
  54. package/bundled-skills/telegram/assets/boilerplate/nodejs/package-lock.json +12 -16
  55. package/bundled-skills/telegram/assets/boilerplate/nodejs/package.json +2 -4
  56. package/bundled-skills/testing-patterns/SKILL.md +3 -2
  57. package/bundled-skills/trust-calibrator/SKILL.md +1 -1
  58. package/bundled-skills/typescript-expert/scripts/ts_diagnostic.py +19 -40
  59. package/bundled-skills/usage-based-pricing/SKILL.md +1 -3
  60. package/bundled-skills/usage-based-pricing/references/detailed-guide.md +9 -11
  61. package/bundled-skills/ux-persuasion-engineer/SKILL.md +1 -1
  62. package/bundled-skills/visual-emotion-engineer/SKILL.md +1 -1
  63. package/bundled-skills/waf-setup/SKILL.md +1 -1
  64. package/bundled-skills/wcag-audit-patterns/resources/implementation-playbook.md +8 -12
  65. package/bundled-skills/whatsapp-cloud-api/assets/boilerplate/nodejs/package-lock.json +12 -16
  66. package/bundled-skills/whatsapp-cloud-api/assets/boilerplate/nodejs/package.json +2 -4
  67. package/bundled-skills/youtube-summarizer/SKILL.md +3 -3
  68. package/package.json +1 -1
  69. package/skills_index.json +8846 -883
  70. package/bundled-skills/360-feedback-system/SKILL.md +0 -481
  71. package/bundled-skills/aas-compose-stack/SKILL.md +0 -39
  72. package/bundled-skills/aas-discover/SKILL.md +0 -35
  73. package/bundled-skills/aas-review-stack/SKILL.md +0 -37
  74. package/bundled-skills/access-matrix/SKILL.md +0 -338
  75. package/bundled-skills/accounting-audit-system-builder/SKILL.md +0 -302
  76. package/bundled-skills/accounting-audit-system-builder/references/catalog.md +0 -114
  77. package/bundled-skills/accounting-software-selection/SKILL.md +0 -427
  78. package/bundled-skills/accounting-software-selection/references/build-artifacts.md +0 -362
  79. package/bundled-skills/accounting-software-selection/references/common-pitfalls.md +0 -44
  80. package/bundled-skills/accounting-software-selection/references/field-reference.md +0 -93
  81. package/bundled-skills/accounting-software-selection/references/select-options.md +0 -202
  82. package/bundled-skills/admin-access-register/SKILL.md +0 -381
  83. package/bundled-skills/advanced-analytics-dashboard/SKILL.md +0 -318
  84. package/bundled-skills/agent-reels/SKILL.md +0 -107
  85. package/bundled-skills/ai-agent-evaluation-benchmarking/SKILL.md +0 -124
  86. package/bundled-skills/ai-agent-tool-routing/SKILL.md +0 -136
  87. package/bundled-skills/ai-code-generation-guardrails/SKILL.md +0 -142
  88. package/bundled-skills/ai-headshot-studio/SKILL.md +0 -267
  89. package/bundled-skills/ai-image-generation-studio/SKILL.md +0 -259
  90. package/bundled-skills/ai-logo-maker/SKILL.md +0 -259
  91. package/bundled-skills/ai-multilingual-dubbing/SKILL.md +0 -259
  92. package/bundled-skills/ai-photo-restyler/SKILL.md +0 -259
  93. package/bundled-skills/ai-podcast-voiceover/SKILL.md +0 -259
  94. package/bundled-skills/ai-prompt-regression-testing/SKILL.md +0 -130
  95. package/bundled-skills/alumni-re-hire-tracker/SKILL.md +0 -314
  96. package/bundled-skills/announcement-board/SKILL.md +0 -336
  97. package/bundled-skills/api-contract-testing/SKILL.md +0 -116
  98. package/bundled-skills/arcmira-find-quotes/SKILL.md +0 -89
  99. package/bundled-skills/arcmira-find-quotes/references/LICENSE.md +0 -202
  100. package/bundled-skills/ask-human-expert/SKILL.md +0 -141
  101. package/bundled-skills/assay/SKILL.md +0 -162
  102. package/bundled-skills/asset-it-management/SKILL.md +0 -407
  103. package/bundled-skills/attendance/SKILL.md +0 -331
  104. package/bundled-skills/audit-log/SKILL.md +0 -314
  105. package/bundled-skills/audit-preparation/SKILL.md +0 -416
  106. package/bundled-skills/axonx/SKILL.md +0 -374
  107. package/bundled-skills/axonx/references/LICENSE.md +0 -201
  108. package/bundled-skills/beatra/SKILL.md +0 -260
  109. package/bundled-skills/board-governance/SKILL.md +0 -360
  110. package/bundled-skills/brand-growth-system-builder/SKILL.md +0 -360
  111. package/bundled-skills/brand-kit-print-collateral/SKILL.md +0 -498
  112. package/bundled-skills/browser-extension-launch/SKILL.md +0 -102
  113. package/bundled-skills/browser-extension-launch/references/acceptance.md +0 -103
  114. package/bundled-skills/browser-extension-launch/references/complex-workflow.md +0 -46
  115. package/bundled-skills/browser-extension-launch/references/dependencies.md +0 -62
  116. package/bundled-skills/browser-extension-launch/references/development.md +0 -42
  117. package/bundled-skills/browser-extension-launch/references/efficient-delivery.md +0 -52
  118. package/bundled-skills/browser-extension-launch/references/host-compatibility.md +0 -58
  119. package/bundled-skills/browser-extension-launch/references/playwright-mcp.md +0 -102
  120. package/bundled-skills/browser-extension-launch/references/product-loop.md +0 -35
  121. package/bundled-skills/browser-extension-launch/references/publishing.md +0 -103
  122. package/bundled-skills/browser-extension-launch/references/required-skills.json +0 -153
  123. package/bundled-skills/browser-extension-launch/references/workflow.md +0 -71
  124. package/bundled-skills/buddy-program-manager/SKILL.md +0 -329
  125. package/bundled-skills/budget-cash-flow/SKILL.md +0 -352
  126. package/bundled-skills/build-ui/SKILL.md +0 -181
  127. package/bundled-skills/busabase/SKILL.md +0 -118
  128. package/bundled-skills/business-email-template/SKILL.md +0 -480
  129. package/bundled-skills/business-email-template/references/common-pitfalls.md +0 -30
  130. package/bundled-skills/business-website-setup/SKILL.md +0 -489
  131. package/bundled-skills/business-website-setup/references/common-pitfalls.md +0 -32
  132. package/bundled-skills/byagent/SKILL.md +0 -125
  133. package/bundled-skills/candidate-talent-pool/SKILL.md +0 -359
  134. package/bundled-skills/capacity-workload-planner/SKILL.md +0 -354
  135. package/bundled-skills/changelog-entry/SKILL.md +0 -141
  136. package/bundled-skills/clients-accounts/SKILL.md +0 -398
  137. package/bundled-skills/cline-pilot/README.md +0 -138
  138. package/bundled-skills/cline-pilot/SKILL.md +0 -301
  139. package/bundled-skills/cline-pilot/assets/global-memory-bank-prompt.en.md +0 -66
  140. package/bundled-skills/cline-pilot/assets/global-memory-bank-prompt.md +0 -56
  141. package/bundled-skills/cline-pilot/references/cold-start.md +0 -58
  142. package/bundled-skills/cline-pilot/references/decision-log.example.md +0 -9
  143. package/bundled-skills/cline-pilot/references/local-config.example.md +0 -26
  144. package/bundled-skills/cline-pilot/references/project-profiles.example.md +0 -10
  145. package/bundled-skills/cline-pilot/scripts/session_report.py +0 -151
  146. package/bundled-skills/cloudish/SKILL.md +0 -188
  147. package/bundled-skills/cockney/SKILL.md +0 -104
  148. package/bundled-skills/code-of-conduct/SKILL.md +0 -488
  149. package/bundled-skills/code-of-conduct/references/common-pitfalls.md +0 -31
  150. package/bundled-skills/company-email-accounts/SKILL.md +0 -404
  151. package/bundled-skills/competency-matrix/SKILL.md +0 -335
  152. package/bundled-skills/contract-document-renewal/SKILL.md +0 -396
  153. package/bundled-skills/course-upskilling-requests/SKILL.md +0 -354
  154. package/bundled-skills/court/SKILL.md +0 -141
  155. package/bundled-skills/court/references/jurors.json +0 -14
  156. package/bundled-skills/court/scripts/court.py +0 -348
  157. package/bundled-skills/credit-cycle-analysis/SKILL.md +0 -303
  158. package/bundled-skills/credit-cycle-analysis/references/best-practices.md +0 -35
  159. package/bundled-skills/credit-cycle-analysis/references/common-pitfalls.md +0 -5
  160. package/bundled-skills/credit-cycle-analysis/references/examples.md +0 -34
  161. package/bundled-skills/credit-cycle-analysis/references/field-reference.md +0 -47
  162. package/bundled-skills/credit-cycle-analysis/references/how-it-works.md +0 -494
  163. package/bundled-skills/credit-cycle-analysis/references/security-notes.md +0 -16
  164. package/bundled-skills/credit-cycle-analysis/references/select-options.md +0 -32
  165. package/bundled-skills/cross-chain-relayer-audit/SKILL.md +0 -136
  166. package/bundled-skills/csv-manual-export/SKILL.md +0 -499
  167. package/bundled-skills/csv-manual-export/references/common-pitfalls.md +0 -19
  168. package/bundled-skills/culture-retention/SKILL.md +0 -346
  169. package/bundled-skills/darkmoon-pentest/SKILL.md +0 -123
  170. package/bundled-skills/data-export-engine/SKILL.md +0 -308
  171. package/bundled-skills/data-privacy-controls/SKILL.md +0 -309
  172. package/bundled-skills/datacircle/SKILL.md +0 -141
  173. package/bundled-skills/day-book/SKILL.md +0 -499
  174. package/bundled-skills/day-book/references/best-practices.md +0 -32
  175. package/bundled-skills/day-book/references/common-pitfalls.md +0 -58
  176. package/bundled-skills/day-book/references/field-reference.md +0 -45
  177. package/bundled-skills/day-book/references/how-it-works.md +0 -7
  178. package/bundled-skills/day-book/references/related-skills.md +0 -18
  179. package/bundled-skills/day-book/references/relations.md +0 -14
  180. package/bundled-skills/day-book/references/reusable-prompt.md +0 -50
  181. package/bundled-skills/day-book/references/security-safety-notes.md +0 -19
  182. package/bundled-skills/day-book/references/select-options.md +0 -38
  183. package/bundled-skills/deep-research-framework/SKILL.md +0 -81
  184. package/bundled-skills/defi-yield-strategy-allocator/SKILL.md +0 -124
  185. package/bundled-skills/define-my-content-pillars/SKILL.md +0 -127
  186. package/bundled-skills/dei-dashboard/SKILL.md +0 -307
  187. package/bundled-skills/design-theme-guide/SKILL.md +0 -472
  188. package/bundled-skills/disciplinary-pip-tracker/SKILL.md +0 -345
  189. package/bundled-skills/document-management-system/SKILL.md +0 -328
  190. package/bundled-skills/draft-my-comments/SKILL.md +0 -132
  191. package/bundled-skills/dropthehassle-publish/SKILL.md +0 -151
  192. package/bundled-skills/ecommerce-listing-image-set/SKILL.md +0 -259
  193. package/bundled-skills/email-marketing-bible/SKILL.md +0 -413
  194. package/bundled-skills/employee-suggestion-hub/SKILL.md +0 -322
  195. package/bundled-skills/equibles/SKILL.md +0 -185
  196. package/bundled-skills/esop-equity-tracker/SKILL.md +0 -331
  197. package/bundled-skills/etsy-search-listings/SKILL.md +0 -122
  198. package/bundled-skills/etsy-shop-sales-history/SKILL.md +0 -119
  199. package/bundled-skills/events-activities/SKILL.md +0 -355
  200. package/bundled-skills/expense-accounting/SKILL.md +0 -496
  201. package/bundled-skills/expense-accounting/references/common-pitfalls.md +0 -41
  202. package/bundled-skills/expense-accounting/references/related-skills.md +0 -11
  203. package/bundled-skills/expense-accounting/references/reusable-prompt.md +0 -36
  204. package/bundled-skills/expense-management/SKILL.md +0 -351
  205. package/bundled-skills/five-axis-code-review/SKILL.md +0 -78
  206. package/bundled-skills/free-design-resources/SKILL.md +0 -480
  207. package/bundled-skills/free-design-resources/references/common-pitfalls.md +0 -44
  208. package/bundled-skills/free-design-resources/references/related-skills.md +0 -24
  209. package/bundled-skills/free-design-resources/references/reusable-prompt.md +0 -12
  210. package/bundled-skills/fxmacrodata/SKILL.md +0 -224
  211. package/bundled-skills/gamification-engine/SKILL.md +0 -307
  212. package/bundled-skills/gbp-local-seo-intent/SKILL.md +0 -466
  213. package/bundled-skills/gbp-local-seo-intent/references/best-practices.md +0 -41
  214. package/bundled-skills/gbp-local-seo-intent/references/common-pitfalls.md +0 -40
  215. package/bundled-skills/gbp-local-seo-intent/references/related-skills.md +0 -17
  216. package/bundled-skills/gbp-local-seo-intent/references/reusable-prompt.md +0 -11
  217. package/bundled-skills/gbp-local-seo-intent/references/security-safety-notes.md +0 -27
  218. package/bundled-skills/get-seen-in-replies/SKILL.md +0 -134
  219. package/bundled-skills/git-commit-message/SKILL.md +0 -76
  220. package/bundled-skills/health-wellness/SKILL.md +0 -334
  221. package/bundled-skills/idea-to-blueprint/LICENSE +0 -21
  222. package/bundled-skills/idea-to-blueprint/SKILL.md +0 -260
  223. package/bundled-skills/idea-to-blueprint/assets/AGENTS.md.template +0 -38
  224. package/bundled-skills/idea-to-blueprint/assets/CLAUDE.md.template +0 -38
  225. package/bundled-skills/idea-to-blueprint/assets/DECISIONS.md.template +0 -14
  226. package/bundled-skills/idea-to-blueprint/assets/PROGRESS.md.template +0 -47
  227. package/bundled-skills/idea-to-blueprint/assets/session-prompt.md +0 -23
  228. package/bundled-skills/idea-to-blueprint/references/architecture-decisions.md +0 -202
  229. package/bundled-skills/idea-to-blueprint/references/blueprint-template.md +0 -259
  230. package/bundled-skills/idea-to-blueprint/references/code-quality-and-review.md +0 -216
  231. package/bundled-skills/idea-to-blueprint/references/design-minimal.md +0 -96
  232. package/bundled-skills/idea-to-blueprint/references/edge-case-catalog.md +0 -239
  233. package/bundled-skills/idea-to-blueprint/references/intake-questions.md +0 -105
  234. package/bundled-skills/idea-to-blueprint/references/research-protocol.md +0 -196
  235. package/bundled-skills/idea-to-blueprint/references/session-protocol.md +0 -133
  236. package/bundled-skills/idea-to-blueprint/references/stories-ac-tests.md +0 -194
  237. package/bundled-skills/idea-to-blueprint/references/ux-writing-guide.md +0 -128
  238. package/bundled-skills/idea-to-blueprint/scripts/lint_blueprint.py +0 -460
  239. package/bundled-skills/intern-program/SKILL.md +0 -354
  240. package/bundled-skills/internal-communication/SKILL.md +0 -318
  241. package/bundled-skills/inventory-stock-reconciliation/SKILL.md +0 -470
  242. package/bundled-skills/inventory-stock-reconciliation/references/best-practices.md +0 -18
  243. package/bundled-skills/inventory-stock-reconciliation/references/common-pitfalls.md +0 -42
  244. package/bundled-skills/inventory-stock-reconciliation/references/related-skills.md +0 -13
  245. package/bundled-skills/inventory-stock-reconciliation/references/relations.md +0 -8
  246. package/bundled-skills/inventory-stock-reconciliation/references/reusable-prompt.md +0 -31
  247. package/bundled-skills/inventory-stock-reconciliation/references/security-safety-notes.md +0 -17
  248. package/bundled-skills/inventory-stock-reconciliation/references/select-options.md +0 -45
  249. package/bundled-skills/invoices-billing/SKILL.md +0 -385
  250. package/bundled-skills/invokely-statistics/SKILL.md +0 -124
  251. package/bundled-skills/invokely-statistics/references/LICENSE.md +0 -21
  252. package/bundled-skills/ios-screens/SKILL.md +0 -172
  253. package/bundled-skills/issue-grievance-tracker/SKILL.md +0 -400
  254. package/bundled-skills/jet-browser/SKILL.md +0 -155
  255. package/bundled-skills/json-schema-manual/SKILL.md +0 -309
  256. package/bundled-skills/json-schema-manual/references/best-practices.md +0 -9
  257. package/bundled-skills/json-schema-manual/references/common-pitfalls.md +0 -25
  258. package/bundled-skills/json-schema-manual/references/input-modules.md +0 -203
  259. package/bundled-skills/json-schema-manual/references/related-skills.md +0 -8
  260. package/bundled-skills/json-schema-manual/references/reusable-prompt.md +0 -10
  261. package/bundled-skills/json-schema-manual/references/security-safety-notes.md +0 -13
  262. package/bundled-skills/kernel-prompt/SKILL.md +0 -64
  263. package/bundled-skills/knowledge-base/SKILL.md +0 -318
  264. package/bundled-skills/kpi-tracker/SKILL.md +0 -345
  265. package/bundled-skills/learning-career-development/SKILL.md +0 -349
  266. package/bundled-skills/leave-management/SKILL.md +0 -341
  267. package/bundled-skills/legal-compliance-vault/SKILL.md +0 -324
  268. package/bundled-skills/linkdigest-social-link-reader/SKILL.md +0 -232
  269. package/bundled-skills/linktree-link-hub/SKILL.md +0 -453
  270. package/bundled-skills/liuguang-banlan-ui/scripts/serve_preview.py +0 -35
  271. package/bundled-skills/liuguang-banlan-ui/tests/test_measure_preview.py +0 -119
  272. package/bundled-skills/liuguang-banlan-ui/tests/test_serve_preview.py +0 -38
  273. package/bundled-skills/liuguang-banlan-ui/tests/test_validate_manifest.py +0 -73
  274. package/bundled-skills/lognorm/SKILL.md +0 -86
  275. package/bundled-skills/lognorm/references/playbooks.md +0 -76
  276. package/bundled-skills/logo-image-design/SKILL.md +0 -459
  277. package/bundled-skills/looot/SKILL.md +0 -188
  278. package/bundled-skills/mcd-secret-menu-lab/SKILL.md +0 -110
  279. package/bundled-skills/meeting-notes/SKILL.md +0 -80
  280. package/bundled-skills/mentorship-program/SKILL.md +0 -332
  281. package/bundled-skills/mirrord/SKILL.md +0 -90
  282. package/bundled-skills/monthly-closing-statements/SKILL.md +0 -488
  283. package/bundled-skills/monthly-closing-statements/references/related-skills.md +0 -17
  284. package/bundled-skills/monthly-closing-statements/references/reusable-prompt.md +0 -8
  285. package/bundled-skills/music-generation-studio/SKILL.md +0 -259
  286. package/bundled-skills/notification-reminder-hub/SKILL.md +0 -324
  287. package/bundled-skills/notion-manual-import/SKILL.md +0 -376
  288. package/bundled-skills/notion-manual-import/references/best-practices.md +0 -10
  289. package/bundled-skills/notion-manual-import/references/common-pitfalls.md +0 -26
  290. package/bundled-skills/notion-manual-import/references/input-modules.md +0 -203
  291. package/bundled-skills/notion-manual-import/references/related-skills.md +0 -7
  292. package/bundled-skills/notion-manual-import/references/reusable-prompt.md +0 -8
  293. package/bundled-skills/notion-manual-import/references/security-safety-notes.md +0 -15
  294. package/bundled-skills/observability-cloud-planning/SKILL.md +0 -487
  295. package/bundled-skills/observability-cloud-planning/references/common-pitfalls.md +0 -39
  296. package/bundled-skills/observability-cloud-planning/references/related-skills.md +0 -20
  297. package/bundled-skills/observability-cloud-planning/references/reusable-prompt.md +0 -12
  298. package/bundled-skills/observability-cloud-planning/references/security-safety-notes.md +0 -30
  299. package/bundled-skills/offboarding-exit/SKILL.md +0 -343
  300. package/bundled-skills/offer-appointment/SKILL.md +0 -351
  301. package/bundled-skills/okr-system/SKILL.md +0 -355
  302. package/bundled-skills/omentir-linkedin-outreach/SKILL.md +0 -96
  303. package/bundled-skills/onboarding-playbook/SKILL.md +0 -292
  304. package/bundled-skills/organization-design/SKILL.md +0 -324
  305. package/bundled-skills/party-ledger-reconciliation/SKILL.md +0 -411
  306. package/bundled-skills/payment-accounting/SKILL.md +0 -421
  307. package/bundled-skills/payments-received/SKILL.md +0 -315
  308. package/bundled-skills/payroll-finance/SKILL.md +0 -351
  309. package/bundled-skills/people-directory/SKILL.md +0 -459
  310. package/bundled-skills/performance-management/SKILL.md +0 -367
  311. package/bundled-skills/petty-cash-management/SKILL.md +0 -448
  312. package/bundled-skills/placecall/SKILL.md +0 -237
  313. package/bundled-skills/policy-acknowledgement/SKILL.md +0 -314
  314. package/bundled-skills/policy-library/SKILL.md +0 -327
  315. package/bundled-skills/poster-design-studio/SKILL.md +0 -259
  316. package/bundled-skills/pre-boarding/SKILL.md +0 -326
  317. package/bundled-skills/presentation-deck/SKILL.md +0 -491
  318. package/bundled-skills/presentation-deck/references/related-skills.md +0 -19
  319. package/bundled-skills/presentation-deck/references/reusable-prompt.md +0 -11
  320. package/bundled-skills/probation-tracker/SKILL.md +0 -347
  321. package/bundled-skills/product-photo-studio/SKILL.md +0 -259
  322. package/bundled-skills/project-based-performance/SKILL.md +0 -323
  323. package/bundled-skills/projects-work-management/SKILL.md +0 -368
  324. package/bundled-skills/promotion-upgrade-requests/SKILL.md +0 -377
  325. package/bundled-skills/purchase-accounting/SKILL.md +0 -414
  326. package/bundled-skills/qrx/SKILL.md +0 -131
  327. package/bundled-skills/qrx/references/prompt-guide.md +0 -30
  328. package/bundled-skills/qrx/references/rest-api.md +0 -40
  329. package/bundled-skills/receipt-accounting/SKILL.md +0 -424
  330. package/bundled-skills/recognition-rewards/SKILL.md +0 -324
  331. package/bundled-skills/recruitment-pipeline/SKILL.md +0 -399
  332. package/bundled-skills/remote-work-tracker/SKILL.md +0 -306
  333. package/bundled-skills/repo-foundation/SKILL.md +0 -166
  334. package/bundled-skills/repo-foundation/references/LICENSE.md +0 -21
  335. package/bundled-skills/repo-foundation/references/bootstrap.md +0 -63
  336. package/bundled-skills/repo-foundation/references/companion.md +0 -9
  337. package/bundled-skills/repo-foundation/references/continuity.md +0 -50
  338. package/bundled-skills/repo-foundation/references/evolution.md +0 -60
  339. package/bundled-skills/repo-foundation/references/migration-examples.md +0 -53
  340. package/bundled-skills/repo-foundation/references/shared-contracts.md +0 -48
  341. package/bundled-skills/repo-foundation/references/verification.md +0 -50
  342. package/bundled-skills/repo-native-refactor/SKILL.md +0 -225
  343. package/bundled-skills/repo-native-refactor/references/LICENSE.md +0 -21
  344. package/bundled-skills/repo-native-refactor/references/deterministic-tooling.md +0 -101
  345. package/bundled-skills/repo-native-refactor/references/error-reliability.md +0 -117
  346. package/bundled-skills/repo-native-refactor/references/finding-taxonomy.md +0 -181
  347. package/bundled-skills/repo-native-refactor/references/refactor-examples.md +0 -77
  348. package/bundled-skills/repo-native-refactor/references/repository-prose.md +0 -157
  349. package/bundled-skills/repo-native-refactor/references/repository-rehabilitation.md +0 -94
  350. package/bundled-skills/repo-native-refactor/references/semantic-risk.md +0 -187
  351. package/bundled-skills/repo-native-refactor/references/shared-contracts.md +0 -48
  352. package/bundled-skills/repo-native-refactor/references/testing-integrity.md +0 -103
  353. package/bundled-skills/reports-analytics/SKILL.md +0 -320
  354. package/bundled-skills/repurpose-into-a-post/SKILL.md +0 -134
  355. package/bundled-skills/reverse-engineer-anything/SKILL.md +0 -243
  356. package/bundled-skills/reverse-engineer-anything/references/android-applications.md +0 -34
  357. package/bundled-skills/reverse-engineer-anything/references/evidence-workflows.md +0 -40
  358. package/bundled-skills/reverse-engineer-anything/references/javascript-applications.md +0 -70
  359. package/bundled-skills/reverse-engineer-anything/references/native-and-artifacts.md +0 -146
  360. package/bundled-skills/reverse-engineer-anything/references/runtime-observation.md +0 -28
  361. package/bundled-skills/salary-benchmarking/SKILL.md +0 -318
  362. package/bundled-skills/salary-wage-accounting/SKILL.md +0 -412
  363. package/bundled-skills/sales-accounting/SKILL.md +0 -494
  364. package/bundled-skills/sales-accounting/references/common-pitfalls.md +0 -28
  365. package/bundled-skills/sales-accounting/references/related-skills.md +0 -13
  366. package/bundled-skills/sales-accounting/references/reusable-prompt.md +0 -8
  367. package/bundled-skills/same-idea-both-platforms/SKILL.md +0 -111
  368. package/bundled-skills/scarf-single-cell/SKILL.md +0 -326
  369. package/bundled-skills/scarf-single-cell/references/LICENSE.md +0 -29
  370. package/bundled-skills/scarf-single-cell/references/clustering-and-embedding.md +0 -270
  371. package/bundled-skills/scarf-single-cell/references/data-access.md +0 -269
  372. package/bundled-skills/scarf-single-cell/references/features-and-graphs.md +0 -279
  373. package/bundled-skills/scarf-single-cell/references/gene-blacklists.md +0 -182
  374. package/bundled-skills/scarf-single-cell/references/integration-and-comparisons.md +0 -295
  375. package/bundled-skills/scarf-single-cell/references/markers-and-annotation.md +0 -280
  376. package/bundled-skills/scarf-single-cell/references/performance-and-export.md +0 -291
  377. package/bundled-skills/scarf-single-cell/references/pipeline-runs-and-artifacts.md +0 -273
  378. package/bundled-skills/scarf-single-cell/references/plotting.md +0 -260
  379. package/bundled-skills/scarf-single-cell/references/quality-control.md +0 -290
  380. package/bundled-skills/seo-directory-backlinks/SKILL.md +0 -484
  381. package/bundled-skills/seo-directory-backlinks/references/common-pitfalls.md +0 -36
  382. package/bundled-skills/seo-directory-backlinks/references/related-skills.md +0 -15
  383. package/bundled-skills/seo-directory-backlinks/references/reusable-prompt.md +0 -11
  384. package/bundled-skills/session-handoff/SKILL.md +0 -112
  385. package/bundled-skills/shark/SKILL.md +0 -134
  386. package/bundled-skills/shark/references/investors.json +0 -12
  387. package/bundled-skills/shark/scripts/shark.py +0 -302
  388. package/bundled-skills/shipvela-publish/SKILL.md +0 -80
  389. package/bundled-skills/shipvela-publish/references/LICENSE.md +0 -21
  390. package/bundled-skills/since-cutoff/SKILL.md +0 -68
  391. package/bundled-skills/skeleton-first/SKILL.md +0 -163
  392. package/bundled-skills/skill-gap-analysis/SKILL.md +0 -338
  393. package/bundled-skills/smart-contract-formal-verification/SKILL.md +0 -136
  394. package/bundled-skills/smart-contract-upgrade-governance/SKILL.md +0 -130
  395. package/bundled-skills/social-media-setup/SKILL.md +0 -477
  396. package/bundled-skills/social-media-setup/references/common-pitfalls.md +0 -34
  397. package/bundled-skills/social-media-setup/references/related-skills.md +0 -19
  398. package/bundled-skills/social-media-setup/references/reusable-prompt.md +0 -11
  399. package/bundled-skills/social-media-setup/references/security-safety-notes.md +0 -27
  400. package/bundled-skills/sop-company-wiki/SKILL.md +0 -324
  401. package/bundled-skills/soroban-contract-audit/SKILL.md +0 -136
  402. package/bundled-skills/soroban-liquidity-pool/SKILL.md +0 -118
  403. package/bundled-skills/soroban-oracle-data-feed-audit/SKILL.md +0 -118
  404. package/bundled-skills/soroban-storage-ttl-lifecycle/SKILL.md +0 -118
  405. package/bundled-skills/soroban-token-minter/SKILL.md +0 -124
  406. package/bundled-skills/source-document-filing/SKILL.md +0 -368
  407. package/bundled-skills/spreadsheet-manual-build/SKILL.md +0 -493
  408. package/bundled-skills/spreadsheet-manual-build/references/best-practices.md +0 -9
  409. package/bundled-skills/spreadsheet-manual-build/references/common-pitfalls.md +0 -22
  410. package/bundled-skills/spreadsheet-manual-build/references/related-skills.md +0 -8
  411. package/bundled-skills/spreadsheet-manual-build/references/reusable-prompt.md +0 -9
  412. package/bundled-skills/spreadsheet-manual-build/references/security-safety-notes.md +0 -16
  413. package/bundled-skills/stakeholder-investor-reports/SKILL.md +0 -303
  414. package/bundled-skills/stellar-anchor-integration/SKILL.md +0 -136
  415. package/bundled-skills/stellar-asset-clawback-compliance/SKILL.md +0 -118
  416. package/bundled-skills/stellar-escrow-timelock/SKILL.md +0 -118
  417. package/bundled-skills/stellar-multisig-threshold-coordinator/SKILL.md +0 -112
  418. package/bundled-skills/suno-lyrics-to-song/SKILL.md +0 -259
  419. package/bundled-skills/supercov/SKILL.md +0 -119
  420. package/bundled-skills/talking-avatar-video/SKILL.md +0 -260
  421. package/bundled-skills/tastegate/SKILL.md +0 -129
  422. package/bundled-skills/tastegate/references/THIRD_PARTY_NOTICES.md +0 -25
  423. package/bundled-skills/tastegate/references/craft-floor.md +0 -53
  424. package/bundled-skills/tastegate/references/direction.md +0 -59
  425. package/bundled-skills/tastegate/references/impeccable-LICENSE-Apache-2.0.txt +0 -191
  426. package/bundled-skills/tastegate/references/taste-skill-LICENSE-MIT.txt +0 -21
  427. package/bundled-skills/tastegate/scripts/gate.py +0 -401
  428. package/bundled-skills/tax-register/SKILL.md +0 -363
  429. package/bundled-skills/tds-booking-payment/SKILL.md +0 -405
  430. package/bundled-skills/team-calendar/SKILL.md +0 -312
  431. package/bundled-skills/tech-writing-proofread/SKILL.md +0 -78
  432. package/bundled-skills/telegram-channel-ads/SKILL.md +0 -139
  433. package/bundled-skills/template-library/SKILL.md +0 -304
  434. package/bundled-skills/time-tracking/SKILL.md +0 -353
  435. package/bundled-skills/tokenleak/SKILL.md +0 -79
  436. package/bundled-skills/turn-this-into-a-thread/SKILL.md +0 -130
  437. package/bundled-skills/ui-from-screenshot/SKILL.md +0 -147
  438. package/bundled-skills/ui-states/SKILL.md +0 -149
  439. package/bundled-skills/url-to-markdown/SKILL.md +0 -74
  440. package/bundled-skills/uxkin-research/SKILL.md +0 -127
  441. package/bundled-skills/vendor-contractor-management/SKILL.md +0 -327
  442. package/bundled-skills/viral-video-teardown-remake/SKILL.md +0 -260
  443. package/bundled-skills/voice-cloning-studio/SKILL.md +0 -260
  444. package/bundled-skills/voiceover-narration-studio/SKILL.md +0 -259
  445. package/bundled-skills/web3-rate-limiting-circuit-breaker/SKILL.md +0 -130
  446. package/bundled-skills/web3-transaction-relayer-pool/SKILL.md +0 -124
  447. package/bundled-skills/what-could-break/SKILL.md +0 -128
  448. package/bundled-skills/what-could-break/references/LICENSE-pstack.txt +0 -21
  449. package/bundled-skills/why-did-this-post-flop/SKILL.md +0 -130
  450. package/bundled-skills/write-design-md/SKILL.md +0 -158
  451. package/bundled-skills/write-in-my-voice/SKILL.md +0 -140
  452. package/bundled-skills/zk-proof-verification-pipeline/SKILL.md +0 -124
@@ -1,290 +0,0 @@
1
- # Quality control
2
-
3
- Check what the count matrix holds, inspect per-cell QC metrics, build immutable filtered cell
4
- selections, audit removals without author labels, and score doublets. Docs:
5
- <https://scarf.readthedocs.io/en/latest/tutorials/quality_control.html>, <https://scarf.readthedocs.io/en/latest/reference/api/datastore.html>,
6
- <https://scarf.readthedocs.io/en/latest/reference/api/pipeline.html>.
7
-
8
- ## When to use
9
-
10
- - Before the first graph on a new store, or whenever the analysed cell population changes.
11
- - When the store comes from a public atlas, CELLxGENE or a Seurat submission: counts may be
12
- corrected, genes removed, or cells already filtered.
13
- - When a run kept fewer cells than expected, and after a first clustering (doublets, QC clusters).
14
-
15
- ## Key concepts
16
-
17
- - QC columns are written once, at the first writable open: `RNA_nCounts`, `RNA_nFeatures`,
18
- `RNA_percentMito` (`^MT-`, any case) and `RNA_percentRibo` (`^RPS|^RPL|^MRPS|^MRPL`) on feature
19
- `names`. For any other gene set use `run_feature_percentage` (an artifact, not a column).
20
- - Filters never edit `I` (the live cell key): each returns a new immutable `ArtifactRef`
21
- (`kind="cell_selection"`). Omit `cell_selection=` to snapshot `I`; pass a selection to compose.
22
- - `auto_filter_cells` defaults to pooled MAD (`n_mads=3`, scaled MAD = 1.4826 * MAD), chosen by
23
- column-name suffix: `nCounts`/`nFeatures` are filtered on log1p values with two-sided bounds;
24
- `percentMito`/`percentRibo` on raw values with an upper bound only; other names raw and
25
- two-sided. A metric with zero MAD is skipped with a warning. Bounds are exclusive.
26
- - `parameters["resolved_bounds"]` are reported back on the raw scale: `low` and `high` are counts,
27
- genes or percent; never apply `expm1`. Example (10x 5K PBMC docs dataset): `RNA_nCounts` low
28
- 3377.1 and high 18389.9 mean 3,377 to 18,390 counts.
29
- - Every bound assumes raw UMI counts from unfiltered cell calls. Corrected (for example
30
- SCTransform) or pre-filtered matrices change what each bound means: check the matrix first.
31
- - Pooled MAD erases real populations: platelets, erythrocytes and neutrophils fall under lower
32
- bounds (floors near 200 to 650 genes); plasma, cycling and progenitor cells cross upper bounds;
33
- myeloid cells carry more mito, so a pooled mito bound trims them first. Example (10x 5K PBMC
34
- docs dataset): even on cells filtered once before, pooled 3-MAD kept 6 of 15 platelet-like cells.
35
-
36
- ## Recipes
37
-
38
- ### Check the matrix first
39
-
40
- `scripts/inspect_store.py STORE.zarr` (in the maintained copy of this skill in the Scarf
41
- repository; this catalogue copy does not include it) runs these checks with hints.
42
- By hand, read-only; the count read is the first 300 cells only (one small read on a mount):
43
-
44
- ```python
45
- import numpy as np
46
- import pandas as pd
47
- import scarf
48
-
49
- ds = scarf.DataStore("analysis.zarr", zarr_mode="r")
50
- sample = ds.RNA.rawData[:300].compute()
51
- nonzero = sample[sample != 0]
52
- print("integer-like", bool(np.all(nonzero == np.round(nonzero))), "negative", bool((sample < 0).any()))
53
- author = [c for c in ds.cells.columns if c.startswith(("nCount_", "nFeature_"))] # adapt names
54
- qc = ds.cells.to_pandas_dataframe(["RNA_nCounts", "RNA_nFeatures"] + author, key="I")
55
- print(qc.describe(percentiles=[0.01, 0.05, 0.5, 0.95, 0.99]).round(1))
56
- print("share within 5% of min:", {c: round(float((qc[c] <= qc[c].min() * 1.05).mean()), 4) for c in qc})
57
- spread = {c: np.subtract(*np.percentile(np.log1p(qc[c]), [95, 5])) for c in ("RNA_nCounts", "RNA_nFeatures")}
58
- print("spread ratio nFeatures/nCounts:", round(spread["RNA_nFeatures"] / spread["RNA_nCounts"], 2))
59
- if author:
60
- print(qc.corr(method="spearman").loc[["RNA_nCounts", "RNA_nFeatures"], author].round(3))
61
- ```
62
-
63
- | Signal | Reading |
64
- | --- | --- |
65
- | Nonzero values not integers, or negatives | Normalized, scaled or log values, not counts. Re-import a raw layer (`data-access.md`). |
66
- | Spread ratio above 1: genes vary more than totals | Depth-equalized counts, for example SCTransform. Raw UMIs are usually below 1. |
67
- | Store `nFeatures` matches author `nFeature_SCT` (Spearman about 1) | SCT-corrected counts. Integer values do not prove raw UMIs. |
68
- | Store totals below author raw `nCount_RNA`, Spearman well below 1 | Corrected counts, removed genes (for example rRNA) or another layer. |
69
- | 0.5% or more of cells within 5% of the minimum; a minimum or maximum just inside a round number (1,000 counts, 200 genes, 20% mito) | A hard cutoff before import: cells were already filtered. |
70
- | Fewer active than total cells | An earlier filter edited `I`; active ranges are truncated. |
71
-
72
- Example (10x 5K PBMC docs dataset): integer `uint32` counts and a spread ratio of 0.78 (raw UMIs),
73
- but `I` keeps 3,948 of 5,025 cells, and active cells sit just inside 1,000 to 15,000 counts, 500 to
74
- 4,000 genes and 15% mito: an earlier filter edited `I`.
75
-
76
- With corrected or pre-filtered counts, QC bounds lose their meaning: depth bounds on SCT totals
77
- measure the correction, and refiltering filtered cells mostly trims real populations. Skip
78
- `nCounts` bounds; use flag-only QC (a status column, nothing removed) or a gentle, audited filter
79
- (per-sample 5-MAD on `RNA_nFeatures` and `RNA_percentMito`). The report states what the matrix
80
- holds, any visible prior bounds, and why QC was gentle. Count models need raw UMIs.
81
-
82
- ### Distributions, default filter and candidate policies
83
-
84
- Distributions are metadata-only; group them by sample or capture, never by held-out labels. Then
85
- build several policies, including gentle ones that keep high-RNA and low-complexity populations.
86
-
87
- ```python
88
- from scarf.plotting import CellField
89
-
90
- ds = scarf.DataStore("analysis.zarr", min_features_per_cell=-1) # writable reopen
91
- qc_cols = [c for c in ("RNA_nCounts", "RNA_nFeatures", "RNA_percentMito", "RNA_percentRibo")
92
- if c in ds.cells.columns]
93
- cells = ds.snapshot_cell_selection("I") # ArtifactRef(kind="cell_selection")
94
- ds.plots.distribution(keys=qc_cols, cell_selection=cells, kind="violin", max_points=2000)
95
- ds.plots.distribution(keys=["RNA_nCounts", "RNA_nFeatures"], grouping=CellField("sample_id"),
96
- cell_selection=cells, max_points=0) # "sample_id" is your column name
97
-
98
- def mask(ref):
99
- return np.asarray(ds.load_artifact(ref)["values"][:], dtype=bool)
100
-
101
- auto = ds.auto_filter_cells(cell_selection=cells) # pooled MAD over the default columns
102
- params = ds.inspect_artifact(auto).parameters
103
- print(pd.DataFrame(params["resolved_bounds"]["all"]).T[["low", "high", "skip_reason"]]) # raw scale
104
- mito = ds.auto_filter_cells(["RNA_percentMito"], cell_selection=cells) # upper MAD bound only
105
- floors = ds.filter_cells(["RNA_nFeatures", "RNA_nCounts"], lows=[200, 500], highs=[None, None],
106
- cell_selection=mito) # composes with the mito selection
107
- loose = ds.auto_filter_cells(cell_selection=cells, n_mads=5)
108
- manual = ds.filter_cells(["RNA_nFeatures", "RNA_percentMito"], lows=[200, None], highs=[None, 20],
109
- cell_selection=cells)
110
- candidates = {"mad3": auto, "mad5": loose, "mito+floors": floors, "manual": manual}
111
- print({name: int(mask(ref).sum()) for name, ref in candidates.items()})
112
- ```
113
-
114
- ### Audit what was removed, without labels
115
-
116
- Do not read author labels. Run an unfiltered scaffold clustering, name its clusters by markers,
117
- and report each candidate's retention per scaffold cluster and per marker-positive group. Costs
118
- one pipeline run plus one small count pass (the panel export).
119
-
120
- ```python
121
- scaffold = ds.pipeline.run(label="qc_scaffold", filtering=False, cell_cycle=False, paris=False)
122
- in_run = mask(scaffold["analysis_cell_selection"])
123
- clusters = np.asarray(scaffold.cells.fetch("clusters"))
124
- kept = pd.DataFrame({name: mask(ref)[in_run] for name, ref in candidates.items()})
125
- top = ds.get_markers(marker=scaffold["markers"]).groupby("group_id", sort=False).head(5)
126
- markers = top.groupby("group_id")["feature_name"].agg(", ".join)
127
- by_cluster = kept.groupby(clusters).mean().round(2).assign(n=kept.groupby(clusters).size())
128
- by_cluster["markers"] = markers.reindex(by_cluster.index.astype(str)).to_numpy()
129
- print(by_cluster.to_string())
130
-
131
- panel = ["PPBP", "PF4", "JCHAIN", "MZB1", "HBB", "CSF3R", "FCGR3B", "MKI67", "TOP2A", "CD34",
132
- "CD3E", "MS4A1", "LYZ", "CD14", "MALAT1"] # human blood; adapt genes and rules to tissue
133
- names = set(ds.RNA.feats.fetch_all("names")) # mouse symbols differ (Ppbp, Hbb-bs); map Ensembl IDs
134
- print("panel genes not in this store:", [g for g in panel if g not in names])
135
- panel = [g for g in panel if g in names] # an absent name raises KeyError in to_anndata
136
- ad = ds.to_anndata(feature_names=panel) # raw counts of active cells, rows named by cell ids
137
- counts = pd.DataFrame(ad.X.toarray(), index=ad.obs_names, columns=panel)
138
- counts = counts.reindex(scaffold.cells.fetch("ids"))
139
- rules = {"platelet PPBP+PF4+": {"PPBP": 1, "PF4": 1}, # minimum raw count of every gene
140
- "plasma MZB1>=3 JCHAIN>=3": {"MZB1": 3, "JCHAIN": 3},
141
- "erythroid HBB>=10": {"HBB": 10},
142
- "neutrophil CSF3R+FCGR3B+": {"CSF3R": 1, "FCGR3B": 1},
143
- "cycling MKI67+TOP2A+": {"MKI67": 1, "TOP2A": 1},
144
- "progenitor CD34+": {"CD34": 1}}
145
- groups = {g: (counts[list(r)] >= pd.Series(r)).all(axis=1)
146
- for g, r in rules.items() if set(r) <= set(panel)} # a group missing a gene is skipped
147
- by_group = pd.DataFrame({g: kept[m.to_numpy()].mean() for g, m in groups.items()}).T
148
- print(by_group.assign(n=[int(m.sum()) for m in groups.values()]).round(2))
149
-
150
- debris = pd.DataFrame({"nFeatures": ds.cells.fetch_all("RNA_nFeatures")[in_run],
151
- "percentMito": ds.cells.fetch_all("RNA_percentMito")[in_run],
152
- "marker_positive": pd.DataFrame(groups, index=counts.index)
153
- .any(axis=1).to_numpy()})
154
- if "MALAT1" in panel:
155
- debris["MALAT1"] = counts["MALAT1"].to_numpy() > 0
156
- for name in candidates: # rows: False = removed, True = kept
157
- print(name, debris.groupby(kept[name].to_numpy()).agg(["median", "mean"]).round(2), sep="\n")
158
- ```
159
-
160
- - A scaffold cluster or marker group losing more than about a third of its cells is biology being
161
- removed: pick a gentler policy or exempt that population explicitly.
162
- - Debris shows low `nFeatures`, no `MALAT1` (a nuclear lncRNA), high mito and no lineage marker.
163
- Platelets and erythrocytes also lack `MALAT1` (no nucleus) but carry `PPBP`/`PF4` or `HBB`.
164
- - Marker gates are starting points on raw counts. Ambient RNA (`JCHAIN`, `HBB`, `PPBP`) is
165
- detected at low levels in many cells, hence two markers or a higher count per gate.
166
-
167
- Optional post-hoc audit, only after your own labels are frozen or when labels are not held out:
168
-
169
- ```python
170
- labels = ds.cells.fetch_all("author_cell_type")[in_run] # post hoc only; your column name
171
- print(kept.groupby(labels).mean().round(2))
172
- ```
173
-
174
- ### Per-sample (capture-aware) MAD
175
-
176
- Bounds are estimated within each sample of a real sample or capture column. Groups below
177
- `min_cells_per_sample` are kept unfiltered with a warning. Missing labels among active cells raise.
178
- For hashtag data pass `sample_artifact=NamedCellArtifact("hto", hto_ref)` (`kind="hto_identity"`).
179
-
180
- ```python
181
- per_sample = ds.auto_filter_cells(cell_selection=cells, sample_column="sample_id", n_mads=3.0,
182
- min_cells_per_sample=20) # "sample_id" is your column name
183
- bounds = ds.inspect_artifact(per_sample).parameters["resolved_bounds"] # {sample: {metric: {...}}}
184
- for side in ("low", "high"): # raw scale; a low near zero means no floor in that sample
185
- print(side, pd.DataFrame({s: {m: b[side] for m, b in d.items()} for s, d in bounds.items()}).T)
186
- ```
187
-
188
- ### Pipeline filtering and feeding a custom selection
189
-
190
- `filtering=True` (default) is pooled MAD on the four default columns, stored as its own artifact
191
- (`run["analysis_cell_selection"]`; compare masks, not refs). Other accepted values:
192
- `False`; `{"method": "mad", "n_mads": 5, "sample_column": "sample_id", "min_cells_per_sample": 20}`;
193
- `{"method": "gaussian", "min_p": 0.01, "max_p": 0.99}`; and
194
- `{"method": "manual", "attrs": [...], "lows": [...], "highs": [...], "keep_bounds": False}`.
195
- Unknown keys raise early. To run on a granular selection, insert it as a boolean column and
196
- disable pipeline filtering:
197
-
198
- ```python
199
- run_manual = ds.pipeline.run(label="qc_manual", filtering={
200
- "method": "manual", "attrs": ["RNA_nFeatures", "RNA_percentMito"], "lows": [200, None],
201
- "highs": [None, 20]}, snapshot_columns=("RNA_nCounts", "RNA_percentMito"))
202
- ds.cells.insert("qc_pass", mask(floors), overwrite=True)
203
- run_custom = ds.pipeline.run(label="qc_custom", cell_key="qc_pass", filtering=False)
204
- assert np.array_equal(mask(run_custom["analysis_cell_selection"]), mask(floors))
205
- ```
206
-
207
- ### Custom feature-percentage metric
208
-
209
- ```python
210
- from scarf.metadata.selection import NamedCellArtifact
211
-
212
- names = ds.RNA.feats.fetch_all("names").astype(str)
213
- hb = ds.set_feature_selection(from_assay="RNA", mask=np.isin(names, ["HBA1", "HBA2", "HBB"]))
214
- pct_hb = ds.run_feature_percentage(cells, hb) # kind="quality_metric"; one count pass; no column
215
- no_rbc = ds.select_cells(pct_hb, high=5.0, cell_selection=floors) # fixed bound, composed
216
- mad_hb = ds.auto_filter_cells(["RNA_percentMito"], cell_selection=cells,
217
- artifact_metrics=[NamedCellArtifact("percentHb", pct_hb)])
218
- # A mostly-zero metric (percentHb in PBMC) has zero MAD and is skipped: use a fixed bound.
219
- ```
220
-
221
- ### Doublet scores
222
-
223
- The pipeline scores doublets by default (it needs a graph and a clustering). High-RNA types such as
224
- plasma cells score high as a whole, so never threshold globally: rank cells within their cluster
225
- and require co-expressed markers of two lineages.
226
-
227
- ```python
228
- scores = pd.Series(np.asarray(scaffold.cells.fetch("doublet_score")))
229
- print(scores.groupby(clusters).median().round(2)) # compare clusters within a lineage
230
- spread = scores.groupby(clusters).transform(lambda s: 1.4826 * (s - s.median()).abs().median())
231
- relative = (scores - scores.groupby(clusters).transform("median")) / (spread + 1e-6)
232
- two_lineage = (((counts.CD3E > 0) & (counts.LYZ >= 5)) | ((counts.MS4A1 > 0) & (counts.LYZ >= 5))
233
- | ((counts.MZB1 >= 3) & (counts.CD14 > 0))).to_numpy()
234
- suspect = (relative.to_numpy() > 3) & two_lineage
235
- singlet = in_run.copy()
236
- singlet[np.flatnonzero(in_run)[suspect]] = False
237
- ds.cells.insert("qc_singlet", singlet, overwrite=True) # then cell_key="qc_singlet"
238
- doublets = ds.run_doublet_detection(scaffold["clusters"], scaffold["connectivity_map"]) # explicit
239
- ```
240
-
241
- ## Parameters that matter
242
-
243
- | Parameter | Default | Change when |
244
- | --- | --- | --- |
245
- | `auto_filter_cells(n_mads=)` | `3.0` | Raise (for example 5) when real populations sit in the tails. |
246
- | `auto_filter_cells(attrs=)` | the four `RNA_*` QC columns | Drop count bounds on corrected counts or when they remove high-RNA types. |
247
- | `sample_column=` / `sample_artifact=` | `None` (pooled) | Several samples, captures or depths. MAD only. |
248
- | `min_cells_per_sample=` | `20` | Small samples; groups below it are kept unfiltered. |
249
- | `method=` (`min_p`, `max_p`) | `"mad"` | `"gaussian"` only to reproduce the old policy; `min_p`/`max_p` with MAD raise. |
250
- | `pipeline.run(filtering=False, cell_cycle=False, paris=False)` | filtering on | Scaffold run for the label-free audit. |
251
- | `run_doublet_detection(random_seed=)` | `4444` | Keep fixed; change only to test score stability. |
252
-
253
- ## Check before moving on
254
-
255
- - The report states what the matrix holds: raw UMIs, corrected counts, removed genes, pre-filtered.
256
- - Retention per sample, per scaffold cluster and per marker-positive group. A population losing
257
- more than about a third of its cells needs a reason, not a default.
258
- - `resolved_bounds` (raw scale) sit in distribution tails, not inside a mode. Per sample, a low near
259
- zero means no floor there. Negative lows (Gaussian on skewed counts) mean no lower filtering.
260
- - Removed cells look like debris, not platelets, plasma, erythroid, neutrophil, cycling or CD34+.
261
- - After clustering, QC metrics by cluster (`ds.plots.distribution(keys=qc_cols,
262
- grouping=run["clusters"])`): a cluster defined only by low counts or high mito is a QC suspect.
263
- - Doublet suspects are high within their own cluster and co-express markers of two lineages.
264
-
265
- ## Pitfalls
266
-
267
- - Accepting pipeline defaults without the audit above.
268
- - Applying `expm1` to `resolved_bounds` (already raw scale), or taking integer values as raw UMIs
269
- (SCT-corrected counts are integers too). On corrected or pre-filtered counts, filter gently.
270
- - Pooling samples with different depths under one bound; use `sample_column`.
271
- - Per-sample MAD on a bimodal sample, for example one dominated by erythrocytes: the wide MAD can
272
- put the lower bound near zero (no floor), or the dominant mode pushes the other population out.
273
- Read per-sample lows and marker-group retention in that sample.
274
- - Upper `nCounts`/`nFeatures` bounds or a global doublet-score threshold as a doublet filter: both
275
- remove plasma and other large cells. Compare scores within a lineage and check markers.
276
- - Calling CD34+ progenitors multiplets. Progenitors show a coherent program (`CD34`, `PRSS57`,
277
- `SPINK2`, `SOX4`, often `GATA2`, `CYTL1`) and no second lineage, even with high counts and
278
- doublet scores. Multiplets co-express full marker sets of two lineages (`CD3E` with `LYZ` or
279
- `CD14`; `MZB1` with `CD14`), exceed both parents in counts and sit between their clusters.
280
- - Expecting `I` to shrink after filtering. Pass the returned ref, or use a column with `cell_key=`.
281
- - `run.cells` exposes `names`, run results and `snapshot_columns`, not filter columns. QC columns
282
- need `snapshot_columns=(...)` or `ds.cells.fetch_all(col)[mask]`.
283
-
284
- ## See also
285
-
286
- - `data-access.md`: raw layers on import; a read-only first look at a store.
287
- - `features-and-graphs.md`: feature selection and graph construction on the filtered selection.
288
- - `pipeline-runs-and-artifacts.md`: run records, lineage and artifact inspection.
289
- - `plotting.md`: distribution, dotplot and embedding options.
290
- - `integration-and-comparisons.md`: per-sample reporting for condition comparisons.