@synsci/cli-darwin-x64-baseline 1.1.71 → 1.1.72

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 (339) hide show
  1. package/bin/skills/citation-management/SKILL.md +1109 -0
  2. package/bin/skills/citation-management/assets/bibtex_template.bib +264 -0
  3. package/bin/skills/citation-management/assets/citation_checklist.md +386 -0
  4. package/bin/skills/citation-management/references/bibtex_formatting.md +908 -0
  5. package/bin/skills/citation-management/references/citation_validation.md +794 -0
  6. package/bin/skills/citation-management/references/google_scholar_search.md +725 -0
  7. package/bin/skills/citation-management/references/metadata_extraction.md +870 -0
  8. package/bin/skills/citation-management/references/pubmed_search.md +839 -0
  9. package/bin/skills/citation-management/scripts/doi_to_bibtex.py +182 -0
  10. package/bin/skills/citation-management/scripts/extract_metadata.py +570 -0
  11. package/bin/skills/citation-management/scripts/format_bibtex.py +349 -0
  12. package/bin/skills/citation-management/scripts/search_google_scholar.py +251 -0
  13. package/bin/skills/citation-management/scripts/search_pubmed.py +348 -0
  14. package/bin/skills/citation-management/scripts/validate_citations.py +494 -0
  15. package/bin/skills/clinical-decision-support/README.md +129 -0
  16. package/bin/skills/clinical-decision-support/SKILL.md +506 -0
  17. package/bin/skills/clinical-decision-support/assets/biomarker_report_template.tex +380 -0
  18. package/bin/skills/clinical-decision-support/assets/clinical_pathway_template.tex +222 -0
  19. package/bin/skills/clinical-decision-support/assets/cohort_analysis_template.tex +359 -0
  20. package/bin/skills/clinical-decision-support/assets/color_schemes.tex +149 -0
  21. package/bin/skills/clinical-decision-support/assets/example_gbm_cohort.md +208 -0
  22. package/bin/skills/clinical-decision-support/assets/recommendation_strength_guide.md +328 -0
  23. package/bin/skills/clinical-decision-support/assets/treatment_recommendation_template.tex +529 -0
  24. package/bin/skills/clinical-decision-support/references/biomarker_classification.md +719 -0
  25. package/bin/skills/clinical-decision-support/references/clinical_decision_algorithms.md +604 -0
  26. package/bin/skills/clinical-decision-support/references/evidence_synthesis.md +840 -0
  27. package/bin/skills/clinical-decision-support/references/outcome_analysis.md +640 -0
  28. package/bin/skills/clinical-decision-support/references/patient_cohort_analysis.md +427 -0
  29. package/bin/skills/clinical-decision-support/references/treatment_recommendations.md +521 -0
  30. package/bin/skills/clinical-decision-support/scripts/biomarker_classifier.py +383 -0
  31. package/bin/skills/clinical-decision-support/scripts/build_decision_tree.py +417 -0
  32. package/bin/skills/clinical-decision-support/scripts/create_cohort_tables.py +509 -0
  33. package/bin/skills/clinical-decision-support/scripts/generate_survival_analysis.py +441 -0
  34. package/bin/skills/clinical-decision-support/scripts/validate_cds_document.py +326 -0
  35. package/bin/skills/clinical-reports/IMPLEMENTATION_SUMMARY.md +641 -0
  36. package/bin/skills/clinical-reports/README.md +236 -0
  37. package/bin/skills/clinical-reports/SKILL.md +1127 -0
  38. package/bin/skills/clinical-reports/assets/case_report_template.md +352 -0
  39. package/bin/skills/clinical-reports/assets/clinical_trial_csr_template.md +353 -0
  40. package/bin/skills/clinical-reports/assets/clinical_trial_sae_template.md +359 -0
  41. package/bin/skills/clinical-reports/assets/consult_note_template.md +305 -0
  42. package/bin/skills/clinical-reports/assets/discharge_summary_template.md +453 -0
  43. package/bin/skills/clinical-reports/assets/hipaa_compliance_checklist.md +395 -0
  44. package/bin/skills/clinical-reports/assets/history_physical_template.md +305 -0
  45. package/bin/skills/clinical-reports/assets/lab_report_template.md +309 -0
  46. package/bin/skills/clinical-reports/assets/pathology_report_template.md +249 -0
  47. package/bin/skills/clinical-reports/assets/quality_checklist.md +338 -0
  48. package/bin/skills/clinical-reports/assets/radiology_report_template.md +318 -0
  49. package/bin/skills/clinical-reports/assets/soap_note_template.md +253 -0
  50. package/bin/skills/clinical-reports/references/case_report_guidelines.md +570 -0
  51. package/bin/skills/clinical-reports/references/clinical_trial_reporting.md +693 -0
  52. package/bin/skills/clinical-reports/references/data_presentation.md +530 -0
  53. package/bin/skills/clinical-reports/references/diagnostic_reports_standards.md +629 -0
  54. package/bin/skills/clinical-reports/references/medical_terminology.md +588 -0
  55. package/bin/skills/clinical-reports/references/patient_documentation.md +744 -0
  56. package/bin/skills/clinical-reports/references/peer_review_standards.md +585 -0
  57. package/bin/skills/clinical-reports/references/regulatory_compliance.md +577 -0
  58. package/bin/skills/clinical-reports/scripts/check_deidentification.py +332 -0
  59. package/bin/skills/clinical-reports/scripts/compliance_checker.py +78 -0
  60. package/bin/skills/clinical-reports/scripts/extract_clinical_data.py +97 -0
  61. package/bin/skills/clinical-reports/scripts/format_adverse_events.py +97 -0
  62. package/bin/skills/clinical-reports/scripts/generate_report_template.py +149 -0
  63. package/bin/skills/clinical-reports/scripts/terminology_validator.py +126 -0
  64. package/bin/skills/clinical-reports/scripts/validate_case_report.py +323 -0
  65. package/bin/skills/clinical-reports/scripts/validate_trial_report.py +88 -0
  66. package/bin/skills/fireworks-ai/SKILL.md +665 -0
  67. package/bin/skills/generate-image/SKILL.md +178 -0
  68. package/bin/skills/generate-image/scripts/generate_image.py +254 -0
  69. package/bin/skills/groq/SKILL.md +347 -0
  70. package/bin/skills/hypothesis-generation/SKILL.md +293 -0
  71. package/bin/skills/hypothesis-generation/assets/FORMATTING_GUIDE.md +672 -0
  72. package/bin/skills/hypothesis-generation/assets/hypothesis_generation.sty +307 -0
  73. package/bin/skills/hypothesis-generation/assets/hypothesis_report_template.tex +572 -0
  74. package/bin/skills/hypothesis-generation/references/experimental_design_patterns.md +329 -0
  75. package/bin/skills/hypothesis-generation/references/hypothesis_quality_criteria.md +198 -0
  76. package/bin/skills/hypothesis-generation/references/literature_search_strategies.md +622 -0
  77. package/bin/skills/latex-posters/README.md +417 -0
  78. package/bin/skills/latex-posters/SKILL.md +1602 -0
  79. package/bin/skills/latex-posters/assets/baposter_template.tex +257 -0
  80. package/bin/skills/latex-posters/assets/beamerposter_template.tex +244 -0
  81. package/bin/skills/latex-posters/assets/poster_quality_checklist.md +358 -0
  82. package/bin/skills/latex-posters/assets/tikzposter_template.tex +251 -0
  83. package/bin/skills/latex-posters/references/latex_poster_packages.md +745 -0
  84. package/bin/skills/latex-posters/references/poster_content_guide.md +748 -0
  85. package/bin/skills/latex-posters/references/poster_design_principles.md +806 -0
  86. package/bin/skills/latex-posters/references/poster_layout_design.md +900 -0
  87. package/bin/skills/latex-posters/scripts/review_poster.sh +214 -0
  88. package/bin/skills/literature-review/SKILL.md +641 -0
  89. package/bin/skills/literature-review/assets/review_template.md +412 -0
  90. package/bin/skills/literature-review/references/citation_styles.md +166 -0
  91. package/bin/skills/literature-review/references/database_strategies.md +455 -0
  92. package/bin/skills/literature-review/scripts/generate_pdf.py +184 -0
  93. package/bin/skills/literature-review/scripts/search_databases.py +310 -0
  94. package/bin/skills/literature-review/scripts/verify_citations.py +218 -0
  95. package/bin/skills/market-research-reports/SKILL.md +904 -0
  96. package/bin/skills/market-research-reports/assets/FORMATTING_GUIDE.md +428 -0
  97. package/bin/skills/market-research-reports/assets/market_report_template.tex +1380 -0
  98. package/bin/skills/market-research-reports/assets/market_research.sty +564 -0
  99. package/bin/skills/market-research-reports/references/data_analysis_patterns.md +548 -0
  100. package/bin/skills/market-research-reports/references/report_structure_guide.md +999 -0
  101. package/bin/skills/market-research-reports/references/visual_generation_guide.md +1077 -0
  102. package/bin/skills/market-research-reports/scripts/generate_market_visuals.py +472 -0
  103. package/bin/skills/markitdown/INSTALLATION_GUIDE.md +318 -0
  104. package/bin/skills/markitdown/LICENSE.txt +22 -0
  105. package/bin/skills/markitdown/OPENROUTER_INTEGRATION.md +359 -0
  106. package/bin/skills/markitdown/QUICK_REFERENCE.md +309 -0
  107. package/bin/skills/markitdown/README.md +184 -0
  108. package/bin/skills/markitdown/SKILL.md +486 -0
  109. package/bin/skills/markitdown/SKILL_SUMMARY.md +307 -0
  110. package/bin/skills/markitdown/assets/example_usage.md +463 -0
  111. package/bin/skills/markitdown/references/api_reference.md +399 -0
  112. package/bin/skills/markitdown/references/file_formats.md +542 -0
  113. package/bin/skills/markitdown/scripts/batch_convert.py +195 -0
  114. package/bin/skills/markitdown/scripts/convert_literature.py +262 -0
  115. package/bin/skills/markitdown/scripts/convert_with_ai.py +224 -0
  116. package/bin/skills/ml-paper-writing/SKILL.md +937 -0
  117. package/bin/skills/ml-paper-writing/references/checklists.md +361 -0
  118. package/bin/skills/ml-paper-writing/references/citation-workflow.md +562 -0
  119. package/bin/skills/ml-paper-writing/references/reviewer-guidelines.md +367 -0
  120. package/bin/skills/ml-paper-writing/references/sources.md +159 -0
  121. package/bin/skills/ml-paper-writing/references/writing-guide.md +476 -0
  122. package/bin/skills/ml-paper-writing/templates/README.md +251 -0
  123. package/bin/skills/ml-paper-writing/templates/aaai2026/README.md +534 -0
  124. package/bin/skills/ml-paper-writing/templates/aaai2026/aaai2026-unified-supp.tex +144 -0
  125. package/bin/skills/ml-paper-writing/templates/aaai2026/aaai2026-unified-template.tex +952 -0
  126. package/bin/skills/ml-paper-writing/templates/aaai2026/aaai2026.bib +111 -0
  127. package/bin/skills/ml-paper-writing/templates/aaai2026/aaai2026.bst +1493 -0
  128. package/bin/skills/ml-paper-writing/templates/aaai2026/aaai2026.sty +315 -0
  129. package/bin/skills/ml-paper-writing/templates/acl/README.md +50 -0
  130. package/bin/skills/ml-paper-writing/templates/acl/acl.sty +312 -0
  131. package/bin/skills/ml-paper-writing/templates/acl/acl_latex.tex +377 -0
  132. package/bin/skills/ml-paper-writing/templates/acl/acl_lualatex.tex +101 -0
  133. package/bin/skills/ml-paper-writing/templates/acl/acl_natbib.bst +1940 -0
  134. package/bin/skills/ml-paper-writing/templates/acl/anthology.bib.txt +26 -0
  135. package/bin/skills/ml-paper-writing/templates/acl/custom.bib +70 -0
  136. package/bin/skills/ml-paper-writing/templates/acl/formatting.md +326 -0
  137. package/bin/skills/ml-paper-writing/templates/colm2025/README.md +3 -0
  138. package/bin/skills/ml-paper-writing/templates/colm2025/colm2025_conference.bib +11 -0
  139. package/bin/skills/ml-paper-writing/templates/colm2025/colm2025_conference.bst +1440 -0
  140. package/bin/skills/ml-paper-writing/templates/colm2025/colm2025_conference.pdf +0 -0
  141. package/bin/skills/ml-paper-writing/templates/colm2025/colm2025_conference.sty +218 -0
  142. package/bin/skills/ml-paper-writing/templates/colm2025/colm2025_conference.tex +305 -0
  143. package/bin/skills/ml-paper-writing/templates/colm2025/fancyhdr.sty +485 -0
  144. package/bin/skills/ml-paper-writing/templates/colm2025/math_commands.tex +508 -0
  145. package/bin/skills/ml-paper-writing/templates/colm2025/natbib.sty +1246 -0
  146. package/bin/skills/ml-paper-writing/templates/iclr2026/fancyhdr.sty +485 -0
  147. package/bin/skills/ml-paper-writing/templates/iclr2026/iclr2026_conference.bib +24 -0
  148. package/bin/skills/ml-paper-writing/templates/iclr2026/iclr2026_conference.bst +1440 -0
  149. package/bin/skills/ml-paper-writing/templates/iclr2026/iclr2026_conference.pdf +0 -0
  150. package/bin/skills/ml-paper-writing/templates/iclr2026/iclr2026_conference.sty +246 -0
  151. package/bin/skills/ml-paper-writing/templates/iclr2026/iclr2026_conference.tex +414 -0
  152. package/bin/skills/ml-paper-writing/templates/iclr2026/math_commands.tex +508 -0
  153. package/bin/skills/ml-paper-writing/templates/iclr2026/natbib.sty +1246 -0
  154. package/bin/skills/ml-paper-writing/templates/icml2026/algorithm.sty +79 -0
  155. package/bin/skills/ml-paper-writing/templates/icml2026/algorithmic.sty +201 -0
  156. package/bin/skills/ml-paper-writing/templates/icml2026/example_paper.bib +75 -0
  157. package/bin/skills/ml-paper-writing/templates/icml2026/example_paper.pdf +0 -0
  158. package/bin/skills/ml-paper-writing/templates/icml2026/example_paper.tex +662 -0
  159. package/bin/skills/ml-paper-writing/templates/icml2026/fancyhdr.sty +864 -0
  160. package/bin/skills/ml-paper-writing/templates/icml2026/icml2026.bst +1443 -0
  161. package/bin/skills/ml-paper-writing/templates/icml2026/icml2026.sty +767 -0
  162. package/bin/skills/ml-paper-writing/templates/icml2026/icml_numpapers.pdf +0 -0
  163. package/bin/skills/ml-paper-writing/templates/neurips2025/Makefile +36 -0
  164. package/bin/skills/ml-paper-writing/templates/neurips2025/extra_pkgs.tex +53 -0
  165. package/bin/skills/ml-paper-writing/templates/neurips2025/main.tex +38 -0
  166. package/bin/skills/ml-paper-writing/templates/neurips2025/neurips.sty +382 -0
  167. package/bin/skills/paper-2-web/SKILL.md +491 -0
  168. package/bin/skills/paper-2-web/references/installation.md +141 -0
  169. package/bin/skills/paper-2-web/references/paper2poster.md +346 -0
  170. package/bin/skills/paper-2-web/references/paper2video.md +305 -0
  171. package/bin/skills/paper-2-web/references/paper2web.md +187 -0
  172. package/bin/skills/paper-2-web/references/usage_examples.md +436 -0
  173. package/bin/skills/peer-review/SKILL.md +702 -0
  174. package/bin/skills/peer-review/references/calibration_guidelines.md +196 -0
  175. package/bin/skills/peer-review/references/common_issues.md +552 -0
  176. package/bin/skills/peer-review/references/paper_mechanics.md +269 -0
  177. package/bin/skills/peer-review/references/reporting_standards.md +290 -0
  178. package/bin/skills/peer-review/references/scoring_rubric.md +239 -0
  179. package/bin/skills/pptx-posters/SKILL.md +410 -0
  180. package/bin/skills/pptx-posters/assets/poster_html_template.html +257 -0
  181. package/bin/skills/pptx-posters/assets/poster_quality_checklist.md +358 -0
  182. package/bin/skills/pptx-posters/references/poster_content_guide.md +748 -0
  183. package/bin/skills/pptx-posters/references/poster_design_principles.md +806 -0
  184. package/bin/skills/pptx-posters/references/poster_layout_design.md +900 -0
  185. package/bin/skills/research-grants/README.md +285 -0
  186. package/bin/skills/research-grants/SKILL.md +938 -0
  187. package/bin/skills/research-grants/assets/budget_justification_template.md +453 -0
  188. package/bin/skills/research-grants/assets/nih_specific_aims_template.md +166 -0
  189. package/bin/skills/research-grants/assets/nsf_project_summary_template.md +92 -0
  190. package/bin/skills/research-grants/references/broader_impacts.md +392 -0
  191. package/bin/skills/research-grants/references/darpa_guidelines.md +636 -0
  192. package/bin/skills/research-grants/references/doe_guidelines.md +586 -0
  193. package/bin/skills/research-grants/references/nih_guidelines.md +851 -0
  194. package/bin/skills/research-grants/references/nsf_guidelines.md +570 -0
  195. package/bin/skills/research-grants/references/specific_aims_guide.md +458 -0
  196. package/bin/skills/research-lookup/README.md +156 -0
  197. package/bin/skills/research-lookup/SKILL.md +606 -0
  198. package/bin/skills/research-lookup/examples.py +174 -0
  199. package/bin/skills/research-lookup/lookup.py +187 -0
  200. package/bin/skills/research-lookup/research_lookup.py +483 -0
  201. package/bin/skills/research-lookup/scripts/research_lookup.py +483 -0
  202. package/bin/skills/scholar-evaluation/SKILL.md +289 -0
  203. package/bin/skills/scholar-evaluation/references/evaluation_framework.md +663 -0
  204. package/bin/skills/scholar-evaluation/scripts/calculate_scores.py +366 -0
  205. package/bin/skills/scientific-critical-thinking/SKILL.md +566 -0
  206. package/bin/skills/scientific-critical-thinking/references/common_biases.md +364 -0
  207. package/bin/skills/scientific-critical-thinking/references/evidence_hierarchy.md +484 -0
  208. package/bin/skills/scientific-critical-thinking/references/experimental_design.md +496 -0
  209. package/bin/skills/scientific-critical-thinking/references/logical_fallacies.md +478 -0
  210. package/bin/skills/scientific-critical-thinking/references/scientific_method.md +169 -0
  211. package/bin/skills/scientific-critical-thinking/references/statistical_pitfalls.md +506 -0
  212. package/bin/skills/scientific-schematics/QUICK_REFERENCE.md +207 -0
  213. package/bin/skills/scientific-schematics/README.md +327 -0
  214. package/bin/skills/scientific-schematics/SKILL.md +615 -0
  215. package/bin/skills/scientific-schematics/example_usage.sh +89 -0
  216. package/bin/skills/scientific-schematics/references/best_practices.md +559 -0
  217. package/bin/skills/scientific-schematics/scripts/generate_schematic.py +135 -0
  218. package/bin/skills/scientific-schematics/scripts/generate_schematic_ai.py +807 -0
  219. package/bin/skills/scientific-schematics/test_ai_generation.py +243 -0
  220. package/bin/skills/scientific-slides/SKILL.md +942 -0
  221. package/bin/skills/scientific-slides/assets/timing_guidelines.md +597 -0
  222. package/bin/skills/scientific-slides/references/data_visualization_slides.md +708 -0
  223. package/bin/skills/scientific-slides/references/presentation_structure.md +642 -0
  224. package/bin/skills/scientific-slides/references/slide_design_principles.md +849 -0
  225. package/bin/skills/scientific-slides/references/talk_types_guide.md +687 -0
  226. package/bin/skills/scientific-slides/references/visual_review_workflow.md +775 -0
  227. package/bin/skills/scientific-slides/scripts/generate_slide_image.py +143 -0
  228. package/bin/skills/scientific-slides/scripts/generate_slide_image_ai.py +748 -0
  229. package/bin/skills/scientific-slides/scripts/pdf_to_images.py +201 -0
  230. package/bin/skills/scientific-slides/scripts/slides_to_pdf.py +220 -0
  231. package/bin/skills/scientific-slides/scripts/validate_presentation.py +367 -0
  232. package/bin/skills/scientific-writing/SKILL.md +714 -0
  233. package/bin/skills/scientific-writing/assets/REPORT_FORMATTING_GUIDE.md +574 -0
  234. package/bin/skills/scientific-writing/assets/scientific_report.sty +606 -0
  235. package/bin/skills/scientific-writing/assets/scientific_report_template.tex +449 -0
  236. package/bin/skills/scientific-writing/references/citation_styles.md +720 -0
  237. package/bin/skills/scientific-writing/references/figures_tables.md +806 -0
  238. package/bin/skills/scientific-writing/references/imrad_structure.md +686 -0
  239. package/bin/skills/scientific-writing/references/professional_report_formatting.md +664 -0
  240. package/bin/skills/scientific-writing/references/reporting_guidelines.md +748 -0
  241. package/bin/skills/scientific-writing/references/writing_principles.md +824 -0
  242. package/bin/skills/tinker/SKILL.md +2 -3
  243. package/bin/skills/together-ai/SKILL.md +722 -0
  244. package/bin/skills/treatment-plans/README.md +488 -0
  245. package/bin/skills/treatment-plans/SKILL.md +1579 -0
  246. package/bin/skills/treatment-plans/assets/STYLING_QUICK_REFERENCE.md +185 -0
  247. package/bin/skills/treatment-plans/assets/chronic_disease_management_plan.tex +665 -0
  248. package/bin/skills/treatment-plans/assets/general_medical_treatment_plan.tex +547 -0
  249. package/bin/skills/treatment-plans/assets/medical_treatment_plan.sty +222 -0
  250. package/bin/skills/treatment-plans/assets/mental_health_treatment_plan.tex +774 -0
  251. package/bin/skills/treatment-plans/assets/one_page_treatment_plan.tex +193 -0
  252. package/bin/skills/treatment-plans/assets/pain_management_plan.tex +799 -0
  253. package/bin/skills/treatment-plans/assets/perioperative_care_plan.tex +753 -0
  254. package/bin/skills/treatment-plans/assets/quality_checklist.md +471 -0
  255. package/bin/skills/treatment-plans/assets/rehabilitation_treatment_plan.tex +756 -0
  256. package/bin/skills/treatment-plans/references/goal_setting_frameworks.md +411 -0
  257. package/bin/skills/treatment-plans/references/intervention_guidelines.md +507 -0
  258. package/bin/skills/treatment-plans/references/regulatory_compliance.md +476 -0
  259. package/bin/skills/treatment-plans/references/specialty_specific_guidelines.md +655 -0
  260. package/bin/skills/treatment-plans/references/treatment_plan_standards.md +485 -0
  261. package/bin/skills/treatment-plans/scripts/check_completeness.py +322 -0
  262. package/bin/skills/treatment-plans/scripts/generate_template.py +233 -0
  263. package/bin/skills/treatment-plans/scripts/timeline_generator.py +385 -0
  264. package/bin/skills/treatment-plans/scripts/validate_treatment_plan.py +369 -0
  265. package/bin/skills/unsloth/SKILL.md +565 -47
  266. package/bin/skills/unsloth/docs/advanced-rl.md +222 -0
  267. package/bin/skills/unsloth/docs/chat-templates.md +141 -0
  268. package/bin/skills/unsloth/docs/datasets.md +489 -0
  269. package/bin/skills/unsloth/docs/docker-extended.md +99 -0
  270. package/bin/skills/unsloth/docs/dynamic-ggufs-2.0.md +116 -0
  271. package/bin/skills/unsloth/docs/dynamic-ggufs-aider.md +118 -0
  272. package/bin/skills/unsloth/docs/faq.md +91 -0
  273. package/bin/skills/unsloth/docs/fp16-vs-bf16.md +61 -0
  274. package/bin/skills/unsloth/docs/fp8-rl.md +224 -0
  275. package/bin/skills/unsloth/docs/glm-4.7-flash.md +997 -0
  276. package/bin/skills/unsloth/docs/inference-deployment-overview.md +17 -0
  277. package/bin/skills/unsloth/docs/inference.md +27 -0
  278. package/bin/skills/unsloth/docs/installation-docker.md +155 -0
  279. package/bin/skills/unsloth/docs/installation-pip.md +148 -0
  280. package/bin/skills/unsloth/docs/kernels-packing.md +190 -0
  281. package/bin/skills/unsloth/docs/kimi-k2.5.md +634 -0
  282. package/bin/skills/unsloth/docs/lm-studio.md +235 -0
  283. package/bin/skills/unsloth/docs/lora-hot-swapping.md +75 -0
  284. package/bin/skills/unsloth/docs/lora-hyperparameters.md +363 -0
  285. package/bin/skills/unsloth/docs/memory-efficient-rl.md +267 -0
  286. package/bin/skills/unsloth/docs/model-selection.md +70 -0
  287. package/bin/skills/unsloth/docs/models.md +532 -0
  288. package/bin/skills/unsloth/docs/multi-gpu-ddp.md +90 -0
  289. package/bin/skills/unsloth/docs/notebooks.md +223 -0
  290. package/bin/skills/unsloth/docs/overview.md +110 -0
  291. package/bin/skills/unsloth/docs/qwen3-coder-next-extended.md +900 -0
  292. package/bin/skills/unsloth/docs/qwen3-coder-next.md +900 -0
  293. package/bin/skills/unsloth/docs/requirements.md +45 -0
  294. package/bin/skills/unsloth/docs/reward-hacking.md +25 -0
  295. package/bin/skills/unsloth/docs/saving-to-gguf.md +138 -0
  296. package/bin/skills/unsloth/docs/saving-to-ollama.md +46 -0
  297. package/bin/skills/unsloth/docs/sglang-guide.md +278 -0
  298. package/bin/skills/unsloth/docs/speculative-decoding.md +70 -0
  299. package/bin/skills/unsloth/docs/tool-calling.md +334 -0
  300. package/bin/skills/unsloth/docs/troubleshooting-faq.md +204 -0
  301. package/bin/skills/unsloth/docs/troubleshooting-inference.md +26 -0
  302. package/bin/skills/unsloth/docs/tts-fine-tuning.md +149 -0
  303. package/bin/skills/unsloth/docs/tutorial-grpo.md +273 -0
  304. package/bin/skills/unsloth/docs/tutorial-llama3-ollama.md +356 -0
  305. package/bin/skills/unsloth/docs/vision-fine-tuning.md +135 -0
  306. package/bin/skills/unsloth/docs/vision-rl.md +170 -0
  307. package/bin/skills/unsloth/docs/vllm-engine-arguments.md +43 -0
  308. package/bin/skills/unsloth/docs/vllm-guide.md +98 -0
  309. package/bin/skills/venue-templates/SKILL.md +686 -0
  310. package/bin/skills/venue-templates/assets/examples/cell_summary_example.md +247 -0
  311. package/bin/skills/venue-templates/assets/examples/medical_structured_abstract.md +313 -0
  312. package/bin/skills/venue-templates/assets/examples/nature_abstract_examples.md +213 -0
  313. package/bin/skills/venue-templates/assets/examples/neurips_introduction_example.md +245 -0
  314. package/bin/skills/venue-templates/assets/grants/nih_specific_aims.tex +235 -0
  315. package/bin/skills/venue-templates/assets/grants/nsf_proposal_template.tex +375 -0
  316. package/bin/skills/venue-templates/assets/journals/nature_article.tex +171 -0
  317. package/bin/skills/venue-templates/assets/journals/neurips_article.tex +283 -0
  318. package/bin/skills/venue-templates/assets/journals/plos_one.tex +317 -0
  319. package/bin/skills/venue-templates/assets/posters/beamerposter_academic.tex +311 -0
  320. package/bin/skills/venue-templates/references/cell_press_style.md +483 -0
  321. package/bin/skills/venue-templates/references/conferences_formatting.md +564 -0
  322. package/bin/skills/venue-templates/references/cs_conference_style.md +463 -0
  323. package/bin/skills/venue-templates/references/grants_requirements.md +787 -0
  324. package/bin/skills/venue-templates/references/journals_formatting.md +486 -0
  325. package/bin/skills/venue-templates/references/medical_journal_styles.md +535 -0
  326. package/bin/skills/venue-templates/references/ml_conference_style.md +556 -0
  327. package/bin/skills/venue-templates/references/nature_science_style.md +405 -0
  328. package/bin/skills/venue-templates/references/posters_guidelines.md +628 -0
  329. package/bin/skills/venue-templates/references/reviewer_expectations.md +417 -0
  330. package/bin/skills/venue-templates/references/venue_writing_styles.md +321 -0
  331. package/bin/skills/venue-templates/scripts/customize_template.py +195 -0
  332. package/bin/skills/venue-templates/scripts/query_template.py +266 -0
  333. package/bin/skills/venue-templates/scripts/validate_format.py +250 -0
  334. package/bin/synsc +0 -0
  335. package/package.json +1 -1
  336. package/bin/skills/unsloth/references/index.md +0 -7
  337. package/bin/skills/unsloth/references/llms-full.md +0 -16799
  338. package/bin/skills/unsloth/references/llms-txt.md +0 -12044
  339. package/bin/skills/unsloth/references/llms.md +0 -82
