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,182 +0,0 @@
1
- # Gene blacklists for HVG selection
2
-
3
- What `select_hvgs(blacklist=...)` removes, how to check it on your store, the corrected strings to
4
- pass today, and when to add the clonotype or haemoglobin add-ons. Docs:
5
- <https://scarf.readthedocs.io/en/latest/tutorials/feature_selection.html>, <https://scarf.readthedocs.io/en/latest/reference/api/pipeline.html>.
6
-
7
- ## When to use
8
-
9
- - Before the baseline run on any new store, to see what the default blacklist matches there.
10
- - The store uses current HGNC or MGI histone symbols (`H2AC*`, `H3C*`, `H4C*`, `H1-*`), as Cytebase
11
- datasets do. The default `^HIST` then matches nothing; only older `HIST1H*` references match.
12
- - Fibroblast, smooth-muscle, endothelial or tumour data, where `CCN1`/`CCN2` (CYR61/CTGF) or
13
- `CCND1`/`CCND2` carry biology that the default `^CCN` hides.
14
- - Plasma-cell-rich or B-cell-rich samples, mouse data, or haemoglobin genes among the top HVGs.
15
-
16
- ## Key concepts
17
-
18
- - The blacklist is one regular expression, matched case-insensitively with `re.match` against
19
- feature `names` (never `ids`). Each `|` alternative is anchored at the start of the name.
20
- - It only removes HVG candidates. Markers, plots, gene scores and QC still see every gene.
21
- - The string and the matched-gene fingerprint are part of the HVG artifact identity. Changing the
22
- string creates new HVG, normalization, PCA and graph artifacts; the same string reuses them.
23
- - HVG selection also drops ubiquitous genes (`max_cells` = selected cells - 20), so most `MT-` and
24
- cytosolic ribosomal genes never compete. On the 10x 5K PBMC docs dataset, unblocking either
25
- family added no gene to the top 1000.
26
- - `RNA_percentMito` and `RNA_percentRibo` were fixed at first open from the `^MT-` and
27
- `^RPS|^RPL|^MRPS|^MRPL` patterns; `blacklist=` never changes them. The RPS6K kinases and other
28
- off-targets added under 1% of `percentRibo` counts in testing, so the column needs no correction.
29
- - Names that are Ensembl IDs match nothing: no blacklist effect, no error, and no
30
- `percentMito`/`percentRibo` columns (only a warning at first open). Build the string from the
31
- family genes' IDs instead (`^ENSG00000198888$|...`), and percentages with `run_feature_percentage`.
32
- - Default families and verdicts:
33
-
34
- | Family | Default | Problem | Recommended |
35
- | --- | --- | --- | --- |
36
- | mitochondrial | `^MT-` | none; mouse `mt-` matches | keep |
37
- | ribosomal | `^RPS\|^RPL\|^MRPS\|^MRPL` | also RPS6KA/B kinases, `RPS19BP1`, `L` paralogs, -AS1/-DT RNAs | exact protein symbols |
38
- | cellCycleCcn | `^CCN` | hits CCN1-6 (CTGF, CYR61, NOV, WISP), CCND1-3, CCNT/K/H/L; misses MKI67, TOP2A | drop; score the cell cycle instead |
39
- | hla / h2 | `^HLA-` / `^H2-` | whole MHC I and II; removal did not create donor clusters in testing | keep |
40
- | histone | `^HIST` | matches only pre-2020 symbols | old and current replication-dependent names |
41
- | sexLinked | 10 human names | mouse `Eif2s3y`, `Zfy1/2` missed | add mouse genes |
42
-
43
- ## Recipes
44
-
45
- ### Recommended strings
46
-
47
- ```python
48
- import re
49
-
50
- import numpy as np
51
- import pandas as pd
52
- import scarf
53
- from scarf.features.gene_families import GENE_FAMILY_PATTERNS
54
- from scarf.features.variability import DEFAULT_HVG_BLACKLIST
55
-
56
- MITO = r"^MT-"
57
- RIBO = r"^RP[SL]\d+[AXY]?\d*$|^RPLP[0-2]$|^RPSA$|^MRP[SL]\d+[A-C]?$"
58
- HISTONE = (r"^HIST[1-4]H|^H1-[1-6]$|^H1F[1-6]$|^H2AC\d+$|^H2BC\d+$|^H3C\d+$|^H4C\d+$"
59
- r"|^H2AW$|^H3-4$|^H4-16$") # replication-dependent; replacement histones kept
60
- HUMAN_BLACKLIST = "|".join([MITO, RIBO, r"^HLA-", HISTONE,
61
- r"^XIST$|^DDX3Y$|^USP9Y$|^EIF1AY$|^KDM5D$|^SRY$|^ZFY$|^UTY$|^TMSB4Y$|^NLGN4Y$"])
62
- MOUSE_BLACKLIST = "|".join([MITO, RIBO, r"^H2-", HISTONE,
63
- r"^XIST$|^TSIX$|^DDX3Y$|^EIF2S3Y$|^KDM5D$|^UTY$|^ZFY[12]$|^SRY$"])
64
- CLONOTYPE_ADDON = r"^IG[HKL]V|^IG[HKL]J\d|^IGHD\d" # V, J, D segments; not IGHD or IGKC/IGLC
65
- HAEMOGLOBIN_ADDON = r"^HB[ABDEGMQZ]\d*$|^HB[AB]-" # spares HBEGF, HBP1, HBS1L
66
- ```
67
-
68
- Add-ons are appended: `HUMAN_BLACKLIST + "|" + CLONOTYPE_ADDON`. Patterns are case-insensitive,
69
- so the human string also works on title-case names; prefer the species string anyway.
70
-
71
- ### Inspect what the default removes on this store
72
-
73
- ```python
74
- scarf.configure_output(level="WARNING", progress=False)
75
- ds = scarf.DataStore("analysis.zarr", min_features_per_cell=-1) # reopen; see data-access.md
76
- names = ds.RNA.feats.fetch_all("names").astype(str)
77
- print("Ensembl-like names:", int(pd.Series(names).str.match(r"ENS[A-Z]*G\d").sum()), "of", len(names))
78
- for family, pattern in GENE_FAMILY_PATTERNS.items():
79
- hits = ds.RNA.feats.grep(pattern) # upper-cased names
80
- print(f"{family:13s} {len(hits):4d}", hits[:6])
81
- print("current histone symbols the default misses:",
82
- len(ds.RNA.feats.grep(r"^H2AC\d|^H2BC\d|^H3C\d|^H4C\d|^H1-[1-6]$")))
83
- print("default-only matches:",
84
- sorted(set(ds.RNA.feats.grep(DEFAULT_HVG_BLACKLIST)) - set(ds.RNA.feats.grep(HUMAN_BLACKLIST))))
85
-
86
- run = ds.pipeline.open(label="baseline")
87
- cells = run["analysis_cell_selection"]
88
-
89
-
90
- def selected(ref):
91
- return set(names[np.asarray(ds.load_artifact(ref)["values"][:], dtype=bool)])
92
-
93
-
94
- hvg_default = run["highly_variable_features"] # same as select_hvgs(cells, top_n=1000)
95
- hvg_open = ds.select_hvgs(cells, top_n=1000, blacklist="", show_plot=False) # no name filter
96
- print("removed by the default:", sorted(selected(hvg_open) - selected(hvg_default)))
97
- ```
98
-
99
- The last line is what the default actually costs. 10x 5K PBMC docs dataset: 17 genes, namely 9
100
- MHC class II, 6 histones, `CCND3` and `CCNL1`.
101
-
102
- ### Apply a string and check the HVGs
103
-
104
- ```python
105
- hvg_fixed = ds.select_hvgs(cells, top_n=1000, blacklist=HUMAN_BLACKLIST, show_plot=False)
106
- print("entered:", sorted(selected(hvg_fixed) - selected(hvg_default)))
107
- print("left:", sorted(selected(hvg_default) - selected(hvg_fixed)))
108
- blocked = re.compile(HUMAN_BLACKLIST, re.IGNORECASE)
109
- assert not any(blocked.match(gene) for gene in selected(hvg_fixed))
110
-
111
- run_fixed = ds.pipeline.run(label="baseline_blacklist_fixed",
112
- params={"hvg": {"blacklist": HUMAN_BLACKLIST}})
113
- print(run_fixed["highly_variable_features"] == hvg_fixed,
114
- ds.inspect_artifact(run_fixed["highly_variable_features"]).parameters["blacklist"]
115
- == HUMAN_BLACKLIST)
116
- ```
117
-
118
- The pipeline returns the very ref of the explicit call when its cells match. Compare the two
119
- runs' partitions with `clustering-and-embedding.md`. 10x 5K PBMC docs dataset: `CCND3` and `CCNL1`
120
- entered, and the Leiden 1.0 partitions agreed (ARI 0.82) about as well as two Leiden seeds of the
121
- baseline (0.85).
122
-
123
- ### Decide on the add-ons with marker evidence
124
-
125
- ```python
126
- top = ds.get_markers(marker=run_fixed["markers"]).groupby("group_id", sort=False).head(10)
127
- clonal = top[top["feature_name"].str.match(CLONOTYPE_ADDON, case=False)]
128
- print("V/J genes among HVGs:", sum(bool(re.match(CLONOTYPE_ADDON, g, re.I)) for g in selected(hvg_fixed)))
129
- print(clonal.groupby("group_id")["feature_name"].agg(", ".join)) # clusters led by V genes
130
- panel = ["JCHAIN", "MZB1", "IGKC", "IGLC2", "IGHA1", "IGHG1", "IGHM", "MKI67",
131
- "HBB", "HBA1", "ALAS2", "CA1", "AHSP", "SLC4A1"]
132
- markers = ds.get_markers(marker=run_fixed["markers"], min_score=-1, min_frac_exp=-1)
133
- frac = markers[markers["feature_name"].isin(panel)].pivot_table(
134
- index="group_id", columns="feature_name", values="frac_exp")
135
- print(frac.round(2).to_string())
136
- ```
137
-
138
- - Clonotype add-on: use it when two or more clusters share plasma or B markers (`JCHAIN`, `MZB1`,
139
- `CD79A`) and differ mainly by `IGKC` versus `IGLC*` or by V genes in their top markers. Rerun
140
- with `HUMAN_BLACKLIST + "|" + CLONOTYPE_ADDON` under a new label and confirm that the plasma
141
- clusters now differ by isotype (`IGHA1`, `IGHG1`, `IGHM`) or state (`MKI67`), not light chain.
142
- Skip it when expanded clones are the question; use VDJ data then.
143
- - Haemoglobin add-on: use it when `HBB`/`HBA1` are among the HVGs and are detected at low
144
- fractions across clusters that lack `ALAS2`, `CA1`, `AHSP` and `SLC4A1` (ambient RNA). Do not
145
- use it when a cluster expresses those erythroid markers; remove contaminating red cells at QC.
146
-
147
- ## Parameters that matter
148
-
149
- | Parameter | Default | Change when |
150
- | --- | --- | --- |
151
- | `select_hvgs(blacklist=)` | `DEFAULT_HVG_BLACKLIST` | Always pass a species string on current-symbol stores. |
152
- | `params={"hvg": {"blacklist": ...}}` | default regex | Same string through `ds.pipeline.run`; new label per string. |
153
- | `blacklist=""` | | Diagnostics only: shows what the name filter removes. |
154
- | `select_hvgs(max_cells=)` | selected cells - 20 | `np.inf` lets ubiquitous genes compete; the blacklist then matters more. |
155
-
156
- ## Check before moving on
157
-
158
- - The store has symbol names; every family you rely on matches the genes you expect.
159
- - `inspect_artifact(hvg).parameters["blacklist"]` equals the string you recorded in the log.
160
- - No HVG matches the string; the entered and left genes are listed in the analysis log.
161
- - With the clonotype add-on, no cluster's top markers are V genes and plasma clusters are not
162
- split by `IGKC` versus `IGLC*`.
163
-
164
- ## Pitfalls
165
-
166
- - Trusting the default on current symbols: replication-dependent histones become HVGs unnoticed.
167
- - Writing `^IGHD` for D segments: it also removes the IgD constant gene. Use `^IGHD\d`.
168
- - `^TR[ABDG]D` also matches `TRADD`; TCR V genes such as `TRDV2`, `TRGV9` and `TRAV1-2` mark
169
- gamma-delta and MAIT cells. T-cell clusters did not follow TRBV usage in testing, so no TCR
170
- add-on is recommended; consider `^TR[AB]V` only when a cluster is led by one TRAV/TRBV pair.
171
- - `^HB` also removes `HBEGF`. Small clusters (under about 50 cells) move with any HVG change;
172
- compare across Leiden seeds before attributing a change to the blacklist.
173
- - Run `groupby(...).head` on default-filtered marker tables; on a full table (`min_score=-1`) it
174
- crashed pandas 3.0 with a segmentation fault in testing.
175
- - A blacklist never fixes QC: high `percentMito` cells or red-cell contamination need filtering.
176
-
177
- ## See also
178
-
179
- - `features-and-graphs.md`: HVG diagnostics and branching the graph.
180
- - `quality-control.md`: `percentMito`, `percentRibo` and `run_feature_percentage`.
181
- - `markers-and-annotation.md`: marker tables and panels used for the add-on decisions.
182
- - `pipeline-runs-and-artifacts.md`: `params`, labels and artifact identity.
@@ -1,295 +0,0 @@
1
- # Study design, integration, and condition comparisons
2
-
3
- Identify donors, samples, batches and conditions, correct a technical batch with Harmony and score
4
- it, then compare composition and expression at the donor level. Docs: <https://scarf.readthedocs.io/en/latest/tutorials/batch_correction.html>, and in the same folder
5
- `pseudobulk_and_differential_expression.html`, `condition_comparisons.html`,
6
- `dataset_merging.html`, `mapping_and_label_transfer.html`, `downsampling.html`.
7
-
8
- ## When to use
9
-
10
- - The store has several donors, samples, batches or conditions (most CELLxGENE atlases), or a
11
- layout separates by donor or batch and you must decide whether to correct it.
12
- - The question compares conditions (abundance of a population, or expression within one), or you
13
- need to combine stores, map a query onto a fixed reference, or work on fewer cells.
14
-
15
- ## Key concepts
16
-
17
- - **Units.** A donor is the biological replicate; a sample is one specimen from one donor; a
18
- library is one capture; a batch is a processing group. Cells are never replicates: the n of a
19
- condition comparison is the number of donors. Sample, library and batch columns may be absent.
20
- - **Nesting.** Donors nested in conditions need between-donor tests. A donor sampled at several
21
- timepoints is repeated measures: pair on the donor. A donor in both arms needs the rules below.
22
- - **Denominators.** A share of all cells moves when any other population moves. A state's share of
23
- its lineage parent (an activated state as a share of CD14 monocytes) does not depend on the
24
- parent's abundance. Excluding contaminants (erythrocytes, platelets) or unresolved cells raises
25
- every remaining share by `1 / (1 - excluded share)`, a factor that differs between samples.
26
- - **Harmony corrects coordinates only.** `run_harmony` returns a `batch_correction` ref that
27
- replaces PCA for ANN, neighbours, graph, UMAP and clustering; counts are untouched. A batch
28
- holding one condition loses that condition's signal; Scarf ran silently with `condition`.
29
- - **Metrics are evidence, not a verdict.** `metric_*` take exact neighbour or graph refs and a live
30
- column and return a float. iLISI (mixing) should rise while cLISI and connectivity hold.
31
- - **What Scarf tests.** `run_statistical_testing` runs donor-level rank tests (a
32
- `statistical_tests` artifact; several keys share one BH pass). No count GLM (DESeq2, edgeR) or
33
- compositional model (scCODA, propeller): export pseudobulk counts ("Export pseudobulk counts" in
34
- `performance-and-export.md`) and model one population at a time with donor-level terms.
35
-
36
- ## Recipes
37
-
38
- ### Audit the study design
39
-
40
- Later recipes reuse these imports and `ds`. All column names are placeholders; `cell_type` stands
41
- for your own annotation column, never for author labels that are held out.
42
-
43
- ```python
44
- import re
45
-
46
- import numpy as np
47
- import pandas as pd
48
- import scarf
49
- from scarf.plotting import CellField
50
-
51
- ds = scarf.DataStore("analysis.zarr", min_features_per_cell=-1) # reopen; see data-access.md
52
- hits = re.compile(r"donor|individual|patient|subject|sample|library|batch|"
53
- r"condition|disease|treatment|time|day|assay|sex", re.I)
54
- print([c for c in ds.cells.columns if hits.search(c)])
55
-
56
- meta = ds.cells.to_pandas_dataframe(["donor_id", "condition", "timepoint", "batch"], key="I")
57
- print(meta.isna().sum()) # resolve missing labels first
58
- print(meta.groupby("donor_id").agg(
59
- cells=("condition", "size"), conditions=("condition", "nunique"),
60
- timepoints=("timepoint", "nunique"), batches=("batch", "nunique"),
61
- ))
62
- print(meta.drop_duplicates(["donor_id", "condition"])["condition"].value_counts()) # donors per arm
63
- units = meta.drop_duplicates(["donor_id", "batch", "condition"])
64
- print(pd.crosstab(units["batch"], units["condition"])) # donors per batch x condition
65
- ```
66
-
67
- `conditions == 1` for every donor means nested; `timepoints > 1` means repeated measures;
68
- `conditions > 1` puts a donor in two arms. A batch row with donors in one condition only is
69
- confounded with it. No sample column: join donor and timepoint strings (every row, none missing)
70
- and `ds.cells.insert("sample_id", values, overwrite=True)`; `insert` writes to the store at once.
71
-
72
- ### Harmony through the pipeline, with a matched baseline
73
-
74
- ```python
75
- design_cols = ("batch", "donor_id", "sample_id", "condition") # Harmony columns first
76
- native = ds.pipeline.run(label="native", snapshot_columns=design_cols)
77
- corrected = ds.pipeline.run(
78
- label="harmony_batch", harmony_batch_columns=["batch"], snapshot_columns=design_cols,
79
- )
80
- assert native["pca"] == corrected["pca"] # same frozen cells and PCA; only the graph differs
81
- print(corrected["harmony"]) # ArtifactRef(kind='batch_correction')
82
- ```
83
-
84
- The run's input snapshot is `names`, filter columns, Harmony columns, then `snapshot_columns`, in
85
- order; another list or order gives a new analysis selection and recomputes everything (24
86
- artifacts created, then 16 reused by the Harmony run; 10x 5K PBMC docs dataset). `run.cells`
87
- exposes only `snapshot_columns`: read a filter or Harmony column with
88
- `ds.cells.fetch_all(col)[run.cells.fetch_all("I")]`. Doublet scores still use plain PCA.
89
-
90
- As a branch of a run, `harmony = ds.run_harmony(run["pca"], ["batch"])` returns a ref to pass to
91
- `build_ann_index` in place of PCA (chain in `features-and-graphs.md`; keep the run's `k`). Score it
92
- below with the run's `neighbors` and `connectivity_map` versus the new pair.
93
-
94
- ### Score native versus corrected
95
-
96
- A shuffled batch column gives the iLISI of perfect mixing for the same graph and `k`. Label
97
- concordance (ARI) needs two clustering refs on the same frozen cell selection.
98
-
99
- ```python
100
- rng = np.random.default_rng(0)
101
- ds.cells.insert("batch_shuffled", rng.permutation(ds.cells.fetch_all("batch")), overwrite=True)
102
-
103
- def scores(neighbors, graph):
104
- return {
105
- "iLISI batch": ds.metric_ilisi("batch", neighbors),
106
- "iLISI ceiling": ds.metric_ilisi("batch_shuffled", neighbors),
107
- "batch mixing": ds.metric_proportional_batch_mixing("batch", neighbors),
108
- "cLISI cell_type": ds.metric_clisi("cell_type", neighbors),
109
- "connectivity cell_type": ds.metric_graph_connectivity("cell_type", graph),
110
- }
111
-
112
- print(pd.DataFrame({
113
- "native": scores(native["neighbors"], native["connectivity_map"]),
114
- "harmony": scores(corrected["neighbors"], corrected["connectivity_map"]),
115
- }).T.round(3))
116
- print(ds.metric_label_concordance(native["clusters"], corrected["clusters"], metric="ari"))
117
- for r in (native, corrected): # a condition-only cluster that vanishes signals overcorrection
118
- print(pd.crosstab(r.cells.fetch("clusters"), r.cells.fetch("condition")))
119
- ```
120
-
121
- ### A donor sampled in two arms
122
-
123
- Example: a donor's first sample is in arm A and a later one in arm B (ventilation status changed
124
- between timepoints). Decide per comparison and write the rule down before testing:
125
-
126
- - **Pool to one value per donor** when all of its samples fall in one group of this comparison
127
- (patients versus healthy donors). Pool donors with several samples in one arm the same way.
128
- - **Drop it from the between-group test** of the arms it spans (A versus B). Its samples share
129
- genotype and history: counting it twice makes the groups dependent and invents a donor.
130
- - **Describe it within the donor only.** Its B minus A change is one pair (n = 1): report the two
131
- values, never a p-value. An exact Wilcoxon needs 6 such pairs to reach 0.03125.
132
- - If dropping leaves 3 versus 3 donors (minimum exact two-sided p 0.1), report n, medians and
133
- effect sizes without a test. Add a sensitivity run that excludes the donor everywhere.
134
- - `sample_by="donor_id"` makes Scarf refuse such a donor ("Each sample must belong to exactly one
135
- group"); `sample_by="sample_id"` silently counts it in both arms.
136
-
137
- ### Composition per donor with exact tests
138
-
139
- Per-unit proportions (a donor's samples pooled), two-sided Mann-Whitney between independent donor
140
- groups, BH across populations, and the n = 1 rows of two-arm donors.
141
-
142
- ```python
143
- from math import comb
144
-
145
- from scipy.stats import PermutationMethod, false_discovery_control, mannwhitneyu
146
-
147
- run = ds.pipeline.open(label="baseline")
148
- in_run = np.asarray(run.cells.fetch_all("I"), dtype=bool)
149
- cells = ds.cells.to_pandas_dataframe(["donor_id", "sample_id", "condition", "cell_type",
150
- "cell_state"])[in_run]
151
- excluded = ["Erythrocyte", "Platelet", "Unresolved"] # your contaminant and unresolved labels
152
- drop = cells["cell_type"].isin(excluded)
153
- print(drop.groupby(cells["sample_id"]).mean().round(3)) # report the removed share per sample
154
- kept = cells[~drop]
155
- arms = kept.groupby("donor_id")["condition"].nunique()
156
- two_arm = arms.index[arms > 1].tolist() # donors sampled in both arms
157
-
158
- per_sample = pd.crosstab(kept["sample_id"], kept["cell_type"], normalize="index")
159
- independent = kept[~kept["donor_id"].isin(two_arm)] # two-arm donors leave the tests
160
- per_donor = pd.crosstab(independent["donor_id"], independent["cell_type"], normalize="index")
161
- arm = independent.groupby("donor_id")["condition"].first()
162
-
163
- def exact_tests(props, arm, g1, g2):
164
- rows = []
165
- for pop in props.columns:
166
- x = props[pop].reindex(arm.index[arm == g1]).dropna() # units without a value drop out
167
- y = props[pop].reindex(arm.index[arm == g2]).dropna()
168
- row = {"population": pop, "n_1": len(x), "n_2": len(y), "median_1": x.median(),
169
- "median_2": y.median(), "auc": np.nan, "p_exact": np.nan}
170
- if min(len(x), len(y)) >= 2: # as in Scarf: fewer than 2 units in a group is not tested
171
- exact = comb(len(x) + len(y), len(x)) <= 100_000 # Scarf's switch to asymptotic
172
- method = PermutationMethod(n_resamples=np.inf) if exact else "asymptotic"
173
- u = mannwhitneyu(x, y, method=method) # the exact null counts ties
174
- row.update(auc=u.statistic / (len(x) * len(y)), p_exact=u.pvalue)
175
- rows.append(row)
176
- table = pd.DataFrame(rows)
177
- tested = table["p_exact"].notna() # untested rows keep NaN and stay out of the correction
178
- table["p_bh"] = np.nan
179
- table.loc[tested, "p_bh"] = false_discovery_control(table.loc[tested, "p_exact"], method="bh")
180
- return table
181
-
182
- print(exact_tests(per_donor, arm, "ctrl", "case").round(4))
183
- parent = kept[kept["cell_type"] == "CD14 monocyte"] # lineage parent as denominator
184
- state = (parent["cell_state"] == "CD14 monocyte (state 1)").groupby(parent["donor_id"]).mean()
185
- print(exact_tests(state.to_frame("state 1 of CD14 monocytes"), arm, "ctrl", "case").round(4))
186
- sample_info = kept.groupby("sample_id")[["donor_id", "condition"]].first()
187
- print(per_sample.join(sample_info)[lambda t: t["donor_id"].isin(two_arm)].round(3)) # n = 1
188
- ```
189
-
190
- The same test in Scarf (a saved artifact): a 0/1 column averaged per donor is the donor's share,
191
- and the cell selection is the denominator (snapshot the parent's cells for a parent share).
192
-
193
- ```python
194
- labels, donors = ds.cells.fetch_all("cell_type"), ds.cells.fetch_all("donor_id")
195
- keys = []
196
- for pop in per_donor.columns:
197
- keys.append("is_" + re.sub(r"\W+", "_", pop))
198
- ds.cells.insert(keys[-1], (labels == pop).astype(np.float64), overwrite=True)
199
- counted = in_run & ~np.isin(labels, excluded) & ~np.isin(donors, two_arm)
200
- ds.cells.insert("in_composition", counted, overwrite=True)
201
- result = ds.run_statistical_testing(
202
- keys, CellField("condition"), cell_selection=ds.snapshot_cell_selection("in_composition"),
203
- groups=["ctrl", "case"], test="mann_whitney", sample_by="donor_id",
204
- )
205
- print(result.p_value_method, pd.concat([result.tables[k].assign(key=k) for k in keys]))
206
- ```
207
-
208
- Both routes gave identical exact and BH p-values on a synthetic design. Report n per group,
209
- medians, AUC (`U / (n_1 n_2)`; 0.5 is no shift) and BH values, then repeat with all cells as the
210
- denominator. `ds.plots.composition(..., kind="per_sample", study_design=...)` draws a strip of
211
- sample proportions per category (its intervals count samples, so a two-sample donor counts twice);
212
- `kind="stacked", sample_by=...` draws one stacked bar per sample.
213
-
214
- ### Donor-level expression tests
215
-
216
- ```python
217
- is_b = in_run & (labels == "B cell")
218
- ds.cells.insert("is_b_cell", is_b, overwrite=True)
219
- ds.cells.insert("one_arm_donor", ~np.isin(donors, two_arm), overwrite=True)
220
- b_cells = ds.snapshot_cell_selection("is_b_cell") # frozen cell_selection ref
221
- between = ds.run_statistical_testing( # donors nested in condition
222
- ["CD79A", "MS4A1"], CellField("condition"), cell_selection=b_cells, subset_by="one_arm_donor",
223
- groups=["ctrl", "case"], test="mann_whitney", sample_by="donor_id",
224
- )
225
- within = ds.run_statistical_testing( # same donor, two timepoints
226
- ["CD79A", "MS4A1"], CellField("timepoint"), cell_selection=b_cells,
227
- groups=["t0", "t1"], test="wilcoxon", sample_by="sample_id", pair_by="donor_id",
228
- )
229
- print(between.tables["CD79A"], within.tables["CD79A"], between.artifact, sep="\n")
230
- ```
231
-
232
- Expression is averaged per sample, then ranked; `groups` fixes the order (`mean_difference =
233
- mean_1 - mean_2`). Mann-Whitney is exact up to 100,000 group splits (`result.p_value_method`);
234
- Wilcoxon keeps donors seen at both levels (`n_pairs`). Reload: `ds.get_statistical_tests(ref)`.
235
-
236
- ### Merge, map, downsample
237
-
238
- `scarf.DataStoreMerge(datasets=[ds_a, ds_b], zarr_path=..., names=[...], assays=["RNA"],
239
- prepend_text="orig", source_column="dataset", overwrite=True).dump()` gives an uncorrected joint
240
- store; drop `is_primary_data == False` cells first and score iLISI before Harmony (not executed:
241
- `MemoryError` under a 3 GB budget). Mapping keeps a reference fixed; the query is another store.
242
-
243
- ```python
244
- reference = ds.get_mapping_reference(ds.build_mapping_reference(native["neighbors"]))
245
- query = scarf.DataStore("query.zarr", default_assay="RNA")
246
- mapping_ref = query.run_mapping(reference, query.snapshot_cell_selection("I"), save_k=5)
247
- print(query.get_mapping_result(mapping_ref, reference=reference).diagnostics)
248
- labels = query.get_target_classes(mapping_ref, "cell_type", reference=reference,
249
- threshold_fraction=0.6)
250
- query.cells.insert("transferred_cell_type", labels.to_numpy(), overwrite=True) # "NA" = abstained
251
- ```
252
-
253
- `ds.run_topacedo_sampler(graph, paris, max_sampling_rate=0.1)` keeps graph coverage, not
254
- proportions (`sampled` is in graph-row order); to balance donors, snapshot a seeded mask instead.
255
-
256
- ## Parameters that matter
257
-
258
- | Parameter | Default | Change when |
259
- | --- | --- | --- |
260
- | `harmony_batch_columns` / `batch_columns` | `None` (off) / required | Technical columns only |
261
- | `neighbors_k` / `query_neighbors(k=)` | 11 | 21 or more when LISI metrics decide |
262
- | metric `perplexity` | `None` = `floor(k/3)` | Keep fixed across graphs; capped at `k/3` |
263
- | `sample_by` / `pair_by` | `None` | Always `sample_by`; `pair_by` only if repeated |
264
- | `sample_stat` | `"mean"` | `"fraction"` + `expression_cutoff` for detection |
265
- | `subset_by` | `None` | A boolean column, e.g. to drop two-arm donors |
266
-
267
- ## Check before moving on
268
-
269
- - Every sample maps to one donor and one condition; donors per arm is the n; read confounding from
270
- donors (`units`), not cells.
271
- - Each donor counts once per test: `n_1` and `n_2` are donors, two-arm donors are pooled or
272
- dropped as decided, and the denominator and the excluded share per sample are reported.
273
- - After Harmony: iLISI moves toward the shuffled ceiling, cLISI and connectivity do not drop, no
274
- condition-only cluster vanishes, and the ARI against native is explainable.
275
-
276
- ## Pitfalls
277
-
278
- - `insert` stores `None` as `""` (Harmony silently treats it as a level; metrics raise) and `pd.NA`
279
- as the literal `"<NA>"` (a real group everywhere). `to_pandas_dataframe` shows missingness.
280
- - Correcting on `donor_id` or `sample_id` with a donor-level condition aligns donors and can absorb
281
- the condition. Prefer library or batch; otherwise recheck condition-specific clusters.
282
- - iLISI depends on `k`: a random synthetic batch scored 0.34, 0.67 and 0.76 at `k` 11, 21 and 31
283
- (10x 5K PBMC docs dataset). CELLxGENE `cell_type` may come from the authors' own integration,
284
- biasing cLISI toward it.
285
- - `pair_by` on donors nested in conditions raises "Duplicate (pair, group) rows"; use `sample_by`.
286
- - `scipy.stats.mannwhitneyu(method="exact")` ignores ties (donors at 0 tie), so it disagrees with
287
- Scarf; `PermutationMethod(n_resamples=np.inf)` matches it but is exhaustive (12 versus 12: 20 s).
288
- - Without `cell_selection`, a `CellField` grouping covers every stored cell, `I` False included.
289
- - Marker search, Welch and ANOVA treat cells as observations; never use them for condition claims.
290
- - A Symphony-style mapping correction (`query_batches`) needs a technical batch, never a condition.
291
-
292
- ## See also
293
-
294
- - `quality-control.md`, `features-and-graphs.md`, `markers-and-annotation.md`, `plotting.md`
295
- (`composition`), `pipeline-runs-and-artifacts.md`, `performance-and-export.md` (pseudobulk).