@synsci/cli-darwin-arm64 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.
- package/bin/skills/citation-management/SKILL.md +1109 -0
- package/bin/skills/citation-management/assets/bibtex_template.bib +264 -0
- package/bin/skills/citation-management/assets/citation_checklist.md +386 -0
- package/bin/skills/citation-management/references/bibtex_formatting.md +908 -0
- package/bin/skills/citation-management/references/citation_validation.md +794 -0
- package/bin/skills/citation-management/references/google_scholar_search.md +725 -0
- package/bin/skills/citation-management/references/metadata_extraction.md +870 -0
- package/bin/skills/citation-management/references/pubmed_search.md +839 -0
- package/bin/skills/citation-management/scripts/doi_to_bibtex.py +182 -0
- package/bin/skills/citation-management/scripts/extract_metadata.py +570 -0
- package/bin/skills/citation-management/scripts/format_bibtex.py +349 -0
- package/bin/skills/citation-management/scripts/search_google_scholar.py +251 -0
- package/bin/skills/citation-management/scripts/search_pubmed.py +348 -0
- package/bin/skills/citation-management/scripts/validate_citations.py +494 -0
- package/bin/skills/clinical-decision-support/README.md +129 -0
- package/bin/skills/clinical-decision-support/SKILL.md +506 -0
- package/bin/skills/clinical-decision-support/assets/biomarker_report_template.tex +380 -0
- package/bin/skills/clinical-decision-support/assets/clinical_pathway_template.tex +222 -0
- package/bin/skills/clinical-decision-support/assets/cohort_analysis_template.tex +359 -0
- package/bin/skills/clinical-decision-support/assets/color_schemes.tex +149 -0
- package/bin/skills/clinical-decision-support/assets/example_gbm_cohort.md +208 -0
- package/bin/skills/clinical-decision-support/assets/recommendation_strength_guide.md +328 -0
- package/bin/skills/clinical-decision-support/assets/treatment_recommendation_template.tex +529 -0
- package/bin/skills/clinical-decision-support/references/biomarker_classification.md +719 -0
- package/bin/skills/clinical-decision-support/references/clinical_decision_algorithms.md +604 -0
- package/bin/skills/clinical-decision-support/references/evidence_synthesis.md +840 -0
- package/bin/skills/clinical-decision-support/references/outcome_analysis.md +640 -0
- package/bin/skills/clinical-decision-support/references/patient_cohort_analysis.md +427 -0
- package/bin/skills/clinical-decision-support/references/treatment_recommendations.md +521 -0
- package/bin/skills/clinical-decision-support/scripts/biomarker_classifier.py +383 -0
- package/bin/skills/clinical-decision-support/scripts/build_decision_tree.py +417 -0
- package/bin/skills/clinical-decision-support/scripts/create_cohort_tables.py +509 -0
- package/bin/skills/clinical-decision-support/scripts/generate_survival_analysis.py +441 -0
- package/bin/skills/clinical-decision-support/scripts/validate_cds_document.py +326 -0
- package/bin/skills/clinical-reports/IMPLEMENTATION_SUMMARY.md +641 -0
- package/bin/skills/clinical-reports/README.md +236 -0
- package/bin/skills/clinical-reports/SKILL.md +1127 -0
- package/bin/skills/clinical-reports/assets/case_report_template.md +352 -0
- package/bin/skills/clinical-reports/assets/clinical_trial_csr_template.md +353 -0
- package/bin/skills/clinical-reports/assets/clinical_trial_sae_template.md +359 -0
- package/bin/skills/clinical-reports/assets/consult_note_template.md +305 -0
- package/bin/skills/clinical-reports/assets/discharge_summary_template.md +453 -0
- package/bin/skills/clinical-reports/assets/hipaa_compliance_checklist.md +395 -0
- package/bin/skills/clinical-reports/assets/history_physical_template.md +305 -0
- package/bin/skills/clinical-reports/assets/lab_report_template.md +309 -0
- package/bin/skills/clinical-reports/assets/pathology_report_template.md +249 -0
- package/bin/skills/clinical-reports/assets/quality_checklist.md +338 -0
- package/bin/skills/clinical-reports/assets/radiology_report_template.md +318 -0
- package/bin/skills/clinical-reports/assets/soap_note_template.md +253 -0
- package/bin/skills/clinical-reports/references/case_report_guidelines.md +570 -0
- package/bin/skills/clinical-reports/references/clinical_trial_reporting.md +693 -0
- package/bin/skills/clinical-reports/references/data_presentation.md +530 -0
- package/bin/skills/clinical-reports/references/diagnostic_reports_standards.md +629 -0
- package/bin/skills/clinical-reports/references/medical_terminology.md +588 -0
- package/bin/skills/clinical-reports/references/patient_documentation.md +744 -0
- package/bin/skills/clinical-reports/references/peer_review_standards.md +585 -0
- package/bin/skills/clinical-reports/references/regulatory_compliance.md +577 -0
- package/bin/skills/clinical-reports/scripts/check_deidentification.py +332 -0
- package/bin/skills/clinical-reports/scripts/compliance_checker.py +78 -0
- package/bin/skills/clinical-reports/scripts/extract_clinical_data.py +97 -0
- package/bin/skills/clinical-reports/scripts/format_adverse_events.py +97 -0
- package/bin/skills/clinical-reports/scripts/generate_report_template.py +149 -0
- package/bin/skills/clinical-reports/scripts/terminology_validator.py +126 -0
- package/bin/skills/clinical-reports/scripts/validate_case_report.py +323 -0
- package/bin/skills/clinical-reports/scripts/validate_trial_report.py +88 -0
- package/bin/skills/fireworks-ai/SKILL.md +665 -0
- package/bin/skills/generate-image/SKILL.md +178 -0
- package/bin/skills/generate-image/scripts/generate_image.py +254 -0
- package/bin/skills/groq/SKILL.md +347 -0
- package/bin/skills/hypothesis-generation/SKILL.md +293 -0
- package/bin/skills/hypothesis-generation/assets/FORMATTING_GUIDE.md +672 -0
- package/bin/skills/hypothesis-generation/assets/hypothesis_generation.sty +307 -0
- package/bin/skills/hypothesis-generation/assets/hypothesis_report_template.tex +572 -0
- package/bin/skills/hypothesis-generation/references/experimental_design_patterns.md +329 -0
- package/bin/skills/hypothesis-generation/references/hypothesis_quality_criteria.md +198 -0
- package/bin/skills/hypothesis-generation/references/literature_search_strategies.md +622 -0
- package/bin/skills/latex-posters/README.md +417 -0
- package/bin/skills/latex-posters/SKILL.md +1602 -0
- package/bin/skills/latex-posters/assets/baposter_template.tex +257 -0
- package/bin/skills/latex-posters/assets/beamerposter_template.tex +244 -0
- package/bin/skills/latex-posters/assets/poster_quality_checklist.md +358 -0
- package/bin/skills/latex-posters/assets/tikzposter_template.tex +251 -0
- package/bin/skills/latex-posters/references/latex_poster_packages.md +745 -0
- package/bin/skills/latex-posters/references/poster_content_guide.md +748 -0
- package/bin/skills/latex-posters/references/poster_design_principles.md +806 -0
- package/bin/skills/latex-posters/references/poster_layout_design.md +900 -0
- package/bin/skills/latex-posters/scripts/review_poster.sh +214 -0
- package/bin/skills/literature-review/SKILL.md +641 -0
- package/bin/skills/literature-review/assets/review_template.md +412 -0
- package/bin/skills/literature-review/references/citation_styles.md +166 -0
- package/bin/skills/literature-review/references/database_strategies.md +455 -0
- package/bin/skills/literature-review/scripts/generate_pdf.py +184 -0
- package/bin/skills/literature-review/scripts/search_databases.py +310 -0
- package/bin/skills/literature-review/scripts/verify_citations.py +218 -0
- package/bin/skills/market-research-reports/SKILL.md +904 -0
- package/bin/skills/market-research-reports/assets/FORMATTING_GUIDE.md +428 -0
- package/bin/skills/market-research-reports/assets/market_report_template.tex +1380 -0
- package/bin/skills/market-research-reports/assets/market_research.sty +564 -0
- package/bin/skills/market-research-reports/references/data_analysis_patterns.md +548 -0
- package/bin/skills/market-research-reports/references/report_structure_guide.md +999 -0
- package/bin/skills/market-research-reports/references/visual_generation_guide.md +1077 -0
- package/bin/skills/market-research-reports/scripts/generate_market_visuals.py +472 -0
- package/bin/skills/markitdown/INSTALLATION_GUIDE.md +318 -0
- package/bin/skills/markitdown/LICENSE.txt +22 -0
- package/bin/skills/markitdown/OPENROUTER_INTEGRATION.md +359 -0
- package/bin/skills/markitdown/QUICK_REFERENCE.md +309 -0
- package/bin/skills/markitdown/README.md +184 -0
- package/bin/skills/markitdown/SKILL.md +486 -0
- package/bin/skills/markitdown/SKILL_SUMMARY.md +307 -0
- package/bin/skills/markitdown/assets/example_usage.md +463 -0
- package/bin/skills/markitdown/references/api_reference.md +399 -0
- package/bin/skills/markitdown/references/file_formats.md +542 -0
- package/bin/skills/markitdown/scripts/batch_convert.py +195 -0
- package/bin/skills/markitdown/scripts/convert_literature.py +262 -0
- package/bin/skills/markitdown/scripts/convert_with_ai.py +224 -0
- package/bin/skills/ml-paper-writing/SKILL.md +937 -0
- package/bin/skills/ml-paper-writing/references/checklists.md +361 -0
- package/bin/skills/ml-paper-writing/references/citation-workflow.md +562 -0
- package/bin/skills/ml-paper-writing/references/reviewer-guidelines.md +367 -0
- package/bin/skills/ml-paper-writing/references/sources.md +159 -0
- package/bin/skills/ml-paper-writing/references/writing-guide.md +476 -0
- package/bin/skills/ml-paper-writing/templates/README.md +251 -0
- package/bin/skills/ml-paper-writing/templates/aaai2026/README.md +534 -0
- package/bin/skills/ml-paper-writing/templates/aaai2026/aaai2026-unified-supp.tex +144 -0
- package/bin/skills/ml-paper-writing/templates/aaai2026/aaai2026-unified-template.tex +952 -0
- package/bin/skills/ml-paper-writing/templates/aaai2026/aaai2026.bib +111 -0
- package/bin/skills/ml-paper-writing/templates/aaai2026/aaai2026.bst +1493 -0
- package/bin/skills/ml-paper-writing/templates/aaai2026/aaai2026.sty +315 -0
- package/bin/skills/ml-paper-writing/templates/acl/README.md +50 -0
- package/bin/skills/ml-paper-writing/templates/acl/acl.sty +312 -0
- package/bin/skills/ml-paper-writing/templates/acl/acl_latex.tex +377 -0
- package/bin/skills/ml-paper-writing/templates/acl/acl_lualatex.tex +101 -0
- package/bin/skills/ml-paper-writing/templates/acl/acl_natbib.bst +1940 -0
- package/bin/skills/ml-paper-writing/templates/acl/anthology.bib.txt +26 -0
- package/bin/skills/ml-paper-writing/templates/acl/custom.bib +70 -0
- package/bin/skills/ml-paper-writing/templates/acl/formatting.md +326 -0
- package/bin/skills/ml-paper-writing/templates/colm2025/README.md +3 -0
- package/bin/skills/ml-paper-writing/templates/colm2025/colm2025_conference.bib +11 -0
- package/bin/skills/ml-paper-writing/templates/colm2025/colm2025_conference.bst +1440 -0
- package/bin/skills/ml-paper-writing/templates/colm2025/colm2025_conference.pdf +0 -0
- package/bin/skills/ml-paper-writing/templates/colm2025/colm2025_conference.sty +218 -0
- package/bin/skills/ml-paper-writing/templates/colm2025/colm2025_conference.tex +305 -0
- package/bin/skills/ml-paper-writing/templates/colm2025/fancyhdr.sty +485 -0
- package/bin/skills/ml-paper-writing/templates/colm2025/math_commands.tex +508 -0
- package/bin/skills/ml-paper-writing/templates/colm2025/natbib.sty +1246 -0
- package/bin/skills/ml-paper-writing/templates/iclr2026/fancyhdr.sty +485 -0
- package/bin/skills/ml-paper-writing/templates/iclr2026/iclr2026_conference.bib +24 -0
- package/bin/skills/ml-paper-writing/templates/iclr2026/iclr2026_conference.bst +1440 -0
- package/bin/skills/ml-paper-writing/templates/iclr2026/iclr2026_conference.pdf +0 -0
- package/bin/skills/ml-paper-writing/templates/iclr2026/iclr2026_conference.sty +246 -0
- package/bin/skills/ml-paper-writing/templates/iclr2026/iclr2026_conference.tex +414 -0
- package/bin/skills/ml-paper-writing/templates/iclr2026/math_commands.tex +508 -0
- package/bin/skills/ml-paper-writing/templates/iclr2026/natbib.sty +1246 -0
- package/bin/skills/ml-paper-writing/templates/icml2026/algorithm.sty +79 -0
- package/bin/skills/ml-paper-writing/templates/icml2026/algorithmic.sty +201 -0
- package/bin/skills/ml-paper-writing/templates/icml2026/example_paper.bib +75 -0
- package/bin/skills/ml-paper-writing/templates/icml2026/example_paper.pdf +0 -0
- package/bin/skills/ml-paper-writing/templates/icml2026/example_paper.tex +662 -0
- package/bin/skills/ml-paper-writing/templates/icml2026/fancyhdr.sty +864 -0
- package/bin/skills/ml-paper-writing/templates/icml2026/icml2026.bst +1443 -0
- package/bin/skills/ml-paper-writing/templates/icml2026/icml2026.sty +767 -0
- package/bin/skills/ml-paper-writing/templates/icml2026/icml_numpapers.pdf +0 -0
- package/bin/skills/ml-paper-writing/templates/neurips2025/Makefile +36 -0
- package/bin/skills/ml-paper-writing/templates/neurips2025/extra_pkgs.tex +53 -0
- package/bin/skills/ml-paper-writing/templates/neurips2025/main.tex +38 -0
- package/bin/skills/ml-paper-writing/templates/neurips2025/neurips.sty +382 -0
- package/bin/skills/paper-2-web/SKILL.md +491 -0
- package/bin/skills/paper-2-web/references/installation.md +141 -0
- package/bin/skills/paper-2-web/references/paper2poster.md +346 -0
- package/bin/skills/paper-2-web/references/paper2video.md +305 -0
- package/bin/skills/paper-2-web/references/paper2web.md +187 -0
- package/bin/skills/paper-2-web/references/usage_examples.md +436 -0
- package/bin/skills/peer-review/SKILL.md +702 -0
- package/bin/skills/peer-review/references/calibration_guidelines.md +196 -0
- package/bin/skills/peer-review/references/common_issues.md +552 -0
- package/bin/skills/peer-review/references/paper_mechanics.md +269 -0
- package/bin/skills/peer-review/references/reporting_standards.md +290 -0
- package/bin/skills/peer-review/references/scoring_rubric.md +239 -0
- package/bin/skills/pptx-posters/SKILL.md +410 -0
- package/bin/skills/pptx-posters/assets/poster_html_template.html +257 -0
- package/bin/skills/pptx-posters/assets/poster_quality_checklist.md +358 -0
- package/bin/skills/pptx-posters/references/poster_content_guide.md +748 -0
- package/bin/skills/pptx-posters/references/poster_design_principles.md +806 -0
- package/bin/skills/pptx-posters/references/poster_layout_design.md +900 -0
- package/bin/skills/research-grants/README.md +285 -0
- package/bin/skills/research-grants/SKILL.md +938 -0
- package/bin/skills/research-grants/assets/budget_justification_template.md +453 -0
- package/bin/skills/research-grants/assets/nih_specific_aims_template.md +166 -0
- package/bin/skills/research-grants/assets/nsf_project_summary_template.md +92 -0
- package/bin/skills/research-grants/references/broader_impacts.md +392 -0
- package/bin/skills/research-grants/references/darpa_guidelines.md +636 -0
- package/bin/skills/research-grants/references/doe_guidelines.md +586 -0
- package/bin/skills/research-grants/references/nih_guidelines.md +851 -0
- package/bin/skills/research-grants/references/nsf_guidelines.md +570 -0
- package/bin/skills/research-grants/references/specific_aims_guide.md +458 -0
- package/bin/skills/research-lookup/README.md +156 -0
- package/bin/skills/research-lookup/SKILL.md +606 -0
- package/bin/skills/research-lookup/examples.py +174 -0
- package/bin/skills/research-lookup/lookup.py +187 -0
- package/bin/skills/research-lookup/research_lookup.py +483 -0
- package/bin/skills/research-lookup/scripts/research_lookup.py +483 -0
- package/bin/skills/scholar-evaluation/SKILL.md +289 -0
- package/bin/skills/scholar-evaluation/references/evaluation_framework.md +663 -0
- package/bin/skills/scholar-evaluation/scripts/calculate_scores.py +366 -0
- package/bin/skills/scientific-critical-thinking/SKILL.md +566 -0
- package/bin/skills/scientific-critical-thinking/references/common_biases.md +364 -0
- package/bin/skills/scientific-critical-thinking/references/evidence_hierarchy.md +484 -0
- package/bin/skills/scientific-critical-thinking/references/experimental_design.md +496 -0
- package/bin/skills/scientific-critical-thinking/references/logical_fallacies.md +478 -0
- package/bin/skills/scientific-critical-thinking/references/scientific_method.md +169 -0
- package/bin/skills/scientific-critical-thinking/references/statistical_pitfalls.md +506 -0
- package/bin/skills/scientific-schematics/QUICK_REFERENCE.md +207 -0
- package/bin/skills/scientific-schematics/README.md +327 -0
- package/bin/skills/scientific-schematics/SKILL.md +615 -0
- package/bin/skills/scientific-schematics/example_usage.sh +89 -0
- package/bin/skills/scientific-schematics/references/best_practices.md +559 -0
- package/bin/skills/scientific-schematics/scripts/generate_schematic.py +135 -0
- package/bin/skills/scientific-schematics/scripts/generate_schematic_ai.py +807 -0
- package/bin/skills/scientific-schematics/test_ai_generation.py +243 -0
- package/bin/skills/scientific-slides/SKILL.md +942 -0
- package/bin/skills/scientific-slides/assets/timing_guidelines.md +597 -0
- package/bin/skills/scientific-slides/references/data_visualization_slides.md +708 -0
- package/bin/skills/scientific-slides/references/presentation_structure.md +642 -0
- package/bin/skills/scientific-slides/references/slide_design_principles.md +849 -0
- package/bin/skills/scientific-slides/references/talk_types_guide.md +687 -0
- package/bin/skills/scientific-slides/references/visual_review_workflow.md +775 -0
- package/bin/skills/scientific-slides/scripts/generate_slide_image.py +143 -0
- package/bin/skills/scientific-slides/scripts/generate_slide_image_ai.py +748 -0
- package/bin/skills/scientific-slides/scripts/pdf_to_images.py +201 -0
- package/bin/skills/scientific-slides/scripts/slides_to_pdf.py +220 -0
- package/bin/skills/scientific-slides/scripts/validate_presentation.py +367 -0
- package/bin/skills/scientific-writing/SKILL.md +714 -0
- package/bin/skills/scientific-writing/assets/REPORT_FORMATTING_GUIDE.md +574 -0
- package/bin/skills/scientific-writing/assets/scientific_report.sty +606 -0
- package/bin/skills/scientific-writing/assets/scientific_report_template.tex +449 -0
- package/bin/skills/scientific-writing/references/citation_styles.md +720 -0
- package/bin/skills/scientific-writing/references/figures_tables.md +806 -0
- package/bin/skills/scientific-writing/references/imrad_structure.md +686 -0
- package/bin/skills/scientific-writing/references/professional_report_formatting.md +664 -0
- package/bin/skills/scientific-writing/references/reporting_guidelines.md +748 -0
- package/bin/skills/scientific-writing/references/writing_principles.md +824 -0
- package/bin/skills/tinker/SKILL.md +2 -3
- package/bin/skills/together-ai/SKILL.md +722 -0
- package/bin/skills/treatment-plans/README.md +488 -0
- package/bin/skills/treatment-plans/SKILL.md +1579 -0
- package/bin/skills/treatment-plans/assets/STYLING_QUICK_REFERENCE.md +185 -0
- package/bin/skills/treatment-plans/assets/chronic_disease_management_plan.tex +665 -0
- package/bin/skills/treatment-plans/assets/general_medical_treatment_plan.tex +547 -0
- package/bin/skills/treatment-plans/assets/medical_treatment_plan.sty +222 -0
- package/bin/skills/treatment-plans/assets/mental_health_treatment_plan.tex +774 -0
- package/bin/skills/treatment-plans/assets/one_page_treatment_plan.tex +193 -0
- package/bin/skills/treatment-plans/assets/pain_management_plan.tex +799 -0
- package/bin/skills/treatment-plans/assets/perioperative_care_plan.tex +753 -0
- package/bin/skills/treatment-plans/assets/quality_checklist.md +471 -0
- package/bin/skills/treatment-plans/assets/rehabilitation_treatment_plan.tex +756 -0
- package/bin/skills/treatment-plans/references/goal_setting_frameworks.md +411 -0
- package/bin/skills/treatment-plans/references/intervention_guidelines.md +507 -0
- package/bin/skills/treatment-plans/references/regulatory_compliance.md +476 -0
- package/bin/skills/treatment-plans/references/specialty_specific_guidelines.md +655 -0
- package/bin/skills/treatment-plans/references/treatment_plan_standards.md +485 -0
- package/bin/skills/treatment-plans/scripts/check_completeness.py +322 -0
- package/bin/skills/treatment-plans/scripts/generate_template.py +233 -0
- package/bin/skills/treatment-plans/scripts/timeline_generator.py +385 -0
- package/bin/skills/treatment-plans/scripts/validate_treatment_plan.py +369 -0
- package/bin/skills/unsloth/SKILL.md +565 -47
- package/bin/skills/unsloth/docs/advanced-rl.md +222 -0
- package/bin/skills/unsloth/docs/chat-templates.md +141 -0
- package/bin/skills/unsloth/docs/datasets.md +489 -0
- package/bin/skills/unsloth/docs/docker-extended.md +99 -0
- package/bin/skills/unsloth/docs/dynamic-ggufs-2.0.md +116 -0
- package/bin/skills/unsloth/docs/dynamic-ggufs-aider.md +118 -0
- package/bin/skills/unsloth/docs/faq.md +91 -0
- package/bin/skills/unsloth/docs/fp16-vs-bf16.md +61 -0
- package/bin/skills/unsloth/docs/fp8-rl.md +224 -0
- package/bin/skills/unsloth/docs/glm-4.7-flash.md +997 -0
- package/bin/skills/unsloth/docs/inference-deployment-overview.md +17 -0
- package/bin/skills/unsloth/docs/inference.md +27 -0
- package/bin/skills/unsloth/docs/installation-docker.md +155 -0
- package/bin/skills/unsloth/docs/installation-pip.md +148 -0
- package/bin/skills/unsloth/docs/kernels-packing.md +190 -0
- package/bin/skills/unsloth/docs/kimi-k2.5.md +634 -0
- package/bin/skills/unsloth/docs/lm-studio.md +235 -0
- package/bin/skills/unsloth/docs/lora-hot-swapping.md +75 -0
- package/bin/skills/unsloth/docs/lora-hyperparameters.md +363 -0
- package/bin/skills/unsloth/docs/memory-efficient-rl.md +267 -0
- package/bin/skills/unsloth/docs/model-selection.md +70 -0
- package/bin/skills/unsloth/docs/models.md +532 -0
- package/bin/skills/unsloth/docs/multi-gpu-ddp.md +90 -0
- package/bin/skills/unsloth/docs/notebooks.md +223 -0
- package/bin/skills/unsloth/docs/overview.md +110 -0
- package/bin/skills/unsloth/docs/qwen3-coder-next-extended.md +900 -0
- package/bin/skills/unsloth/docs/qwen3-coder-next.md +900 -0
- package/bin/skills/unsloth/docs/requirements.md +45 -0
- package/bin/skills/unsloth/docs/reward-hacking.md +25 -0
- package/bin/skills/unsloth/docs/saving-to-gguf.md +138 -0
- package/bin/skills/unsloth/docs/saving-to-ollama.md +46 -0
- package/bin/skills/unsloth/docs/sglang-guide.md +278 -0
- package/bin/skills/unsloth/docs/speculative-decoding.md +70 -0
- package/bin/skills/unsloth/docs/tool-calling.md +334 -0
- package/bin/skills/unsloth/docs/troubleshooting-faq.md +204 -0
- package/bin/skills/unsloth/docs/troubleshooting-inference.md +26 -0
- package/bin/skills/unsloth/docs/tts-fine-tuning.md +149 -0
- package/bin/skills/unsloth/docs/tutorial-grpo.md +273 -0
- package/bin/skills/unsloth/docs/tutorial-llama3-ollama.md +356 -0
- package/bin/skills/unsloth/docs/vision-fine-tuning.md +135 -0
- package/bin/skills/unsloth/docs/vision-rl.md +170 -0
- package/bin/skills/unsloth/docs/vllm-engine-arguments.md +43 -0
- package/bin/skills/unsloth/docs/vllm-guide.md +98 -0
- package/bin/skills/venue-templates/SKILL.md +686 -0
- package/bin/skills/venue-templates/assets/examples/cell_summary_example.md +247 -0
- package/bin/skills/venue-templates/assets/examples/medical_structured_abstract.md +313 -0
- package/bin/skills/venue-templates/assets/examples/nature_abstract_examples.md +213 -0
- package/bin/skills/venue-templates/assets/examples/neurips_introduction_example.md +245 -0
- package/bin/skills/venue-templates/assets/grants/nih_specific_aims.tex +235 -0
- package/bin/skills/venue-templates/assets/grants/nsf_proposal_template.tex +375 -0
- package/bin/skills/venue-templates/assets/journals/nature_article.tex +171 -0
- package/bin/skills/venue-templates/assets/journals/neurips_article.tex +283 -0
- package/bin/skills/venue-templates/assets/journals/plos_one.tex +317 -0
- package/bin/skills/venue-templates/assets/posters/beamerposter_academic.tex +311 -0
- package/bin/skills/venue-templates/references/cell_press_style.md +483 -0
- package/bin/skills/venue-templates/references/conferences_formatting.md +564 -0
- package/bin/skills/venue-templates/references/cs_conference_style.md +463 -0
- package/bin/skills/venue-templates/references/grants_requirements.md +787 -0
- package/bin/skills/venue-templates/references/journals_formatting.md +486 -0
- package/bin/skills/venue-templates/references/medical_journal_styles.md +535 -0
- package/bin/skills/venue-templates/references/ml_conference_style.md +556 -0
- package/bin/skills/venue-templates/references/nature_science_style.md +405 -0
- package/bin/skills/venue-templates/references/posters_guidelines.md +628 -0
- package/bin/skills/venue-templates/references/reviewer_expectations.md +417 -0
- package/bin/skills/venue-templates/references/venue_writing_styles.md +321 -0
- package/bin/skills/venue-templates/scripts/customize_template.py +195 -0
- package/bin/skills/venue-templates/scripts/query_template.py +266 -0
- package/bin/skills/venue-templates/scripts/validate_format.py +250 -0
- package/bin/synsc +0 -0
- package/package.json +1 -1
- package/bin/skills/unsloth/references/index.md +0 -7
- package/bin/skills/unsloth/references/llms-full.md +0 -16799
- package/bin/skills/unsloth/references/llms-txt.md +0 -12044
- package/bin/skills/unsloth/references/llms.md +0 -82
|
@@ -0,0 +1,463 @@
|
|
|
1
|
+
# MarkItDown Example Usage
|
|
2
|
+
|
|
3
|
+
This document provides practical examples of using MarkItDown in various scenarios.
|
|
4
|
+
|
|
5
|
+
## Basic Examples
|
|
6
|
+
|
|
7
|
+
### 1. Simple File Conversion
|
|
8
|
+
|
|
9
|
+
```python
|
|
10
|
+
from markitdown import MarkItDown
|
|
11
|
+
|
|
12
|
+
md = MarkItDown()
|
|
13
|
+
|
|
14
|
+
# Convert a PDF
|
|
15
|
+
result = md.convert("research_paper.pdf")
|
|
16
|
+
print(result.text_content)
|
|
17
|
+
|
|
18
|
+
# Convert a Word document
|
|
19
|
+
result = md.convert("manuscript.docx")
|
|
20
|
+
print(result.text_content)
|
|
21
|
+
|
|
22
|
+
# Convert a PowerPoint
|
|
23
|
+
result = md.convert("presentation.pptx")
|
|
24
|
+
print(result.text_content)
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### 2. Save to File
|
|
28
|
+
|
|
29
|
+
```python
|
|
30
|
+
from markitdown import MarkItDown
|
|
31
|
+
|
|
32
|
+
md = MarkItDown()
|
|
33
|
+
result = md.convert("document.pdf")
|
|
34
|
+
|
|
35
|
+
with open("output.md", "w", encoding="utf-8") as f:
|
|
36
|
+
f.write(result.text_content)
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### 3. Convert from Stream
|
|
40
|
+
|
|
41
|
+
```python
|
|
42
|
+
from markitdown import MarkItDown
|
|
43
|
+
|
|
44
|
+
md = MarkItDown()
|
|
45
|
+
|
|
46
|
+
with open("document.pdf", "rb") as f:
|
|
47
|
+
result = md.convert_stream(f, file_extension=".pdf")
|
|
48
|
+
print(result.text_content)
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Scientific Workflows
|
|
52
|
+
|
|
53
|
+
### Convert Research Papers
|
|
54
|
+
|
|
55
|
+
```python
|
|
56
|
+
from markitdown import MarkItDown
|
|
57
|
+
from pathlib import Path
|
|
58
|
+
|
|
59
|
+
md = MarkItDown()
|
|
60
|
+
|
|
61
|
+
# Convert all papers in a directory
|
|
62
|
+
papers_dir = Path("research_papers/")
|
|
63
|
+
output_dir = Path("markdown_papers/")
|
|
64
|
+
output_dir.mkdir(exist_ok=True)
|
|
65
|
+
|
|
66
|
+
for paper in papers_dir.glob("*.pdf"):
|
|
67
|
+
result = md.convert(str(paper))
|
|
68
|
+
|
|
69
|
+
# Save with original filename
|
|
70
|
+
output_file = output_dir / f"{paper.stem}.md"
|
|
71
|
+
output_file.write_text(result.text_content)
|
|
72
|
+
|
|
73
|
+
print(f"Converted: {paper.name}")
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### Extract Tables from Excel
|
|
77
|
+
|
|
78
|
+
```python
|
|
79
|
+
from markitdown import MarkItDown
|
|
80
|
+
|
|
81
|
+
md = MarkItDown()
|
|
82
|
+
|
|
83
|
+
# Convert Excel to Markdown tables
|
|
84
|
+
result = md.convert("experimental_data.xlsx")
|
|
85
|
+
|
|
86
|
+
# The result contains Markdown-formatted tables
|
|
87
|
+
print(result.text_content)
|
|
88
|
+
|
|
89
|
+
# Save for further processing
|
|
90
|
+
with open("data_tables.md", "w") as f:
|
|
91
|
+
f.write(result.text_content)
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### Process Presentation Slides
|
|
95
|
+
|
|
96
|
+
```python
|
|
97
|
+
from markitdown import MarkItDown
|
|
98
|
+
from openai import OpenAI
|
|
99
|
+
|
|
100
|
+
# With AI descriptions for images
|
|
101
|
+
client = OpenAI()
|
|
102
|
+
md = MarkItDown(
|
|
103
|
+
llm_client=client,
|
|
104
|
+
llm_model="anthropic/claude-sonnet-4.5",
|
|
105
|
+
llm_prompt="Describe this scientific slide, focusing on data and key findings"
|
|
106
|
+
)
|
|
107
|
+
|
|
108
|
+
result = md.convert("conference_talk.pptx")
|
|
109
|
+
|
|
110
|
+
# Save with metadata
|
|
111
|
+
output = f"""# Conference Talk
|
|
112
|
+
|
|
113
|
+
{result.text_content}
|
|
114
|
+
"""
|
|
115
|
+
|
|
116
|
+
with open("talk_notes.md", "w") as f:
|
|
117
|
+
f.write(output)
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
## AI-Enhanced Conversions
|
|
121
|
+
|
|
122
|
+
### Detailed Image Descriptions
|
|
123
|
+
|
|
124
|
+
```python
|
|
125
|
+
from markitdown import MarkItDown
|
|
126
|
+
from openai import OpenAI
|
|
127
|
+
|
|
128
|
+
# Initialize OpenRouter client
|
|
129
|
+
client = OpenAI(
|
|
130
|
+
api_key="your-openrouter-api-key",
|
|
131
|
+
base_url="https://openrouter.ai/api/v1"
|
|
132
|
+
)
|
|
133
|
+
|
|
134
|
+
# Scientific diagram analysis
|
|
135
|
+
scientific_prompt = """
|
|
136
|
+
Analyze this scientific figure. Describe:
|
|
137
|
+
- Type of visualization (graph, microscopy, diagram, etc.)
|
|
138
|
+
- Key data points and trends
|
|
139
|
+
- Axes, labels, and legends
|
|
140
|
+
- Scientific significance
|
|
141
|
+
Be technical and precise.
|
|
142
|
+
"""
|
|
143
|
+
|
|
144
|
+
md = MarkItDown(
|
|
145
|
+
llm_client=client,
|
|
146
|
+
llm_model="anthropic/claude-sonnet-4.5", # recommended for scientific vision
|
|
147
|
+
llm_prompt=scientific_prompt
|
|
148
|
+
)
|
|
149
|
+
|
|
150
|
+
# Convert paper with figures
|
|
151
|
+
result = md.convert("paper_with_figures.pdf")
|
|
152
|
+
print(result.text_content)
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
### Different Prompts for Different Files
|
|
156
|
+
|
|
157
|
+
```python
|
|
158
|
+
from markitdown import MarkItDown
|
|
159
|
+
from openai import OpenAI
|
|
160
|
+
|
|
161
|
+
# Initialize OpenRouter client
|
|
162
|
+
client = OpenAI(
|
|
163
|
+
api_key="your-openrouter-api-key",
|
|
164
|
+
base_url="https://openrouter.ai/api/v1"
|
|
165
|
+
)
|
|
166
|
+
|
|
167
|
+
# Scientific papers - use Claude for technical analysis
|
|
168
|
+
scientific_md = MarkItDown(
|
|
169
|
+
llm_client=client,
|
|
170
|
+
llm_model="anthropic/claude-sonnet-4.5",
|
|
171
|
+
llm_prompt="Describe scientific figures with technical precision"
|
|
172
|
+
)
|
|
173
|
+
|
|
174
|
+
# Presentations - use GPT-4o for visual understanding
|
|
175
|
+
presentation_md = MarkItDown(
|
|
176
|
+
llm_client=client,
|
|
177
|
+
llm_model="anthropic/claude-sonnet-4.5",
|
|
178
|
+
llm_prompt="Summarize slide content and key visual elements"
|
|
179
|
+
)
|
|
180
|
+
|
|
181
|
+
# Use appropriate instance for each file
|
|
182
|
+
paper_result = scientific_md.convert("research.pdf")
|
|
183
|
+
slides_result = presentation_md.convert("talk.pptx")
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
## Batch Processing
|
|
187
|
+
|
|
188
|
+
### Process Multiple Files
|
|
189
|
+
|
|
190
|
+
```python
|
|
191
|
+
from markitdown import MarkItDown
|
|
192
|
+
from pathlib import Path
|
|
193
|
+
|
|
194
|
+
md = MarkItDown()
|
|
195
|
+
|
|
196
|
+
files_to_convert = [
|
|
197
|
+
"paper1.pdf",
|
|
198
|
+
"data.xlsx",
|
|
199
|
+
"presentation.pptx",
|
|
200
|
+
"notes.docx"
|
|
201
|
+
]
|
|
202
|
+
|
|
203
|
+
for file in files_to_convert:
|
|
204
|
+
try:
|
|
205
|
+
result = md.convert(file)
|
|
206
|
+
output = Path(file).stem + ".md"
|
|
207
|
+
|
|
208
|
+
with open(output, "w") as f:
|
|
209
|
+
f.write(result.text_content)
|
|
210
|
+
|
|
211
|
+
print(f"✓ {file} -> {output}")
|
|
212
|
+
except Exception as e:
|
|
213
|
+
print(f"✗ Error converting {file}: {e}")
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
### Parallel Processing
|
|
217
|
+
|
|
218
|
+
```python
|
|
219
|
+
from markitdown import MarkItDown
|
|
220
|
+
from pathlib import Path
|
|
221
|
+
from concurrent.futures import ThreadPoolExecutor
|
|
222
|
+
|
|
223
|
+
def convert_file(filepath):
|
|
224
|
+
md = MarkItDown()
|
|
225
|
+
result = md.convert(filepath)
|
|
226
|
+
|
|
227
|
+
output = Path(filepath).stem + ".md"
|
|
228
|
+
with open(output, "w") as f:
|
|
229
|
+
f.write(result.text_content)
|
|
230
|
+
|
|
231
|
+
return filepath, output
|
|
232
|
+
|
|
233
|
+
files = list(Path("documents/").glob("*.pdf"))
|
|
234
|
+
|
|
235
|
+
with ThreadPoolExecutor(max_workers=4) as executor:
|
|
236
|
+
results = executor.map(convert_file, [str(f) for f in files])
|
|
237
|
+
|
|
238
|
+
for input_file, output_file in results:
|
|
239
|
+
print(f"Converted: {input_file} -> {output_file}")
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
## Integration Examples
|
|
243
|
+
|
|
244
|
+
### Literature Review Pipeline
|
|
245
|
+
|
|
246
|
+
```python
|
|
247
|
+
from markitdown import MarkItDown
|
|
248
|
+
from pathlib import Path
|
|
249
|
+
import json
|
|
250
|
+
|
|
251
|
+
md = MarkItDown()
|
|
252
|
+
|
|
253
|
+
# Convert papers and create metadata
|
|
254
|
+
papers_dir = Path("literature/")
|
|
255
|
+
output_dir = Path("literature_markdown/")
|
|
256
|
+
output_dir.mkdir(exist_ok=True)
|
|
257
|
+
|
|
258
|
+
catalog = []
|
|
259
|
+
|
|
260
|
+
for paper in papers_dir.glob("*.pdf"):
|
|
261
|
+
result = md.convert(str(paper))
|
|
262
|
+
|
|
263
|
+
# Save Markdown
|
|
264
|
+
md_file = output_dir / f"{paper.stem}.md"
|
|
265
|
+
md_file.write_text(result.text_content)
|
|
266
|
+
|
|
267
|
+
# Store metadata
|
|
268
|
+
catalog.append({
|
|
269
|
+
"title": result.title or paper.stem,
|
|
270
|
+
"source": paper.name,
|
|
271
|
+
"markdown": str(md_file),
|
|
272
|
+
"word_count": len(result.text_content.split())
|
|
273
|
+
})
|
|
274
|
+
|
|
275
|
+
# Save catalog
|
|
276
|
+
with open(output_dir / "catalog.json", "w") as f:
|
|
277
|
+
json.dump(catalog, f, indent=2)
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
### Data Extraction Pipeline
|
|
281
|
+
|
|
282
|
+
```python
|
|
283
|
+
from markitdown import MarkItDown
|
|
284
|
+
import re
|
|
285
|
+
|
|
286
|
+
md = MarkItDown()
|
|
287
|
+
|
|
288
|
+
# Convert Excel data to Markdown
|
|
289
|
+
result = md.convert("experimental_results.xlsx")
|
|
290
|
+
|
|
291
|
+
# Extract tables (Markdown tables start with |)
|
|
292
|
+
tables = []
|
|
293
|
+
current_table = []
|
|
294
|
+
in_table = False
|
|
295
|
+
|
|
296
|
+
for line in result.text_content.split('\n'):
|
|
297
|
+
if line.strip().startswith('|'):
|
|
298
|
+
in_table = True
|
|
299
|
+
current_table.append(line)
|
|
300
|
+
elif in_table:
|
|
301
|
+
if current_table:
|
|
302
|
+
tables.append('\n'.join(current_table))
|
|
303
|
+
current_table = []
|
|
304
|
+
in_table = False
|
|
305
|
+
|
|
306
|
+
# Process each table
|
|
307
|
+
for i, table in enumerate(tables):
|
|
308
|
+
print(f"Table {i+1}:")
|
|
309
|
+
print(table)
|
|
310
|
+
print("\n" + "="*50 + "\n")
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
### YouTube Transcript Analysis
|
|
314
|
+
|
|
315
|
+
```python
|
|
316
|
+
from markitdown import MarkItDown
|
|
317
|
+
|
|
318
|
+
md = MarkItDown()
|
|
319
|
+
|
|
320
|
+
# Get transcript
|
|
321
|
+
video_url = "https://www.youtube.com/watch?v=VIDEO_ID"
|
|
322
|
+
result = md.convert(video_url)
|
|
323
|
+
|
|
324
|
+
# Save transcript
|
|
325
|
+
with open("lecture_transcript.md", "w") as f:
|
|
326
|
+
f.write(f"# Lecture Transcript\n\n")
|
|
327
|
+
f.write(f"**Source**: {video_url}\n\n")
|
|
328
|
+
f.write(result.text_content)
|
|
329
|
+
```
|
|
330
|
+
|
|
331
|
+
## Error Handling
|
|
332
|
+
|
|
333
|
+
### Robust Conversion
|
|
334
|
+
|
|
335
|
+
```python
|
|
336
|
+
from markitdown import MarkItDown
|
|
337
|
+
from pathlib import Path
|
|
338
|
+
import logging
|
|
339
|
+
|
|
340
|
+
logging.basicConfig(level=logging.INFO)
|
|
341
|
+
logger = logging.getLogger(__name__)
|
|
342
|
+
|
|
343
|
+
md = MarkItDown()
|
|
344
|
+
|
|
345
|
+
def safe_convert(filepath):
|
|
346
|
+
"""Convert file with error handling."""
|
|
347
|
+
try:
|
|
348
|
+
result = md.convert(filepath)
|
|
349
|
+
output = Path(filepath).stem + ".md"
|
|
350
|
+
|
|
351
|
+
with open(output, "w") as f:
|
|
352
|
+
f.write(result.text_content)
|
|
353
|
+
|
|
354
|
+
logger.info(f"Successfully converted {filepath}")
|
|
355
|
+
return True
|
|
356
|
+
|
|
357
|
+
except FileNotFoundError:
|
|
358
|
+
logger.error(f"File not found: {filepath}")
|
|
359
|
+
return False
|
|
360
|
+
|
|
361
|
+
except ValueError as e:
|
|
362
|
+
logger.error(f"Invalid file format for {filepath}: {e}")
|
|
363
|
+
return False
|
|
364
|
+
|
|
365
|
+
except Exception as e:
|
|
366
|
+
logger.error(f"Unexpected error converting {filepath}: {e}")
|
|
367
|
+
return False
|
|
368
|
+
|
|
369
|
+
# Use it
|
|
370
|
+
files = ["paper.pdf", "data.xlsx", "slides.pptx"]
|
|
371
|
+
results = [safe_convert(f) for f in files]
|
|
372
|
+
|
|
373
|
+
print(f"Successfully converted {sum(results)}/{len(files)} files")
|
|
374
|
+
```
|
|
375
|
+
|
|
376
|
+
## Advanced Use Cases
|
|
377
|
+
|
|
378
|
+
### Custom Metadata Extraction
|
|
379
|
+
|
|
380
|
+
```python
|
|
381
|
+
from markitdown import MarkItDown
|
|
382
|
+
import re
|
|
383
|
+
from datetime import datetime
|
|
384
|
+
|
|
385
|
+
md = MarkItDown()
|
|
386
|
+
|
|
387
|
+
def convert_with_metadata(filepath):
|
|
388
|
+
result = md.convert(filepath)
|
|
389
|
+
|
|
390
|
+
# Extract metadata from content
|
|
391
|
+
metadata = {
|
|
392
|
+
"file": filepath,
|
|
393
|
+
"title": result.title,
|
|
394
|
+
"converted_at": datetime.now().isoformat(),
|
|
395
|
+
"word_count": len(result.text_content.split()),
|
|
396
|
+
"char_count": len(result.text_content)
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
# Try to find author
|
|
400
|
+
author_match = re.search(r'(?:Author|By):\s*(.+?)(?:\n|$)', result.text_content)
|
|
401
|
+
if author_match:
|
|
402
|
+
metadata["author"] = author_match.group(1).strip()
|
|
403
|
+
|
|
404
|
+
# Create formatted output
|
|
405
|
+
output = f"""---
|
|
406
|
+
title: {metadata['title']}
|
|
407
|
+
author: {metadata.get('author', 'Unknown')}
|
|
408
|
+
source: {metadata['file']}
|
|
409
|
+
converted: {metadata['converted_at']}
|
|
410
|
+
words: {metadata['word_count']}
|
|
411
|
+
---
|
|
412
|
+
|
|
413
|
+
{result.text_content}
|
|
414
|
+
"""
|
|
415
|
+
|
|
416
|
+
return output, metadata
|
|
417
|
+
|
|
418
|
+
# Use it
|
|
419
|
+
content, meta = convert_with_metadata("paper.pdf")
|
|
420
|
+
print(meta)
|
|
421
|
+
```
|
|
422
|
+
|
|
423
|
+
### Format-Specific Processing
|
|
424
|
+
|
|
425
|
+
```python
|
|
426
|
+
from markitdown import MarkItDown
|
|
427
|
+
from pathlib import Path
|
|
428
|
+
|
|
429
|
+
md = MarkItDown()
|
|
430
|
+
|
|
431
|
+
def process_by_format(filepath):
|
|
432
|
+
path = Path(filepath)
|
|
433
|
+
result = md.convert(filepath)
|
|
434
|
+
|
|
435
|
+
if path.suffix == '.pdf':
|
|
436
|
+
# Add PDF-specific metadata
|
|
437
|
+
output = f"# PDF Document: {path.stem}\n\n"
|
|
438
|
+
output += result.text_content
|
|
439
|
+
|
|
440
|
+
elif path.suffix == '.xlsx':
|
|
441
|
+
# Add table count
|
|
442
|
+
table_count = result.text_content.count('|---')
|
|
443
|
+
output = f"# Excel Data: {path.stem}\n\n"
|
|
444
|
+
output += f"**Tables**: {table_count}\n\n"
|
|
445
|
+
output += result.text_content
|
|
446
|
+
|
|
447
|
+
elif path.suffix == '.pptx':
|
|
448
|
+
# Add slide count
|
|
449
|
+
slide_count = result.text_content.count('## Slide')
|
|
450
|
+
output = f"# Presentation: {path.stem}\n\n"
|
|
451
|
+
output += f"**Slides**: {slide_count}\n\n"
|
|
452
|
+
output += result.text_content
|
|
453
|
+
|
|
454
|
+
else:
|
|
455
|
+
output = result.text_content
|
|
456
|
+
|
|
457
|
+
return output
|
|
458
|
+
|
|
459
|
+
# Use it
|
|
460
|
+
content = process_by_format("presentation.pptx")
|
|
461
|
+
print(content)
|
|
462
|
+
```
|
|
463
|
+
|