@brainpilot/skills 0.0.6

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 (229) hide show
  1. package/dist/index.d.ts +6 -0
  2. package/dist/index.d.ts.map +1 -0
  3. package/dist/index.js +28 -0
  4. package/dist/index.js.map +1 -0
  5. package/package.json +35 -0
  6. package/skills/01_Meta-Skills/contribute-skill/SKILL.md +277 -0
  7. package/skills/01_Meta-Skills/contribute-skills-via-pr/SKILL.md +163 -0
  8. package/skills/01_Meta-Skills/paper-to-skill/SKILL.md +435 -0
  9. package/skills/01_Meta-Skills/paper-to-skill/references/extraction-guide.md +286 -0
  10. package/skills/01_Meta-Skills/paper-to-skill/references/skill-template.md +250 -0
  11. package/skills/01_Meta-Skills/repo-to-skill/SKILL.md +289 -0
  12. package/skills/01_Meta-Skills/share-case/SKILL.md +253 -0
  13. package/skills/01_Meta-Skills/share-usage/README.md +63 -0
  14. package/skills/01_Meta-Skills/share-usage/SKILL.md +395 -0
  15. package/skills/01_Meta-Skills/verify-skill/SKILL.md +331 -0
  16. package/skills/02_Cross-Domain_Foundation/cogsci-power-analysis/SKILL.md +194 -0
  17. package/skills/02_Cross-Domain_Foundation/cogsci-power-analysis/references/effect-sizes.md +352 -0
  18. package/skills/02_Cross-Domain_Foundation/cogsci-power-analysis/references/sample-size-guide.md +407 -0
  19. package/skills/02_Cross-Domain_Foundation/cogsci-statistics/SKILL.md +361 -0
  20. package/skills/02_Cross-Domain_Foundation/cogsci-statistics/references/common-analyses.md +517 -0
  21. package/skills/02_Cross-Domain_Foundation/cogsci-visualization/SKILL.md +292 -0
  22. package/skills/02_Cross-Domain_Foundation/cogsci-visualization/references/plot-recipes.md +709 -0
  23. package/skills/02_Cross-Domain_Foundation/research-literacy/SKILL.md +286 -0
  24. package/skills/02_Cross-Domain_Foundation/research-literacy/references/common-assumptions.md +320 -0
  25. package/skills/02_Cross-Domain_Foundation/research-literacy/references/planning-template.md +143 -0
  26. package/skills/03_Cognitive_Psychology/alternative-uses-task-designer/SKILL.md +197 -0
  27. package/skills/03_Cognitive_Psychology/alternative-uses-task-designer/references/instruction-templates.md +60 -0
  28. package/skills/03_Cognitive_Psychology/cognitive-paradigm-design/SKILL.md +246 -0
  29. package/skills/03_Cognitive_Psychology/cognitive-paradigm-design/references/classic-paradigms.md +435 -0
  30. package/skills/03_Cognitive_Psychology/cognitive-paradigm-design/references/design-principles.md +256 -0
  31. package/skills/03_Cognitive_Psychology/creativity-self-efficacy-mediation/SKILL.md +270 -0
  32. package/skills/03_Cognitive_Psychology/creativity-self-efficacy-mediation/references/lavaan-templates.md +172 -0
  33. package/skills/03_Cognitive_Psychology/divergent-thinking-scoring/SKILL.md +238 -0
  34. package/skills/03_Cognitive_Psychology/divergent-thinking-scoring/references/scoring-rubric.md +143 -0
  35. package/skills/03_Cognitive_Psychology/drift-diffusion-model/SKILL.md +203 -0
  36. package/skills/03_Cognitive_Psychology/drift-diffusion-model/references/fitting-guide.md +571 -0
  37. package/skills/03_Cognitive_Psychology/drift-diffusion-model/references/model-variants.md +427 -0
  38. package/skills/03_Cognitive_Psychology/evidence-accumulation-selector/SKILL.md +310 -0
  39. package/skills/03_Cognitive_Psychology/evidence-accumulation-selector/references/ez-diffusion-formulas.md +137 -0
  40. package/skills/03_Cognitive_Psychology/signal-detection-analysis/SKILL.md +300 -0
  41. package/skills/03_Cognitive_Psychology/signal-detection-analysis/references/application-guide.md +278 -0
  42. package/skills/03_Cognitive_Psychology/signal-detection-analysis/references/sdt-formulas.md +318 -0
  43. package/skills/03_Cognitive_Psychology/visual-search-array-generator/SKILL.md +283 -0
  44. package/skills/03_Cognitive_Psychology/visual-search-array-generator/references/array-generation-parameters.yaml +111 -0
  45. package/skills/04_Psycholinguistics/reading-time-analysis/SKILL.md +301 -0
  46. package/skills/04_Psycholinguistics/reading-time-analysis/references/measure-computation-guide.md +195 -0
  47. package/skills/04_Psycholinguistics/self-paced-reading-designer/SKILL.md +257 -0
  48. package/skills/04_Psycholinguistics/self-paced-reading-designer/references/analysis-guide.md +356 -0
  49. package/skills/04_Psycholinguistics/self-paced-reading-designer/references/region-segmentation.md +266 -0
  50. package/skills/04_Psycholinguistics/sentence-stimulus-norming/SKILL.md +346 -0
  51. package/skills/04_Psycholinguistics/sentence-stimulus-norming/references/lexical-databases-guide.md +184 -0
  52. package/skills/05_EEG_ERP/eeg-paradigm-designer/SKILL.md +226 -0
  53. package/skills/05_EEG_ERP/eeg-paradigm-designer/references/component-paradigm-map.md +276 -0
  54. package/skills/05_EEG_ERP/eeg-paradigm-designer/references/timing-parameters.md +244 -0
  55. package/skills/05_EEG_ERP/eeg-preprocessing-pipeline-guide/SKILL.md +367 -0
  56. package/skills/05_EEG_ERP/eeg-preprocessing-pipeline-guide/references/parameter-lookup-tables.md +138 -0
  57. package/skills/05_EEG_ERP/erp-analysis/SKILL.md +185 -0
  58. package/skills/05_EEG_ERP/erp-analysis/references/erp-components.md +447 -0
  59. package/skills/05_EEG_ERP/erp-analysis/references/preprocessing-pipeline.md +277 -0
  60. package/skills/05_EEG_ERP/erp-analysis/references/statistical-approaches.md +351 -0
  61. package/skills/05_EEG_ERP/mne-python-guide/SKILL.md +174 -0
  62. package/skills/05_EEG_ERP/mne-python-guide/references/decoding.md +178 -0
  63. package/skills/05_EEG_ERP/mne-python-guide/references/io_formats.md +160 -0
  64. package/skills/05_EEG_ERP/mne-python-guide/references/preprocessing.md +259 -0
  65. package/skills/05_EEG_ERP/mne-python-guide/references/simulation.md +173 -0
  66. package/skills/05_EEG_ERP/mne-python-guide/references/source_localization.md +234 -0
  67. package/skills/05_EEG_ERP/mne-python-guide/references/statistics.md +196 -0
  68. package/skills/05_EEG_ERP/mne-python-guide/references/time_frequency.md +165 -0
  69. package/skills/05_EEG_ERP/mne-python-guide/references/visualization.md +175 -0
  70. package/skills/06_fMRI_Neuroimaging/brain-connectivity-modeler/SKILL.md +317 -0
  71. package/skills/06_fMRI_Neuroimaging/brain-connectivity-modeler/references/method-implementation-guide.md +116 -0
  72. package/skills/06_fMRI_Neuroimaging/fmri-glm-analysis-guide/SKILL.md +296 -0
  73. package/skills/06_fMRI_Neuroimaging/fmri-glm-analysis-guide/references/design-matrix-guide.md +214 -0
  74. package/skills/06_fMRI_Neuroimaging/fmri-glm-analysis-guide/references/statistical-inference.md +288 -0
  75. package/skills/06_fMRI_Neuroimaging/fmri-preprocessing-pipeline-guide/SKILL.md +274 -0
  76. package/skills/06_fMRI_Neuroimaging/fmri-preprocessing-pipeline-guide/references/quality-control.md +336 -0
  77. package/skills/06_fMRI_Neuroimaging/fmri-preprocessing-pipeline-guide/references/step-by-step-pipeline.md +380 -0
  78. package/skills/06_fMRI_Neuroimaging/fmri-task-design-guide/SKILL.md +264 -0
  79. package/skills/06_fMRI_Neuroimaging/fmri-task-design-guide/references/design-optimization-examples.md +114 -0
  80. package/skills/06_fMRI_Neuroimaging/neural-decoding-analysis/SKILL.md +273 -0
  81. package/skills/06_fMRI_Neuroimaging/neural-decoding-analysis/references/decoding-methods.md +170 -0
  82. package/skills/06_fMRI_Neuroimaging/neural-decoding-analysis/references/rsa-guide.md +266 -0
  83. package/skills/06_fMRI_Neuroimaging/pycortex-guide/SKILL.md +123 -0
  84. package/skills/06_fMRI_Neuroimaging/pycortex-guide/references/database-subjects.md +179 -0
  85. package/skills/06_fMRI_Neuroimaging/pycortex-guide/references/dataset-types.md +208 -0
  86. package/skills/06_fMRI_Neuroimaging/pycortex-guide/references/freesurfer-fmriprep.md +162 -0
  87. package/skills/06_fMRI_Neuroimaging/pycortex-guide/references/mapping-transforms.md +181 -0
  88. package/skills/06_fMRI_Neuroimaging/pycortex-guide/references/mni-utils.md +207 -0
  89. package/skills/06_fMRI_Neuroimaging/pycortex-guide/references/surface-analysis.md +219 -0
  90. package/skills/06_fMRI_Neuroimaging/pycortex-guide/references/visualization.md +251 -0
  91. package/skills/07_Computational_Modeling/act-r-model-builder/SKILL.md +297 -0
  92. package/skills/07_Computational_Modeling/act-r-model-builder/references/model-patterns.md +197 -0
  93. package/skills/07_Computational_Modeling/act-r-model-builder/references/parameter-table.yaml +204 -0
  94. package/skills/07_Computational_Modeling/bayesian-cognitive-model-builder/SKILL.md +294 -0
  95. package/skills/07_Computational_Modeling/bayesian-cognitive-model-builder/references/diagnostics-checklist.md +351 -0
  96. package/skills/07_Computational_Modeling/bayesian-cognitive-model-builder/references/prior-selection-guide.md +241 -0
  97. package/skills/07_Computational_Modeling/parameter-recovery-checker/SKILL.md +269 -0
  98. package/skills/07_Computational_Modeling/parameter-recovery-checker/references/recovery-diagnostics.md +207 -0
  99. package/skills/08_Computational_Neuroscience/brain-connectivity-modeler/SKILL.md +317 -0
  100. package/skills/08_Computational_Neuroscience/brain-connectivity-modeler/references/method-implementation-guide.md +116 -0
  101. package/skills/08_Computational_Neuroscience/neural-decoding-analysis/SKILL.md +273 -0
  102. package/skills/08_Computational_Neuroscience/neural-decoding-analysis/references/decoding-methods.md +170 -0
  103. package/skills/08_Computational_Neuroscience/neural-decoding-analysis/references/rsa-guide.md +266 -0
  104. package/skills/08_Computational_Neuroscience/neural-population-analysis-guide/SKILL.md +305 -0
  105. package/skills/08_Computational_Neuroscience/neural-population-analysis-guide/references/data-requirements.md +60 -0
  106. package/skills/08_Computational_Neuroscience/neural-population-analysis-guide/references/method-comparison.md +151 -0
  107. package/skills/08_Computational_Neuroscience/spiking-network-model-builder/SKILL.md +376 -0
  108. package/skills/08_Computational_Neuroscience/spiking-network-model-builder/references/hh-parameters.md +117 -0
  109. package/skills/08_Computational_Neuroscience/spiking-network-model-builder/references/network-regimes.md +130 -0
  110. package/skills/09_Cellular_Molecular_Neuroscience/calcium-imaging-analysis-guide/SKILL.md +258 -0
  111. package/skills/09_Cellular_Molecular_Neuroscience/calcium-imaging-analysis-guide/references/indicator-parameters.md +242 -0
  112. package/skills/09_Cellular_Molecular_Neuroscience/calcium-imaging-analysis-guide/references/pipeline-details.md +211 -0
  113. package/skills/09_Cellular_Molecular_Neuroscience/optogenetics-protocol-designer/SKILL.md +261 -0
  114. package/skills/09_Cellular_Molecular_Neuroscience/optogenetics-protocol-designer/references/opsin-catalog.md +124 -0
  115. package/skills/09_Cellular_Molecular_Neuroscience/optogenetics-protocol-designer/references/stimulation-parameters.md +304 -0
  116. package/skills/10_Clinical_Neuropsychology/lesion-symptom-mapping-guide/SKILL.md +367 -0
  117. package/skills/10_Clinical_Neuropsychology/lesion-symptom-mapping-guide/references/disconnection-guide.md +152 -0
  118. package/skills/10_Clinical_Neuropsychology/lesion-symptom-mapping-guide/references/vlsm-pipeline.md +182 -0
  119. package/skills/10_Clinical_Neuropsychology/neuropsych-battery-selector/SKILL.md +250 -0
  120. package/skills/10_Clinical_Neuropsychology/neuropsych-battery-selector/references/deficit-profiles.md +302 -0
  121. package/skills/10_Clinical_Neuropsychology/neuropsych-battery-selector/references/test-catalog.md +304 -0
  122. package/skills/11_Developmental_Cognition/infant-looking-time-designer/SKILL.md +345 -0
  123. package/skills/11_Developmental_Cognition/infant-looking-time-designer/references/age-parameters.yaml +186 -0
  124. package/skills/12_Social_Cognition/tom-task-selector/SKILL.md +379 -0
  125. package/skills/12_Social_Cognition/tom-task-selector/references/task-database.md +317 -0
  126. package/skills/13_Visualization/nature-figure/README.md +442 -0
  127. package/skills/13_Visualization/nature-figure/SKILL.md +60 -0
  128. package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-01-bar-charts.png +0 -0
  129. package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-02-line-trends.png +0 -0
  130. package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-03-heatmaps.png +0 -0
  131. package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-04-scatter-bubble.png +0 -0
  132. package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-05-radar-polar.png +0 -0
  133. package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-06-distributions.png +0 -0
  134. package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-07-forest-interval.png +0 -0
  135. package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-08-area-stacked.png +0 -0
  136. package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-09-image-plates.png +0 -0
  137. package/skills/13_Visualization/nature-figure/assets/chart-atlas/atlas-10-network-matrix.png +0 -0
  138. package/skills/13_Visualization/nature-figure/assets/figures4papers/assets/Dispersion_motivation.png +0 -0
  139. package/skills/13_Visualization/nature-figure/assets/figures4papers/assets/Dispersion_observation.png +0 -0
  140. package/skills/13_Visualization/nature-figure/assets/figures4papers/assets/Dispersion_observation_distillation.png +0 -0
  141. package/skills/13_Visualization/nature-figure/assets/figures4papers/assets/ImmunoStruct_contrastive.png +0 -0
  142. package/skills/13_Visualization/nature-figure/assets/figures4papers/assets/ImmunoStruct_results_CEDAR.png +0 -0
  143. package/skills/13_Visualization/nature-figure/assets/figures4papers/assets/ImmunoStruct_results_IEDB.png +0 -0
  144. package/skills/13_Visualization/nature-figure/assets/figures4papers/assets/ImmunoStruct_schematic.png +0 -0
  145. package/skills/13_Visualization/nature-figure/assets/figures4papers/assets/RNAGenScape_schematic.png +0 -0
  146. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_CellSpliceNet/figures/ablation.png +0 -0
  147. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_CellSpliceNet/figures/comparison.png +0 -0
  148. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_CellSpliceNet/plot_ablation.py +86 -0
  149. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_CellSpliceNet/plot_comparison.py +109 -0
  150. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/diffusion_swiss_roll.py +97 -0
  151. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/figures/diffusion_swiss_roll.png +0 -0
  152. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/figures/fig2_comparison_GeneRegulatory.pdf +0 -0
  153. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/figures/fig2_comparison_GeneRegulatory.png +0 -0
  154. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/figures/fig2_comparison_Trajectory.pdf +0 -0
  155. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/figures/fig2_comparison_Trajectory.png +0 -0
  156. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/figures/figX_comparison_Ablation.pdf +0 -0
  157. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/figures/figX_comparison_Ablation.png +0 -0
  158. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/plot_comparison_Ablation.py +64 -0
  159. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/plot_comparison_GeneRegulatory.py +74 -0
  160. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Cflows/plot_comparison_Trajectory.py +74 -0
  161. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Dispersion/figures/idea.png +0 -0
  162. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Dispersion/figures/illustration.png +0 -0
  163. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Dispersion/plot_idea.py +76 -0
  164. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_Dispersion/plot_illustration.py +404 -0
  165. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_FPGM/figures/freq_prior.png +0 -0
  166. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_FPGM/plot_freq_prior.py +146 -0
  167. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ImmunoStruct/figures/bars_ablation_Cancer.png +0 -0
  168. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ImmunoStruct/figures/bars_ablation_IEDB.png +0 -0
  169. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ImmunoStruct/figures/bars_comparison_Cancer.png +0 -0
  170. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ImmunoStruct/figures/bars_comparison_IEDB.png +0 -0
  171. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ImmunoStruct/plot_bars.py +216 -0
  172. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ImmunoStruct/raw_data.py +125 -0
  173. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_RNAGenScape/figures/manifold.png +0 -0
  174. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_RNAGenScape/figures/manifold_holes.png +0 -0
  175. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_RNAGenScape/figures/results_comparison_optimization.png +0 -0
  176. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_RNAGenScape/figures/results_comparison_speed.png +0 -0
  177. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_RNAGenScape/figures/results_sweep.png +0 -0
  178. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_RNAGenScape/plot_comparison.py +228 -0
  179. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_RNAGenScape/plot_hole_manifold.py +82 -0
  180. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_RNAGenScape/plot_manifold.py +61 -0
  181. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_RNAGenScape/plot_sweep.py +77 -0
  182. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_VIGIL/figures/comparison_posttraining.png +0 -0
  183. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_VIGIL/figures/comparison_radar.png +0 -0
  184. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_VIGIL/plot_comparison_radar.py +173 -0
  185. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_VIGIL/plot_posttraining.py +82 -0
  186. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/figures/brute_force.png +0 -0
  187. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/figures/correctness_by_category.png +0 -0
  188. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/figures/correctness_by_subcategory.png +0 -0
  189. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/figures/rewriting.png +0 -0
  190. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/figures/selfcorrection_math.png +0 -0
  191. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/plot_brute_force.py +248 -0
  192. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/plot_correctness_by_category.py +132 -0
  193. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/plot_correctness_by_subcategory.py +131 -0
  194. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/plot_rewriting.py +105 -0
  195. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_brainteaser/plot_selfcorrection_math.py +99 -0
  196. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ophthal_review/figures/composition_heatmap.png +0 -0
  197. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ophthal_review/figures/trend_by_month.png +0 -0
  198. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ophthal_review/plot_composition.py +81 -0
  199. package/skills/13_Visualization/nature-figure/assets/figures4papers/figure_ophthal_review/plot_trend.py +125 -0
  200. package/skills/13_Visualization/nature-figure/assets/gallery/fig1-material-mechanism-rich.png +0 -0
  201. package/skills/13_Visualization/nature-figure/assets/gallery/fig2-spatial-imaging-rich.png +0 -0
  202. package/skills/13_Visualization/nature-figure/assets/gallery/fig3-in-vivo-efficacy-rich.png +0 -0
  203. package/skills/13_Visualization/nature-figure/assets/gallery/fig4-single-cell-systems-rich.png +0 -0
  204. package/skills/13_Visualization/nature-figure/assets/gallery/fig5-validation-perturbation-rich.png +0 -0
  205. package/skills/13_Visualization/nature-figure/evals/evals.json +37 -0
  206. package/skills/13_Visualization/nature-figure/manifest.yaml +57 -0
  207. package/skills/13_Visualization/nature-figure/references/api.md +428 -0
  208. package/skills/13_Visualization/nature-figure/references/backend-selection.md +100 -0
  209. package/skills/13_Visualization/nature-figure/references/chart-types.md +281 -0
  210. package/skills/13_Visualization/nature-figure/references/common-patterns.md +350 -0
  211. package/skills/13_Visualization/nature-figure/references/demos.md +65 -0
  212. package/skills/13_Visualization/nature-figure/references/design-theory.md +436 -0
  213. package/skills/13_Visualization/nature-figure/references/figure-contract.md +93 -0
  214. package/skills/13_Visualization/nature-figure/references/nature-2026-observations.md +112 -0
  215. package/skills/13_Visualization/nature-figure/references/qa-contract.md +119 -0
  216. package/skills/13_Visualization/nature-figure/references/r-template-index.md +66 -0
  217. package/skills/13_Visualization/nature-figure/references/r-workflow.md +161 -0
  218. package/skills/13_Visualization/nature-figure/references/tutorials.md +251 -0
  219. package/skills/13_Visualization/nature-figure/static/core/contract.md +29 -0
  220. package/skills/13_Visualization/nature-figure/static/core/stance.md +37 -0
  221. package/skills/13_Visualization/nature-figure/static/fragments/backend/python.md +37 -0
  222. package/skills/13_Visualization/nature-figure/static/fragments/backend/r.md +44 -0
  223. package/skills/14_Writing/markdown-report-writing/SKILL.md +306 -0
  224. package/skills/14_Writing/markdown-report-writing/references/compatibility-matrix.md +72 -0
  225. package/skills/14_Writing/markdown-report-writing/references/templates.md +299 -0
  226. package/skills/15_Others/neuroimaging-power-guide/SKILL.md +324 -0
  227. package/skills/15_Others/neuroimaging-power-guide/references/effect-size-lookup-tables.md +102 -0
  228. package/skills/15_Others/neuroimaging-sample-size-calculator/SKILL.md +330 -0
  229. package/skills/15_Others/neuroimaging-sample-size-calculator/references/worked-examples.md +220 -0
