wotann 0.5.80 → 0.5.83

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 (1173) hide show
  1. package/dist/orchestration/architect-editor.js +8 -0
  2. package/package.json +1 -1
  3. package/skills/scientific/LICENSE.md +21 -0
  4. package/skills/scientific/adaptyv/SKILL.md +211 -0
  5. package/skills/scientific/adaptyv/references/api-endpoints.md +690 -0
  6. package/skills/scientific/aeon/SKILL.md +372 -0
  7. package/skills/scientific/aeon/references/anomaly_detection.md +154 -0
  8. package/skills/scientific/aeon/references/classification.md +144 -0
  9. package/skills/scientific/aeon/references/clustering.md +123 -0
  10. package/skills/scientific/aeon/references/datasets_benchmarking.md +387 -0
  11. package/skills/scientific/aeon/references/distances.md +256 -0
  12. package/skills/scientific/aeon/references/forecasting.md +140 -0
  13. package/skills/scientific/aeon/references/networks.md +289 -0
  14. package/skills/scientific/aeon/references/regression.md +118 -0
  15. package/skills/scientific/aeon/references/segmentation.md +163 -0
  16. package/skills/scientific/aeon/references/similarity_search.md +187 -0
  17. package/skills/scientific/aeon/references/transformations.md +246 -0
  18. package/skills/scientific/anndata/SKILL.md +398 -0
  19. package/skills/scientific/anndata/references/best_practices.md +525 -0
  20. package/skills/scientific/anndata/references/concatenation.md +396 -0
  21. package/skills/scientific/anndata/references/data_structure.md +314 -0
  22. package/skills/scientific/anndata/references/io_operations.md +404 -0
  23. package/skills/scientific/anndata/references/manipulation.md +516 -0
  24. package/skills/scientific/arboreto/SKILL.md +241 -0
  25. package/skills/scientific/arboreto/references/algorithms.md +138 -0
  26. package/skills/scientific/arboreto/references/basic_inference.md +151 -0
  27. package/skills/scientific/arboreto/references/distributed_computing.md +242 -0
  28. package/skills/scientific/arboreto/scripts/basic_grn_inference.py +97 -0
  29. package/skills/scientific/astropy/SKILL.md +329 -0
  30. package/skills/scientific/astropy/references/coordinates.md +273 -0
  31. package/skills/scientific/astropy/references/cosmology.md +307 -0
  32. package/skills/scientific/astropy/references/fits.md +396 -0
  33. package/skills/scientific/astropy/references/tables.md +489 -0
  34. package/skills/scientific/astropy/references/time.md +404 -0
  35. package/skills/scientific/astropy/references/units.md +178 -0
  36. package/skills/scientific/astropy/references/wcs_and_other_modules.md +373 -0
  37. package/skills/scientific/autoskill/SKILL.md +219 -0
  38. package/skills/scientific/autoskill/config.yaml +53 -0
  39. package/skills/scientific/autoskill/references/https-proxy.md +62 -0
  40. package/skills/scientific/autoskill/references/screenpipe-config.yaml +61 -0
  41. package/skills/scientific/autoskill/scripts/autoskill.py +35 -0
  42. package/skills/scientific/autoskill/scripts/backends.py +71 -0
  43. package/skills/scientific/autoskill/scripts/cluster.py +54 -0
  44. package/skills/scientific/autoskill/scripts/doctor.py +108 -0
  45. package/skills/scientific/autoskill/scripts/fetch_window.py +33 -0
  46. package/skills/scientific/autoskill/scripts/match_skills.py +46 -0
  47. package/skills/scientific/autoskill/scripts/promote.py +58 -0
  48. package/skills/scientific/autoskill/scripts/redact.py +40 -0
  49. package/skills/scientific/autoskill/scripts/run.py +194 -0
  50. package/skills/scientific/autoskill/scripts/synthesize.py +72 -0
  51. package/skills/scientific/autoskill/tests/conftest.py +4 -0
  52. package/skills/scientific/autoskill/tests/smoke_lmstudio.py +60 -0
  53. package/skills/scientific/autoskill/tests/test_backends.py +121 -0
  54. package/skills/scientific/autoskill/tests/test_cli.py +61 -0
  55. package/skills/scientific/autoskill/tests/test_cluster.py +67 -0
  56. package/skills/scientific/autoskill/tests/test_doctor.py +108 -0
  57. package/skills/scientific/autoskill/tests/test_e2e.py +327 -0
  58. package/skills/scientific/autoskill/tests/test_fetch_window.py +111 -0
  59. package/skills/scientific/autoskill/tests/test_match_skills.py +75 -0
  60. package/skills/scientific/autoskill/tests/test_promote.py +108 -0
  61. package/skills/scientific/autoskill/tests/test_redact.py +130 -0
  62. package/skills/scientific/autoskill/tests/test_run.py +229 -0
  63. package/skills/scientific/autoskill/tests/test_synthesize.py +96 -0
  64. package/skills/scientific/benchling-integration/SKILL.md +478 -0
  65. package/skills/scientific/benchling-integration/references/api_endpoints.md +883 -0
  66. package/skills/scientific/benchling-integration/references/authentication.md +379 -0
  67. package/skills/scientific/benchling-integration/references/sdk_reference.md +774 -0
  68. package/skills/scientific/bgpt-paper-search/SKILL.md +74 -0
  69. package/skills/scientific/bids/SKILL.md +756 -0
  70. package/skills/scientific/bids/references/beps.yml +637 -0
  71. package/skills/scientific/bids/references/bids_schema.json +21015 -0
  72. package/skills/scientific/bids/references/bids_specification.md +165 -0
  73. package/skills/scientific/bids/references/conversion_tools.md +475 -0
  74. package/skills/scientific/bids/references/metadata_fields.md +365 -0
  75. package/skills/scientific/bids/scripts/update_schema.py +89 -0
  76. package/skills/scientific/biopython/SKILL.md +441 -0
  77. package/skills/scientific/biopython/references/advanced.md +577 -0
  78. package/skills/scientific/biopython/references/alignment.md +362 -0
  79. package/skills/scientific/biopython/references/blast.md +455 -0
  80. package/skills/scientific/biopython/references/databases.md +484 -0
  81. package/skills/scientific/biopython/references/phylogenetics.md +566 -0
  82. package/skills/scientific/biopython/references/sequence_io.md +285 -0
  83. package/skills/scientific/biopython/references/structure.md +564 -0
  84. package/skills/scientific/bioservices/SKILL.md +359 -0
  85. package/skills/scientific/bioservices/references/identifier_mapping.md +685 -0
  86. package/skills/scientific/bioservices/references/services_reference.md +636 -0
  87. package/skills/scientific/bioservices/references/workflow_patterns.md +811 -0
  88. package/skills/scientific/bioservices/scripts/batch_id_converter.py +347 -0
  89. package/skills/scientific/bioservices/scripts/compound_cross_reference.py +378 -0
  90. package/skills/scientific/bioservices/scripts/pathway_analysis.py +309 -0
  91. package/skills/scientific/bioservices/scripts/protein_analysis_workflow.py +408 -0
  92. package/skills/scientific/cellxgene-census/SKILL.md +509 -0
  93. package/skills/scientific/cellxgene-census/references/census_schema.md +182 -0
  94. package/skills/scientific/cellxgene-census/references/common_patterns.md +351 -0
  95. package/skills/scientific/cirq/SKILL.md +344 -0
  96. package/skills/scientific/cirq/references/building.md +307 -0
  97. package/skills/scientific/cirq/references/experiments.md +572 -0
  98. package/skills/scientific/cirq/references/hardware.md +515 -0
  99. package/skills/scientific/cirq/references/noise.md +515 -0
  100. package/skills/scientific/cirq/references/simulation.md +350 -0
  101. package/skills/scientific/cirq/references/transformation.md +416 -0
  102. package/skills/scientific/citation-management/SKILL.md +1 -1
  103. package/skills/scientific/clinical-decision-support/SKILL.md +509 -0
  104. package/skills/scientific/clinical-decision-support/assets/biomarker_report_template.tex +380 -0
  105. package/skills/scientific/clinical-decision-support/assets/clinical_pathway_template.tex +222 -0
  106. package/skills/scientific/clinical-decision-support/assets/cohort_analysis_template.tex +359 -0
  107. package/skills/scientific/clinical-decision-support/assets/color_schemes.tex +149 -0
  108. package/skills/scientific/clinical-decision-support/assets/example_gbm_cohort.md +208 -0
  109. package/skills/scientific/clinical-decision-support/assets/recommendation_strength_guide.md +328 -0
  110. package/skills/scientific/clinical-decision-support/assets/treatment_recommendation_template.tex +529 -0
  111. package/skills/scientific/clinical-decision-support/references/README.md +129 -0
  112. package/skills/scientific/clinical-decision-support/references/biomarker_classification.md +719 -0
  113. package/skills/scientific/clinical-decision-support/references/clinical_decision_algorithms.md +604 -0
  114. package/skills/scientific/clinical-decision-support/references/evidence_synthesis.md +840 -0
  115. package/skills/scientific/clinical-decision-support/references/outcome_analysis.md +640 -0
  116. package/skills/scientific/clinical-decision-support/references/patient_cohort_analysis.md +427 -0
  117. package/skills/scientific/clinical-decision-support/references/treatment_recommendations.md +521 -0
  118. package/skills/scientific/clinical-decision-support/scripts/biomarker_classifier.py +384 -0
  119. package/skills/scientific/clinical-decision-support/scripts/build_decision_tree.py +447 -0
  120. package/skills/scientific/clinical-decision-support/scripts/create_cohort_tables.py +524 -0
  121. package/skills/scientific/clinical-decision-support/scripts/generate_schematic.py +139 -0
  122. package/skills/scientific/clinical-decision-support/scripts/generate_schematic_ai.py +817 -0
  123. package/skills/scientific/clinical-decision-support/scripts/generate_survival_analysis.py +422 -0
  124. package/skills/scientific/clinical-decision-support/scripts/validate_cds_document.py +335 -0
  125. package/skills/scientific/clinical-reports/SKILL.md +1131 -0
  126. package/skills/scientific/clinical-reports/assets/case_report_template.md +352 -0
  127. package/skills/scientific/clinical-reports/assets/clinical_trial_csr_template.md +353 -0
  128. package/skills/scientific/clinical-reports/assets/clinical_trial_sae_template.md +359 -0
  129. package/skills/scientific/clinical-reports/assets/consult_note_template.md +305 -0
  130. package/skills/scientific/clinical-reports/assets/discharge_summary_template.md +453 -0
  131. package/skills/scientific/clinical-reports/assets/hipaa_compliance_checklist.md +395 -0
  132. package/skills/scientific/clinical-reports/assets/history_physical_template.md +305 -0
  133. package/skills/scientific/clinical-reports/assets/lab_report_template.md +309 -0
  134. package/skills/scientific/clinical-reports/assets/pathology_report_template.md +249 -0
  135. package/skills/scientific/clinical-reports/assets/quality_checklist.md +338 -0
  136. package/skills/scientific/clinical-reports/assets/radiology_report_template.md +318 -0
  137. package/skills/scientific/clinical-reports/assets/soap_note_template.md +253 -0
  138. package/skills/scientific/clinical-reports/references/README.md +236 -0
  139. package/skills/scientific/clinical-reports/references/case_report_guidelines.md +570 -0
  140. package/skills/scientific/clinical-reports/references/clinical_trial_reporting.md +693 -0
  141. package/skills/scientific/clinical-reports/references/data_presentation.md +530 -0
  142. package/skills/scientific/clinical-reports/references/diagnostic_reports_standards.md +629 -0
  143. package/skills/scientific/clinical-reports/references/medical_terminology.md +588 -0
  144. package/skills/scientific/clinical-reports/references/patient_documentation.md +744 -0
  145. package/skills/scientific/clinical-reports/references/peer_review_standards.md +585 -0
  146. package/skills/scientific/clinical-reports/references/regulatory_compliance.md +577 -0
  147. package/skills/scientific/clinical-reports/scripts/check_deidentification.py +346 -0
  148. package/skills/scientific/clinical-reports/scripts/compliance_checker.py +78 -0
  149. package/skills/scientific/clinical-reports/scripts/extract_clinical_data.py +102 -0
  150. package/skills/scientific/clinical-reports/scripts/format_adverse_events.py +103 -0
  151. package/skills/scientific/clinical-reports/scripts/generate_report_template.py +163 -0
  152. package/skills/scientific/clinical-reports/scripts/generate_schematic.py +139 -0
  153. package/skills/scientific/clinical-reports/scripts/generate_schematic_ai.py +817 -0
  154. package/skills/scientific/clinical-reports/scripts/terminology_validator.py +133 -0
  155. package/skills/scientific/clinical-reports/scripts/validate_case_report.py +334 -0
  156. package/skills/scientific/clinical-reports/scripts/validate_trial_report.py +89 -0
  157. package/skills/scientific/cobrapy/SKILL.md +461 -0
  158. package/skills/scientific/cobrapy/references/api_quick_reference.md +655 -0
  159. package/skills/scientific/cobrapy/references/workflows.md +593 -0
  160. package/skills/scientific/consciousness-council/SKILL.md +150 -0
  161. package/skills/scientific/consciousness-council/references/advanced-configurations.md +96 -0
  162. package/skills/scientific/dask/SKILL.md +454 -0
  163. package/skills/scientific/dask/references/arrays.md +497 -0
  164. package/skills/scientific/dask/references/bags.md +468 -0
  165. package/skills/scientific/dask/references/best-practices.md +277 -0
  166. package/skills/scientific/dask/references/dataframes.md +368 -0
  167. package/skills/scientific/dask/references/futures.md +541 -0
  168. package/skills/scientific/dask/references/schedulers.md +504 -0
  169. package/skills/scientific/database-lookup/SKILL.md +1 -1
  170. package/skills/scientific/database-lookup/references/simbad.md +303 -29
  171. package/skills/scientific/datamol/SKILL.md +704 -0
  172. package/skills/scientific/datamol/references/conformers_module.md +131 -0
  173. package/skills/scientific/datamol/references/core_api.md +130 -0
  174. package/skills/scientific/datamol/references/descriptors_viz.md +195 -0
  175. package/skills/scientific/datamol/references/fragments_scaffolds.md +174 -0
  176. package/skills/scientific/datamol/references/io_module.md +109 -0
  177. package/skills/scientific/datamol/references/reactions_data.md +218 -0
  178. package/skills/scientific/deepchem/SKILL.md +595 -0
  179. package/skills/scientific/deepchem/references/api_reference.md +303 -0
  180. package/skills/scientific/deepchem/references/workflows.md +491 -0
  181. package/skills/scientific/deepchem/scripts/graph_neural_network.py +338 -0
  182. package/skills/scientific/deepchem/scripts/predict_solubility.py +224 -0
  183. package/skills/scientific/deepchem/scripts/transfer_learning.py +375 -0
  184. package/skills/scientific/deeptools/SKILL.md +529 -0
  185. package/skills/scientific/deeptools/assets/quick_reference.md +58 -0
  186. package/skills/scientific/deeptools/references/effective_genome_sizes.md +116 -0
  187. package/skills/scientific/deeptools/references/normalization_methods.md +410 -0
  188. package/skills/scientific/deeptools/references/tools_reference.md +533 -0
  189. package/skills/scientific/deeptools/references/workflows.md +474 -0
  190. package/skills/scientific/deeptools/scripts/validate_files.py +195 -0
  191. package/skills/scientific/deeptools/scripts/workflow_generator.py +454 -0
  192. package/skills/scientific/depmap/SKILL.md +300 -0
  193. package/skills/scientific/depmap/references/dependency_analysis.md +178 -0
  194. package/skills/scientific/dhdna-profiler/SKILL.md +162 -0
  195. package/skills/scientific/dhdna-profiler/references/advanced-profiling.md +72 -0
  196. package/skills/scientific/diffdock/SKILL.md +481 -0
  197. package/skills/scientific/diffdock/assets/batch_template.csv +4 -0
  198. package/skills/scientific/diffdock/assets/custom_inference_config.yaml +90 -0
  199. package/skills/scientific/diffdock/references/confidence_and_limitations.md +182 -0
  200. package/skills/scientific/diffdock/references/parameters_reference.md +163 -0
  201. package/skills/scientific/diffdock/references/workflows_examples.md +392 -0
  202. package/skills/scientific/diffdock/scripts/analyze_results.py +334 -0
  203. package/skills/scientific/diffdock/scripts/prepare_batch_csv.py +254 -0
  204. package/skills/scientific/diffdock/scripts/setup_check.py +278 -0
  205. package/skills/scientific/dnanexus-integration/SKILL.md +381 -0
  206. package/skills/scientific/dnanexus-integration/references/app-development.md +247 -0
  207. package/skills/scientific/dnanexus-integration/references/configuration.md +646 -0
  208. package/skills/scientific/dnanexus-integration/references/data-operations.md +400 -0
  209. package/skills/scientific/dnanexus-integration/references/job-execution.md +412 -0
  210. package/skills/scientific/dnanexus-integration/references/python-sdk.md +523 -0
  211. package/skills/scientific/docx/LICENSE.txt +30 -0
  212. package/skills/scientific/docx/SKILL.md +590 -0
  213. package/skills/scientific/docx/scripts/__init__.py +1 -0
  214. package/skills/scientific/docx/scripts/accept_changes.py +135 -0
  215. package/skills/scientific/docx/scripts/comment.py +318 -0
  216. package/skills/scientific/docx/scripts/office/helpers/__init__.py +0 -0
  217. package/skills/scientific/docx/scripts/office/helpers/merge_runs.py +199 -0
  218. package/skills/scientific/docx/scripts/office/helpers/simplify_redlines.py +197 -0
  219. package/skills/scientific/docx/scripts/office/pack.py +159 -0
  220. package/skills/scientific/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
  221. package/skills/scientific/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
  222. package/skills/scientific/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
  223. package/skills/scientific/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
  224. package/skills/scientific/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
  225. package/skills/scientific/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
  226. package/skills/scientific/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
  227. package/skills/scientific/docx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
  228. package/skills/scientific/docx/scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
  229. package/skills/scientific/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
  230. package/skills/scientific/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
  231. package/skills/scientific/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
  232. package/skills/scientific/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
  233. package/skills/scientific/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
  234. package/skills/scientific/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
  235. package/skills/scientific/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
  236. package/skills/scientific/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
  237. package/skills/scientific/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
  238. package/skills/scientific/docx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
  239. package/skills/scientific/docx/scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
  240. package/skills/scientific/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
  241. package/skills/scientific/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
  242. package/skills/scientific/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
  243. package/skills/scientific/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
  244. package/skills/scientific/docx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
  245. package/skills/scientific/docx/scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
  246. package/skills/scientific/docx/scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
  247. package/skills/scientific/docx/scripts/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
  248. package/skills/scientific/docx/scripts/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
  249. package/skills/scientific/docx/scripts/office/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
  250. package/skills/scientific/docx/scripts/office/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
  251. package/skills/scientific/docx/scripts/office/schemas/mce/mc.xsd +75 -0
  252. package/skills/scientific/docx/scripts/office/schemas/microsoft/wml-2010.xsd +560 -0
  253. package/skills/scientific/docx/scripts/office/schemas/microsoft/wml-2012.xsd +67 -0
  254. package/skills/scientific/docx/scripts/office/schemas/microsoft/wml-2018.xsd +14 -0
  255. package/skills/scientific/docx/scripts/office/schemas/microsoft/wml-cex-2018.xsd +20 -0
  256. package/skills/scientific/docx/scripts/office/schemas/microsoft/wml-cid-2016.xsd +13 -0
  257. package/skills/scientific/docx/scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
  258. package/skills/scientific/docx/scripts/office/schemas/microsoft/wml-symex-2015.xsd +8 -0
  259. package/skills/scientific/docx/scripts/office/soffice.py +183 -0
  260. package/skills/scientific/docx/scripts/office/unpack.py +132 -0
  261. package/skills/scientific/docx/scripts/office/validate.py +111 -0
  262. package/skills/scientific/docx/scripts/office/validators/__init__.py +15 -0
  263. package/skills/scientific/docx/scripts/office/validators/base.py +847 -0
  264. package/skills/scientific/docx/scripts/office/validators/docx.py +446 -0
  265. package/skills/scientific/docx/scripts/office/validators/pptx.py +275 -0
  266. package/skills/scientific/docx/scripts/office/validators/redlining.py +247 -0
  267. package/skills/scientific/docx/scripts/templates/comments.xml +3 -0
  268. package/skills/scientific/docx/scripts/templates/commentsExtended.xml +3 -0
  269. package/skills/scientific/docx/scripts/templates/commentsExtensible.xml +3 -0
  270. package/skills/scientific/docx/scripts/templates/commentsIds.xml +3 -0
  271. package/skills/scientific/docx/scripts/templates/people.xml +3 -0
  272. package/skills/scientific/esm/SKILL.md +304 -0
  273. package/skills/scientific/esm/references/esm-c-api.md +583 -0
  274. package/skills/scientific/esm/references/esm3-api.md +452 -0
  275. package/skills/scientific/esm/references/forge-api.md +657 -0
  276. package/skills/scientific/esm/references/workflows.md +685 -0
  277. package/skills/scientific/etetoolkit/SKILL.md +621 -0
  278. package/skills/scientific/etetoolkit/references/api_reference.md +583 -0
  279. package/skills/scientific/etetoolkit/references/visualization.md +783 -0
  280. package/skills/scientific/etetoolkit/references/workflows.md +774 -0
  281. package/skills/scientific/etetoolkit/scripts/quick_visualize.py +214 -0
  282. package/skills/scientific/etetoolkit/scripts/tree_operations.py +229 -0
  283. package/skills/scientific/exa-search/SKILL.md +95 -0
  284. package/skills/scientific/exa-search/references/web-extract.md +53 -0
  285. package/skills/scientific/exa-search/references/web-search.md +119 -0
  286. package/skills/scientific/exa-search/scripts/exa_extract.py +117 -0
  287. package/skills/scientific/exa-search/scripts/exa_search.py +179 -0
  288. package/skills/scientific/exa-search/tests/test_exa_search.py +217 -0
  289. package/skills/scientific/exploratory-data-analysis/SKILL.md +444 -0
  290. package/skills/scientific/exploratory-data-analysis/assets/report_template.md +196 -0
  291. package/skills/scientific/exploratory-data-analysis/references/bioinformatics_genomics_formats.md +664 -0
  292. package/skills/scientific/exploratory-data-analysis/references/chemistry_molecular_formats.md +664 -0
  293. package/skills/scientific/exploratory-data-analysis/references/general_scientific_formats.md +518 -0
  294. package/skills/scientific/exploratory-data-analysis/references/microscopy_imaging_formats.md +620 -0
  295. package/skills/scientific/exploratory-data-analysis/references/proteomics_metabolomics_formats.md +517 -0
  296. package/skills/scientific/exploratory-data-analysis/references/spectroscopy_analytical_formats.md +633 -0
  297. package/skills/scientific/exploratory-data-analysis/scripts/eda_analyzer.py +547 -0
  298. package/skills/scientific/flowio/SKILL.md +606 -0
  299. package/skills/scientific/flowio/references/api_reference.md +372 -0
  300. package/skills/scientific/fluidsim/SKILL.md +347 -0
  301. package/skills/scientific/fluidsim/references/advanced_features.md +398 -0
  302. package/skills/scientific/fluidsim/references/installation.md +68 -0
  303. package/skills/scientific/fluidsim/references/output_analysis.md +283 -0
  304. package/skills/scientific/fluidsim/references/parameters.md +198 -0
  305. package/skills/scientific/fluidsim/references/simulation_workflow.md +172 -0
  306. package/skills/scientific/fluidsim/references/solvers.md +94 -0
  307. package/skills/scientific/generate-image/SKILL.md +183 -0
  308. package/skills/scientific/generate-image/scripts/generate_image.py +281 -0
  309. package/skills/scientific/geniml/SKILL.md +316 -0
  310. package/skills/scientific/geniml/references/bedspace.md +127 -0
  311. package/skills/scientific/geniml/references/consensus_peaks.md +238 -0
  312. package/skills/scientific/geniml/references/region2vec.md +90 -0
  313. package/skills/scientific/geniml/references/scembed.md +197 -0
  314. package/skills/scientific/geniml/references/utilities.md +385 -0
  315. package/skills/scientific/geomaster/README.md +105 -0
  316. package/skills/scientific/geomaster/SKILL.md +365 -0
  317. package/skills/scientific/geomaster/references/advanced-gis.md +376 -0
  318. package/skills/scientific/geomaster/references/big-data.md +363 -0
  319. package/skills/scientific/geomaster/references/code-examples.md +531 -0
  320. package/skills/scientific/geomaster/references/coordinate-systems.md +364 -0
  321. package/skills/scientific/geomaster/references/core-libraries.md +273 -0
  322. package/skills/scientific/geomaster/references/data-sources.md +330 -0
  323. package/skills/scientific/geomaster/references/gis-software.md +369 -0
  324. package/skills/scientific/geomaster/references/industry-applications.md +420 -0
  325. package/skills/scientific/geomaster/references/machine-learning.md +462 -0
  326. package/skills/scientific/geomaster/references/programming-languages.md +456 -0
  327. package/skills/scientific/geomaster/references/remote-sensing.md +370 -0
  328. package/skills/scientific/geomaster/references/scientific-domains.md +416 -0
  329. package/skills/scientific/geomaster/references/specialized-topics.md +428 -0
  330. package/skills/scientific/geomaster/references/troubleshooting.md +439 -0
  331. package/skills/scientific/geopandas/SKILL.md +249 -0
  332. package/skills/scientific/geopandas/references/crs-management.md +243 -0
  333. package/skills/scientific/geopandas/references/data-io.md +165 -0
  334. package/skills/scientific/geopandas/references/data-structures.md +70 -0
  335. package/skills/scientific/geopandas/references/geometric-operations.md +221 -0
  336. package/skills/scientific/geopandas/references/spatial-analysis.md +184 -0
  337. package/skills/scientific/geopandas/references/visualization.md +243 -0
  338. package/skills/scientific/get-available-resources/SKILL.md +275 -0
  339. package/skills/scientific/get-available-resources/scripts/detect_resources.py +402 -0
  340. package/skills/scientific/gget/SKILL.md +869 -0
  341. package/skills/scientific/gget/references/database_info.md +300 -0
  342. package/skills/scientific/gget/references/module_reference.md +467 -0
  343. package/skills/scientific/gget/references/workflows.md +814 -0
  344. package/skills/scientific/gget/scripts/batch_sequence_analysis.py +191 -0
  345. package/skills/scientific/gget/scripts/enrichment_pipeline.py +235 -0
  346. package/skills/scientific/gget/scripts/gene_analysis.py +161 -0
  347. package/skills/scientific/ginkgo-cloud-lab/SKILL.md +56 -0
  348. package/skills/scientific/ginkgo-cloud-lab/references/cell-free-protein-expression-optimization.md +85 -0
  349. package/skills/scientific/ginkgo-cloud-lab/references/cell-free-protein-expression-validation.md +71 -0
  350. package/skills/scientific/ginkgo-cloud-lab/references/fluorescent-pixel-art-generation.md +87 -0
  351. package/skills/scientific/glycoengineering/SKILL.md +338 -0
  352. package/skills/scientific/glycoengineering/references/glycan_databases.md +165 -0
  353. package/skills/scientific/gtars/SKILL.md +283 -0
  354. package/skills/scientific/gtars/references/cli.md +222 -0
  355. package/skills/scientific/gtars/references/coverage.md +172 -0
  356. package/skills/scientific/gtars/references/overlap.md +156 -0
  357. package/skills/scientific/gtars/references/python-api.md +211 -0
  358. package/skills/scientific/gtars/references/refget.md +147 -0
  359. package/skills/scientific/gtars/references/tokenizers.md +103 -0
  360. package/skills/scientific/histolab/SKILL.md +676 -0
  361. package/skills/scientific/histolab/references/filters_preprocessing.md +514 -0
  362. package/skills/scientific/histolab/references/slide_management.md +172 -0
  363. package/skills/scientific/histolab/references/tile_extraction.md +421 -0
  364. package/skills/scientific/histolab/references/tissue_masks.md +251 -0
  365. package/skills/scientific/histolab/references/visualization.md +547 -0
  366. package/skills/scientific/hugging-science/SKILL.md +131 -0
  367. package/skills/scientific/hugging-science/references/flagship-resources.md +81 -0
  368. package/skills/scientific/hugging-science/references/topics-and-slugs.md +82 -0
  369. package/skills/scientific/hugging-science/references/using-datasets.md +107 -0
  370. package/skills/scientific/hugging-science/references/using-models.md +120 -0
  371. package/skills/scientific/hugging-science/references/using-spaces.md +117 -0
  372. package/skills/scientific/hugging-science/scripts/fetch_catalog.py +305 -0
  373. package/skills/scientific/hypogenic/SKILL.md +655 -0
  374. package/skills/scientific/hypogenic/references/config_template.yaml +150 -0
  375. package/skills/scientific/hypothesis-generation/SKILL.md +1 -1
  376. package/skills/scientific/imaging-data-commons/SKILL.md +862 -0
  377. package/skills/scientific/imaging-data-commons/references/bigquery_guide.md +858 -0
  378. package/skills/scientific/imaging-data-commons/references/cli_guide.md +272 -0
  379. package/skills/scientific/imaging-data-commons/references/clinical_data_guide.md +329 -0
  380. package/skills/scientific/imaging-data-commons/references/cloud_storage_guide.md +333 -0
  381. package/skills/scientific/imaging-data-commons/references/dicomweb_guide.md +399 -0
  382. package/skills/scientific/imaging-data-commons/references/digital_pathology_guide.md +403 -0
  383. package/skills/scientific/imaging-data-commons/references/index_tables_guide.md +151 -0
  384. package/skills/scientific/imaging-data-commons/references/parquet_access_guide.md +196 -0
  385. package/skills/scientific/imaging-data-commons/references/sql_patterns.md +286 -0
  386. package/skills/scientific/imaging-data-commons/references/use_cases.md +186 -0
  387. package/skills/scientific/infographics/SKILL.md +563 -0
  388. package/skills/scientific/infographics/references/color_palettes.md +496 -0
  389. package/skills/scientific/infographics/references/design_principles.md +636 -0
  390. package/skills/scientific/infographics/references/infographic_types.md +907 -0
  391. package/skills/scientific/infographics/scripts/generate_infographic.py +234 -0
  392. package/skills/scientific/infographics/scripts/generate_infographic_ai.py +1320 -0
  393. package/skills/scientific/iso-13485-certification/SKILL.md +678 -0
  394. package/skills/scientific/iso-13485-certification/assets/templates/procedures/CAPA-procedure-template.md +453 -0
  395. package/skills/scientific/iso-13485-certification/assets/templates/procedures/document-control-procedure-template.md +567 -0
  396. package/skills/scientific/iso-13485-certification/assets/templates/quality-manual-template.md +521 -0
  397. package/skills/scientific/iso-13485-certification/references/gap-analysis-checklist.md +568 -0
  398. package/skills/scientific/iso-13485-certification/references/iso-13485-requirements.md +610 -0
  399. package/skills/scientific/iso-13485-certification/references/mandatory-documents.md +606 -0
  400. package/skills/scientific/iso-13485-certification/references/quality-manual-guide.md +688 -0
  401. package/skills/scientific/iso-13485-certification/scripts/gap_analyzer.py +439 -0
  402. package/skills/scientific/labarchive-integration/SKILL.md +266 -0
  403. package/skills/scientific/labarchive-integration/references/api_reference.md +342 -0
  404. package/skills/scientific/labarchive-integration/references/authentication_guide.md +357 -0
  405. package/skills/scientific/labarchive-integration/references/integrations.md +425 -0
  406. package/skills/scientific/labarchive-integration/scripts/entry_operations.py +334 -0
  407. package/skills/scientific/labarchive-integration/scripts/notebook_operations.py +269 -0
  408. package/skills/scientific/labarchive-integration/scripts/setup_config.py +205 -0
  409. package/skills/scientific/lamindb/SKILL.md +388 -0
  410. package/skills/scientific/lamindb/references/annotation-validation.md +513 -0
  411. package/skills/scientific/lamindb/references/core-concepts.md +380 -0
  412. package/skills/scientific/lamindb/references/data-management.md +433 -0
  413. package/skills/scientific/lamindb/references/integrations.md +642 -0
  414. package/skills/scientific/lamindb/references/ontologies.md +497 -0
  415. package/skills/scientific/lamindb/references/setup-deployment.md +733 -0
  416. package/skills/scientific/latchbio-integration/SKILL.md +351 -0
  417. package/skills/scientific/latchbio-integration/references/data-management.md +427 -0
  418. package/skills/scientific/latchbio-integration/references/resource-configuration.md +429 -0
  419. package/skills/scientific/latchbio-integration/references/verified-workflows.md +487 -0
  420. package/skills/scientific/latchbio-integration/references/workflow-creation.md +254 -0
  421. package/skills/scientific/latex-posters/SKILL.md +1594 -0
  422. package/skills/scientific/latex-posters/assets/baposter_template.tex +257 -0
  423. package/skills/scientific/latex-posters/assets/beamerposter_template.tex +244 -0
  424. package/skills/scientific/latex-posters/assets/poster_quality_checklist.md +358 -0
  425. package/skills/scientific/latex-posters/assets/tikzposter_template.tex +251 -0
  426. package/skills/scientific/latex-posters/references/README.md +417 -0
  427. package/skills/scientific/latex-posters/references/latex_poster_packages.md +745 -0
  428. package/skills/scientific/latex-posters/references/poster_content_guide.md +748 -0
  429. package/skills/scientific/latex-posters/references/poster_design_principles.md +806 -0
  430. package/skills/scientific/latex-posters/references/poster_layout_design.md +900 -0
  431. package/skills/scientific/latex-posters/scripts/generate_schematic.py +139 -0
  432. package/skills/scientific/latex-posters/scripts/generate_schematic_ai.py +817 -0
  433. package/skills/scientific/latex-posters/scripts/review_poster.sh +214 -0
  434. package/skills/scientific/literature-review/SKILL.md +1 -1
  435. package/skills/scientific/markdown-mermaid-writing/SKILL.md +1 -1
  436. package/skills/scientific/market-research-reports/SKILL.md +905 -0
  437. package/skills/scientific/market-research-reports/assets/FORMATTING_GUIDE.md +428 -0
  438. package/skills/scientific/market-research-reports/assets/market_report_template.tex +1380 -0
  439. package/skills/scientific/market-research-reports/assets/market_research.sty +564 -0
  440. package/skills/scientific/market-research-reports/references/data_analysis_patterns.md +548 -0
  441. package/skills/scientific/market-research-reports/references/report_structure_guide.md +999 -0
  442. package/skills/scientific/market-research-reports/references/visual_generation_guide.md +1077 -0
  443. package/skills/scientific/market-research-reports/scripts/generate_market_visuals.py +529 -0
  444. package/skills/scientific/markitdown/SKILL.md +488 -0
  445. package/skills/scientific/markitdown/assets/example_usage.md +463 -0
  446. package/skills/scientific/markitdown/references/api_reference.md +396 -0
  447. package/skills/scientific/markitdown/references/file_formats.md +542 -0
  448. package/skills/scientific/markitdown/scripts/batch_convert.py +228 -0
  449. package/skills/scientific/markitdown/scripts/convert_literature.py +283 -0
  450. package/skills/scientific/markitdown/scripts/convert_with_ai.py +240 -0
  451. package/skills/scientific/markitdown/scripts/generate_schematic.py +139 -0
  452. package/skills/scientific/markitdown/scripts/generate_schematic_ai.py +817 -0
  453. package/skills/scientific/matchms/SKILL.md +201 -0
  454. package/skills/scientific/matchms/references/filtering.md +288 -0
  455. package/skills/scientific/matchms/references/importing_exporting.md +416 -0
  456. package/skills/scientific/matchms/references/similarity.md +380 -0
  457. package/skills/scientific/matchms/references/workflows.md +647 -0
  458. package/skills/scientific/matlab/SKILL.md +372 -0
  459. package/skills/scientific/matlab/references/data-import-export.md +479 -0
  460. package/skills/scientific/matlab/references/executing-scripts.md +444 -0
  461. package/skills/scientific/matlab/references/graphics-visualization.md +579 -0
  462. package/skills/scientific/matlab/references/mathematics.md +553 -0
  463. package/skills/scientific/matlab/references/matrices-arrays.md +349 -0
  464. package/skills/scientific/matlab/references/octave-compatibility.md +544 -0
  465. package/skills/scientific/matlab/references/programming.md +672 -0
  466. package/skills/scientific/matlab/references/python-integration.md +433 -0
  467. package/skills/scientific/matplotlib/SKILL.md +359 -0
  468. package/skills/scientific/matplotlib/references/api_reference.md +412 -0
  469. package/skills/scientific/matplotlib/references/common_issues.md +563 -0
  470. package/skills/scientific/matplotlib/references/plot_types.md +476 -0
  471. package/skills/scientific/matplotlib/references/styling_guide.md +589 -0
  472. package/skills/scientific/matplotlib/scripts/plot_template.py +401 -0
  473. package/skills/scientific/matplotlib/scripts/style_configurator.py +409 -0
  474. package/skills/scientific/medchem/SKILL.md +404 -0
  475. package/skills/scientific/medchem/references/api_guide.md +600 -0
  476. package/skills/scientific/medchem/references/rules_catalog.md +604 -0
  477. package/skills/scientific/medchem/scripts/filter_molecules.py +418 -0
  478. package/skills/scientific/modal/SKILL.md +406 -0
  479. package/skills/scientific/modal/references/api_reference.md +187 -0
  480. package/skills/scientific/modal/references/examples.md +266 -0
  481. package/skills/scientific/modal/references/functions.md +260 -0
  482. package/skills/scientific/modal/references/getting-started.md +175 -0
  483. package/skills/scientific/modal/references/gpu.md +174 -0
  484. package/skills/scientific/modal/references/images.md +259 -0
  485. package/skills/scientific/modal/references/resources.md +117 -0
  486. package/skills/scientific/modal/references/scaling.md +173 -0
  487. package/skills/scientific/modal/references/scheduled-jobs.md +143 -0
  488. package/skills/scientific/modal/references/secrets.md +119 -0
  489. package/skills/scientific/modal/references/volumes.md +247 -0
  490. package/skills/scientific/modal/references/web-endpoints.md +254 -0
  491. package/skills/scientific/molecular-dynamics/SKILL.md +457 -0
  492. package/skills/scientific/molecular-dynamics/references/mdanalysis_analysis.md +208 -0
  493. package/skills/scientific/molfeat/SKILL.md +509 -0
  494. package/skills/scientific/molfeat/references/api_reference.md +428 -0
  495. package/skills/scientific/molfeat/references/available_featurizers.md +333 -0
  496. package/skills/scientific/molfeat/references/examples.md +723 -0
  497. package/skills/scientific/networkx/SKILL.md +435 -0
  498. package/skills/scientific/networkx/references/algorithms.md +383 -0
  499. package/skills/scientific/networkx/references/generators.md +378 -0
  500. package/skills/scientific/networkx/references/graph-basics.md +283 -0
  501. package/skills/scientific/networkx/references/io.md +441 -0
  502. package/skills/scientific/networkx/references/visualization.md +529 -0
  503. package/skills/scientific/neurokit2/SKILL.md +354 -0
  504. package/skills/scientific/neurokit2/references/bio_module.md +417 -0
  505. package/skills/scientific/neurokit2/references/complexity.md +715 -0
  506. package/skills/scientific/neurokit2/references/ecg_cardiac.md +355 -0
  507. package/skills/scientific/neurokit2/references/eda.md +497 -0
  508. package/skills/scientific/neurokit2/references/eeg.md +506 -0
  509. package/skills/scientific/neurokit2/references/emg.md +408 -0
  510. package/skills/scientific/neurokit2/references/eog.md +407 -0
  511. package/skills/scientific/neurokit2/references/epochs_events.md +471 -0
  512. package/skills/scientific/neurokit2/references/hrv.md +480 -0
  513. package/skills/scientific/neurokit2/references/ppg.md +413 -0
  514. package/skills/scientific/neurokit2/references/rsp.md +510 -0
  515. package/skills/scientific/neurokit2/references/signal_processing.md +648 -0
  516. package/skills/scientific/neuropixels-analysis/SKILL.md +348 -0
  517. package/skills/scientific/neuropixels-analysis/assets/analysis_template.py +271 -0
  518. package/skills/scientific/neuropixels-analysis/references/AI_CURATION.md +345 -0
  519. package/skills/scientific/neuropixels-analysis/references/ANALYSIS.md +392 -0
  520. package/skills/scientific/neuropixels-analysis/references/AUTOMATED_CURATION.md +358 -0
  521. package/skills/scientific/neuropixels-analysis/references/MOTION_CORRECTION.md +323 -0
  522. package/skills/scientific/neuropixels-analysis/references/PREPROCESSING.md +273 -0
  523. package/skills/scientific/neuropixels-analysis/references/QUALITY_METRICS.md +359 -0
  524. package/skills/scientific/neuropixels-analysis/references/SPIKE_SORTING.md +339 -0
  525. package/skills/scientific/neuropixels-analysis/references/api_reference.md +415 -0
  526. package/skills/scientific/neuropixels-analysis/references/plotting_guide.md +454 -0
  527. package/skills/scientific/neuropixels-analysis/references/standard_workflow.md +385 -0
  528. package/skills/scientific/neuropixels-analysis/scripts/compute_metrics.py +178 -0
  529. package/skills/scientific/neuropixels-analysis/scripts/explore_recording.py +168 -0
  530. package/skills/scientific/neuropixels-analysis/scripts/export_to_phy.py +79 -0
  531. package/skills/scientific/neuropixels-analysis/scripts/neuropixels_pipeline.py +432 -0
  532. package/skills/scientific/neuropixels-analysis/scripts/preprocess_recording.py +122 -0
  533. package/skills/scientific/neuropixels-analysis/scripts/run_sorting.py +98 -0
  534. package/skills/scientific/omero-integration/SKILL.md +249 -0
  535. package/skills/scientific/omero-integration/references/advanced.md +631 -0
  536. package/skills/scientific/omero-integration/references/connection.md +369 -0
  537. package/skills/scientific/omero-integration/references/data_access.md +544 -0
  538. package/skills/scientific/omero-integration/references/image_processing.md +665 -0
  539. package/skills/scientific/omero-integration/references/metadata.md +688 -0
  540. package/skills/scientific/omero-integration/references/rois.md +648 -0
  541. package/skills/scientific/omero-integration/references/scripts.md +637 -0
  542. package/skills/scientific/omero-integration/references/tables.md +532 -0
  543. package/skills/scientific/open-notebook/SKILL.md +285 -0
  544. package/skills/scientific/open-notebook/references/api_reference.md +715 -0
  545. package/skills/scientific/open-notebook/references/architecture.md +163 -0
  546. package/skills/scientific/open-notebook/references/configuration.md +226 -0
  547. package/skills/scientific/open-notebook/references/examples.md +290 -0
  548. package/skills/scientific/open-notebook/scripts/chat_interaction.py +190 -0
  549. package/skills/scientific/open-notebook/scripts/notebook_management.py +142 -0
  550. package/skills/scientific/open-notebook/scripts/source_ingestion.py +160 -0
  551. package/skills/scientific/open-notebook/scripts/test_open_notebook_skill.py +414 -0
  552. package/skills/scientific/opentrons-integration/SKILL.md +571 -0
  553. package/skills/scientific/opentrons-integration/references/api_reference.md +366 -0
  554. package/skills/scientific/opentrons-integration/scripts/basic_protocol_template.py +67 -0
  555. package/skills/scientific/opentrons-integration/scripts/pcr_setup_template.py +154 -0
  556. package/skills/scientific/opentrons-integration/scripts/serial_dilution_template.py +96 -0
  557. package/skills/scientific/optimize-for-gpu/SKILL.md +700 -0
  558. package/skills/scientific/optimize-for-gpu/references/cucim.md +672 -0
  559. package/skills/scientific/optimize-for-gpu/references/cudf.md +758 -0
  560. package/skills/scientific/optimize-for-gpu/references/cugraph.md +747 -0
  561. package/skills/scientific/optimize-for-gpu/references/cuml.md +695 -0
  562. package/skills/scientific/optimize-for-gpu/references/cupy.md +658 -0
  563. package/skills/scientific/optimize-for-gpu/references/cuspatial.md +415 -0
  564. package/skills/scientific/optimize-for-gpu/references/cuvs.md +642 -0
  565. package/skills/scientific/optimize-for-gpu/references/cuxfilter.md +596 -0
  566. package/skills/scientific/optimize-for-gpu/references/kvikio.md +607 -0
  567. package/skills/scientific/optimize-for-gpu/references/numba.md +775 -0
  568. package/skills/scientific/optimize-for-gpu/references/raft.md +307 -0
  569. package/skills/scientific/optimize-for-gpu/references/warp.md +613 -0
  570. package/skills/scientific/pacsomatic/LICENSE +21 -0
  571. package/skills/scientific/pacsomatic/SKILL.md +149 -0
  572. package/skills/scientific/pacsomatic/config.yaml +42 -0
  573. package/skills/scientific/pacsomatic/references/agent-playbook.md +73 -0
  574. package/skills/scientific/pacsomatic/references/config-and-output.md +100 -0
  575. package/skills/scientific/pacsomatic/references/pacsomatic_guide.md +254 -0
  576. package/skills/scientific/pacsomatic/scripts/run_pacsomatic.py +732 -0
  577. package/skills/scientific/pacsomatic/tests/test_run_pacsomatic.py +77 -0
  578. package/skills/scientific/paper-lookup/SKILL.md +1 -1
  579. package/skills/scientific/paperzilla/SKILL.md +158 -0
  580. package/skills/scientific/parallel-web/SKILL.md +103 -0
  581. package/skills/scientific/parallel-web/references/data-enrichment.md +72 -0
  582. package/skills/scientific/parallel-web/references/deep-research.md +80 -0
  583. package/skills/scientific/parallel-web/references/web-extract.md +45 -0
  584. package/skills/scientific/parallel-web/references/web-search.md +73 -0
  585. package/skills/scientific/pathml/SKILL.md +164 -0
  586. package/skills/scientific/pathml/references/data_management.md +742 -0
  587. package/skills/scientific/pathml/references/graphs.md +653 -0
  588. package/skills/scientific/pathml/references/image_loading.md +448 -0
  589. package/skills/scientific/pathml/references/machine_learning.md +725 -0
  590. package/skills/scientific/pathml/references/multiparametric.md +686 -0
  591. package/skills/scientific/pathml/references/preprocessing.md +722 -0
  592. package/skills/scientific/pdf/LICENSE.txt +30 -0
  593. package/skills/scientific/pdf/SKILL.md +314 -0
  594. package/skills/scientific/pdf/forms.md +294 -0
  595. package/skills/scientific/pdf/reference.md +612 -0
  596. package/skills/scientific/pdf/scripts/check_bounding_boxes.py +65 -0
  597. package/skills/scientific/pdf/scripts/check_fillable_fields.py +11 -0
  598. package/skills/scientific/pdf/scripts/convert_pdf_to_images.py +33 -0
  599. package/skills/scientific/pdf/scripts/create_validation_image.py +37 -0
  600. package/skills/scientific/pdf/scripts/extract_form_field_info.py +122 -0
  601. package/skills/scientific/pdf/scripts/extract_form_structure.py +115 -0
  602. package/skills/scientific/pdf/scripts/fill_fillable_fields.py +98 -0
  603. package/skills/scientific/pdf/scripts/fill_pdf_form_with_annotations.py +107 -0
  604. package/skills/scientific/peer-review/SKILL.md +1 -1
  605. package/skills/scientific/pennylane/SKILL.md +224 -0
  606. package/skills/scientific/pennylane/references/advanced_features.md +667 -0
  607. package/skills/scientific/pennylane/references/devices_backends.md +596 -0
  608. package/skills/scientific/pennylane/references/getting_started.md +227 -0
  609. package/skills/scientific/pennylane/references/optimization.md +671 -0
  610. package/skills/scientific/pennylane/references/quantum_chemistry.md +567 -0
  611. package/skills/scientific/pennylane/references/quantum_circuits.md +437 -0
  612. package/skills/scientific/pennylane/references/quantum_ml.md +571 -0
  613. package/skills/scientific/phylogenetics/SKILL.md +404 -0
  614. package/skills/scientific/phylogenetics/references/iqtree_inference.md +181 -0
  615. package/skills/scientific/phylogenetics/scripts/phylogenetic_analysis.py +270 -0
  616. package/skills/scientific/polars/SKILL.md +385 -0
  617. package/skills/scientific/polars/references/best_practices.md +649 -0
  618. package/skills/scientific/polars/references/core_concepts.md +378 -0
  619. package/skills/scientific/polars/references/io_guide.md +557 -0
  620. package/skills/scientific/polars/references/operations.md +602 -0
  621. package/skills/scientific/polars/references/pandas_migration.md +417 -0
  622. package/skills/scientific/polars/references/transformations.md +549 -0
  623. package/skills/scientific/polars-bio/SKILL.md +374 -0
  624. package/skills/scientific/polars-bio/references/bioframe_migration.md +250 -0
  625. package/skills/scientific/polars-bio/references/configuration.md +175 -0
  626. package/skills/scientific/polars-bio/references/file_io.md +414 -0
  627. package/skills/scientific/polars-bio/references/interval_operations.md +362 -0
  628. package/skills/scientific/polars-bio/references/pileup_operations.md +176 -0
  629. package/skills/scientific/polars-bio/references/sql_processing.md +224 -0
  630. package/skills/scientific/pptx/LICENSE.txt +30 -0
  631. package/skills/scientific/pptx/SKILL.md +232 -0
  632. package/skills/scientific/pptx/editing.md +205 -0
  633. package/skills/scientific/pptx/pptxgenjs.md +420 -0
  634. package/skills/scientific/pptx/scripts/__init__.py +0 -0
  635. package/skills/scientific/pptx/scripts/add_slide.py +195 -0
  636. package/skills/scientific/pptx/scripts/clean.py +286 -0
  637. package/skills/scientific/pptx/scripts/office/helpers/__init__.py +0 -0
  638. package/skills/scientific/pptx/scripts/office/helpers/merge_runs.py +199 -0
  639. package/skills/scientific/pptx/scripts/office/helpers/simplify_redlines.py +197 -0
  640. package/skills/scientific/pptx/scripts/office/pack.py +159 -0
  641. package/skills/scientific/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
  642. package/skills/scientific/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
  643. package/skills/scientific/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
  644. package/skills/scientific/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
  645. package/skills/scientific/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
  646. package/skills/scientific/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
  647. package/skills/scientific/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
  648. package/skills/scientific/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
  649. package/skills/scientific/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
  650. package/skills/scientific/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
  651. package/skills/scientific/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
  652. package/skills/scientific/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
  653. package/skills/scientific/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
  654. package/skills/scientific/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
  655. package/skills/scientific/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
  656. package/skills/scientific/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
  657. package/skills/scientific/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
  658. package/skills/scientific/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
  659. package/skills/scientific/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
  660. package/skills/scientific/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
  661. package/skills/scientific/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
  662. package/skills/scientific/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
  663. package/skills/scientific/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
  664. package/skills/scientific/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
  665. package/skills/scientific/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
  666. package/skills/scientific/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
  667. package/skills/scientific/pptx/scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
  668. package/skills/scientific/pptx/scripts/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
  669. package/skills/scientific/pptx/scripts/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
  670. package/skills/scientific/pptx/scripts/office/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
  671. package/skills/scientific/pptx/scripts/office/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
  672. package/skills/scientific/pptx/scripts/office/schemas/mce/mc.xsd +75 -0
  673. package/skills/scientific/pptx/scripts/office/schemas/microsoft/wml-2010.xsd +560 -0
  674. package/skills/scientific/pptx/scripts/office/schemas/microsoft/wml-2012.xsd +67 -0
  675. package/skills/scientific/pptx/scripts/office/schemas/microsoft/wml-2018.xsd +14 -0
  676. package/skills/scientific/pptx/scripts/office/schemas/microsoft/wml-cex-2018.xsd +20 -0
  677. package/skills/scientific/pptx/scripts/office/schemas/microsoft/wml-cid-2016.xsd +13 -0
  678. package/skills/scientific/pptx/scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
  679. package/skills/scientific/pptx/scripts/office/schemas/microsoft/wml-symex-2015.xsd +8 -0
  680. package/skills/scientific/pptx/scripts/office/soffice.py +183 -0
  681. package/skills/scientific/pptx/scripts/office/unpack.py +132 -0
  682. package/skills/scientific/pptx/scripts/office/validate.py +111 -0
  683. package/skills/scientific/pptx/scripts/office/validators/__init__.py +15 -0
  684. package/skills/scientific/pptx/scripts/office/validators/base.py +847 -0
  685. package/skills/scientific/pptx/scripts/office/validators/docx.py +446 -0
  686. package/skills/scientific/pptx/scripts/office/validators/pptx.py +275 -0
  687. package/skills/scientific/pptx/scripts/office/validators/redlining.py +247 -0
  688. package/skills/scientific/pptx/scripts/thumbnail.py +289 -0
  689. package/skills/scientific/pptx-posters/SKILL.md +414 -0
  690. package/skills/scientific/pptx-posters/assets/poster_html_template.html +257 -0
  691. package/skills/scientific/pptx-posters/assets/poster_quality_checklist.md +358 -0
  692. package/skills/scientific/pptx-posters/references/poster_content_guide.md +748 -0
  693. package/skills/scientific/pptx-posters/references/poster_design_principles.md +806 -0
  694. package/skills/scientific/pptx-posters/references/poster_layout_design.md +900 -0
  695. package/skills/scientific/pptx-posters/scripts/generate_schematic.py +139 -0
  696. package/skills/scientific/pptx-posters/scripts/generate_schematic_ai.py +817 -0
  697. package/skills/scientific/primekg/SKILL.md +97 -0
  698. package/skills/scientific/primekg/scripts/query_primekg.py +123 -0
  699. package/skills/scientific/protocolsio-integration/SKILL.md +419 -0
  700. package/skills/scientific/protocolsio-integration/references/additional_features.md +387 -0
  701. package/skills/scientific/protocolsio-integration/references/authentication.md +100 -0
  702. package/skills/scientific/protocolsio-integration/references/discussions.md +225 -0
  703. package/skills/scientific/protocolsio-integration/references/file_manager.md +412 -0
  704. package/skills/scientific/protocolsio-integration/references/protocols_api.md +294 -0
  705. package/skills/scientific/protocolsio-integration/references/workspaces.md +293 -0
  706. package/skills/scientific/pufferlib/SKILL.md +434 -0
  707. package/skills/scientific/pufferlib/references/environments.md +508 -0
  708. package/skills/scientific/pufferlib/references/integration.md +621 -0
  709. package/skills/scientific/pufferlib/references/policies.md +653 -0
  710. package/skills/scientific/pufferlib/references/training.md +360 -0
  711. package/skills/scientific/pufferlib/references/vectorization.md +557 -0
  712. package/skills/scientific/pufferlib/scripts/env_template.py +340 -0
  713. package/skills/scientific/pufferlib/scripts/train_template.py +239 -0
  714. package/skills/scientific/pydeseq2/SKILL.md +557 -0
  715. package/skills/scientific/pydeseq2/references/api_reference.md +228 -0
  716. package/skills/scientific/pydeseq2/references/workflow_guide.md +582 -0
  717. package/skills/scientific/pydeseq2/scripts/run_deseq2_analysis.py +353 -0
  718. package/skills/scientific/pydicom/SKILL.md +432 -0
  719. package/skills/scientific/pydicom/references/common_tags.md +228 -0
  720. package/skills/scientific/pydicom/references/transfer_syntaxes.md +352 -0
  721. package/skills/scientific/pydicom/scripts/anonymize_dicom.py +137 -0
  722. package/skills/scientific/pydicom/scripts/dicom_to_image.py +172 -0
  723. package/skills/scientific/pydicom/scripts/extract_metadata.py +173 -0
  724. package/skills/scientific/pyhealth/SKILL.md +123 -0
  725. package/skills/scientific/pyhealth/assets/starter_pipeline.py +58 -0
  726. package/skills/scientific/pyhealth/references/datasets.md +126 -0
  727. package/skills/scientific/pyhealth/references/examples.md +237 -0
  728. package/skills/scientific/pyhealth/references/installation.md +112 -0
  729. package/skills/scientific/pyhealth/references/medcode.md +94 -0
  730. package/skills/scientific/pyhealth/references/models.md +114 -0
  731. package/skills/scientific/pyhealth/references/tasks.md +143 -0
  732. package/skills/scientific/pylabrobot/SKILL.md +183 -0
  733. package/skills/scientific/pylabrobot/references/analytical-equipment.md +464 -0
  734. package/skills/scientific/pylabrobot/references/hardware-backends.md +480 -0
  735. package/skills/scientific/pylabrobot/references/liquid-handling.md +403 -0
  736. package/skills/scientific/pylabrobot/references/material-handling.md +620 -0
  737. package/skills/scientific/pylabrobot/references/resources.md +489 -0
  738. package/skills/scientific/pylabrobot/references/visualization.md +532 -0
  739. package/skills/scientific/pymatgen/SKILL.md +689 -0
  740. package/skills/scientific/pymatgen/references/analysis_modules.md +530 -0
  741. package/skills/scientific/pymatgen/references/core_classes.md +318 -0
  742. package/skills/scientific/pymatgen/references/io_formats.md +469 -0
  743. package/skills/scientific/pymatgen/references/materials_project_api.md +517 -0
  744. package/skills/scientific/pymatgen/references/transformations_workflows.md +591 -0
  745. package/skills/scientific/pymatgen/scripts/phase_diagram_generator.py +233 -0
  746. package/skills/scientific/pymatgen/scripts/structure_analyzer.py +266 -0
  747. package/skills/scientific/pymatgen/scripts/structure_converter.py +169 -0
  748. package/skills/scientific/pymc/SKILL.md +570 -0
  749. package/skills/scientific/pymc/assets/hierarchical_model_template.py +333 -0
  750. package/skills/scientific/pymc/assets/linear_regression_template.py +241 -0
  751. package/skills/scientific/pymc/references/distributions.md +320 -0
  752. package/skills/scientific/pymc/references/sampling_inference.md +424 -0
  753. package/skills/scientific/pymc/references/workflows.md +526 -0
  754. package/skills/scientific/pymc/scripts/model_comparison.py +387 -0
  755. package/skills/scientific/pymc/scripts/model_diagnostics.py +350 -0
  756. package/skills/scientific/pymoo/SKILL.md +569 -0
  757. package/skills/scientific/pymoo/references/algorithms.md +180 -0
  758. package/skills/scientific/pymoo/references/constraints_mcdm.md +417 -0
  759. package/skills/scientific/pymoo/references/operators.md +345 -0
  760. package/skills/scientific/pymoo/references/problems.md +265 -0
  761. package/skills/scientific/pymoo/references/visualization.md +353 -0
  762. package/skills/scientific/pymoo/scripts/custom_problem_example.py +181 -0
  763. package/skills/scientific/pymoo/scripts/decision_making_example.py +161 -0
  764. package/skills/scientific/pymoo/scripts/many_objective_example.py +72 -0
  765. package/skills/scientific/pymoo/scripts/multi_objective_example.py +63 -0
  766. package/skills/scientific/pymoo/scripts/single_objective_example.py +59 -0
  767. package/skills/scientific/pyopenms/SKILL.md +215 -0
  768. package/skills/scientific/pyopenms/references/data_structures.md +497 -0
  769. package/skills/scientific/pyopenms/references/feature_detection.md +410 -0
  770. package/skills/scientific/pyopenms/references/file_io.md +349 -0
  771. package/skills/scientific/pyopenms/references/identification.md +422 -0
  772. package/skills/scientific/pyopenms/references/metabolomics.md +482 -0
  773. package/skills/scientific/pyopenms/references/signal_processing.md +433 -0
  774. package/skills/scientific/pyproject.toml +11 -0
  775. package/skills/scientific/pysam/SKILL.md +263 -0
  776. package/skills/scientific/pysam/references/alignment_files.md +280 -0
  777. package/skills/scientific/pysam/references/common_workflows.md +520 -0
  778. package/skills/scientific/pysam/references/sequence_files.md +407 -0
  779. package/skills/scientific/pysam/references/variant_files.md +365 -0
  780. package/skills/scientific/pytdc/SKILL.md +458 -0
  781. package/skills/scientific/pytdc/references/datasets.md +246 -0
  782. package/skills/scientific/pytdc/references/oracles.md +400 -0
  783. package/skills/scientific/pytdc/references/utilities.md +684 -0
  784. package/skills/scientific/pytdc/scripts/benchmark_evaluation.py +327 -0
  785. package/skills/scientific/pytdc/scripts/load_and_split_data.py +214 -0
  786. package/skills/scientific/pytdc/scripts/molecular_generation.py +404 -0
  787. package/skills/scientific/pytorch-lightning/SKILL.md +172 -0
  788. package/skills/scientific/pytorch-lightning/references/best_practices.md +724 -0
  789. package/skills/scientific/pytorch-lightning/references/callbacks.md +564 -0
  790. package/skills/scientific/pytorch-lightning/references/data_module.md +565 -0
  791. package/skills/scientific/pytorch-lightning/references/distributed_training.md +643 -0
  792. package/skills/scientific/pytorch-lightning/references/lightning_module.md +487 -0
  793. package/skills/scientific/pytorch-lightning/references/logging.md +654 -0
  794. package/skills/scientific/pytorch-lightning/references/trainer.md +641 -0
  795. package/skills/scientific/pytorch-lightning/scripts/quick_trainer_setup.py +454 -0
  796. package/skills/scientific/pytorch-lightning/scripts/template_datamodule.py +328 -0
  797. package/skills/scientific/pytorch-lightning/scripts/template_lightning_module.py +219 -0
  798. package/skills/scientific/pyzotero/SKILL.md +111 -0
  799. package/skills/scientific/pyzotero/references/authentication.md +90 -0
  800. package/skills/scientific/pyzotero/references/cli.md +100 -0
  801. package/skills/scientific/pyzotero/references/collections.md +113 -0
  802. package/skills/scientific/pyzotero/references/error-handling.md +103 -0
  803. package/skills/scientific/pyzotero/references/exports.md +102 -0
  804. package/skills/scientific/pyzotero/references/files-attachments.md +97 -0
  805. package/skills/scientific/pyzotero/references/full-text.md +68 -0
  806. package/skills/scientific/pyzotero/references/pagination.md +79 -0
  807. package/skills/scientific/pyzotero/references/read-api.md +137 -0
  808. package/skills/scientific/pyzotero/references/saved-searches.md +77 -0
  809. package/skills/scientific/pyzotero/references/search-params.md +90 -0
  810. package/skills/scientific/pyzotero/references/tags.md +87 -0
  811. package/skills/scientific/pyzotero/references/write-api.md +123 -0
  812. package/skills/scientific/qiskit/SKILL.md +273 -0
  813. package/skills/scientific/qiskit/references/algorithms.md +607 -0
  814. package/skills/scientific/qiskit/references/backends.md +433 -0
  815. package/skills/scientific/qiskit/references/circuits.md +197 -0
  816. package/skills/scientific/qiskit/references/patterns.md +533 -0
  817. package/skills/scientific/qiskit/references/primitives.md +277 -0
  818. package/skills/scientific/qiskit/references/setup.md +99 -0
  819. package/skills/scientific/qiskit/references/transpilation.md +286 -0
  820. package/skills/scientific/qiskit/references/visualization.md +415 -0
  821. package/skills/scientific/qutip/SKILL.md +316 -0
  822. package/skills/scientific/qutip/references/advanced.md +555 -0
  823. package/skills/scientific/qutip/references/analysis.md +523 -0
  824. package/skills/scientific/qutip/references/core_concepts.md +293 -0
  825. package/skills/scientific/qutip/references/time_evolution.md +348 -0
  826. package/skills/scientific/qutip/references/visualization.md +431 -0
  827. package/skills/scientific/rdkit/SKILL.md +780 -0
  828. package/skills/scientific/rdkit/references/api_reference.md +432 -0
  829. package/skills/scientific/rdkit/references/descriptors_reference.md +595 -0
  830. package/skills/scientific/rdkit/references/smarts_patterns.md +668 -0
  831. package/skills/scientific/rdkit/scripts/molecular_properties.py +243 -0
  832. package/skills/scientific/rdkit/scripts/similarity_search.py +297 -0
  833. package/skills/scientific/rdkit/scripts/substructure_filter.py +386 -0
  834. package/skills/scientific/research-grants/SKILL.md +940 -0
  835. package/skills/scientific/research-grants/assets/budget_justification_template.md +453 -0
  836. package/skills/scientific/research-grants/assets/nih_specific_aims_template.md +166 -0
  837. package/skills/scientific/research-grants/assets/nsf_project_summary_template.md +92 -0
  838. package/skills/scientific/research-grants/references/README.md +285 -0
  839. package/skills/scientific/research-grants/references/broader_impacts.md +392 -0
  840. package/skills/scientific/research-grants/references/darpa_guidelines.md +636 -0
  841. package/skills/scientific/research-grants/references/doe_guidelines.md +586 -0
  842. package/skills/scientific/research-grants/references/nih_guidelines.md +851 -0
  843. package/skills/scientific/research-grants/references/nsf_guidelines.md +570 -0
  844. package/skills/scientific/research-grants/references/nstc_guidelines.md +733 -0
  845. package/skills/scientific/research-grants/references/specific_aims_guide.md +458 -0
  846. package/skills/scientific/research-grants/scripts/generate_schematic.py +139 -0
  847. package/skills/scientific/research-grants/scripts/generate_schematic_ai.py +817 -0
  848. package/skills/scientific/research-lookup/README.md +156 -0
  849. package/skills/scientific/research-lookup/SKILL.md +550 -0
  850. package/skills/scientific/research-lookup/examples.py +174 -0
  851. package/skills/scientific/research-lookup/lookup.py +187 -0
  852. package/skills/scientific/research-lookup/research_lookup.py +566 -0
  853. package/skills/scientific/research-lookup/scripts/generate_schematic.py +139 -0
  854. package/skills/scientific/research-lookup/scripts/generate_schematic_ai.py +817 -0
  855. package/skills/scientific/research-lookup/scripts/research_lookup.py +566 -0
  856. package/skills/scientific/rowan/SKILL.md +1087 -0
  857. package/skills/scientific/scan_pr_skills.py +244 -0
  858. package/skills/scientific/scan_skills.py +224 -0
  859. package/skills/scientific/scanpy/SKILL.md +384 -0
  860. package/skills/scientific/scanpy/assets/analysis_template.py +295 -0
  861. package/skills/scientific/scanpy/references/api_reference.md +251 -0
  862. package/skills/scientific/scanpy/references/plotting_guide.md +352 -0
  863. package/skills/scientific/scanpy/references/standard_workflow.md +206 -0
  864. package/skills/scientific/scanpy/scripts/qc_analysis.py +200 -0
  865. package/skills/scientific/scholar-evaluation/SKILL.md +1 -1
  866. package/skills/scientific/scientific-brainstorming/SKILL.md +1 -1
  867. package/skills/scientific/scientific-critical-thinking/SKILL.md +1 -1
  868. package/skills/scientific/scientific-schematics/SKILL.md +618 -0
  869. package/skills/scientific/scientific-schematics/references/QUICK_REFERENCE.md +207 -0
  870. package/skills/scientific/scientific-schematics/references/README.md +327 -0
  871. package/skills/scientific/scientific-schematics/references/best_practices.md +560 -0
  872. package/skills/scientific/scientific-schematics/scripts/example_usage.sh +89 -0
  873. package/skills/scientific/scientific-schematics/scripts/generate_schematic.py +139 -0
  874. package/skills/scientific/scientific-schematics/scripts/generate_schematic_ai.py +817 -0
  875. package/skills/scientific/scientific-slides/SKILL.md +1154 -0
  876. package/skills/scientific/scientific-slides/assets/beamer_template_conference.tex +407 -0
  877. package/skills/scientific/scientific-slides/assets/beamer_template_defense.tex +906 -0
  878. package/skills/scientific/scientific-slides/assets/beamer_template_seminar.tex +870 -0
  879. package/skills/scientific/scientific-slides/assets/powerpoint_design_guide.md +662 -0
  880. package/skills/scientific/scientific-slides/assets/timing_guidelines.md +597 -0
  881. package/skills/scientific/scientific-slides/references/beamer_guide.md +1019 -0
  882. package/skills/scientific/scientific-slides/references/data_visualization_slides.md +708 -0
  883. package/skills/scientific/scientific-slides/references/presentation_structure.md +642 -0
  884. package/skills/scientific/scientific-slides/references/slide_design_principles.md +849 -0
  885. package/skills/scientific/scientific-slides/references/talk_types_guide.md +687 -0
  886. package/skills/scientific/scientific-slides/references/visual_review_workflow.md +775 -0
  887. package/skills/scientific/scientific-slides/scripts/generate_schematic.py +139 -0
  888. package/skills/scientific/scientific-slides/scripts/generate_schematic_ai.py +817 -0
  889. package/skills/scientific/scientific-slides/scripts/generate_slide_image.py +140 -0
  890. package/skills/scientific/scientific-slides/scripts/generate_slide_image_ai.py +740 -0
  891. package/skills/scientific/scientific-slides/scripts/pdf_to_images.py +221 -0
  892. package/skills/scientific/scientific-slides/scripts/slides_to_pdf.py +235 -0
  893. package/skills/scientific/scientific-slides/scripts/validate_presentation.py +403 -0
  894. package/skills/scientific/scientific-visualization/SKILL.md +777 -0
  895. package/skills/scientific/scientific-visualization/assets/color_palettes.py +197 -0
  896. package/skills/scientific/scientific-visualization/assets/nature.mplstyle +63 -0
  897. package/skills/scientific/scientific-visualization/assets/presentation.mplstyle +61 -0
  898. package/skills/scientific/scientific-visualization/assets/publication.mplstyle +68 -0
  899. package/skills/scientific/scientific-visualization/references/color_palettes.md +348 -0
  900. package/skills/scientific/scientific-visualization/references/journal_requirements.md +320 -0
  901. package/skills/scientific/scientific-visualization/references/matplotlib_examples.md +620 -0
  902. package/skills/scientific/scientific-visualization/references/publication_guidelines.md +205 -0
  903. package/skills/scientific/scientific-visualization/scripts/figure_export.py +343 -0
  904. package/skills/scientific/scientific-visualization/scripts/style_presets.py +416 -0
  905. package/skills/scientific/scientific-writing/SKILL.md +717 -0
  906. package/skills/scientific/scientific-writing/assets/REPORT_FORMATTING_GUIDE.md +574 -0
  907. package/skills/scientific/scientific-writing/assets/scientific_report.sty +606 -0
  908. package/skills/scientific/scientific-writing/assets/scientific_report_template.tex +449 -0
  909. package/skills/scientific/scientific-writing/references/citation_styles.md +720 -0
  910. package/skills/scientific/scientific-writing/references/figures_tables.md +806 -0
  911. package/skills/scientific/scientific-writing/references/imrad_structure.md +686 -0
  912. package/skills/scientific/scientific-writing/references/professional_report_formatting.md +664 -0
  913. package/skills/scientific/scientific-writing/references/reporting_guidelines.md +748 -0
  914. package/skills/scientific/scientific-writing/references/writing_principles.md +824 -0
  915. package/skills/scientific/scientific-writing/scripts/generate_image.py +281 -0
  916. package/skills/scientific/scientific-writing/scripts/generate_schematic.py +139 -0
  917. package/skills/scientific/scientific-writing/scripts/generate_schematic_ai.py +817 -0
  918. package/skills/scientific/scikit-bio/SKILL.md +435 -0
  919. package/skills/scientific/scikit-bio/references/api_reference.md +749 -0
  920. package/skills/scientific/scikit-learn/SKILL.md +519 -0
  921. package/skills/scientific/scikit-learn/references/model_evaluation.md +592 -0
  922. package/skills/scientific/scikit-learn/references/pipelines_and_composition.md +612 -0
  923. package/skills/scientific/scikit-learn/references/preprocessing.md +606 -0
  924. package/skills/scientific/scikit-learn/references/quick_reference.md +433 -0
  925. package/skills/scientific/scikit-learn/references/supervised_learning.md +378 -0
  926. package/skills/scientific/scikit-learn/references/unsupervised_learning.md +505 -0
  927. package/skills/scientific/scikit-learn/scripts/classification_pipeline.py +257 -0
  928. package/skills/scientific/scikit-learn/scripts/clustering_analysis.py +386 -0
  929. package/skills/scientific/scikit-survival/SKILL.md +397 -0
  930. package/skills/scientific/scikit-survival/references/competing-risks.md +397 -0
  931. package/skills/scientific/scikit-survival/references/cox-models.md +182 -0
  932. package/skills/scientific/scikit-survival/references/data-handling.md +494 -0
  933. package/skills/scientific/scikit-survival/references/ensemble-models.md +327 -0
  934. package/skills/scientific/scikit-survival/references/evaluation-metrics.md +378 -0
  935. package/skills/scientific/scikit-survival/references/svm-models.md +411 -0
  936. package/skills/scientific/scvelo/SKILL.md +321 -0
  937. package/skills/scientific/scvelo/references/velocity_models.md +168 -0
  938. package/skills/scientific/scvelo/scripts/rna_velocity_workflow.py +232 -0
  939. package/skills/scientific/scvi-tools/SKILL.md +188 -0
  940. package/skills/scientific/scvi-tools/references/differential-expression.md +581 -0
  941. package/skills/scientific/scvi-tools/references/models-atac-seq.md +321 -0
  942. package/skills/scientific/scvi-tools/references/models-multimodal.md +367 -0
  943. package/skills/scientific/scvi-tools/references/models-scrna-seq.md +330 -0
  944. package/skills/scientific/scvi-tools/references/models-spatial.md +438 -0
  945. package/skills/scientific/scvi-tools/references/models-specialized.md +408 -0
  946. package/skills/scientific/scvi-tools/references/theoretical-foundations.md +438 -0
  947. package/skills/scientific/scvi-tools/references/workflows.md +546 -0
  948. package/skills/scientific/seaborn/SKILL.md +671 -0
  949. package/skills/scientific/seaborn/references/examples.md +822 -0
  950. package/skills/scientific/seaborn/references/function_reference.md +770 -0
  951. package/skills/scientific/seaborn/references/objects_interface.md +964 -0
  952. package/skills/scientific/shap/SKILL.md +564 -0
  953. package/skills/scientific/shap/references/explainers.md +339 -0
  954. package/skills/scientific/shap/references/plots.md +507 -0
  955. package/skills/scientific/shap/references/theory.md +449 -0
  956. package/skills/scientific/shap/references/workflows.md +605 -0
  957. package/skills/scientific/simpy/SKILL.md +427 -0
  958. package/skills/scientific/simpy/references/events.md +374 -0
  959. package/skills/scientific/simpy/references/monitoring.md +475 -0
  960. package/skills/scientific/simpy/references/process-interaction.md +424 -0
  961. package/skills/scientific/simpy/references/real-time.md +395 -0
  962. package/skills/scientific/simpy/references/resources.md +275 -0
  963. package/skills/scientific/simpy/scripts/basic_simulation_template.py +193 -0
  964. package/skills/scientific/simpy/scripts/resource_monitor.py +345 -0
  965. package/skills/scientific/stable-baselines3/SKILL.md +297 -0
  966. package/skills/scientific/stable-baselines3/references/algorithms.md +333 -0
  967. package/skills/scientific/stable-baselines3/references/callbacks.md +556 -0
  968. package/skills/scientific/stable-baselines3/references/custom_environments.md +526 -0
  969. package/skills/scientific/stable-baselines3/references/vectorized_envs.md +568 -0
  970. package/skills/scientific/stable-baselines3/scripts/custom_env_template.py +314 -0
  971. package/skills/scientific/stable-baselines3/scripts/evaluate_agent.py +245 -0
  972. package/skills/scientific/stable-baselines3/scripts/train_rl_agent.py +165 -0
  973. package/skills/scientific/statistical-analysis/SKILL.md +630 -0
  974. package/skills/scientific/statistical-analysis/references/assumptions_and_diagnostics.md +369 -0
  975. package/skills/scientific/statistical-analysis/references/bayesian_statistics.md +661 -0
  976. package/skills/scientific/statistical-analysis/references/effect_sizes_and_power.md +581 -0
  977. package/skills/scientific/statistical-analysis/references/reporting_standards.md +469 -0
  978. package/skills/scientific/statistical-analysis/references/test_selection_guide.md +129 -0
  979. package/skills/scientific/statistical-analysis/scripts/assumption_checks.py +539 -0
  980. package/skills/scientific/statsmodels/SKILL.md +612 -0
  981. package/skills/scientific/statsmodels/references/discrete_choice.md +669 -0
  982. package/skills/scientific/statsmodels/references/glm.md +619 -0
  983. package/skills/scientific/statsmodels/references/linear_models.md +447 -0
  984. package/skills/scientific/statsmodels/references/stats_diagnostics.md +859 -0
  985. package/skills/scientific/statsmodels/references/time_series.md +716 -0
  986. package/skills/scientific/sympy/SKILL.md +498 -0
  987. package/skills/scientific/sympy/references/advanced-topics.md +635 -0
  988. package/skills/scientific/sympy/references/code-generation-printing.md +599 -0
  989. package/skills/scientific/sympy/references/core-capabilities.md +348 -0
  990. package/skills/scientific/sympy/references/matrices-linear-algebra.md +526 -0
  991. package/skills/scientific/sympy/references/physics-mechanics.md +592 -0
  992. package/skills/scientific/tiledbvcf/SKILL.md +455 -0
  993. package/skills/scientific/timesfm-forecasting/SKILL.md +785 -0
  994. package/skills/scientific/timesfm-forecasting/examples/anomaly-detection/detect_anomalies.py +524 -0
  995. package/skills/scientific/timesfm-forecasting/examples/anomaly-detection/output/anomaly_detection.json +448 -0
  996. package/skills/scientific/timesfm-forecasting/examples/anomaly-detection/output/anomaly_detection.png +0 -0
  997. package/skills/scientific/timesfm-forecasting/examples/covariates-forecasting/demo_covariates.py +568 -0
  998. package/skills/scientific/timesfm-forecasting/examples/covariates-forecasting/output/covariates_data.png +0 -0
  999. package/skills/scientific/timesfm-forecasting/examples/covariates-forecasting/output/covariates_metadata.json +59 -0
  1000. package/skills/scientific/timesfm-forecasting/examples/covariates-forecasting/output/sales_with_covariates.csv +109 -0
  1001. package/skills/scientific/timesfm-forecasting/examples/global-temperature/README.md +178 -0
  1002. package/skills/scientific/timesfm-forecasting/examples/global-temperature/generate_animation_data.py +147 -0
  1003. package/skills/scientific/timesfm-forecasting/examples/global-temperature/generate_gif.py +248 -0
  1004. package/skills/scientific/timesfm-forecasting/examples/global-temperature/generate_html.py +544 -0
  1005. package/skills/scientific/timesfm-forecasting/examples/global-temperature/output/animation_data.json +5441 -0
  1006. package/skills/scientific/timesfm-forecasting/examples/global-temperature/output/forecast_animation.gif +0 -0
  1007. package/skills/scientific/timesfm-forecasting/examples/global-temperature/output/forecast_output.csv +13 -0
  1008. package/skills/scientific/timesfm-forecasting/examples/global-temperature/output/forecast_output.json +188 -0
  1009. package/skills/scientific/timesfm-forecasting/examples/global-temperature/output/forecast_visualization.png +0 -0
  1010. package/skills/scientific/timesfm-forecasting/examples/global-temperature/output/interactive_forecast.html +5939 -0
  1011. package/skills/scientific/timesfm-forecasting/examples/global-temperature/run_example.sh +53 -0
  1012. package/skills/scientific/timesfm-forecasting/examples/global-temperature/run_forecast.py +167 -0
  1013. package/skills/scientific/timesfm-forecasting/examples/global-temperature/temperature_anomaly.csv +37 -0
  1014. package/skills/scientific/timesfm-forecasting/examples/global-temperature/visualize_forecast.py +123 -0
  1015. package/skills/scientific/timesfm-forecasting/references/api_reference.md +231 -0
  1016. package/skills/scientific/timesfm-forecasting/references/data_preparation.md +272 -0
  1017. package/skills/scientific/timesfm-forecasting/references/system_requirements.md +201 -0
  1018. package/skills/scientific/timesfm-forecasting/scripts/check_system.py +521 -0
  1019. package/skills/scientific/timesfm-forecasting/scripts/forecast_csv.py +269 -0
  1020. package/skills/scientific/torch-geometric/SKILL.md +421 -0
  1021. package/skills/scientific/torch-geometric/references/custom_datasets.md +238 -0
  1022. package/skills/scientific/torch-geometric/references/explainability.md +208 -0
  1023. package/skills/scientific/torch-geometric/references/heterogeneous.md +241 -0
  1024. package/skills/scientific/torch-geometric/references/link_prediction.md +226 -0
  1025. package/skills/scientific/torch-geometric/references/message_passing.md +121 -0
  1026. package/skills/scientific/torch-geometric/references/scaling.md +265 -0
  1027. package/skills/scientific/torchdrug/SKILL.md +448 -0
  1028. package/skills/scientific/torchdrug/references/core_concepts.md +565 -0
  1029. package/skills/scientific/torchdrug/references/datasets.md +380 -0
  1030. package/skills/scientific/torchdrug/references/knowledge_graphs.md +320 -0
  1031. package/skills/scientific/torchdrug/references/models_architectures.md +541 -0
  1032. package/skills/scientific/torchdrug/references/molecular_generation.md +352 -0
  1033. package/skills/scientific/torchdrug/references/molecular_property_prediction.md +169 -0
  1034. package/skills/scientific/torchdrug/references/protein_modeling.md +272 -0
  1035. package/skills/scientific/torchdrug/references/retrosynthesis.md +436 -0
  1036. package/skills/scientific/transformers/SKILL.md +162 -0
  1037. package/skills/scientific/transformers/references/generation.md +467 -0
  1038. package/skills/scientific/transformers/references/models.md +361 -0
  1039. package/skills/scientific/transformers/references/pipelines.md +335 -0
  1040. package/skills/scientific/transformers/references/tokenizers.md +447 -0
  1041. package/skills/scientific/transformers/references/training.md +500 -0
  1042. package/skills/scientific/treatment-plans/SKILL.md +1580 -0
  1043. package/skills/scientific/treatment-plans/assets/STYLING_QUICK_REFERENCE.md +185 -0
  1044. package/skills/scientific/treatment-plans/assets/chronic_disease_management_plan.tex +665 -0
  1045. package/skills/scientific/treatment-plans/assets/general_medical_treatment_plan.tex +547 -0
  1046. package/skills/scientific/treatment-plans/assets/medical_treatment_plan.sty +222 -0
  1047. package/skills/scientific/treatment-plans/assets/mental_health_treatment_plan.tex +774 -0
  1048. package/skills/scientific/treatment-plans/assets/one_page_treatment_plan.tex +193 -0
  1049. package/skills/scientific/treatment-plans/assets/pain_management_plan.tex +799 -0
  1050. package/skills/scientific/treatment-plans/assets/perioperative_care_plan.tex +753 -0
  1051. package/skills/scientific/treatment-plans/assets/quality_checklist.md +471 -0
  1052. package/skills/scientific/treatment-plans/assets/rehabilitation_treatment_plan.tex +756 -0
  1053. package/skills/scientific/treatment-plans/references/README.md +488 -0
  1054. package/skills/scientific/treatment-plans/references/goal_setting_frameworks.md +411 -0
  1055. package/skills/scientific/treatment-plans/references/intervention_guidelines.md +507 -0
  1056. package/skills/scientific/treatment-plans/references/regulatory_compliance.md +476 -0
  1057. package/skills/scientific/treatment-plans/references/specialty_specific_guidelines.md +655 -0
  1058. package/skills/scientific/treatment-plans/references/treatment_plan_standards.md +485 -0
  1059. package/skills/scientific/treatment-plans/scripts/check_completeness.py +318 -0
  1060. package/skills/scientific/treatment-plans/scripts/generate_schematic.py +139 -0
  1061. package/skills/scientific/treatment-plans/scripts/generate_schematic_ai.py +817 -0
  1062. package/skills/scientific/treatment-plans/scripts/generate_template.py +244 -0
  1063. package/skills/scientific/treatment-plans/scripts/timeline_generator.py +369 -0
  1064. package/skills/scientific/treatment-plans/scripts/validate_treatment_plan.py +367 -0
  1065. package/skills/scientific/umap-learn/SKILL.md +477 -0
  1066. package/skills/scientific/umap-learn/references/api_reference.md +532 -0
  1067. package/skills/scientific/usfiscaldata/SKILL.md +159 -0
  1068. package/skills/scientific/usfiscaldata/references/api-basics.md +86 -0
  1069. package/skills/scientific/usfiscaldata/references/datasets-debt.md +163 -0
  1070. package/skills/scientific/usfiscaldata/references/datasets-fiscal.md +196 -0
  1071. package/skills/scientific/usfiscaldata/references/datasets-interest-rates.md +182 -0
  1072. package/skills/scientific/usfiscaldata/references/datasets-securities.md +216 -0
  1073. package/skills/scientific/usfiscaldata/references/examples.md +258 -0
  1074. package/skills/scientific/usfiscaldata/references/parameters.md +155 -0
  1075. package/skills/scientific/usfiscaldata/references/response-format.md +176 -0
  1076. package/skills/scientific/vaex/SKILL.md +180 -0
  1077. package/skills/scientific/vaex/references/core_dataframes.md +367 -0
  1078. package/skills/scientific/vaex/references/data_processing.md +555 -0
  1079. package/skills/scientific/vaex/references/io_operations.md +703 -0
  1080. package/skills/scientific/vaex/references/machine_learning.md +728 -0
  1081. package/skills/scientific/vaex/references/performance.md +571 -0
  1082. package/skills/scientific/vaex/references/visualization.md +613 -0
  1083. package/skills/scientific/venue-templates/SKILL.md +687 -0
  1084. package/skills/scientific/venue-templates/assets/examples/cell_summary_example.md +247 -0
  1085. package/skills/scientific/venue-templates/assets/examples/medical_structured_abstract.md +313 -0
  1086. package/skills/scientific/venue-templates/assets/examples/nature_abstract_examples.md +213 -0
  1087. package/skills/scientific/venue-templates/assets/examples/neurips_introduction_example.md +245 -0
  1088. package/skills/scientific/venue-templates/assets/grants/nih_specific_aims.tex +235 -0
  1089. package/skills/scientific/venue-templates/assets/grants/nsf_proposal_template.tex +375 -0
  1090. package/skills/scientific/venue-templates/assets/journals/elsarticle-harv.bst +1598 -0
  1091. package/skills/scientific/venue-templates/assets/journals/elsarticle-num-names.bst +1535 -0
  1092. package/skills/scientific/venue-templates/assets/journals/elsarticle-num.bst +1509 -0
  1093. package/skills/scientific/venue-templates/assets/journals/elsarticle-template-harv.tex +286 -0
  1094. package/skills/scientific/venue-templates/assets/journals/elsarticle-template-num-names.tex +284 -0
  1095. package/skills/scientific/venue-templates/assets/journals/elsarticle-template-num.tex +286 -0
  1096. package/skills/scientific/venue-templates/assets/journals/nature_article.tex +171 -0
  1097. package/skills/scientific/venue-templates/assets/journals/neurips_article.tex +283 -0
  1098. package/skills/scientific/venue-templates/assets/journals/plos_one.tex +317 -0
  1099. package/skills/scientific/venue-templates/assets/posters/beamerposter_academic.tex +311 -0
  1100. package/skills/scientific/venue-templates/references/cell_press_style.md +483 -0
  1101. package/skills/scientific/venue-templates/references/conferences_formatting.md +564 -0
  1102. package/skills/scientific/venue-templates/references/cs_conference_style.md +463 -0
  1103. package/skills/scientific/venue-templates/references/grants_requirements.md +787 -0
  1104. package/skills/scientific/venue-templates/references/journals_formatting.md +508 -0
  1105. package/skills/scientific/venue-templates/references/medical_journal_styles.md +535 -0
  1106. package/skills/scientific/venue-templates/references/ml_conference_style.md +556 -0
  1107. package/skills/scientific/venue-templates/references/nature_science_style.md +405 -0
  1108. package/skills/scientific/venue-templates/references/posters_guidelines.md +628 -0
  1109. package/skills/scientific/venue-templates/references/reviewer_expectations.md +417 -0
  1110. package/skills/scientific/venue-templates/references/venue_writing_styles.md +321 -0
  1111. package/skills/scientific/venue-templates/scripts/customize_template.py +206 -0
  1112. package/skills/scientific/venue-templates/scripts/generate_schematic.py +139 -0
  1113. package/skills/scientific/venue-templates/scripts/generate_schematic_ai.py +817 -0
  1114. package/skills/scientific/venue-templates/scripts/query_template.py +260 -0
  1115. package/skills/scientific/venue-templates/scripts/validate_format.py +255 -0
  1116. package/skills/scientific/what-if-oracle/SKILL.md +168 -0
  1117. package/skills/scientific/what-if-oracle/references/scenario-templates.md +137 -0
  1118. package/skills/scientific/xlsx/LICENSE.txt +30 -0
  1119. package/skills/scientific/xlsx/SKILL.md +292 -0
  1120. package/skills/scientific/xlsx/scripts/office/helpers/__init__.py +0 -0
  1121. package/skills/scientific/xlsx/scripts/office/helpers/merge_runs.py +199 -0
  1122. package/skills/scientific/xlsx/scripts/office/helpers/simplify_redlines.py +197 -0
  1123. package/skills/scientific/xlsx/scripts/office/pack.py +159 -0
  1124. package/skills/scientific/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
  1125. package/skills/scientific/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
  1126. package/skills/scientific/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
  1127. package/skills/scientific/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
  1128. package/skills/scientific/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
  1129. package/skills/scientific/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
  1130. package/skills/scientific/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
  1131. package/skills/scientific/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
  1132. package/skills/scientific/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
  1133. package/skills/scientific/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
  1134. package/skills/scientific/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
  1135. package/skills/scientific/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
  1136. package/skills/scientific/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
  1137. package/skills/scientific/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
  1138. package/skills/scientific/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
  1139. package/skills/scientific/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
  1140. package/skills/scientific/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
  1141. package/skills/scientific/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
  1142. package/skills/scientific/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
  1143. package/skills/scientific/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
  1144. package/skills/scientific/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
  1145. package/skills/scientific/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
  1146. package/skills/scientific/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
  1147. package/skills/scientific/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
  1148. package/skills/scientific/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
  1149. package/skills/scientific/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
  1150. package/skills/scientific/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
  1151. package/skills/scientific/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
  1152. package/skills/scientific/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
  1153. package/skills/scientific/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
  1154. package/skills/scientific/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
  1155. package/skills/scientific/xlsx/scripts/office/schemas/mce/mc.xsd +75 -0
  1156. package/skills/scientific/xlsx/scripts/office/schemas/microsoft/wml-2010.xsd +560 -0
  1157. package/skills/scientific/xlsx/scripts/office/schemas/microsoft/wml-2012.xsd +67 -0
  1158. package/skills/scientific/xlsx/scripts/office/schemas/microsoft/wml-2018.xsd +14 -0
  1159. package/skills/scientific/xlsx/scripts/office/schemas/microsoft/wml-cex-2018.xsd +20 -0
  1160. package/skills/scientific/xlsx/scripts/office/schemas/microsoft/wml-cid-2016.xsd +13 -0
  1161. package/skills/scientific/xlsx/scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
  1162. package/skills/scientific/xlsx/scripts/office/schemas/microsoft/wml-symex-2015.xsd +8 -0
  1163. package/skills/scientific/xlsx/scripts/office/soffice.py +183 -0
  1164. package/skills/scientific/xlsx/scripts/office/unpack.py +132 -0
  1165. package/skills/scientific/xlsx/scripts/office/validate.py +111 -0
  1166. package/skills/scientific/xlsx/scripts/office/validators/__init__.py +15 -0
  1167. package/skills/scientific/xlsx/scripts/office/validators/base.py +847 -0
  1168. package/skills/scientific/xlsx/scripts/office/validators/docx.py +446 -0
  1169. package/skills/scientific/xlsx/scripts/office/validators/pptx.py +275 -0
  1170. package/skills/scientific/xlsx/scripts/office/validators/redlining.py +247 -0
  1171. package/skills/scientific/xlsx/scripts/recalc.py +184 -0
  1172. package/skills/scientific/zarr-python/SKILL.md +777 -0
  1173. package/skills/scientific/zarr-python/references/api_reference.md +515 -0