@@ -0,0 +1,615 @@
1
+ ---
2
+ name: scientific-schematics
3
+ description: "Create publication-quality scientific diagrams using Nano Banana Pro AI with smart iterative refinement. Uses Gemini 3 Pro for quality review. Only regenerates if quality is below threshold for your document type. Specialized in neural network architectures, system diagrams, flowcharts, biological pathways, and complex scientific visualizations."
4
+ allowed-tools: [Read, Write, Edit, Bash]
5
+ ---
6
+
7
+ # Scientific Schematics and Diagrams
8
+
9
+ ## Overview
10
+
11
+ Scientific schematics and diagrams transform complex concepts into clear visual representations for publication. **This skill uses Nano Banana Pro AI for diagram generation with Gemini 3 Pro quality review.**
12
+
13
+ **How it works:**
14
+ - Describe your diagram in natural language
15
+ - Nano Banana Pro generates publication-quality images automatically
16
+ - **Gemini 3 Pro reviews quality** against document-type thresholds
17
+ - **Smart iteration**: Only regenerates if quality is below threshold
18
+ - Publication-ready output in minutes
19
+ - No coding, templates, or manual drawing required
20
+
21
+ **Quality Thresholds by Document Type:**
22
+ | Document Type | Threshold | Description |
23
+ |---------------|-----------|-------------|
24
+ | journal | 8.5/10 | Nature, Science, peer-reviewed journals |
25
+ | conference | 8.0/10 | Conference papers |
26
+ | thesis | 8.0/10 | Dissertations, theses |
27
+ | grant | 8.0/10 | Grant proposals |
28
+ | preprint | 7.5/10 | arXiv, bioRxiv, etc. |
29
+ | report | 7.5/10 | Technical reports |
30
+ | poster | 7.0/10 | Academic posters |
31
+ | presentation | 6.5/10 | Slides, talks |
32
+ | default | 7.5/10 | General purpose |
33
+
34
+ **Simply describe what you want, and Nano Banana Pro creates it.** All diagrams are stored in the figures/ subfolder and referenced in papers/posters.
35
+
36
+ ## Quick Start: Generate Any Diagram
37
+
38
+ Create any scientific diagram by simply describing it. Nano Banana Pro handles everything automatically with **smart iteration**:
39
+
40
+ ```bash
41
+ # Generate for journal paper (highest quality threshold: 8.5/10)
42
+ python scripts/generate_schematic.py "CONSORT participant flow diagram with 500 screened, 150 excluded, 350 randomized" -o figures/consort.png --doc-type journal
43
+
44
+ # Generate for presentation (lower threshold: 6.5/10 - faster)
45
+ python scripts/generate_schematic.py "Transformer encoder-decoder architecture showing multi-head attention" -o figures/transformer.png --doc-type presentation
46
+
47
+ # Generate for poster (moderate threshold: 7.0/10)
48
+ python scripts/generate_schematic.py "MAPK signaling pathway from EGFR to gene transcription" -o figures/mapk_pathway.png --doc-type poster
49
+
50
+ # Custom max iterations (max 2)
51
+ python scripts/generate_schematic.py "Complex circuit diagram with op-amp, resistors, and capacitors" -o figures/circuit.png --iterations 2 --doc-type journal
52
+ ```
53
+
54
+ **What happens behind the scenes:**
55
+ 1. **Generation 1**: Nano Banana Pro creates initial image following scientific diagram best practices
56
+ 2. **Review 1**: **Gemini 3 Pro** evaluates quality against document-type threshold
57
+ 3. **Decision**: If quality >= threshold → **DONE** (no more iterations needed!)
58
+ 4. **If below threshold**: Improved prompt based on critique, regenerate
59
+ 5. **Repeat**: Until quality meets threshold OR max iterations reached
60
+
61
+ **Smart Iteration Benefits:**
62
+ - ✅ Saves API calls if first generation is good enough
63
+ - ✅ Higher quality standards for journal papers
64
+ - ✅ Faster turnaround for presentations/posters
65
+ - ✅ Appropriate quality for each use case
66
+
67
+ **Output**: Versioned images plus a detailed review log with quality scores, critiques, and early-stop information.
68
+
69
+ ### Configuration
70
+
71
+ Set your OpenRouter API key:
72
+ ```bash
73
+ export OPENROUTER_API_KEY='your_api_key_here'
74
+ ```
75
+
76
+ Get an API key at: https://openrouter.ai/keys
77
+
78
+ ### AI Generation Best Practices
79
+
80
+ **Effective Prompts for Scientific Diagrams:**
81
+
82
+ ✓ **Good prompts** (specific, detailed):
83
+ - "CONSORT flowchart showing participant flow from screening (n=500) through randomization to final analysis"
84
+ - "Transformer neural network architecture with encoder stack on left, decoder stack on right, showing multi-head attention and cross-attention connections"
85
+ - "Biological signaling cascade: EGFR receptor → RAS → RAF → MEK → ERK → nucleus, with phosphorylation steps labeled"
86
+ - "Block diagram of IoT system: sensors → microcontroller → WiFi module → cloud server → mobile app"
87
+
88
+ ✗ **Avoid vague prompts**:
89
+ - "Make a flowchart" (too generic)
90
+ - "Neural network" (which type? what components?)
91
+ - "Pathway diagram" (which pathway? what molecules?)
92
+
93
+ **Key elements to include:**
94
+ - **Type**: Flowchart, architecture diagram, pathway, circuit, etc.
95
+ - **Components**: Specific elements to include
96
+ - **Flow/Direction**: How elements connect (left-to-right, top-to-bottom)
97
+ - **Labels**: Key annotations or text to include
98
+ - **Style**: Any specific visual requirements
99
+
100
+ **Scientific Quality Guidelines** (automatically applied):
101
+ - Clean white/light background
102
+ - High contrast for readability
103
+ - Clear, readable labels (minimum 10pt)
104
+ - Professional typography (sans-serif fonts)
105
+ - Colorblind-friendly colors (Okabe-Ito palette)
106
+ - Proper spacing to prevent crowding
107
+ - Scale bars, legends, axes where appropriate
108
+
109
+ ## When to Use This Skill
110
+
111
+ This skill should be used when:
112
+ - Creating neural network architecture diagrams (Transformers, CNNs, RNNs, etc.)
113
+ - Illustrating system architectures and data flow diagrams
114
+ - Drawing methodology flowcharts for study design (CONSORT, PRISMA)
115
+ - Visualizing algorithm workflows and processing pipelines
116
+ - Creating circuit diagrams and electrical schematics
117
+ - Depicting biological pathways and molecular interactions
118
+ - Generating network topologies and hierarchical structures
119
+ - Illustrating conceptual frameworks and theoretical models
120
+ - Designing block diagrams for technical papers
121
+
122
+ ## How to Use This Skill
123
+
124
+ **Simply describe your diagram in natural language.** Nano Banana Pro generates it automatically:
125
+
126
+ ```bash
127
+ python scripts/generate_schematic.py "your diagram description" -o output.png
128
+ ```
129
+
130
+ **That's it!** The AI handles:
131
+ - ✓ Layout and composition
132
+ - ✓ Labels and annotations
133
+ - ✓ Colors and styling
134
+ - ✓ Quality review and refinement
135
+ - ✓ Publication-ready output
136
+
137
+ **Works for all diagram types:**
138
+ - Flowcharts (CONSORT, PRISMA, etc.)
139
+ - Neural network architectures
140
+ - Biological pathways
141
+ - Circuit diagrams
142
+ - System architectures
143
+ - Block diagrams
144
+ - Any scientific visualization
145
+
146
+ **No coding, no templates, no manual drawing required.**
147
+
148
+ ---
149
+
150
+ # AI Generation Mode (Nano Banana Pro + Gemini 3 Pro Review)
151
+
152
+ ## Smart Iterative Refinement Workflow
153
+
154
+ The AI generation system uses **smart iteration** - it only regenerates if quality is below the threshold for your document type:
155
+
156
+ ### How Smart Iteration Works
157
+
158
+ ```
159
+ ┌─────────────────────────────────────────────────────┐
160
+ │ 1. Generate image with Nano Banana Pro │
161
+ │ ↓ │
162
+ │ 2. Review quality with Gemini 3 Pro │
163
+ │ ↓ │
164
+ │ 3. Score >= threshold? │
165
+ │ YES → DONE! (early stop) │
166
+ │ NO → Improve prompt, go to step 1 │
167
+ │ ↓ │
168
+ │ 4. Repeat until quality met OR max iterations │
169
+ └─────────────────────────────────────────────────────┘
170
+ ```
171
+
172
+ ### Iteration 1: Initial Generation
173
+ **Prompt Construction:**
174
+ ```
175
+ Scientific diagram guidelines + User request
176
+ ```
177
+
178
+ **Output:** `diagram_v1.png`
179
+
180
+ ### Quality Review by Gemini 3 Pro
181
+
182
+ Gemini 3 Pro evaluates the diagram on:
183
+ 1. **Scientific Accuracy** (0-2 points) - Correct concepts, notation, relationships
184
+ 2. **Clarity and Readability** (0-2 points) - Easy to understand, clear hierarchy
185
+ 3. **Label Quality** (0-2 points) - Complete, readable, consistent labels
186
+ 4. **Layout and Composition** (0-2 points) - Logical flow, balanced, no overlaps
187
+ 5. **Professional Appearance** (0-2 points) - Publication-ready quality
188
+
189
+ **Example Review Output:**
190
+ ```
191
+ SCORE: 8.0
192
+
193
+ STRENGTHS:
194
+ - Clear flow from top to bottom
195
+ - All phases properly labeled
196
+ - Professional typography
197
+
198
+ ISSUES:
199
+ - Participant counts slightly small
200
+ - Minor overlap on exclusion box
201
+
202
+ VERDICT: ACCEPTABLE (for poster, threshold 7.0)
203
+ ```
204
+
205
+ ### Decision Point: Continue or Stop?
206
+
207
+ | If Score... | Action |
208
+ |-------------|--------|
209
+ | >= threshold | **STOP** - Quality is good enough for this document type |
210
+ | < threshold | Continue to next iteration with improved prompt |
211
+
212
+ **Example:**
213
+ - For a **poster** (threshold 7.0): Score of 7.5 → **DONE after 1 iteration!**
214
+ - For a **journal** (threshold 8.5): Score of 7.5 → Continue improving
215
+
216
+ ### Subsequent Iterations (Only If Needed)
217
+
218
+ If quality is below threshold, the system:
219
+ 1. Extracts specific issues from Gemini 3 Pro's review
220
+ 2. Enhances the prompt with improvement instructions
221
+ 3. Regenerates with Nano Banana Pro
222
+ 4. Reviews again with Gemini 3 Pro
223
+ 5. Repeats until threshold met or max iterations reached
224
+
225
+ ### Review Log
226
+ All iterations are saved with a JSON review log that includes early-stop information:
227
+ ```json
228
+ {
229
+ "user_prompt": "CONSORT participant flow diagram...",
230
+ "doc_type": "poster",
231
+ "quality_threshold": 7.0,
232
+ "iterations": [
233
+ {
234
+ "iteration": 1,
235
+ "image_path": "figures/consort_v1.png",
236
+ "score": 7.5,
237
+ "needs_improvement": false,
238
+ "critique": "SCORE: 7.5\nSTRENGTHS:..."
239
+ }
240
+ ],
241
+ "final_score": 7.5,
242
+ "early_stop": true,
243
+ "early_stop_reason": "Quality score 7.5 meets threshold 7.0 for poster"
244
+ }
245
+ ```
246
+
247
+ **Note:** With smart iteration, you may see only 1 iteration instead of the full 2 if quality is achieved early!
248
+
249
+ ## Advanced AI Generation Usage
250
+
251
+ ### Python API
252
+
253
+ ```python
254
+ from scripts.generate_schematic_ai import ScientificSchematicGenerator
255
+
256
+ # Initialize generator
257
+ generator = ScientificSchematicGenerator(
258
+ api_key="your_openrouter_key",
259
+ verbose=True
260
+ )
261
+
262
+ # Generate with iterative refinement (max 2 iterations)
263
+ results = generator.generate_iterative(
264
+ user_prompt="Transformer architecture diagram",
265
+ output_path="figures/transformer.png",
266
+ iterations=2
267
+ )
268
+
269
+ # Access results
270
+ print(f"Final score: {results['final_score']}/10")
271
+ print(f"Final image: {results['final_image']}")
272
+
273
+ # Review individual iterations
274
+ for iteration in results['iterations']:
275
+ print(f"Iteration {iteration['iteration']}: {iteration['score']}/10")
276
+ print(f"Critique: {iteration['critique']}")
277
+ ```
278
+
279
+ ### Command-Line Options
280
+
281
+ ```bash
282
+ # Basic usage (default threshold 7.5/10)
283
+ python scripts/generate_schematic.py "diagram description" -o output.png
284
+
285
+ # Specify document type for appropriate quality threshold
286
+ python scripts/generate_schematic.py "diagram" -o out.png --doc-type journal # 8.5/10
287
+ python scripts/generate_schematic.py "diagram" -o out.png --doc-type conference # 8.0/10
288
+ python scripts/generate_schematic.py "diagram" -o out.png --doc-type poster # 7.0/10
289
+ python scripts/generate_schematic.py "diagram" -o out.png --doc-type presentation # 6.5/10
290
+
291
+ # Custom max iterations (1-2)
292
+ python scripts/generate_schematic.py "complex diagram" -o diagram.png --iterations 2
293
+
294
+ # Verbose output (see all API calls and reviews)
295
+ python scripts/generate_schematic.py "flowchart" -o flow.png -v
296
+
297
+ # Provide API key via flag
298
+ python scripts/generate_schematic.py "diagram" -o out.png --api-key "sk-or-v1-..."
299
+
300
+ # Combine options
301
+ python scripts/generate_schematic.py "neural network" -o nn.png --doc-type journal --iterations 2 -v
302
+ ```
303
+
304
+ ### Prompt Engineering Tips
305
+
306
+ **1. Be Specific About Layout:**
307
+ ```
308
+ ✓ "Flowchart with vertical flow, top to bottom"
309
+ ✓ "Architecture diagram with encoder on left, decoder on right"
310
+ ✓ "Circular pathway diagram with clockwise flow"
311
+ ```
312
+
313
+ **2. Include Quantitative Details:**
314
+ ```
315
+ ✓ "Neural network with input layer (784 nodes), hidden layer (128 nodes), output (10 nodes)"
316
+ ✓ "Flowchart showing n=500 screened, n=150 excluded, n=350 randomized"
317
+ ✓ "Circuit with 1kΩ resistor, 10µF capacitor, 5V source"
318
+ ```
319
+
320
+ **3. Specify Visual Style:**
321
+ ```
322
+ ✓ "Minimalist block diagram with clean lines"
323
+ ✓ "Detailed biological pathway with protein structures"
324
+ ✓ "Technical schematic with engineering notation"
325
+ ```
326
+
327
+ **4. Request Specific Labels:**
328
+ ```
329
+ ✓ "Label all arrows with activation/inhibition"
330
+ ✓ "Include layer dimensions in each box"
331
+ ✓ "Show time progression with timestamps"
332
+ ```
333
+
334
+ **5. Mention Color Requirements:**
335
+ ```
336
+ ✓ "Use colorblind-friendly colors"
337
+ ✓ "Grayscale-compatible design"
338
+ ✓ "Color-code by function: blue for input, green for processing, red for output"
339
+ ```
340
+
341
+ ## AI Generation Examples
342
+
343
+ ### Example 1: CONSORT Flowchart
344
+ ```bash
345
+ python scripts/generate_schematic.py \
346
+ "CONSORT participant flow diagram for randomized controlled trial. \
347
+ Start with 'Assessed for eligibility (n=500)' at top. \
348
+ Show 'Excluded (n=150)' with reasons: age<18 (n=80), declined (n=50), other (n=20). \
349
+ Then 'Randomized (n=350)' splits into two arms: \
350
+ 'Treatment group (n=175)' and 'Control group (n=175)'. \
351
+ Each arm shows 'Lost to follow-up' (n=15 and n=10). \
352
+ End with 'Analyzed' (n=160 and n=165). \
353
+ Use blue boxes for process steps, orange for exclusion, green for final analysis." \
354
+ -o figures/consort.png
355
+ ```
356
+
357
+ ### Example 2: Neural Network Architecture
358
+ ```bash
359
+ python scripts/generate_schematic.py \
360
+ "Transformer encoder-decoder architecture diagram. \
361
+ Left side: Encoder stack with input embedding, positional encoding, \
362
+ multi-head self-attention, add & norm, feed-forward, add & norm. \
363
+ Right side: Decoder stack with output embedding, positional encoding, \
364
+ masked self-attention, add & norm, cross-attention (receiving from encoder), \
365
+ add & norm, feed-forward, add & norm, linear & softmax. \
366
+ Show cross-attention connection from encoder to decoder with dashed line. \
367
+ Use light blue for encoder, light red for decoder. \
368
+ Label all components clearly." \
369
+ -o figures/transformer.png --iterations 2
370
+ ```
371
+
372
+ ### Example 3: Biological Pathway
373
+ ```bash
374
+ python scripts/generate_schematic.py \
375
+ "MAPK signaling pathway diagram. \
376
+ Start with EGFR receptor at cell membrane (top). \
377
+ Arrow down to RAS (with GTP label). \
378
+ Arrow to RAF kinase. \
379
+ Arrow to MEK kinase. \
380
+ Arrow to ERK kinase. \
381
+ Final arrow to nucleus showing gene transcription. \
382
+ Label each arrow with 'phosphorylation' or 'activation'. \
383
+ Use rounded rectangles for proteins, different colors for each. \
384
+ Include membrane boundary line at top." \
385
+ -o figures/mapk_pathway.png
386
+ ```
387
+
388
+ ### Example 4: System Architecture
389
+ ```bash
390
+ python scripts/generate_schematic.py \
391
+ "IoT system architecture block diagram. \
392
+ Bottom layer: Sensors (temperature, humidity, motion) in green boxes. \
393
+ Middle layer: Microcontroller (ESP32) in blue box. \
394
+ Connections to WiFi module (orange box) and Display (purple box). \
395
+ Top layer: Cloud server (gray box) connected to mobile app (light blue box). \
396
+ Show data flow arrows between all components. \
397
+ Label connections with protocols: I2C, UART, WiFi, HTTPS." \
398
+ -o figures/iot_architecture.png
399
+ ```
400
+
401
+ ---
402
+
403
+ ## Command-Line Usage
404
+
405
+ The main entry point for generating scientific schematics:
406
+
407
+ ```bash
408
+ # Basic usage
409
+ python scripts/generate_schematic.py "diagram description" -o output.png
410
+
411
+ # Custom iterations (max 2)
412
+ python scripts/generate_schematic.py "complex diagram" -o diagram.png --iterations 2
413
+
414
+ # Verbose mode
415
+ python scripts/generate_schematic.py "diagram" -o out.png -v
416
+ ```
417
+
418
+ **Note:** The Nano Banana Pro AI generation system includes automatic quality review in its iterative refinement process. Each iteration is evaluated for scientific accuracy, clarity, and accessibility.
419
+
420
+ ## Best Practices Summary
421
+
422
+ ### Design Principles
423
+
424
+ 1. **Clarity over complexity** - Simplify, remove unnecessary elements
425
+ 2. **Consistent styling** - Use templates and style files
426
+ 3. **Colorblind accessibility** - Use Okabe-Ito palette, redundant encoding
427
+ 4. **Appropriate typography** - Sans-serif fonts, minimum 7-8 pt
428
+ 5. **Vector format** - Always use PDF/SVG for publication
429
+
430
+ ### Technical Requirements
431
+
432
+ 1. **Resolution** - Vector preferred, or 300+ DPI for raster
433
+ 2. **File format** - PDF for LaTeX, SVG for web, PNG as fallback
434
+ 3. **Color space** - RGB for digital, CMYK for print (convert if needed)
435
+ 4. **Line weights** - Minimum 0.5 pt, typical 1-2 pt
436
+ 5. **Text size** - 7-8 pt minimum at final size
437
+
438
+ ### Integration Guidelines
439
+
440
+ 1. **Include in LaTeX** - Use `\includegraphics{}` for generated images
441
+ 2. **Caption thoroughly** - Describe all elements and abbreviations
442
+ 3. **Reference in text** - Explain diagram in narrative flow
443
+ 4. **Maintain consistency** - Same style across all figures in paper
444
+ 5. **Version control** - Keep prompts and generated images in repository
445
+
446
+ ## Troubleshooting Common Issues
447
+
448
+ ### AI Generation Issues
449
+
450
+ **Problem**: Overlapping text or elements
451
+ - **Solution**: AI generation automatically handles spacing
452
+ - **Solution**: Increase iterations: `--iterations 2` for better refinement
453
+
454
+ **Problem**: Elements not connecting properly
455
+ - **Solution**: Make your prompt more specific about connections and layout
456
+ - **Solution**: Increase iterations for better refinement
457
+
458
+ ### Image Quality Issues
459
+
460
+ **Problem**: Export quality poor
461
+ - **Solution**: AI generation produces high-quality images automatically
462
+ - **Solution**: Increase iterations for better results: `--iterations 2`
463
+
464
+ **Problem**: Elements overlap after generation
465
+ - **Solution**: AI generation automatically handles spacing
466
+ - **Solution**: Increase iterations: `--iterations 2` for better refinement
467
+ - **Solution**: Make your prompt more specific about layout and spacing requirements
468
+
469
+ ### Quality Check Issues
470
+
471
+ **Problem**: False positive overlap detection
472
+ - **Solution**: Adjust threshold: `detect_overlaps(image_path, threshold=0.98)`
473
+ - **Solution**: Manually review flagged regions in visual report
474
+
475
+ **Problem**: Generated image quality is low
476
+ - **Solution**: AI generation produces high-quality images by default
477
+ - **Solution**: Increase iterations for better results: `--iterations 2`
478
+
479
+ **Problem**: Colorblind simulation shows poor contrast
480
+ - **Solution**: Switch to Okabe-Ito palette explicitly in code
481
+ - **Solution**: Add redundant encoding (shapes, patterns, line styles)
482
+ - **Solution**: Increase color saturation and lightness differences
483
+
484
+ **Problem**: High-severity overlaps detected
485
+ - **Solution**: Review overlap_report.json for exact positions
486
+ - **Solution**: Increase spacing in those specific regions
487
+ - **Solution**: Re-run with adjusted parameters and verify again
488
+
489
+ **Problem**: Visual report generation fails
490
+ - **Solution**: Check Pillow and matplotlib installations
491
+ - **Solution**: Ensure image file is readable: `Image.open(path).verify()`
492
+ - **Solution**: Check sufficient disk space for report generation
493
+
494
+ ### Accessibility Problems
495
+
496
+ **Problem**: Colors indistinguishable in grayscale
497
+ - **Solution**: Run accessibility checker: `verify_accessibility(image_path)`
498
+ - **Solution**: Add patterns, shapes, or line styles for redundancy
499
+ - **Solution**: Increase contrast between adjacent elements
500
+
501
+ **Problem**: Text too small when printed
502
+ - **Solution**: Run resolution validator: `validate_resolution(image_path)`
503
+ - **Solution**: Design at final size, use minimum 7-8 pt fonts
504
+ - **Solution**: Check physical dimensions in resolution report
505
+
506
+ **Problem**: Accessibility checks consistently fail
507
+ - **Solution**: Review accessibility_report.json for specific failures
508
+ - **Solution**: Increase color contrast by at least 20%
509
+ - **Solution**: Test with actual grayscale conversion before finalizing
510
+
511
+ ## Resources and References
512
+
513
+ ### Detailed References
514
+
515
+ Load these files for comprehensive information on specific topics:
516
+
517
+ - **`references/diagram_types.md`** - Catalog of scientific diagram types with examples
518
+ - **`references/best_practices.md`** - Publication standards and accessibility guidelines
519
+
520
+ ### External Resources
521
+
522
+ **Python Libraries**
523
+ - Schemdraw Documentation: https://schemdraw.readthedocs.io/
524
+ - NetworkX Documentation: https://networkx.org/documentation/
525
+ - Matplotlib Documentation: https://matplotlib.org/
526
+
527
+ **Publication Standards**
528
+ - Nature Figure Guidelines: https://www.nature.com/nature/for-authors/final-submission
529
+ - Science Figure Guidelines: https://www.science.org/content/page/instructions-preparing-initial-manuscript
530
+ - CONSORT Diagram: http://www.consort-statement.org/consort-statement/flow-diagram
531
+
532
+ ## Integration with Other Skills
533
+
534
+ This skill works synergistically with:
535
+
536
+ - **Scientific Writing** - Diagrams follow figure best practices
537
+ - **Scientific Visualization** - Shares color palettes and styling
538
+ - **LaTeX Posters** - Generate diagrams for poster presentations
539
+ - **Research Grants** - Methodology diagrams for proposals
540
+ - **Peer Review** - Evaluate diagram clarity and accessibility
541
+
542
+ ## Quick Reference Checklist
543
+
544
+ Before submitting diagrams, verify:
545
+
546
+ ### Visual Quality
547
+ - [ ] High-quality image format (PNG from AI generation)
548
+ - [ ] No overlapping elements (AI handles automatically)
549
+ - [ ] Adequate spacing between all components (AI optimizes)
550
+ - [ ] Clean, professional alignment
551
+ - [ ] All arrows connect properly to intended targets
552
+
553
+ ### Accessibility
554
+ - [ ] Colorblind-safe palette (Okabe-Ito) used
555
+ - [ ] Works in grayscale (tested with accessibility checker)
556
+ - [ ] Sufficient contrast between elements (verified)
557
+ - [ ] Redundant encoding where appropriate (shapes + colors)
558
+ - [ ] Colorblind simulation passes all checks
559
+
560
+ ### Typography and Readability
561
+ - [ ] Text minimum 7-8 pt at final size
562
+ - [ ] All elements labeled clearly and completely
563
+ - [ ] Consistent font family and sizing
564
+ - [ ] No text overlaps or cutoffs
565
+ - [ ] Units included where applicable
566
+
567
+ ### Publication Standards
568
+ - [ ] Consistent styling with other figures in manuscript
569
+ - [ ] Comprehensive caption written with all abbreviations defined
570
+ - [ ] Referenced appropriately in manuscript text
571
+ - [ ] Meets journal-specific dimension requirements
572
+ - [ ] Exported in required format for journal (PDF/EPS/TIFF)
573
+
574
+ ### Quality Verification (Required)
575
+ - [ ] Ran `run_quality_checks()` and achieved PASS status
576
+ - [ ] Reviewed overlap detection report (zero high-severity overlaps)
577
+ - [ ] Passed accessibility verification (grayscale and colorblind)
578
+ - [ ] Resolution validated at target DPI (300+ for print)
579
+ - [ ] Visual quality report generated and reviewed
580
+ - [ ] All quality reports saved with figure files
581
+
582
+ ### Documentation and Version Control
583
+ - [ ] Source files (.tex, .py) saved for future revision
584
+ - [ ] Quality reports archived in `quality_reports/` directory
585
+ - [ ] Configuration parameters documented (colors, spacing, sizes)
586
+ - [ ] Git commit includes source, output, and quality reports
587
+ - [ ] README or comments explain how to regenerate figure
588
+
589
+ ### Final Integration Check
590
+ - [ ] Figure displays correctly in compiled manuscript
591
+ - [ ] Cross-references work (`\ref{}` points to correct figure)
592
+ - [ ] Figure number matches text citations
593
+ - [ ] Caption appears on correct page relative to figure
594
+ - [ ] No compilation warnings or errors related to figure
595
+
596
+ ## Environment Setup
597
+
598
+ ```bash
599
+ # Required
600
+ export OPENROUTER_API_KEY='your_api_key_here'
601
+
602
+ # Get key at: https://openrouter.ai/keys
603
+ ```
604
+
605
+ ## Getting Started
606
+
607
+ **Simplest possible usage:**
608
+ ```bash
609
+ python scripts/generate_schematic.py "your diagram description" -o output.png
610
+ ```
611
+
612
+ ---
613
+
614
+ Use this skill to create clear, accessible, publication-quality diagrams that effectively communicate complex scientific concepts. The AI-powered workflow with iterative refinement ensures diagrams meet professional standards.
615
+
@@ -0,0 +1,89 @@
1
+ #!/bin/bash
2
+ # Example usage of AI-powered scientific schematic generation
3
+ #
4
+ # Prerequisites:
5
+ # 1. Set OPENROUTER_API_KEY environment variable
6
+ # 2. Ensure Python 3.10+ is installed
7
+ # 3. Install requests: pip install requests
8
+
9
+ set -e
10
+
11
+ echo "=========================================="
12
+ echo "Scientific Schematics - AI Generation"
13
+ echo "Example Usage Demonstrations"
14
+ echo "=========================================="
15
+ echo ""
16
+
17
+ # Check for API key
18
+ if [ -z "$OPENROUTER_API_KEY" ]; then
19
+ echo "❌ Error: OPENROUTER_API_KEY environment variable not set"
20
+ echo ""
21
+ echo "Get an API key at: https://openrouter.ai/keys"
22
+ echo "Then set it with: export OPENROUTER_API_KEY='your_key'"
23
+ exit 1
24
+ fi
25
+
26
+ echo "✓ OPENROUTER_API_KEY is set"
27
+ echo ""
28
+
29
+ # Create output directory
30
+ mkdir -p figures
31
+ echo "✓ Created figures/ directory"
32
+ echo ""
33
+
34
+ # Example 1: Simple flowchart
35
+ echo "Example 1: CONSORT Flowchart"
36
+ echo "----------------------------"
37
+ python scripts/generate_schematic.py \
38
+ "CONSORT participant flow diagram. Assessed for eligibility (n=500). Excluded (n=150) with reasons: age<18 (n=80), declined (n=50), other (n=20). Randomized (n=350) into Treatment (n=175) and Control (n=175). Lost to follow-up: 15 and 10. Final analysis: 160 and 165." \
39
+ -o figures/consort_example.png \
40
+ --iterations 2
41
+
42
+ echo ""
43
+ echo "✓ Generated: figures/consort_example.png"
44
+ echo " - Also created: consort_example_v1.png, v2.png, v3.png"
45
+ echo " - Review log: consort_example_review_log.json"
46
+ echo ""
47
+
48
+ # Example 2: Neural network (shorter for demo)
49
+ echo "Example 2: Simple Neural Network"
50
+ echo "--------------------------------"
51
+ python scripts/generate_schematic.py \
52
+ "Simple feedforward neural network diagram. Input layer with 4 nodes, hidden layer with 6 nodes, output layer with 2 nodes. Show all connections. Label layers clearly." \
53
+ -o figures/neural_net_example.png \
54
+ --iterations 2
55
+
56
+ echo ""
57
+ echo "✓ Generated: figures/neural_net_example.png"
58
+ echo ""
59
+
60
+ # Example 3: Biological pathway (minimal)
61
+ echo "Example 3: Signaling Pathway"
62
+ echo "---------------------------"
63
+ python scripts/generate_schematic.py \
64
+ "Simple signaling pathway: Receptor → Kinase A → Kinase B → Transcription Factor → Gene. Show arrows with 'activation' labels. Use different colors for each component." \
65
+ -o figures/pathway_example.png \
66
+ --iterations 2
67
+
68
+ echo ""
69
+ echo "✓ Generated: figures/pathway_example.png"
70
+ echo ""
71
+
72
+ echo "=========================================="
73
+ echo "All examples completed successfully!"
74
+ echo "=========================================="
75
+ echo ""
76
+ echo "Generated files in figures/:"
77
+ ls -lh figures/*example*.png 2>/dev/null || echo " (Files will appear after running with valid API key)"
78
+ echo ""
79
+ echo "Review the review_log.json files to see:"
80
+ echo " - Quality scores for each iteration"
81
+ echo " - Detailed critiques and suggestions"
82
+ echo " - Improvement progression"
83
+ echo ""
84
+ echo "Next steps:"
85
+ echo " 1. View the generated images"
86
+ echo " 2. Review the quality scores in *_review_log.json"
87
+ echo " 3. Try your own prompts!"
88
+ echo ""
89
+