@@ -0,0 +1,350 @@
1
+ # Common Patterns — Nature Figure Making
2
+
3
+ Reusable layout and encoding patterns used across publication-grade scripts.
4
+
5
+ ---
6
+
7
+ ## Pattern 1: Ultra-wide multi-metric bar panel
8
+
9
+ For 3–4 metrics compared across many methods, use a wide canvas so bars and labels don't crowd.
10
+
11
+ ```python
12
+ fig = plt.figure(figsize=(45, 12)) # or (28, 6) for fewer metrics
13
+ gs = gridspec.GridSpec(1, n_metrics)
14
+
15
+ for i, metric in enumerate(metrics):
16
+ ax = fig.add_subplot(gs[i])
17
+ ax.bar(x, values[metric], color=colors, ...)
18
+ ax.set_ylabel(metric, fontsize=54, labelpad=12)
19
+ ax.set_xticks([])
20
+
21
+ # Last panel: legend only
22
+ ax_leg = fig.add_subplot(gs[-1])
23
+ ax_leg.legend(handles, labels, fontsize=38, loc='center', frameon=False)
24
+ ax_leg.set_axis_off()
25
+
26
+ fig.tight_layout(pad=2)
27
+ ```
28
+
29
+ **Rule**: Width often 3–4× height. Allows left-to-right narrative scanning.
30
+
31
+ ---
32
+
33
+ ## Pattern 2: Dedicated legend panel
34
+
35
+ When the legend is large, give it its own axis so data panels stay clean.
36
+
37
+ ```python
38
+ fig, axes = plt.subplots(1, n_data + 1, figsize=(...))
39
+
40
+ for i, ax in enumerate(axes[:-1]):
41
+ bars = ax.bar(...)
42
+ if i == 0:
43
+ handles, labels = ax.get_legend_handles_labels()
44
+
45
+ # Legend-only panel
46
+ axes[-1].legend(handles, labels, fontsize=28, loc='center', frameon=False)
47
+ axes[-1].set_axis_off()
48
+ ```
49
+
50
+ ---
51
+
52
+ ## Pattern 3: Categorical bars without x-tick labels
53
+
54
+ When methods are named in the legend, hide x-ticks entirely.
55
+
56
+ ```python
57
+ ax.set_xticks([]) # removes ticks and labels
58
+ # Alternatively:
59
+ ax.set_xticklabels([]) # keeps tick marks, removes labels
60
+ ```
61
+
62
+ ---
63
+
64
+ ## Pattern 4: Dynamic y-axis tightening
65
+
66
+ Never use 0–100 when all values are in 80–95.
67
+
68
+ ```python
69
+ margin = (values.max() - values.min()) * 0.1 # 10% padding
70
+ ax.set_ylim([values.min() - margin, values.max() + margin])
71
+
72
+ # Manual ticks at clean round numbers
73
+ ax.set_yticks([0.75, 0.80, 0.85, 0.90])
74
+ ax.tick_params(axis='y', labelsize=36, length=10, width=2)
75
+ ```
76
+
77
+ ---
78
+
79
+ ## Pattern 5: Alpha-graduated ablation bars (same color, varying opacity)
80
+
81
+ ```python
82
+ import numpy as np
83
+
84
+ blue_rgb = (0.215686, 0.458824, 0.729412) # #3775BA as float tuple
85
+ n_ablations = len(ablation_configs)
86
+ alphas = np.linspace(0.2, 1.0, n_ablations)
87
+ colors = [(blue_rgb[0], blue_rgb[1], blue_rgb[2], a) for a in alphas]
88
+ # Full method → alpha=1.0, most ablated → alpha=0.2
89
+ ```
90
+
91
+ ---
92
+
93
+ ## Pattern 6: Hatch encoding for print-safe grayscale
94
+
95
+ Add hatching so bars remain distinct when printed in black-and-white.
96
+
97
+ ```python
98
+ hatches = ['/', '\\\\', '.', 'x', 'o', '+']
99
+ for bar_container, hatch in zip(grouped_bars, hatches):
100
+ for patch in bar_container:
101
+ patch.set_hatch(hatch)
102
+ patch.set_edgecolor('black')
103
+ patch.set_linewidth(1.5)
104
+ ```
105
+
106
+ ---
107
+
108
+ ## Pattern 7: Semantic or family color mapping
109
+
110
+ Always map colors consistently across all panels in a figure:
111
+
112
+ ```python
113
+ method_colors = {
114
+ 'ResNet1d18': '#484878', # baseline_dark
115
+ 'ResNet1d34': '#7884B4', # baseline_mid
116
+ 'ECGFounder': '#B4C0E4', # baseline_soft
117
+ 'CSFM-Tiny': '#E4E4F0', # ours_tiny
118
+ 'CSFM-Base': '#E4CCD8', # ours_base
119
+ 'CSFM-Large': '#F0C0CC', # ours_large
120
+ }
121
+ colors = [method_colors[m] for m in methods]
122
+ ```
123
+
124
+ Prefer coherent hue families over alternating saturated blue/green/red just because categories differ.
125
+ Green and red should usually be reserved for **directional annotations**, not primary series identity:
126
+
127
+ ```python
128
+ ax.scatter(x_gain, y_gain, marker='^', color='#2E9E44', s=90, zorder=6) # improvement
129
+ ax.scatter(x_drop, y_drop, marker='v', color='#E53935', s=90, zorder=6) # degradation
130
+ ```
131
+
132
+ ---
133
+
134
+ ## Pattern 8: In-bar text with luminance-aware color
135
+
136
+ ```python
137
+ def annotate_bars(ax, bars, colors, fmt='{:.2f}', fontsize=32, offset=-0.10):
138
+ for bar, color in zip(bars, colors):
139
+ c = color.lstrip('#')
140
+ r, g, b = int(c[0:2],16)/255, int(c[2:4],16)/255, int(c[4:6],16)/255
141
+ lum = 0.299*r + 0.587*g + 0.114*b
142
+ textcolor = 'white' if lum < 0.5 else 'black'
143
+ value = bar.get_height()
144
+ ax.text(bar.get_x() + bar.get_width()/2,
145
+ value + offset,
146
+ fmt.format(value),
147
+ ha='center', va='bottom',
148
+ fontsize=fontsize, color=textcolor)
149
+ ```
150
+
151
+ ---
152
+
153
+ ## Pattern 9: Fill-between trend with hatch (print-safe)
154
+
155
+ ```python
156
+ ax.fill_between(x, 0, cumsum_series,
157
+ color=fill_color,
158
+ hatch='\\\\\\', # triple backslash for dense hatch
159
+ edgecolor='black',
160
+ label=label_name)
161
+ # Visually erase the border artifacts:
162
+ ax.fill_between(x, 0, cumsum_series,
163
+ facecolor='none',
164
+ edgecolor='white',
165
+ linewidth=2)
166
+ ```
167
+
168
+ ---
169
+
170
+ ## Pattern 10: Annotate events on trend lines
171
+
172
+ ```python
173
+ def mark_events(ax, x_labels, y_cumsum, events_dict, dy_fraction=0.1):
174
+ """Add labeled arrows at event dates on a trend line."""
175
+ x_index = {label: i for i, label in enumerate(x_labels)}
176
+ y_lo, y_hi = ax.get_ylim()
177
+ dy = dy_fraction * (y_hi - y_lo)
178
+ for date, label in events_dict.items():
179
+ if date not in x_index:
180
+ continue
181
+ i = x_index[date]
182
+ stars = label.count('*')
183
+ clean_label = label.replace('*', '')
184
+ y_data = y_cumsum[i]
185
+ ax.annotate(
186
+ clean_label,
187
+ xy=(i, y_data),
188
+ xytext=(i, y_data + (1 + 0.8 * stars) * dy),
189
+ ha='center', va='bottom', fontsize=11,
190
+ arrowprops=dict(arrowstyle='-|>', lw=1.3, color='black',
191
+ shrinkA=0, shrinkB=0, mutation_scale=15)
192
+ )
193
+ ```
194
+
195
+ ---
196
+
197
+ ## Pattern 11: Grouped bars across multiple datasets (grouped-within-grouped)
198
+
199
+ ```python
200
+ num_methods = len(methods)
201
+ xtick_positions = []
202
+
203
+ for dataset_idx, dataset_name in enumerate(datasets):
204
+ x_start = dataset_idx * (num_methods + 1) # gap of 1 between groups
205
+ ax.bar(
206
+ np.arange(num_methods) + x_start,
207
+ values[dataset_name],
208
+ color=method_colors,
209
+ label=methods if dataset_idx == 0 else ['_nolegend_'] * num_methods,
210
+ )
211
+ xtick_positions.append(np.mean(np.arange(num_methods)) + x_start)
212
+
213
+ ax.set_xticks(xtick_positions)
214
+ ax.set_xticklabels(datasets)
215
+ ```
216
+
217
+ ---
218
+
219
+ ## Pattern 12: Schematic hero panel with supporting quant row
220
+
221
+ Use when one mechanism or fabrication story needs to lead, with 2–4 smaller evidence plots below.
222
+
223
+ ```python
224
+ fig = plt.figure(figsize=(7.2, 6.2))
225
+ gs = fig.add_gridspec(
226
+ 2, 4,
227
+ height_ratios=[2.2, 1.0],
228
+ hspace=0.18, wspace=0.28,
229
+ )
230
+
231
+ ax_top = fig.add_subplot(gs[0, :]) # hero schematic
232
+ ax_b = fig.add_subplot(gs[1, 0])
233
+ ax_c = fig.add_subplot(gs[1, 1:3])
234
+ ax_d = fig.add_subplot(gs[1, 3])
235
+
236
+ # top panel should carry the main palette and the main visual narrative
237
+ ```
238
+
239
+ Rules:
240
+
241
+ - Allocate `45–60%` of total height to the hero schematic.
242
+ - Reuse softened versions of the same colors in the lower plots.
243
+ - Keep support plots quieter than the hero panel.
244
+
245
+ ---
246
+
247
+ ## Pattern 13: Dark image plate with repeated views
248
+
249
+ Use for microscopy, volume rendering, or fluorescence-heavy panels.
250
+
251
+ ```python
252
+ fig = plt.figure(figsize=(7.2, 6.5))
253
+ gs = fig.add_gridspec(3, 5, hspace=0.08, wspace=0.04)
254
+
255
+ for r in range(3):
256
+ for c in range(5):
257
+ ax = fig.add_subplot(gs[r, c])
258
+ ax.set_facecolor('black')
259
+ ax.set_xticks([])
260
+ ax.set_yticks([])
261
+ for spine in ax.spines.values():
262
+ spine.set_visible(False)
263
+ ```
264
+
265
+ Rules:
266
+
267
+ - Use black only within the image plate cells.
268
+ - Put channel labels, scale bars and small crop guides directly on the plate.
269
+ - Keep crop geometry and scale-bar placement consistent across the grid.
270
+
271
+ ---
272
+
273
+ ## Pattern 14: Clinical triptych
274
+
275
+ Use for outcome-over-time figures that combine trajectories, effect sizes, and summary proportions.
276
+
277
+ ```python
278
+ fig = plt.figure(figsize=(7.2, 6.8))
279
+ gs = fig.add_gridspec(
280
+ 3, 3,
281
+ height_ratios=[1.0, 1.35, 0.8],
282
+ hspace=0.28, wspace=0.32,
283
+ )
284
+
285
+ axes_top = [fig.add_subplot(gs[0, i]) for i in range(3)]
286
+ axes_mid = [fig.add_subplot(gs[1, i]) for i in range(3)]
287
+ axes_bot = [fig.add_subplot(gs[2, i]) for i in range(3)]
288
+
289
+ # Put one shared legend strip above axes_top rather than repeating legends.
290
+ ```
291
+
292
+ Rules:
293
+
294
+ - Keep the three columns semantically parallel.
295
+ - Use a dashed vertical reference line in the forest-plot row.
296
+ - Group shading in the forest-plot row should be pale and subordinate.
297
+
298
+ ---
299
+
300
+ ## Pattern 15: Asymmetric hero panel
301
+
302
+ Use when one panel is conceptually central and should dominate.
303
+
304
+ ```python
305
+ fig = plt.figure(figsize=(7.2, 5.8))
306
+ gs = fig.add_gridspec(3, 4, hspace=0.25, wspace=0.28)
307
+
308
+ ax_a = fig.add_subplot(gs[0, :2])
309
+ ax_b = fig.add_subplot(gs[0, 2])
310
+ ax_c = fig.add_subplot(gs[1, :2])
311
+ ax_d = fig.add_subplot(gs[1, 2])
312
+ ax_e = fig.add_subplot(gs[:, 3]) # hero panel spans all rows
313
+ ax_f = fig.add_subplot(gs[2, :2])
314
+ ```
315
+
316
+ Rule: do not normalize every subplot to the same size if the science does not have equal importance.
317
+
318
+ ---
319
+
320
+ ## Pattern 16: Direct labels inside filled regions
321
+
322
+ Use when the same categorical structure repeats and a legend would become too large.
323
+
324
+ ```python
325
+ for x_text, y_text, text, color in label_specs:
326
+ ax.text(
327
+ x_text, y_text, text,
328
+ color=color,
329
+ ha='center', va='center',
330
+ fontsize=9, fontweight='bold',
331
+ )
332
+ ```
333
+
334
+ Rules:
335
+
336
+ - Keep labels inside stable, visually large regions.
337
+ - Use a small white or black stroke if the fill varies strongly underneath.
338
+ - Prefer direct labels over a mega-legend for repeated stacked-area or phase diagrams.
339
+
340
+ ---
341
+
342
+ ## Related files
343
+
344
+ - [SKILL.md](../SKILL.md) — When to use this skill
345
+ - [api.md](api.md) — Helper function signatures and PALETTE
346
+ - [design-theory.md](design-theory.md) — Rationale behind every pattern above
347
+ - [nature-2026-observations.md](nature-2026-observations.md) — Real Nature page archetypes behind these patterns
348
+ - [tutorials.md](tutorials.md) — End-to-end walkthroughs
349
+ - [chart-types.md](chart-types.md) — Radar, 3D, scatter patterns
350
+ - [demos.md](demos.md) — Bundled figures4papers scripts and previews
@@ -0,0 +1,65 @@
1
+ # figures4papers Demo Index
2
+
3
+ Use this file when a user asks for a `figures4papers` look, cites the older
4
+ `scientific-figure-making` skill, or needs a concrete Python/matplotlib example
5
+ instead of only abstract style rules.
6
+
7
+ The bundled examples live under `../assets/figures4papers/`. They are reference
8
+ materials for the Python track only. Keep the normal `nature-figure` contract first:
9
+ define the scientific claim, pick Python or R, and only then adapt a demo pattern.
10
+
11
+ ## How to use the demos
12
+
13
+ 1. Select the closest chart family from the table below.
14
+ 2. Read the listed `plot_*.py` files for layout, palette, axis, legend, and export
15
+ patterns.
16
+ 3. Reuse the pattern, not the demo data or manuscript-specific labels.
17
+ 4. Preserve editable SVG/PDF/TIFF export rules from `api.md`.
18
+ 5. Do not reveal local repository paths or internal asset filenames in user-facing
19
+ prose unless the user asks for an audit trail.
20
+
21
+ ## Bundled project map
22
+
23
+ | Project | Open when | Local examples |
24
+ |---------|-----------|----------------|
25
+ | `figure_ImmunoStruct` | Method comparison bars, ablation bars, large readable annotations | `../assets/figures4papers/figure_ImmunoStruct/plot_bars.py`, `raw_data.py`, `figures/*.png` |
26
+ | `figure_CellSpliceNet` | Compact comparison and ablation bars | `../assets/figures4papers/figure_CellSpliceNet/plot_comparison.py`, `plot_ablation.py` |
27
+ | `figure_brainteaser` | Composition breakdown bars, category/subcategory comparisons, rewriting/self-correction panels | `../assets/figures4papers/figure_brainteaser/plot_*.py` |
28
+ | `figure_VIGIL` | Radar/polar comparison and post-training trend lines | `../assets/figures4papers/figure_VIGIL/plot_comparison_radar.py`, `plot_posttraining.py` |
29
+ | `figure_ophthal_review` | Time trends and composition heatmaps for review/survey style figures | `../assets/figures4papers/figure_ophthal_review/plot_trend.py`, `plot_composition.py` |
30
+ | `figure_RNAGenScape` | Heatmaps, optimization/speed comparisons, manifold illustrations, sweep plots | `../assets/figures4papers/figure_RNAGenScape/plot_*.py` |
31
+ | `figure_Dispersion` | Conceptual 3D-style sphere diagrams and observation/idea panels | `../assets/figures4papers/figure_Dispersion/plot_illustration.py`, `plot_idea.py` |
32
+ | `figure_Cflows` | Diffusion/trajectory illustrations, gene-regulatory comparisons, ablation comparisons | `../assets/figures4papers/figure_Cflows/*.py` |
33
+ | `figure_FPGM` | Frequency-prior or distribution-style method motivation figure | `../assets/figures4papers/figure_FPGM/plot_freq_prior.py` |
34
+ | `assets` | Partially manual schematic/result panels for visual inspiration only | `../assets/figures4papers/assets/*.png` |
35
+
36
+ ## Pattern routing
37
+
38
+ - Grouped bars: start with `figure_ImmunoStruct`, `figure_CellSpliceNet`, or
39
+ `figure_brainteaser`; then apply the tighter Nature export and font rules in
40
+ `api.md`.
41
+ - Radar/polar: start with `figure_VIGIL`; cross-check `chart-types.md` before
42
+ implementing normalization, radial labels, and legend placement.
43
+ - Trend/line: start with `figure_VIGIL` or `figure_ophthal_review`; use shared
44
+ legends and direct event labels where they reduce eye travel.
45
+ - Heatmap/matrix: start with `figure_RNAGenScape` or `figure_ophthal_review`; keep
46
+ colorbars and labels readable at final journal dimensions.
47
+ - Conceptual 3D/spheres: start with `figure_Dispersion` or `figure_Cflows`; use this
48
+ only when it supports the manuscript claim, not as decorative filler.
49
+
50
+ ## Relationship to the older skill
51
+
52
+ The original `scientific-figure-making` skill focused on publication-ready
53
+ matplotlib figures and the figures4papers house style. In this repository, that
54
+ guidance is folded into `nature-figure`:
55
+
56
+ - `api.md` contains the palette, helper signatures, and export conventions.
57
+ - `common-patterns.md` expands the reusable layout patterns.
58
+ - `design-theory.md` captures the typography, color, and composition rationale.
59
+ - `tutorials.md` gives end-to-end scaffold examples.
60
+ - This file preserves the real demo script map and bundled example assets.
61
+
62
+ ## External source
63
+
64
+ Original upstream repository:
65
+ <https://github.com/ChenLiu-1996/figures4papers>