@@ -0,0 +1,817 @@
1
+ #!/usr/bin/env python3
2
+ """
3
+ AI-powered scientific schematic generation using Nano Banana 2.
4
+
5
+ This script uses a smart iterative refinement approach:
6
+ 1. Generate initial image with Nano Banana 2
7
+ 2. AI quality review using Gemini 3.1 Pro Preview for scientific critique
8
+ 3. Only regenerate if quality is below threshold for document type
9
+ 4. Repeat until quality meets standards (max iterations)
10
+
11
+ Requirements:
12
+ - OPENROUTER_API_KEY environment variable
13
+ - requests library
14
+
15
+ Usage:
16
+ python generate_schematic_ai.py "Create a flowchart showing CONSORT participant flow" -o flowchart.png
17
+ python generate_schematic_ai.py "Neural network architecture diagram" -o architecture.png --iterations 2
18
+ python generate_schematic_ai.py "Simple block diagram" -o diagram.png --doc-type poster
19
+ """
20
+
21
+ import argparse
22
+ import base64
23
+ import json
24
+ import os
25
+ import sys
26
+ import time
27
+ from pathlib import Path
28
+ from typing import Optional, Dict, Any, List, Tuple
29
+
30
+ try:
31
+ import requests
32
+ except ImportError:
33
+ print("Error: requests library not found. Install with: pip install requests")
34
+ sys.exit(1)
35
+
36
+ # Try to load .env file from multiple potential locations
37
+ def _load_env_file():
38
+ """Load .env file from current directory or script directory only."""
39
+ try:
40
+ from dotenv import load_dotenv
41
+ except ImportError:
42
+ return False
43
+
44
+ for candidate in [Path.cwd() / ".env", Path(__file__).resolve().parent / ".env"]:
45
+ if candidate.exists():
46
+ load_dotenv(dotenv_path=candidate, override=False)
47
+ return True
48
+
49
+ return False
50
+
51
+
52
+ class ScientificSchematicGenerator:
53
+ """Generate scientific schematics using AI with smart iterative refinement.
54
+
55
+ Uses Gemini 3.1 Pro Preview for quality review to determine if regeneration is needed.
56
+ Multiple passes only occur if the generated schematic doesn't meet the
57
+ quality threshold for the target document type.
58
+ """
59
+
60
+ # Quality thresholds by document type (score out of 10)
61
+ # Higher thresholds for more formal publications
62
+ QUALITY_THRESHOLDS = {
63
+ "journal": 8.5, # Nature, Science, etc. - highest standards
64
+ "conference": 8.0, # Conference papers - high standards
65
+ "poster": 7.0, # Academic posters - good quality
66
+ "presentation": 6.5, # Slides/talks - clear but less formal
67
+ "report": 7.5, # Technical reports - professional
68
+ "grant": 8.0, # Grant proposals - must be compelling
69
+ "thesis": 8.0, # Dissertations - formal academic
70
+ "preprint": 7.5, # arXiv, etc. - good quality
71
+ "default": 7.5, # Default threshold
72
+ }
73
+
74
+ # Scientific diagram best practices prompt template
75
+ SCIENTIFIC_DIAGRAM_GUIDELINES = """
76
+ Create a high-quality scientific diagram with these requirements:
77
+
78
+ VISUAL QUALITY:
79
+ - Clean white or light background (no textures or gradients)
80
+ - High contrast for readability and printing
81
+ - Professional, publication-ready appearance
82
+ - Sharp, clear lines and text
83
+ - Adequate spacing between elements to prevent crowding
84
+
85
+ TYPOGRAPHY:
86
+ - Clear, readable sans-serif fonts (Arial, Helvetica style)
87
+ - Minimum 10pt font size for all labels
88
+ - Consistent font sizes throughout
89
+ - All text horizontal or clearly readable
90
+ - No overlapping text
91
+
92
+ SCIENTIFIC STANDARDS:
93
+ - Accurate representation of concepts
94
+ - Clear labels for all components
95
+ - Include scale bars, legends, or axes where appropriate
96
+ - Use standard scientific notation and symbols
97
+ - Include units where applicable
98
+
99
+ ACCESSIBILITY:
100
+ - Colorblind-friendly color palette (use Okabe-Ito colors if using color)
101
+ - High contrast between elements
102
+ - Redundant encoding (shapes + colors, not just colors)
103
+ - Works well in grayscale
104
+
105
+ LAYOUT:
106
+ - Logical flow (left-to-right or top-to-bottom)
107
+ - Clear visual hierarchy
108
+ - Balanced composition
109
+ - Appropriate use of whitespace
110
+ - No clutter or unnecessary decorative elements
111
+
112
+ IMPORTANT - NO FIGURE NUMBERS:
113
+ - Do NOT include "Figure 1:", "Fig. 1", or any figure numbering in the image
114
+ - Do NOT add captions or titles like "Figure: ..." at the top or bottom
115
+ - Figure numbers and captions are added separately in the document/LaTeX
116
+ - The diagram should contain only the visual content itself
117
+ """
118
+
119
+ def __init__(self, api_key: Optional[str] = None, verbose: bool = False):
120
+ """
121
+ Initialize the generator.
122
+
123
+ Args:
124
+ api_key: OpenRouter API key (or use OPENROUTER_API_KEY env var)
125
+ verbose: Print detailed progress information
126
+ """
127
+ # Priority: 1) explicit api_key param, 2) environment variable, 3) .env file
128
+ self.api_key = api_key or os.getenv("OPENROUTER_API_KEY")
129
+
130
+ # If not found in environment, try loading from .env file
131
+ if not self.api_key:
132
+ _load_env_file()
133
+ self.api_key = os.getenv("OPENROUTER_API_KEY")
134
+
135
+ if not self.api_key:
136
+ raise ValueError(
137
+ "OPENROUTER_API_KEY not found. Please either:\n"
138
+ " 1. Set the OPENROUTER_API_KEY environment variable\n"
139
+ " 2. Add OPENROUTER_API_KEY to your .env file\n"
140
+ " 3. Pass api_key parameter to the constructor\n"
141
+ "Get your API key from: https://openrouter.ai/keys"
142
+ )
143
+
144
+ self.verbose = verbose
145
+ self._last_error = None # Track last error for better reporting
146
+ self.base_url = "https://openrouter.ai/api/v1"
147
+ # Nano Banana 2 - Google's advanced image generation model
148
+ # https://openrouter.ai/google/gemini-3-pro-image-preview
149
+ self.image_model = "google/gemini-3.1-flash-image-preview"
150
+ # Gemini 3.1 Pro Preview for quality review - excellent vision and reasoning
151
+ self.review_model = "google/gemini-3.1-pro-preview"
152
+
153
+ def _log(self, message: str):
154
+ """Log message if verbose mode is enabled."""
155
+ if self.verbose:
156
+ print(f"[{time.strftime('%H:%M:%S')}] {message}")
157
+
158
+ def _make_request(self, model: str, messages: List[Dict[str, Any]],
159
+ modalities: Optional[List[str]] = None) -> Dict[str, Any]:
160
+ """
161
+ Make a request to OpenRouter API.
162
+
163
+ Args:
164
+ model: Model identifier
165
+ messages: List of message dictionaries
166
+ modalities: Optional list of modalities (e.g., ["image", "text"])
167
+
168
+ Returns:
169
+ API response as dictionary
170
+ """
171
+ headers = {
172
+ "Authorization": f"Bearer {self.api_key}",
173
+ "Content-Type": "application/json",
174
+ "HTTP-Referer": "https://github.com/scientific-writer",
175
+ "X-Title": "Scientific Schematic Generator"
176
+ }
177
+
178
+ payload = {
179
+ "model": model,
180
+ "messages": messages
181
+ }
182
+
183
+ if modalities:
184
+ payload["modalities"] = modalities
185
+
186
+ self._log(f"Making request to {model}...")
187
+
188
+ try:
189
+ response = requests.post(
190
+ f"{self.base_url}/chat/completions",
191
+ headers=headers,
192
+ json=payload,
193
+ timeout=120
194
+ )
195
+
196
+ # Try to get response body even on error
197
+ try:
198
+ response_json = response.json()
199
+ except json.JSONDecodeError:
200
+ response_json = {"raw_text": response.text[:500]}
201
+
202
+ # Check for HTTP errors but include response body in error message
203
+ if response.status_code != 200:
204
+ error_detail = response_json.get("error", response_json)
205
+ self._log(f"HTTP {response.status_code}: {error_detail}")
206
+ raise RuntimeError(f"API request failed (HTTP {response.status_code}): {error_detail}")
207
+
208
+ return response_json
209
+ except requests.exceptions.Timeout:
210
+ raise RuntimeError("API request timed out after 120 seconds")
211
+ except requests.exceptions.RequestException as e:
212
+ raise RuntimeError(f"API request failed: {str(e)}")
213
+
214
+ def _extract_image_from_response(self, response: Dict[str, Any]) -> Optional[bytes]:
215
+ """
216
+ Extract base64-encoded image from API response.
217
+
218
+ For Nano Banana 2, images are returned in the 'images' field of the message,
219
+ not in the 'content' field.
220
+
221
+ Args:
222
+ response: API response dictionary
223
+
224
+ Returns:
225
+ Image bytes or None if not found
226
+ """
227
+ try:
228
+ choices = response.get("choices", [])
229
+ if not choices:
230
+ self._log("No choices in response")
231
+ return None
232
+
233
+ message = choices[0].get("message", {})
234
+
235
+ # IMPORTANT: Nano Banana 2 returns images in the 'images' field
236
+ images = message.get("images", [])
237
+ if images and len(images) > 0:
238
+ self._log(f"Found {len(images)} image(s) in 'images' field")
239
+
240
+ # Get first image
241
+ first_image = images[0]
242
+ if isinstance(first_image, dict):
243
+ # Extract image_url
244
+ if first_image.get("type") == "image_url":
245
+ url = first_image.get("image_url", {})
246
+ if isinstance(url, dict):
247
+ url = url.get("url", "")
248
+
249
+ if url and url.startswith("data:image"):
250
+ # Extract base64 data after comma
251
+ if "," in url:
252
+ base64_str = url.split(",", 1)[1]
253
+ # Clean whitespace
254
+ base64_str = base64_str.replace('\n', '').replace('\r', '').replace(' ', '')
255
+ self._log(f"Extracted base64 data (length: {len(base64_str)})")
256
+ return base64.b64decode(base64_str)
257
+
258
+ # Fallback: check content field (for other models or future changes)
259
+ content = message.get("content", "")
260
+
261
+ if self.verbose:
262
+ self._log(f"Content type: {type(content)}, length: {len(str(content))}")
263
+
264
+ # Handle string content
265
+ if isinstance(content, str) and "data:image" in content:
266
+ import re
267
+ match = re.search(r'data:image/[^;]+;base64,([A-Za-z0-9+/=\n\r]+)', content, re.DOTALL)
268
+ if match:
269
+ base64_str = match.group(1).replace('\n', '').replace('\r', '').replace(' ', '')
270
+ self._log(f"Found image in content field (length: {len(base64_str)})")
271
+ return base64.b64decode(base64_str)
272
+
273
+ # Handle list content
274
+ if isinstance(content, list):
275
+ for i, block in enumerate(content):
276
+ if isinstance(block, dict) and block.get("type") == "image_url":
277
+ url = block.get("image_url", {})
278
+ if isinstance(url, dict):
279
+ url = url.get("url", "")
280
+ if url and url.startswith("data:image") and "," in url:
281
+ base64_str = url.split(",", 1)[1].replace('\n', '').replace('\r', '').replace(' ', '')
282
+ self._log(f"Found image in content block {i}")
283
+ return base64.b64decode(base64_str)
284
+
285
+ self._log("No image data found in response")
286
+ return None
287
+
288
+ except Exception as e:
289
+ self._log(f"Error extracting image: {str(e)}")
290
+ import traceback
291
+ if self.verbose:
292
+ traceback.print_exc()
293
+ return None
294
+
295
+ def _image_to_base64(self, image_path: str) -> str:
296
+ """
297
+ Convert image file to base64 data URL.
298
+
299
+ Args:
300
+ image_path: Path to image file
301
+
302
+ Returns:
303
+ Base64 data URL string
304
+ """
305
+ with open(image_path, "rb") as f:
306
+ image_data = f.read()
307
+
308
+ # Determine image type from extension
309
+ ext = Path(image_path).suffix.lower()
310
+ mime_type = {
311
+ ".png": "image/png",
312
+ ".jpg": "image/jpeg",
313
+ ".jpeg": "image/jpeg",
314
+ ".gif": "image/gif",
315
+ ".webp": "image/webp"
316
+ }.get(ext, "image/png")
317
+
318
+ base64_data = base64.b64encode(image_data).decode("utf-8")
319
+ return f"data:{mime_type};base64,{base64_data}"
320
+
321
+ def generate_image(self, prompt: str) -> Optional[bytes]:
322
+ """
323
+ Generate an image using Nano Banana 2.
324
+
325
+ Args:
326
+ prompt: Description of the diagram to generate
327
+
328
+ Returns:
329
+ Image bytes or None if generation failed
330
+ """
331
+ self._last_error = None # Reset error
332
+
333
+ messages = [
334
+ {
335
+ "role": "user",
336
+ "content": prompt
337
+ }
338
+ ]
339
+
340
+ try:
341
+ response = self._make_request(
342
+ model=self.image_model,
343
+ messages=messages,
344
+ modalities=["image", "text"]
345
+ )
346
+
347
+ # Debug: print response structure if verbose
348
+ if self.verbose:
349
+ self._log(f"Response keys: {response.keys()}")
350
+ if "error" in response:
351
+ self._log(f"API Error: {response['error']}")
352
+ if "choices" in response and response["choices"]:
353
+ msg = response["choices"][0].get("message", {})
354
+ self._log(f"Message keys: {msg.keys()}")
355
+ # Show content preview without printing huge base64 data
356
+ content = msg.get("content", "")
357
+ if isinstance(content, str):
358
+ preview = content[:200] + "..." if len(content) > 200 else content
359
+ self._log(f"Content preview: {preview}")
360
+ elif isinstance(content, list):
361
+ self._log(f"Content is list with {len(content)} items")
362
+ for i, item in enumerate(content[:3]):
363
+ if isinstance(item, dict):
364
+ self._log(f" Item {i}: type={item.get('type')}")
365
+
366
+ # Check for API errors in response
367
+ if "error" in response:
368
+ error_msg = response["error"]
369
+ if isinstance(error_msg, dict):
370
+ error_msg = error_msg.get("message", str(error_msg))
371
+ self._last_error = f"API Error: {error_msg}"
372
+ print(f"✗ {self._last_error}")
373
+ return None
374
+
375
+ image_data = self._extract_image_from_response(response)
376
+ if image_data:
377
+ self._log(f"✓ Generated image ({len(image_data)} bytes)")
378
+ else:
379
+ self._last_error = "No image data in API response - model may not support image generation"
380
+ self._log(f"✗ {self._last_error}")
381
+ # Additional debug info when image extraction fails
382
+ if self.verbose and "choices" in response:
383
+ msg = response["choices"][0].get("message", {})
384
+ self._log(f"Full message structure: {json.dumps({k: type(v).__name__ for k, v in msg.items()})}")
385
+
386
+ return image_data
387
+ except RuntimeError as e:
388
+ self._last_error = str(e)
389
+ self._log(f"✗ Generation failed: {self._last_error}")
390
+ return None
391
+ except Exception as e:
392
+ self._last_error = f"Unexpected error: {str(e)}"
393
+ self._log(f"✗ Generation failed: {self._last_error}")
394
+ import traceback
395
+ if self.verbose:
396
+ traceback.print_exc()
397
+ return None
398
+
399
+ def review_image(self, image_path: str, original_prompt: str,
400
+ iteration: int, doc_type: str = "default",
401
+ max_iterations: int = 2) -> Tuple[str, float, bool]:
402
+ """
403
+ Review generated image using Gemini 3.1 Pro Preview for quality analysis.
404
+
405
+ Uses Gemini 3.1 Pro Preview's superior vision and reasoning capabilities to
406
+ evaluate the schematic quality and determine if regeneration is needed.
407
+
408
+ Args:
409
+ image_path: Path to the generated image
410
+ original_prompt: Original user prompt
411
+ iteration: Current iteration number
412
+ doc_type: Document type (journal, poster, presentation, etc.)
413
+ max_iterations: Maximum iterations allowed
414
+
415
+ Returns:
416
+ Tuple of (critique text, quality score 0-10, needs_improvement bool)
417
+ """
418
+ # Use Gemini 3.1 Pro Preview for review - excellent vision and analysis
419
+ image_data_url = self._image_to_base64(image_path)
420
+
421
+ # Get quality threshold for this document type
422
+ threshold = self.QUALITY_THRESHOLDS.get(doc_type.lower(),
423
+ self.QUALITY_THRESHOLDS["default"])
424
+
425
+ review_prompt = f"""You are an expert reviewer evaluating a scientific diagram for publication quality.
426
+
427
+ ORIGINAL REQUEST: {original_prompt}
428
+
429
+ DOCUMENT TYPE: {doc_type} (quality threshold: {threshold}/10)
430
+ ITERATION: {iteration}/{max_iterations}
431
+
432
+ Carefully evaluate this diagram on these criteria:
433
+
434
+ 1. **Scientific Accuracy** (0-2 points)
435
+ - Correct representation of concepts
436
+ - Proper notation and symbols
437
+ - Accurate relationships shown
438
+
439
+ 2. **Clarity and Readability** (0-2 points)
440
+ - Easy to understand at a glance
441
+ - Clear visual hierarchy
442
+ - No ambiguous elements
443
+
444
+ 3. **Label Quality** (0-2 points)
445
+ - All important elements labeled
446
+ - Labels are readable (appropriate font size)
447
+ - Consistent labeling style
448
+
449
+ 4. **Layout and Composition** (0-2 points)
450
+ - Logical flow (top-to-bottom or left-to-right)
451
+ - Balanced use of space
452
+ - No overlapping elements
453
+
454
+ 5. **Professional Appearance** (0-2 points)
455
+ - Publication-ready quality
456
+ - Clean, crisp lines and shapes
457
+ - Appropriate colors/contrast
458
+
459
+ RESPOND IN THIS EXACT FORMAT:
460
+ SCORE: [total score 0-10]
461
+
462
+ STRENGTHS:
463
+ - [strength 1]
464
+ - [strength 2]
465
+
466
+ ISSUES:
467
+ - [issue 1 if any]
468
+ - [issue 2 if any]
469
+
470
+ VERDICT: [ACCEPTABLE or NEEDS_IMPROVEMENT]
471
+
472
+ If score >= {threshold}, the diagram is ACCEPTABLE for {doc_type} publication.
473
+ If score < {threshold}, mark as NEEDS_IMPROVEMENT with specific suggestions."""
474
+
475
+ messages = [
476
+ {
477
+ "role": "user",
478
+ "content": [
479
+ {
480
+ "type": "text",
481
+ "text": review_prompt
482
+ },
483
+ {
484
+ "type": "image_url",
485
+ "image_url": {
486
+ "url": image_data_url
487
+ }
488
+ }
489
+ ]
490
+ }
491
+ ]
492
+
493
+ try:
494
+ # Use Gemini 3.1 Pro Preview for high-quality review
495
+ response = self._make_request(
496
+ model=self.review_model,
497
+ messages=messages
498
+ )
499
+
500
+ # Extract text response
501
+ choices = response.get("choices", [])
502
+ if not choices:
503
+ return "Image generated successfully", 8.0
504
+
505
+ message = choices[0].get("message", {})
506
+ content = message.get("content", "")
507
+
508
+ # Check reasoning field (Nano Banana 2 puts analysis here)
509
+ reasoning = message.get("reasoning", "")
510
+ if reasoning and not content:
511
+ content = reasoning
512
+
513
+ if isinstance(content, list):
514
+ # Extract text from content blocks
515
+ text_parts = []
516
+ for block in content:
517
+ if isinstance(block, dict) and block.get("type") == "text":
518
+ text_parts.append(block.get("text", ""))
519
+ content = "\n".join(text_parts)
520
+
521
+ # Try to extract score
522
+ score = 7.5 # Default score if extraction fails
523
+ import re
524
+
525
+ # Look for SCORE: X or SCORE: X/10 format
526
+ score_match = re.search(r'SCORE:\s*(\d+(?:\.\d+)?)', content, re.IGNORECASE)
527
+ if score_match:
528
+ score = float(score_match.group(1))
529
+ else:
530
+ # Fallback: look for any score pattern
531
+ score_match = re.search(r'(?:score|rating|quality)[:\s]+(\d+(?:\.\d+)?)\s*(?:/\s*10)?', content, re.IGNORECASE)
532
+ if score_match:
533
+ score = float(score_match.group(1))
534
+
535
+ # Determine if improvement is needed based on verdict or score
536
+ needs_improvement = False
537
+ if "NEEDS_IMPROVEMENT" in content.upper():
538
+ needs_improvement = True
539
+ elif score < threshold:
540
+ needs_improvement = True
541
+
542
+ self._log(f"✓ Review complete (Score: {score}/10, Threshold: {threshold}/10)")
543
+ self._log(f" Verdict: {'Needs improvement' if needs_improvement else 'Acceptable'}")
544
+
545
+ return (content if content else "Image generated successfully",
546
+ score,
547
+ needs_improvement)
548
+ except Exception as e:
549
+ self._log(f"Review skipped: {str(e)}")
550
+ # Don't fail the whole process if review fails - assume acceptable
551
+ return "Image generated successfully (review skipped)", 7.5, False
552
+
553
+ def improve_prompt(self, original_prompt: str, critique: str,
554
+ iteration: int) -> str:
555
+ """
556
+ Improve the generation prompt based on critique.
557
+
558
+ Args:
559
+ original_prompt: Original user prompt
560
+ critique: Review critique from previous iteration
561
+ iteration: Current iteration number
562
+
563
+ Returns:
564
+ Improved prompt for next generation
565
+ """
566
+ improved_prompt = f"""{self.SCIENTIFIC_DIAGRAM_GUIDELINES}
567
+
568
+ USER REQUEST: {original_prompt}
569
+
570
+ ITERATION {iteration}: Based on previous feedback, address these specific improvements:
571
+ {critique}
572
+
573
+ Generate an improved version that addresses all the critique points while maintaining scientific accuracy and professional quality."""
574
+
575
+ return improved_prompt
576
+
577
+ def generate_iterative(self, user_prompt: str, output_path: str,
578
+ iterations: int = 2,
579
+ doc_type: str = "default") -> Dict[str, Any]:
580
+ """
581
+ Generate scientific schematic with smart iterative refinement.
582
+
583
+ Only regenerates if the quality score is below the threshold for the
584
+ specified document type. This saves API calls and time when the first
585
+ generation is already good enough.
586
+
587
+ Args:
588
+ user_prompt: User's description of desired diagram
589
+ output_path: Path to save final image
590
+ iterations: Maximum refinement iterations (default: 2, max: 2)
591
+ doc_type: Document type for quality threshold (journal, poster, etc.)
592
+
593
+ Returns:
594
+ Dictionary with generation results and metadata
595
+ """
596
+ output_path = Path(output_path)
597
+ output_dir = output_path.parent
598
+ output_dir.mkdir(parents=True, exist_ok=True)
599
+
600
+ base_name = output_path.stem
601
+ extension = output_path.suffix or ".png"
602
+
603
+ # Get quality threshold for this document type
604
+ threshold = self.QUALITY_THRESHOLDS.get(doc_type.lower(),
605
+ self.QUALITY_THRESHOLDS["default"])
606
+
607
+ results = {
608
+ "user_prompt": user_prompt,
609
+ "doc_type": doc_type,
610
+ "quality_threshold": threshold,
611
+ "iterations": [],
612
+ "final_image": None,
613
+ "final_score": 0.0,
614
+ "success": False,
615
+ "early_stop": False,
616
+ "early_stop_reason": None
617
+ }
618
+
619
+ current_prompt = f"""{self.SCIENTIFIC_DIAGRAM_GUIDELINES}
620
+
621
+ USER REQUEST: {user_prompt}
622
+
623
+ Generate a publication-quality scientific diagram that meets all the guidelines above."""
624
+
625
+ print(f"\n{'='*60}")
626
+ print(f"Generating Scientific Schematic")
627
+ print(f"{'='*60}")
628
+ print(f"Description: {user_prompt}")
629
+ print(f"Document Type: {doc_type}")
630
+ print(f"Quality Threshold: {threshold}/10")
631
+ print(f"Max Iterations: {iterations}")
632
+ print(f"Output: {output_path}")
633
+ print(f"{'='*60}\n")
634
+
635
+ for i in range(1, iterations + 1):
636
+ print(f"\n[Iteration {i}/{iterations}]")
637
+ print("-" * 40)
638
+
639
+ # Generate image
640
+ print(f"Generating image...")
641
+ image_data = self.generate_image(current_prompt)
642
+
643
+ if not image_data:
644
+ error_msg = getattr(self, '_last_error', 'Image generation failed - no image data returned')
645
+ print(f"✗ Generation failed: {error_msg}")
646
+ results["iterations"].append({
647
+ "iteration": i,
648
+ "success": False,
649
+ "error": error_msg
650
+ })
651
+ continue
652
+
653
+ # Save iteration image
654
+ iter_path = output_dir / f"{base_name}_v{i}{extension}"
655
+ with open(iter_path, "wb") as f:
656
+ f.write(image_data)
657
+ print(f"✓ Saved: {iter_path}")
658
+
659
+ # Review image using Gemini 3.1 Pro Preview
660
+ print(f"Reviewing image with Gemini 3.1 Pro Preview...")
661
+ critique, score, needs_improvement = self.review_image(
662
+ str(iter_path), user_prompt, i, doc_type, iterations
663
+ )
664
+ print(f"✓ Score: {score}/10 (threshold: {threshold}/10)")
665
+
666
+ # Save iteration results
667
+ iteration_result = {
668
+ "iteration": i,
669
+ "image_path": str(iter_path),
670
+ "prompt": current_prompt,
671
+ "critique": critique,
672
+ "score": score,
673
+ "needs_improvement": needs_improvement,
674
+ "success": True
675
+ }
676
+ results["iterations"].append(iteration_result)
677
+
678
+ # Check if quality is acceptable - STOP EARLY if so
679
+ if not needs_improvement:
680
+ print(f"\n✓ Quality meets {doc_type} threshold ({score} >= {threshold})")
681
+ print(f" No further iterations needed!")
682
+ results["final_image"] = str(iter_path)
683
+ results["final_score"] = score
684
+ results["success"] = True
685
+ results["early_stop"] = True
686
+ results["early_stop_reason"] = f"Quality score {score} meets threshold {threshold} for {doc_type}"
687
+ break
688
+
689
+ # If this is the last iteration, we're done regardless
690
+ if i == iterations:
691
+ print(f"\n⚠ Maximum iterations reached")
692
+ results["final_image"] = str(iter_path)
693
+ results["final_score"] = score
694
+ results["success"] = True
695
+ break
696
+
697
+ # Quality below threshold - improve prompt for next iteration
698
+ print(f"\n⚠ Quality below threshold ({score} < {threshold})")
699
+ print(f"Improving prompt based on feedback...")
700
+ current_prompt = self.improve_prompt(user_prompt, critique, i + 1)
701
+
702
+ # Copy final version to output path
703
+ if results["success"] and results["final_image"]:
704
+ final_iter_path = Path(results["final_image"])
705
+ if final_iter_path != output_path:
706
+ import shutil
707
+ shutil.copy(final_iter_path, output_path)
708
+ print(f"\n✓ Final image: {output_path}")
709
+
710
+ # Save review log
711
+ log_path = output_dir / f"{base_name}_review_log.json"
712
+ with open(log_path, "w") as f:
713
+ json.dump(results, f, indent=2)
714
+ print(f"✓ Review log: {log_path}")
715
+
716
+ print(f"\n{'='*60}")
717
+ print(f"Generation Complete!")
718
+ print(f"Final Score: {results['final_score']}/10")
719
+ if results["early_stop"]:
720
+ print(f"Iterations Used: {len([r for r in results['iterations'] if r.get('success')])}/{iterations} (early stop)")
721
+ print(f"{'='*60}\n")
722
+
723
+ return results
724
+
725
+
726
+ def main():
727
+ """Command-line interface."""
728
+ parser = argparse.ArgumentParser(
729
+ description="Generate scientific schematics using AI with smart iterative refinement",
730
+ formatter_class=argparse.RawDescriptionHelpFormatter,
731
+ epilog="""
732
+ Examples:
733
+ # Generate a flowchart for a journal paper
734
+ python generate_schematic_ai.py "CONSORT participant flow diagram" -o flowchart.png --doc-type journal
735
+
736
+ # Generate neural network architecture for presentation (lower threshold)
737
+ python generate_schematic_ai.py "Transformer encoder-decoder architecture" -o transformer.png --doc-type presentation
738
+
739
+ # Generate with custom max iterations for poster
740
+ python generate_schematic_ai.py "Biological signaling pathway" -o pathway.png --iterations 2 --doc-type poster
741
+
742
+ # Verbose output
743
+ python generate_schematic_ai.py "Circuit diagram" -o circuit.png -v
744
+
745
+ Document Types (quality thresholds):
746
+ journal 8.5/10 - Nature, Science, peer-reviewed journals
747
+ conference 8.0/10 - Conference papers
748
+ thesis 8.0/10 - Dissertations, theses
749
+ grant 8.0/10 - Grant proposals
750
+ preprint 7.5/10 - arXiv, bioRxiv, etc.
751
+ report 7.5/10 - Technical reports
752
+ poster 7.0/10 - Academic posters
753
+ presentation 6.5/10 - Slides, talks
754
+ default 7.5/10 - General purpose
755
+
756
+ Note: Multiple iterations only occur if quality is BELOW the threshold.
757
+ If the first generation meets the threshold, no extra API calls are made.
758
+
759
+ Environment:
760
+ OPENROUTER_API_KEY OpenRouter API key (required)
761
+ """
762
+ )
763
+
764
+ parser.add_argument("prompt", help="Description of the diagram to generate")
765
+ parser.add_argument("-o", "--output", required=True,
766
+ help="Output image path (e.g., diagram.png)")
767
+ parser.add_argument("--iterations", type=int, default=2,
768
+ help="Maximum refinement iterations (default: 2, max: 2)")
769
+ parser.add_argument("--doc-type", default="default",
770
+ choices=["journal", "conference", "poster", "presentation",
771
+ "report", "grant", "thesis", "preprint", "default"],
772
+ help="Document type for quality threshold (default: default)")
773
+ parser.add_argument("--api-key", help="OpenRouter API key (or set OPENROUTER_API_KEY)")
774
+ parser.add_argument("-v", "--verbose", action="store_true",
775
+ help="Verbose output")
776
+
777
+ args = parser.parse_args()
778
+
779
+ # Check for API key
780
+ api_key = args.api_key or os.getenv("OPENROUTER_API_KEY")
781
+ if not api_key:
782
+ print("Error: OPENROUTER_API_KEY environment variable not set")
783
+ print("\nSet it with:")
784
+ print(" export OPENROUTER_API_KEY='your_api_key'")
785
+ print("\nOr provide via --api-key flag")
786
+ sys.exit(1)
787
+
788
+ # Validate iterations - enforce max of 2
789
+ if args.iterations < 1 or args.iterations > 2:
790
+ print("Error: Iterations must be between 1 and 2")
791
+ sys.exit(1)
792
+
793
+ try:
794
+ generator = ScientificSchematicGenerator(api_key=api_key, verbose=args.verbose)
795
+ results = generator.generate_iterative(
796
+ user_prompt=args.prompt,
797
+ output_path=args.output,
798
+ iterations=args.iterations,
799
+ doc_type=args.doc_type
800
+ )
801
+
802
+ if results["success"]:
803
+ print(f"\n✓ Success! Image saved to: {args.output}")
804
+ if results.get("early_stop"):
805
+ print(f" (Completed in {len([r for r in results['iterations'] if r.get('success')])} iteration(s) - quality threshold met)")
806
+ sys.exit(0)
807
+ else:
808
+ print(f"\n✗ Generation failed. Check review log for details.")
809
+ sys.exit(1)
810
+ except Exception as e:
811
+ print(f"\n✗ Error: {str(e)}")
812
+ sys.exit(1)
813
+
814
+
815
+ if __name__ == "__main__":
816
+ main()
817
+