@synsci/cli-darwin-x64 1.1.70 → 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,559 @@
1
+ # Best Practices for Scientific Diagrams
2
+
3
+ ## Overview
4
+
5
+ This guide provides publication standards, accessibility guidelines, and best practices for creating high-quality scientific diagrams that meet journal requirements and communicate effectively to all readers.
6
+
7
+ ## Publication Standards
8
+
9
+ ### 1. File Format Requirements
10
+
11
+ **Vector Formats (Preferred)**
12
+ - **PDF**: Universal acceptance, preserves quality, works with LaTeX
13
+ - Use for: Line drawings, flowcharts, block diagrams, circuit diagrams
14
+ - Advantages: Scalable, small file size, embeds fonts
15
+ - Standard for LaTeX workflows
16
+
17
+ - **EPS (Encapsulated PostScript)**: Legacy format, still accepted
18
+ - Use for: Older publishing systems
19
+ - Compatible with most journals
20
+ - Can be converted from PDF
21
+
22
+ - **SVG (Scalable Vector Graphics)**: Web-friendly, increasingly accepted
23
+ - Use for: Online publications, interactive figures
24
+ - Can be edited in vector graphics software
25
+ - Not all journals accept SVG
26
+
27
+ **Raster Formats (When Necessary)**
28
+ - **TIFF**: Professional standard for raster graphics
29
+ - Use for: Microscopy images, photographs combined with diagrams
30
+ - Minimum 300 DPI at final print size
31
+ - Lossless compression (LZW)
32
+
33
+ - **PNG**: Web-friendly, lossless compression
34
+ - Use for: Online supplementary materials, presentations
35
+ - Minimum 300 DPI for print
36
+ - Supports transparency
37
+
38
+ **Never Use**
39
+ - **JPEG**: Lossy compression creates artifacts in diagrams
40
+ - **GIF**: Limited colors, inappropriate for scientific figures
41
+ - **BMP**: Uncompressed, unnecessarily large files
42
+
43
+ ### 2. Resolution Requirements
44
+
45
+ **Vector Graphics**
46
+ - Infinite resolution (scalable)
47
+ - **Recommended**: Always use vector when possible
48
+
49
+ **Raster Graphics (when vector not possible)**
50
+ - **Publication quality**: 300-600 DPI
51
+ - **Line art**: 600-1200 DPI
52
+ - **Web/screen**: 150 DPI acceptable
53
+ - **Never**: Below 300 DPI for print
54
+
55
+ **Calculating DPI**
56
+ ```
57
+ DPI = pixels / (inches at final size)
58
+
59
+ Example:
60
+ Image size: 2400 × 1800 pixels
61
+ Final print size: 8 × 6 inches
62
+ DPI = 2400 / 8 = 300 ✓ (acceptable)
63
+ ```
64
+
65
+ ### 3. Size and Dimensions
66
+
67
+ **Journal-Specific Column Widths**
68
+ - **Nature**: Single column 89 mm (3.5 in), Double 183 mm (7.2 in)
69
+ - **Science**: Single column 55 mm (2.17 in), Double 120 mm (4.72 in)
70
+ - **Cell**: Single column 85 mm (3.35 in), Double 178 mm (7 in)
71
+ - **PLOS**: Single column 83 mm (3.27 in), Double 173 mm (6.83 in)
72
+ - **IEEE**: Single column 3.5 in, Double 7.16 in
73
+
74
+ **Best Practices**
75
+ - Design at final print size (avoid scaling)
76
+ - Use journal templates when available
77
+ - Allow margins for cropping
78
+ - Test appearance at final size before submission
79
+
80
+ ### 4. Typography Standards
81
+
82
+ **Font Selection**
83
+ - **Recommended**: Arial, Helvetica, Calibri (sans-serif)
84
+ - **Acceptable**: Times New Roman (serif) for mathematics-heavy
85
+ - **Avoid**: Decorative fonts, script fonts, system fonts that may not embed
86
+
87
+ **Font Sizes (at final print size)**
88
+ - **Minimum**: 6-7 pt (journal dependent)
89
+ - **Axis labels**: 8-9 pt
90
+ - **Figure labels**: 10-12 pt
91
+ - **Panel labels (A, B, C)**: 10-14 pt, bold
92
+ - **Main text**: Should match manuscript body text
93
+
94
+ **Text Clarity**
95
+ - Use sentence case: "Time (seconds)" not "TIME (SECONDS)"
96
+ - Include units in parentheses: "Temperature (°C)"
97
+ - Spell out abbreviations in figure caption
98
+ - Avoid rotated text when possible (exception: y-axis labels)
99
+
100
+ ### 5. Line Weights and Strokes
101
+
102
+ **Recommended Line Widths**
103
+ - **Diagram outlines**: 0.5-1.0 pt
104
+ - **Connection lines/arrows**: 1.0-2.0 pt
105
+ - **Emphasis elements**: 2.0-3.0 pt
106
+ - **Minimum visible**: 0.25 pt at final size
107
+
108
+ **Consistency**
109
+ - Use same line weight for similar elements
110
+ - Vary line weight to show hierarchy
111
+ - Avoid hairline rules (too thin to print reliably)
112
+
113
+ ## Accessibility and Colorblindness
114
+
115
+ ### 1. Colorblind-Safe Palettes
116
+
117
+ **Okabe-Ito Palette (Recommended)**
118
+ Most distinguishable by all types of colorblindness:
119
+
120
+ ```latex
121
+ % RGB values
122
+ Orange: #E69F00 (230, 159, 0)
123
+ Sky Blue: #56B4E9 ( 86, 180, 233)
124
+ Green: #009E73 ( 0, 158, 115)
125
+ Yellow: #F0E442 (240, 228, 66)
126
+ Blue: #0072B2 ( 0, 114, 178)
127
+ Vermillion: #D55E00 (213, 94, 0)
128
+ Purple: #CC79A7 (204, 121, 167)
129
+ Black: #000000 ( 0, 0, 0)
130
+ ```
131
+
132
+ **Alternative: ColorBrewer Palettes**
133
+ - **Qualitative**: Set2, Paired, Dark2
134
+ - **Sequential**: Blues, Greens, Oranges (avoid Reds/Greens together)
135
+ - **Diverging**: RdBu (Red-Blue), PuOr (Purple-Orange)
136
+
137
+ **Colors to Avoid Together**
138
+ - Red-Green combinations (8% of males cannot distinguish)
139
+ - Blue-Purple combinations
140
+ - Yellow-Light green combinations
141
+
142
+ ### 2. Redundant Encoding
143
+
144
+ Don't rely on color alone. Use multiple visual channels:
145
+
146
+ **Shape + Color**
147
+ ```
148
+ Circle + Blue = Condition A
149
+ Square + Orange = Condition B
150
+ Triangle + Green = Condition C
151
+ ```
152
+
153
+ **Line Style + Color**
154
+ ```
155
+ Solid + Blue = Treatment 1
156
+ Dashed + Orange = Treatment 2
157
+ Dotted + Green = Control
158
+ ```
159
+
160
+ **Pattern Fill + Color**
161
+ ```
162
+ Solid fill + Blue = Group A
163
+ Diagonal stripes + Orange = Group B
164
+ Cross-hatch + Green = Group C
165
+ ```
166
+
167
+ ### 3. Grayscale Compatibility
168
+
169
+ **Test Requirement**: All diagrams must be interpretable in grayscale
170
+
171
+ **Strategies**
172
+ - Use different shades (light, medium, dark)
173
+ - Add patterns or textures to filled areas
174
+ - Vary line styles (solid, dashed, dotted)
175
+ - Use labels directly on elements
176
+ - Include text annotations
177
+
178
+ **Grayscale Test**
179
+ ```bash
180
+ # Convert to grayscale to test
181
+ convert diagram.pdf -colorspace gray diagram_gray.pdf
182
+ ```
183
+
184
+ ### 4. Contrast Requirements
185
+
186
+ **Minimum Contrast Ratios (WCAG Guidelines)**
187
+ - **Normal text**: 4.5:1
188
+ - **Large text** (≥18pt): 3:1
189
+ - **Graphical elements**: 3:1
190
+
191
+ **High Contrast Practices**
192
+ - Dark text on light background (or vice versa)
193
+ - Avoid low-contrast color pairs (yellow on white, light gray on white)
194
+ - Use black or dark gray for critical text
195
+ - White text on dark backgrounds needs larger font size
196
+
197
+ ### 5. Alternative Text and Descriptions
198
+
199
+ **Figure Captions Must Include**
200
+ - Description of diagram type
201
+ - All abbreviations spelled out
202
+ - Explanation of symbols and colors
203
+ - Sample sizes (n) where relevant
204
+ - Statistical annotations explained
205
+ - Reference to detailed methods if applicable
206
+
207
+ **Example Caption**
208
+ "Participant flow diagram following CONSORT guidelines. Rectangles represent study stages, with participant numbers (n) shown. Exclusion criteria are listed beside each screening stage. Final analysis included n=350 participants across two groups."
209
+
210
+ ## Design Principles
211
+
212
+ ### 1. Simplicity and Clarity
213
+
214
+ **Occam's Razor for Diagrams**
215
+ - Remove every element that doesn't add information
216
+ - Simplify complex relationships
217
+ - Break complex diagrams into multiple panels
218
+ - Use consistent layouts across related figures
219
+
220
+ **Visual Hierarchy**
221
+ - Most important elements: Largest, darkest, central
222
+ - Supporting elements: Smaller, lighter, peripheral
223
+ - Annotations: Minimal, clear labels only
224
+
225
+ ### 2. Consistency
226
+
227
+ **Within a Figure**
228
+ - Same shape/color represents same concept
229
+ - Consistent arrow styles for same relationships
230
+ - Uniform spacing and alignment
231
+ - Matching font sizes for similar elements
232
+
233
+ **Across Figures in a Paper**
234
+ - Reuse color schemes
235
+ - Maintain consistent node styles
236
+ - Use same notation system
237
+ - Apply same layout principles
238
+
239
+ ### 3. Professional Appearance
240
+
241
+ **Alignment**
242
+ - Use grids for node placement
243
+ - Align nodes horizontally or vertically
244
+ - Evenly space elements
245
+ - Center labels within shapes
246
+
247
+ **White Space**
248
+ - Don't overcrowd diagrams
249
+ - Leave breathing room around elements
250
+ - Use white space to group related items
251
+ - Margins around entire diagram
252
+
253
+ **Polish**
254
+ - No jagged lines or misaligned elements
255
+ - Smooth curves and precise angles
256
+ - Clean connection points
257
+ - No overlapping text
258
+
259
+ ## Common Pitfalls and Solutions
260
+
261
+ ### Pitfall 1: Overcomplicated Diagrams
262
+
263
+ **Problem**: Too much information in one diagram
264
+ **Solution**:
265
+ - Split into multiple panels (A, B, C)
266
+ - Create overview + detailed diagrams
267
+ - Move details to supplementary figures
268
+ - Use hierarchical presentation
269
+
270
+ ### Pitfall 2: Inconsistent Styling
271
+
272
+ **Problem**: Different styles for same elements across figures
273
+ **Solution**:
274
+ - Create and use style templates
275
+ - Use the same color palette throughout
276
+ - Document your style choices
277
+
278
+ ### Pitfall 3: Poor Label Placement
279
+
280
+ **Problem**: Labels overlap elements or are hard to read
281
+ **Solution**:
282
+ - Place labels outside shapes when possible
283
+ - Use leader lines for distant labels
284
+ - Rotate text only when necessary
285
+ - Ensure adequate contrast with background
286
+
287
+ ### Pitfall 4: Tiny Text
288
+
289
+ **Problem**: Text too small to read at final print size
290
+ **Solution**:
291
+ - Design at final size from the start
292
+ - Test print at final size
293
+ - Minimum 7-8 pt font
294
+ - Simplify labels if space is limited
295
+
296
+ ### Pitfall 5: Ambiguous Arrows
297
+
298
+ **Problem**: Unclear what arrows represent or where they point
299
+ **Solution**:
300
+ - Use different arrow styles for different meanings
301
+ - Add labels to arrows
302
+ - Include legend for arrow types
303
+ - Use anchor points for precise connections
304
+
305
+ ### Pitfall 6: Color Overuse
306
+
307
+ **Problem**: Too many colors, confusing or inaccessible
308
+ **Solution**:
309
+ - Limit to 3-5 colors maximum
310
+ - Use color purposefully (categories, emphasis)
311
+ - Stick to colorblind-safe palette
312
+ - Provide redundant encoding
313
+
314
+ ## Quality Control Checklist
315
+
316
+ ### Before Submission
317
+
318
+ **Technical Requirements**
319
+ - [ ] Correct file format (PDF/EPS preferred for diagrams)
320
+ - [ ] Sufficient resolution (vector or 300+ DPI)
321
+ - [ ] Appropriate size (matches journal column width)
322
+ - [ ] Fonts embedded in PDF
323
+ - [ ] No compression artifacts
324
+
325
+ **Accessibility**
326
+ - [ ] Colorblind-safe palette used
327
+ - [ ] Works in grayscale (tested)
328
+ - [ ] Text minimum 7-8 pt at final size
329
+ - [ ] High contrast between elements
330
+ - [ ] Redundant encoding (not color alone)
331
+
332
+ **Design Quality**
333
+ - [ ] Elements aligned properly
334
+ - [ ] Consistent spacing and layout
335
+ - [ ] No overlapping text or elements
336
+ - [ ] Clear visual hierarchy
337
+ - [ ] Professional appearance
338
+
339
+ **Content**
340
+ - [ ] All elements labeled
341
+ - [ ] Abbreviations defined
342
+ - [ ] Units included where relevant
343
+ - [ ] Legend provided if needed
344
+ - [ ] Caption comprehensive
345
+
346
+ **Consistency**
347
+ - [ ] Matches other figures in style
348
+ - [ ] Same notation as text
349
+ - [ ] Consistent with journal guidelines
350
+ - [ ] Cross-references work
351
+
352
+ ## Journal-Specific Guidelines
353
+
354
+ ### Nature
355
+
356
+ **Figure Requirements**
357
+ - **Size**: 89 mm (single) or 183 mm (double column)
358
+ - **Format**: PDF, EPS, or high-res TIFF
359
+ - **Fonts**: Sans-serif preferred
360
+ - **File size**: <10 MB per file
361
+ - **Resolution**: 300 DPI minimum for raster
362
+
363
+ **Style Notes**
364
+ - Panel labels: lowercase bold (a, b, c)
365
+ - Simple, clean design
366
+ - Minimal colors
367
+ - Clear captions
368
+
369
+ ### Science
370
+
371
+ **Figure Requirements**
372
+ - **Size**: 55 mm (single) or 120 mm (double column)
373
+ - **Format**: PDF, EPS, TIFF, or JPEG (high quality)
374
+ - **Resolution**: 300 DPI for photos, 600 DPI for line art
375
+ - **File size**: <10 MB
376
+ - **Fonts**: 6-7 pt minimum
377
+
378
+ **Style Notes**
379
+ - Panel labels: capital bold (A, B, C)
380
+ - High contrast
381
+ - Readable at small size
382
+
383
+ ### Cell
384
+
385
+ **Figure Requirements**
386
+ - **Size**: 85 mm (single) or 178 mm (double column)
387
+ - **Format**: PDF preferred, TIFF, EPS acceptable
388
+ - **Resolution**: 300 DPI minimum
389
+ - **Fonts**: 8-10 pt for labels
390
+ - **Line weight**: 0.5 pt minimum
391
+
392
+ **Style Notes**
393
+ - Clean, professional
394
+ - Color or grayscale
395
+ - Panel labels capital (A, B, C)
396
+
397
+ ### IEEE
398
+
399
+ **Figure Requirements**
400
+ - **Size**: 3.5 in (single) or 7.16 in (double column)
401
+ - **Format**: PDF, EPS (vector preferred)
402
+ - **Resolution**: 600 DPI for line art, 300 DPI for halftone
403
+ - **Fonts**: 8-10 pt minimum
404
+ - **Color**: Grayscale in print, color in digital
405
+
406
+ **Style Notes**
407
+ - Follow IEEE Graphics Manual
408
+ - Standard symbols for circuits
409
+ - Technical precision
410
+ - Clear axis labels
411
+
412
+ ## Software-Specific Export Settings
413
+
414
+ ### AI-Generated Images
415
+
416
+ AI-generated diagrams are exported as PNG images and can be included in LaTeX documents using:
417
+
418
+ ```latex
419
+ \includegraphics[width=\textwidth]{diagram.png}
420
+ ```
421
+
422
+ ### Python (Matplotlib) Export
423
+
424
+ ```python
425
+ import matplotlib.pyplot as plt
426
+
427
+ # Set publication quality
428
+ plt.rcParams['font.family'] = 'sans-serif'
429
+ plt.rcParams['font.sans-serif'] = ['Arial']
430
+ plt.rcParams['font.size'] = 8
431
+ plt.rcParams['pdf.fonttype'] = 42 # TrueType fonts in PDF
432
+
433
+ # Save with proper DPI and cropping
434
+ fig.savefig('diagram.pdf', dpi=300, bbox_inches='tight',
435
+ pad_inches=0.1, transparent=False)
436
+ fig.savefig('diagram.png', dpi=300, bbox_inches='tight')
437
+ ```
438
+
439
+ ### Schemdraw Export
440
+
441
+ ```python
442
+ import schemdraw
443
+
444
+ d = schemdraw.Drawing()
445
+ # ... build circuit ...
446
+
447
+ # Export
448
+ d.save('circuit.svg') # Vector
449
+ d.save('circuit.pdf') # Vector
450
+ d.save('circuit.png', dpi=300) # Raster
451
+ ```
452
+
453
+ ### Inkscape Command Line
454
+
455
+ ```bash
456
+ # PDF to high-res PNG
457
+ inkscape diagram.pdf --export-png=diagram.png --export-dpi=300
458
+
459
+ # SVG to PDF
460
+ inkscape diagram.svg --export-pdf=diagram.pdf
461
+ ```
462
+
463
+ ## Version Control Best Practices
464
+
465
+ **Keep Source Files**
466
+ - Save original .tex, .py, or .svg files
467
+ - Use descriptive filenames with versions
468
+ - Document color palette and style choices
469
+ - Include README with regeneration instructions
470
+
471
+ **Directory Structure**
472
+ ```
473
+ figures/
474
+ ├── source/ # Editable source files
475
+ │ ├── diagram1.tex
476
+ │ ├── circuit.py
477
+ │ └── pathway.svg
478
+ ├── generated/ # Auto-generated outputs
479
+ │ ├── diagram1.pdf
480
+ │ ├── circuit.pdf
481
+ │ └── pathway.pdf
482
+ └── final/ # Final submission versions
483
+ ├── figure1.pdf
484
+ └── figure2.pdf
485
+ ```
486
+
487
+ **Git Tracking**
488
+ - Track source files (.tex, .py)
489
+ - Consider .gitignore for generated PDFs (large files)
490
+ - Use releases/tags for submission versions
491
+ - Document generation process in README
492
+
493
+ ## Testing and Validation
494
+
495
+ ### Pre-Submission Tests
496
+
497
+ **Visual Tests**
498
+ 1. **Print test**: Print at final size, check readability
499
+ 2. **Grayscale test**: Convert to grayscale, verify interpretability
500
+ 3. **Zoom test**: View at 400% and 25% to check scalability
501
+ 4. **Screen test**: View on different devices (phone, tablet, desktop)
502
+
503
+ **Technical Tests**
504
+ 1. **Font embedding**: Check PDF properties
505
+ 2. **Resolution check**: Verify DPI meets requirements
506
+ 3. **File size**: Ensure under journal limits
507
+ 4. **Format compliance**: Verify accepted format
508
+
509
+ **Accessibility Tests**
510
+ 1. **Colorblind simulation**: Use tools like Color Oracle
511
+ 2. **Contrast checker**: WCAG contrast ratio tools
512
+ 3. **Screen reader**: Test alt text (for web figures)
513
+
514
+ ### Tools for Testing
515
+
516
+ **Colorblind Simulation**
517
+ - Color Oracle (free, cross-platform)
518
+ - Coblis (Color Blindness Simulator)
519
+ - Photoshop/GIMP colorblind preview modes
520
+
521
+ **PDF Inspection**
522
+ ```bash
523
+ # Check PDF properties
524
+ pdfinfo diagram.pdf
525
+
526
+ # Check fonts
527
+ pdffonts diagram.pdf
528
+
529
+ # Check image resolution
530
+ identify -verbose diagram.pdf
531
+ ```
532
+
533
+ **Contrast Checking**
534
+ - WebAIM Contrast Checker: https://webaim.org/resources/contrastchecker/
535
+ - Colorable: https://colorable.jxnblk.com/
536
+
537
+ ## Summary: Golden Rules
538
+
539
+ 1. **Vector first**: Always use vector formats when possible
540
+ 2. **Design at final size**: Avoid scaling after creation
541
+ 3. **Colorblind-safe palette**: Use Okabe-Ito or similar
542
+ 4. **Test in grayscale**: Diagrams must work without color
543
+ 5. **Minimum 7-8 pt text**: At final print size
544
+ 6. **Consistent styling**: Across all figures in paper
545
+ 7. **Keep it simple**: Remove unnecessary elements
546
+ 8. **High contrast**: Ensure readability
547
+ 9. **Align elements**: Professional appearance matters
548
+ 10. **Comprehensive caption**: Explain everything
549
+
550
+ ## Further Resources
551
+
552
+ - **Nature Figure Preparation**: https://www.nature.com/nature/for-authors/final-submission
553
+ - **Science Figure Guidelines**: https://www.science.org/content/page/instructions-preparing-initial-manuscript
554
+ - **WCAG Accessibility Standards**: https://www.w3.org/WAI/WCAG21/quickref/
555
+ - **Color Universal Design (CUD)**: https://jfly.uni-koeln.de/color/
556
+ - **ColorBrewer**: https://colorbrewer2.org/
557
+
558
+ Following these best practices ensures your diagrams meet publication standards and effectively communicate to all readers, regardless of colorblindness or viewing conditions.
559
+
@@ -0,0 +1,135 @@
1
+ #!/usr/bin/env python3
2
+ """
3
+ Scientific schematic generation using Nano Banana Pro.
4
+
5
+ Generate any scientific diagram by describing it in natural language.
6
+ Nano Banana Pro handles everything automatically with smart iterative refinement.
7
+
8
+ Smart iteration: Only regenerates if quality is below threshold for your document type.
9
+ Quality review: Uses Gemini 3 Pro for professional scientific evaluation.
10
+
11
+ Usage:
12
+ # Generate for journal paper (highest quality threshold)
13
+ python generate_schematic.py "CONSORT flowchart" -o flowchart.png --doc-type journal
14
+
15
+ # Generate for presentation (lower threshold, faster)
16
+ python generate_schematic.py "Transformer architecture" -o transformer.png --doc-type presentation
17
+
18
+ # Generate for poster
19
+ python generate_schematic.py "MAPK signaling pathway" -o pathway.png --doc-type poster
20
+ """
21
+
22
+ import argparse
23
+ import os
24
+ import subprocess
25
+ import sys
26
+ from pathlib import Path
27
+
28
+
29
+ def main():
30
+ """Command-line interface."""
31
+ parser = argparse.ArgumentParser(
32
+ description="Generate scientific schematics using AI with smart iterative refinement",
33
+ formatter_class=argparse.RawDescriptionHelpFormatter,
34
+ epilog="""
35
+ How it works:
36
+ Simply describe your diagram in natural language
37
+ Nano Banana Pro generates it automatically with:
38
+ - Smart iteration (only regenerates if quality is below threshold)
39
+ - Quality review by Gemini 3 Pro
40
+ - Document-type aware quality thresholds
41
+ - Publication-ready output
42
+
43
+ Document Types (quality thresholds):
44
+ journal 8.5/10 - Nature, Science, peer-reviewed journals
45
+ conference 8.0/10 - Conference papers
46
+ thesis 8.0/10 - Dissertations, theses
47
+ grant 8.0/10 - Grant proposals
48
+ preprint 7.5/10 - arXiv, bioRxiv, etc.
49
+ report 7.5/10 - Technical reports
50
+ poster 7.0/10 - Academic posters
51
+ presentation 6.5/10 - Slides, talks
52
+ default 7.5/10 - General purpose
53
+
54
+ Examples:
55
+ # Generate for journal paper (strict quality)
56
+ python generate_schematic.py "CONSORT participant flow" -o flowchart.png --doc-type journal
57
+
58
+ # Generate for poster (moderate quality)
59
+ python generate_schematic.py "Transformer architecture" -o arch.png --doc-type poster
60
+
61
+ # Generate for slides (faster, lower threshold)
62
+ python generate_schematic.py "System diagram" -o system.png --doc-type presentation
63
+
64
+ # Custom max iterations
65
+ python generate_schematic.py "Complex pathway" -o pathway.png --iterations 2
66
+
67
+ # Verbose output
68
+ python generate_schematic.py "Circuit diagram" -o circuit.png -v
69
+
70
+ Environment Variables:
71
+ OPENROUTER_API_KEY Required for AI generation
72
+ """,
73
+ )
74
+
75
+ parser.add_argument("prompt", help="Description of the diagram to generate")
76
+ parser.add_argument("-o", "--output", required=True, help="Output file path")
77
+ parser.add_argument(
78
+ "--doc-type",
79
+ default="default",
80
+ choices=["journal", "conference", "poster", "presentation", "report", "grant", "thesis", "preprint", "default"],
81
+ help="Document type for quality threshold (default: default)",
82
+ )
83
+ parser.add_argument("--iterations", type=int, default=2, help="Maximum refinement iterations (default: 2, max: 2)")
84
+ parser.add_argument("--api-key", help="OpenRouter API key (or use OPENROUTER_API_KEY env var)")
85
+ parser.add_argument("-v", "--verbose", action="store_true", help="Verbose output")
86
+
87
+ args = parser.parse_args()
88
+
89
+ # Check for API key
90
+ api_key = args.api_key or os.getenv("OPENROUTER_API_KEY")
91
+ if not api_key:
92
+ print("Error: OPENROUTER_API_KEY environment variable not set")
93
+ print("\nFor AI generation, you need an OpenRouter API key.")
94
+ print("Get one at: https://openrouter.ai/keys")
95
+ print("\nSet it with:")
96
+ print(" export OPENROUTER_API_KEY='your_api_key'")
97
+ print("\nOr use --api-key flag")
98
+ sys.exit(1)
99
+
100
+ # Find AI generation script
101
+ script_dir = Path(__file__).parent
102
+ ai_script = script_dir / "generate_schematic_ai.py"
103
+
104
+ if not ai_script.exists():
105
+ print(f"Error: AI generation script not found: {ai_script}")
106
+ sys.exit(1)
107
+
108
+ # Build command
109
+ cmd = [sys.executable, str(ai_script), args.prompt, "-o", args.output]
110
+
111
+ if args.doc_type != "default":
112
+ cmd.extend(["--doc-type", args.doc_type])
113
+
114
+ # Enforce max 2 iterations
115
+ iterations = min(args.iterations, 2)
116
+ if iterations != 2:
117
+ cmd.extend(["--iterations", str(iterations)])
118
+
119
+ if api_key:
120
+ cmd.extend(["--api-key", api_key])
121
+
122
+ if args.verbose:
123
+ cmd.append("-v")
124
+
125
+ # Execute
126
+ try:
127
+ result = subprocess.run(cmd, check=False)
128
+ sys.exit(result.returncode)
129
+ except Exception as e:
130
+ print(f"Error executing AI generation: {e}")
131
+ sys.exit(1)
132
+
133
+
134
+ if __name__ == "__main__":
135
+ main()