scientific-writer 2.3.1__py3-none-any.whl

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 (315) hide show
  1. scientific_writer/.claude/WRITER.md +822 -0
  2. scientific_writer/.claude/settings.local.json +30 -0
  3. scientific_writer/.claude/skills/citation-management/SKILL.md +1046 -0
  4. scientific_writer/.claude/skills/citation-management/assets/bibtex_template.bib +264 -0
  5. scientific_writer/.claude/skills/citation-management/assets/citation_checklist.md +386 -0
  6. scientific_writer/.claude/skills/citation-management/references/bibtex_formatting.md +908 -0
  7. scientific_writer/.claude/skills/citation-management/references/citation_validation.md +794 -0
  8. scientific_writer/.claude/skills/citation-management/references/google_scholar_search.md +725 -0
  9. scientific_writer/.claude/skills/citation-management/references/metadata_extraction.md +870 -0
  10. scientific_writer/.claude/skills/citation-management/references/pubmed_search.md +839 -0
  11. scientific_writer/.claude/skills/citation-management/scripts/doi_to_bibtex.py +204 -0
  12. scientific_writer/.claude/skills/citation-management/scripts/extract_metadata.py +569 -0
  13. scientific_writer/.claude/skills/citation-management/scripts/format_bibtex.py +349 -0
  14. scientific_writer/.claude/skills/citation-management/scripts/search_google_scholar.py +282 -0
  15. scientific_writer/.claude/skills/citation-management/scripts/search_pubmed.py +398 -0
  16. scientific_writer/.claude/skills/citation-management/scripts/validate_citations.py +497 -0
  17. scientific_writer/.claude/skills/clinical-reports/IMPLEMENTATION_SUMMARY.md +641 -0
  18. scientific_writer/.claude/skills/clinical-reports/README.md +236 -0
  19. scientific_writer/.claude/skills/clinical-reports/SKILL.md +1088 -0
  20. scientific_writer/.claude/skills/clinical-reports/assets/case_report_template.md +352 -0
  21. scientific_writer/.claude/skills/clinical-reports/assets/clinical_trial_csr_template.md +353 -0
  22. scientific_writer/.claude/skills/clinical-reports/assets/clinical_trial_sae_template.md +359 -0
  23. scientific_writer/.claude/skills/clinical-reports/assets/consult_note_template.md +305 -0
  24. scientific_writer/.claude/skills/clinical-reports/assets/discharge_summary_template.md +453 -0
  25. scientific_writer/.claude/skills/clinical-reports/assets/hipaa_compliance_checklist.md +395 -0
  26. scientific_writer/.claude/skills/clinical-reports/assets/history_physical_template.md +305 -0
  27. scientific_writer/.claude/skills/clinical-reports/assets/lab_report_template.md +309 -0
  28. scientific_writer/.claude/skills/clinical-reports/assets/pathology_report_template.md +249 -0
  29. scientific_writer/.claude/skills/clinical-reports/assets/quality_checklist.md +338 -0
  30. scientific_writer/.claude/skills/clinical-reports/assets/radiology_report_template.md +318 -0
  31. scientific_writer/.claude/skills/clinical-reports/assets/soap_note_template.md +253 -0
  32. scientific_writer/.claude/skills/clinical-reports/references/case_report_guidelines.md +570 -0
  33. scientific_writer/.claude/skills/clinical-reports/references/clinical_trial_reporting.md +693 -0
  34. scientific_writer/.claude/skills/clinical-reports/references/data_presentation.md +530 -0
  35. scientific_writer/.claude/skills/clinical-reports/references/diagnostic_reports_standards.md +629 -0
  36. scientific_writer/.claude/skills/clinical-reports/references/medical_terminology.md +588 -0
  37. scientific_writer/.claude/skills/clinical-reports/references/patient_documentation.md +744 -0
  38. scientific_writer/.claude/skills/clinical-reports/references/peer_review_standards.md +585 -0
  39. scientific_writer/.claude/skills/clinical-reports/references/regulatory_compliance.md +577 -0
  40. scientific_writer/.claude/skills/clinical-reports/scripts/check_deidentification.py +346 -0
  41. scientific_writer/.claude/skills/clinical-reports/scripts/compliance_checker.py +78 -0
  42. scientific_writer/.claude/skills/clinical-reports/scripts/extract_clinical_data.py +102 -0
  43. scientific_writer/.claude/skills/clinical-reports/scripts/format_adverse_events.py +103 -0
  44. scientific_writer/.claude/skills/clinical-reports/scripts/generate_report_template.py +163 -0
  45. scientific_writer/.claude/skills/clinical-reports/scripts/terminology_validator.py +133 -0
  46. scientific_writer/.claude/skills/clinical-reports/scripts/validate_case_report.py +334 -0
  47. scientific_writer/.claude/skills/clinical-reports/scripts/validate_trial_report.py +89 -0
  48. scientific_writer/.claude/skills/document-skills/docx/LICENSE.txt +30 -0
  49. scientific_writer/.claude/skills/document-skills/docx/SKILL.md +197 -0
  50. scientific_writer/.claude/skills/document-skills/docx/docx-js.md +350 -0
  51. scientific_writer/.claude/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
  52. scientific_writer/.claude/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
  53. scientific_writer/.claude/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
  54. scientific_writer/.claude/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
  55. scientific_writer/.claude/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
  56. scientific_writer/.claude/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
  57. scientific_writer/.claude/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
  58. scientific_writer/.claude/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
  59. scientific_writer/.claude/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
  60. scientific_writer/.claude/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
  61. scientific_writer/.claude/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
  62. scientific_writer/.claude/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
  63. scientific_writer/.claude/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
  64. scientific_writer/.claude/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
  65. scientific_writer/.claude/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
  66. scientific_writer/.claude/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
  67. scientific_writer/.claude/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
  68. scientific_writer/.claude/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
  69. scientific_writer/.claude/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
  70. scientific_writer/.claude/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
  71. scientific_writer/.claude/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
  72. scientific_writer/.claude/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
  73. scientific_writer/.claude/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
  74. scientific_writer/.claude/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
  75. scientific_writer/.claude/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
  76. scientific_writer/.claude/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
  77. scientific_writer/.claude/skills/document-skills/docx/ooxml/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
  78. scientific_writer/.claude/skills/document-skills/docx/ooxml/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
  79. scientific_writer/.claude/skills/document-skills/docx/ooxml/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
  80. scientific_writer/.claude/skills/document-skills/docx/ooxml/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
  81. scientific_writer/.claude/skills/document-skills/docx/ooxml/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
  82. scientific_writer/.claude/skills/document-skills/docx/ooxml/schemas/mce/mc.xsd +75 -0
  83. scientific_writer/.claude/skills/document-skills/docx/ooxml/schemas/microsoft/wml-2010.xsd +560 -0
  84. scientific_writer/.claude/skills/document-skills/docx/ooxml/schemas/microsoft/wml-2012.xsd +67 -0
  85. scientific_writer/.claude/skills/document-skills/docx/ooxml/schemas/microsoft/wml-2018.xsd +14 -0
  86. scientific_writer/.claude/skills/document-skills/docx/ooxml/schemas/microsoft/wml-cex-2018.xsd +20 -0
  87. scientific_writer/.claude/skills/document-skills/docx/ooxml/schemas/microsoft/wml-cid-2016.xsd +13 -0
  88. scientific_writer/.claude/skills/document-skills/docx/ooxml/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
  89. scientific_writer/.claude/skills/document-skills/docx/ooxml/schemas/microsoft/wml-symex-2015.xsd +8 -0
  90. scientific_writer/.claude/skills/document-skills/docx/ooxml/scripts/pack.py +159 -0
  91. scientific_writer/.claude/skills/document-skills/docx/ooxml/scripts/unpack.py +29 -0
  92. scientific_writer/.claude/skills/document-skills/docx/ooxml/scripts/validate.py +69 -0
  93. scientific_writer/.claude/skills/document-skills/docx/ooxml/scripts/validation/__init__.py +15 -0
  94. scientific_writer/.claude/skills/document-skills/docx/ooxml/scripts/validation/base.py +951 -0
  95. scientific_writer/.claude/skills/document-skills/docx/ooxml/scripts/validation/docx.py +274 -0
  96. scientific_writer/.claude/skills/document-skills/docx/ooxml/scripts/validation/pptx.py +315 -0
  97. scientific_writer/.claude/skills/document-skills/docx/ooxml/scripts/validation/redlining.py +279 -0
  98. scientific_writer/.claude/skills/document-skills/docx/ooxml.md +610 -0
  99. scientific_writer/.claude/skills/document-skills/docx/scripts/__init__.py +1 -0
  100. scientific_writer/.claude/skills/document-skills/docx/scripts/document.py +1276 -0
  101. scientific_writer/.claude/skills/document-skills/docx/scripts/templates/comments.xml +3 -0
  102. scientific_writer/.claude/skills/document-skills/docx/scripts/templates/commentsExtended.xml +3 -0
  103. scientific_writer/.claude/skills/document-skills/docx/scripts/templates/commentsExtensible.xml +3 -0
  104. scientific_writer/.claude/skills/document-skills/docx/scripts/templates/commentsIds.xml +3 -0
  105. scientific_writer/.claude/skills/document-skills/docx/scripts/templates/people.xml +3 -0
  106. scientific_writer/.claude/skills/document-skills/docx/scripts/utilities.py +374 -0
  107. scientific_writer/.claude/skills/document-skills/pdf/LICENSE.txt +30 -0
  108. scientific_writer/.claude/skills/document-skills/pdf/SKILL.md +294 -0
  109. scientific_writer/.claude/skills/document-skills/pdf/forms.md +205 -0
  110. scientific_writer/.claude/skills/document-skills/pdf/reference.md +612 -0
  111. scientific_writer/.claude/skills/document-skills/pdf/scripts/check_bounding_boxes.py +70 -0
  112. scientific_writer/.claude/skills/document-skills/pdf/scripts/check_bounding_boxes_test.py +226 -0
  113. scientific_writer/.claude/skills/document-skills/pdf/scripts/check_fillable_fields.py +12 -0
  114. scientific_writer/.claude/skills/document-skills/pdf/scripts/convert_pdf_to_images.py +35 -0
  115. scientific_writer/.claude/skills/document-skills/pdf/scripts/create_validation_image.py +41 -0
  116. scientific_writer/.claude/skills/document-skills/pdf/scripts/extract_form_field_info.py +152 -0
  117. scientific_writer/.claude/skills/document-skills/pdf/scripts/fill_fillable_fields.py +114 -0
  118. scientific_writer/.claude/skills/document-skills/pdf/scripts/fill_pdf_form_with_annotations.py +108 -0
  119. scientific_writer/.claude/skills/document-skills/pptx/LICENSE.txt +30 -0
  120. scientific_writer/.claude/skills/document-skills/pptx/SKILL.md +484 -0
  121. scientific_writer/.claude/skills/document-skills/pptx/html2pptx.md +625 -0
  122. scientific_writer/.claude/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
  123. scientific_writer/.claude/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
  124. scientific_writer/.claude/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
  125. scientific_writer/.claude/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
  126. scientific_writer/.claude/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
  127. scientific_writer/.claude/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
  128. scientific_writer/.claude/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
  129. scientific_writer/.claude/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
  130. scientific_writer/.claude/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
  131. scientific_writer/.claude/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
  132. scientific_writer/.claude/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
  133. scientific_writer/.claude/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
  134. scientific_writer/.claude/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
  135. scientific_writer/.claude/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
  136. scientific_writer/.claude/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
  137. scientific_writer/.claude/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
  138. scientific_writer/.claude/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
  139. scientific_writer/.claude/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
  140. scientific_writer/.claude/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
  141. scientific_writer/.claude/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
  142. scientific_writer/.claude/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
  143. scientific_writer/.claude/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
  144. scientific_writer/.claude/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
  145. scientific_writer/.claude/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
  146. scientific_writer/.claude/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
  147. scientific_writer/.claude/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
  148. scientific_writer/.claude/skills/document-skills/pptx/ooxml/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
  149. scientific_writer/.claude/skills/document-skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
  150. scientific_writer/.claude/skills/document-skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
  151. scientific_writer/.claude/skills/document-skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
  152. scientific_writer/.claude/skills/document-skills/pptx/ooxml/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
  153. scientific_writer/.claude/skills/document-skills/pptx/ooxml/schemas/mce/mc.xsd +75 -0
  154. scientific_writer/.claude/skills/document-skills/pptx/ooxml/schemas/microsoft/wml-2010.xsd +560 -0
  155. scientific_writer/.claude/skills/document-skills/pptx/ooxml/schemas/microsoft/wml-2012.xsd +67 -0
  156. scientific_writer/.claude/skills/document-skills/pptx/ooxml/schemas/microsoft/wml-2018.xsd +14 -0
  157. scientific_writer/.claude/skills/document-skills/pptx/ooxml/schemas/microsoft/wml-cex-2018.xsd +20 -0
  158. scientific_writer/.claude/skills/document-skills/pptx/ooxml/schemas/microsoft/wml-cid-2016.xsd +13 -0
  159. scientific_writer/.claude/skills/document-skills/pptx/ooxml/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
  160. scientific_writer/.claude/skills/document-skills/pptx/ooxml/schemas/microsoft/wml-symex-2015.xsd +8 -0
  161. scientific_writer/.claude/skills/document-skills/pptx/ooxml/scripts/pack.py +159 -0
  162. scientific_writer/.claude/skills/document-skills/pptx/ooxml/scripts/unpack.py +29 -0
  163. scientific_writer/.claude/skills/document-skills/pptx/ooxml/scripts/validate.py +69 -0
  164. scientific_writer/.claude/skills/document-skills/pptx/ooxml/scripts/validation/__init__.py +15 -0
  165. scientific_writer/.claude/skills/document-skills/pptx/ooxml/scripts/validation/base.py +951 -0
  166. scientific_writer/.claude/skills/document-skills/pptx/ooxml/scripts/validation/docx.py +274 -0
  167. scientific_writer/.claude/skills/document-skills/pptx/ooxml/scripts/validation/pptx.py +315 -0
  168. scientific_writer/.claude/skills/document-skills/pptx/ooxml/scripts/validation/redlining.py +279 -0
  169. scientific_writer/.claude/skills/document-skills/pptx/ooxml.md +427 -0
  170. scientific_writer/.claude/skills/document-skills/pptx/scripts/html2pptx.js +979 -0
  171. scientific_writer/.claude/skills/document-skills/pptx/scripts/inventory.py +1020 -0
  172. scientific_writer/.claude/skills/document-skills/pptx/scripts/rearrange.py +231 -0
  173. scientific_writer/.claude/skills/document-skills/pptx/scripts/replace.py +385 -0
  174. scientific_writer/.claude/skills/document-skills/pptx/scripts/thumbnail.py +450 -0
  175. scientific_writer/.claude/skills/document-skills/xlsx/LICENSE.txt +30 -0
  176. scientific_writer/.claude/skills/document-skills/xlsx/SKILL.md +289 -0
  177. scientific_writer/.claude/skills/document-skills/xlsx/recalc.py +178 -0
  178. scientific_writer/.claude/skills/hypothesis-generation/SKILL.md +155 -0
  179. scientific_writer/.claude/skills/hypothesis-generation/assets/hypothesis_output_template.md +302 -0
  180. scientific_writer/.claude/skills/hypothesis-generation/references/experimental_design_patterns.md +327 -0
  181. scientific_writer/.claude/skills/hypothesis-generation/references/hypothesis_quality_criteria.md +196 -0
  182. scientific_writer/.claude/skills/hypothesis-generation/references/literature_search_strategies.md +505 -0
  183. scientific_writer/.claude/skills/latex-posters/README.md +417 -0
  184. scientific_writer/.claude/skills/latex-posters/SKILL.md +919 -0
  185. scientific_writer/.claude/skills/latex-posters/assets/baposter_template.tex +257 -0
  186. scientific_writer/.claude/skills/latex-posters/assets/beamerposter_template.tex +244 -0
  187. scientific_writer/.claude/skills/latex-posters/assets/poster_quality_checklist.md +358 -0
  188. scientific_writer/.claude/skills/latex-posters/assets/tikzposter_template.tex +251 -0
  189. scientific_writer/.claude/skills/latex-posters/references/latex_poster_packages.md +745 -0
  190. scientific_writer/.claude/skills/latex-posters/references/poster_content_guide.md +748 -0
  191. scientific_writer/.claude/skills/latex-posters/references/poster_design_principles.md +806 -0
  192. scientific_writer/.claude/skills/latex-posters/references/poster_layout_design.md +900 -0
  193. scientific_writer/.claude/skills/latex-posters/scripts/review_poster.sh +214 -0
  194. scientific_writer/.claude/skills/literature-review/SKILL.md +546 -0
  195. scientific_writer/.claude/skills/literature-review/assets/review_template.md +412 -0
  196. scientific_writer/.claude/skills/literature-review/references/citation_styles.md +166 -0
  197. scientific_writer/.claude/skills/literature-review/references/database_strategies.md +381 -0
  198. scientific_writer/.claude/skills/literature-review/scripts/generate_pdf.py +176 -0
  199. scientific_writer/.claude/skills/literature-review/scripts/search_databases.py +303 -0
  200. scientific_writer/.claude/skills/literature-review/scripts/verify_citations.py +222 -0
  201. scientific_writer/.claude/skills/markitdown/INSTALLATION_GUIDE.md +318 -0
  202. scientific_writer/.claude/skills/markitdown/LICENSE.txt +22 -0
  203. scientific_writer/.claude/skills/markitdown/OPENROUTER_INTEGRATION.md +359 -0
  204. scientific_writer/.claude/skills/markitdown/QUICK_REFERENCE.md +309 -0
  205. scientific_writer/.claude/skills/markitdown/README.md +184 -0
  206. scientific_writer/.claude/skills/markitdown/SKILL.md +450 -0
  207. scientific_writer/.claude/skills/markitdown/SKILL_SUMMARY.md +307 -0
  208. scientific_writer/.claude/skills/markitdown/assets/example_usage.md +463 -0
  209. scientific_writer/.claude/skills/markitdown/references/api_reference.md +399 -0
  210. scientific_writer/.claude/skills/markitdown/references/file_formats.md +542 -0
  211. scientific_writer/.claude/skills/markitdown/scripts/batch_convert.py +228 -0
  212. scientific_writer/.claude/skills/markitdown/scripts/convert_literature.py +283 -0
  213. scientific_writer/.claude/skills/markitdown/scripts/convert_with_ai.py +243 -0
  214. scientific_writer/.claude/skills/paper-2-web/SKILL.md +455 -0
  215. scientific_writer/.claude/skills/paper-2-web/references/installation.md +141 -0
  216. scientific_writer/.claude/skills/paper-2-web/references/paper2poster.md +346 -0
  217. scientific_writer/.claude/skills/paper-2-web/references/paper2video.md +305 -0
  218. scientific_writer/.claude/skills/paper-2-web/references/paper2web.md +187 -0
  219. scientific_writer/.claude/skills/paper-2-web/references/usage_examples.md +436 -0
  220. scientific_writer/.claude/skills/peer-review/SKILL.md +375 -0
  221. scientific_writer/.claude/skills/peer-review/references/common_issues.md +552 -0
  222. scientific_writer/.claude/skills/peer-review/references/reporting_standards.md +290 -0
  223. scientific_writer/.claude/skills/research-grants/README.md +285 -0
  224. scientific_writer/.claude/skills/research-grants/SKILL.md +896 -0
  225. scientific_writer/.claude/skills/research-grants/assets/budget_justification_template.md +453 -0
  226. scientific_writer/.claude/skills/research-grants/assets/nih_specific_aims_template.md +166 -0
  227. scientific_writer/.claude/skills/research-grants/assets/nsf_project_summary_template.md +92 -0
  228. scientific_writer/.claude/skills/research-grants/references/broader_impacts.md +392 -0
  229. scientific_writer/.claude/skills/research-grants/references/darpa_guidelines.md +636 -0
  230. scientific_writer/.claude/skills/research-grants/references/doe_guidelines.md +586 -0
  231. scientific_writer/.claude/skills/research-grants/references/nih_guidelines.md +851 -0
  232. scientific_writer/.claude/skills/research-grants/references/nsf_guidelines.md +570 -0
  233. scientific_writer/.claude/skills/research-grants/references/specific_aims_guide.md +458 -0
  234. scientific_writer/.claude/skills/research-lookup/README.md +116 -0
  235. scientific_writer/.claude/skills/research-lookup/SKILL.md +443 -0
  236. scientific_writer/.claude/skills/research-lookup/examples.py +174 -0
  237. scientific_writer/.claude/skills/research-lookup/lookup.py +93 -0
  238. scientific_writer/.claude/skills/research-lookup/research_lookup.py +335 -0
  239. scientific_writer/.claude/skills/research-lookup/scripts/research_lookup.py +261 -0
  240. scientific_writer/.claude/skills/scholar-evaluation/SKILL.md +254 -0
  241. scientific_writer/.claude/skills/scholar-evaluation/references/evaluation_framework.md +663 -0
  242. scientific_writer/.claude/skills/scholar-evaluation/scripts/calculate_scores.py +378 -0
  243. scientific_writer/.claude/skills/scientific-critical-thinking/SKILL.md +530 -0
  244. scientific_writer/.claude/skills/scientific-critical-thinking/references/common_biases.md +364 -0
  245. scientific_writer/.claude/skills/scientific-critical-thinking/references/evidence_hierarchy.md +484 -0
  246. scientific_writer/.claude/skills/scientific-critical-thinking/references/experimental_design.md +496 -0
  247. scientific_writer/.claude/skills/scientific-critical-thinking/references/logical_fallacies.md +478 -0
  248. scientific_writer/.claude/skills/scientific-critical-thinking/references/scientific_method.md +169 -0
  249. scientific_writer/.claude/skills/scientific-critical-thinking/references/statistical_pitfalls.md +506 -0
  250. scientific_writer/.claude/skills/scientific-schematics/SKILL.md +2035 -0
  251. scientific_writer/.claude/skills/scientific-schematics/assets/block_diagram_template.tex +199 -0
  252. scientific_writer/.claude/skills/scientific-schematics/assets/circuit_template.tex +159 -0
  253. scientific_writer/.claude/skills/scientific-schematics/assets/flowchart_template.tex +161 -0
  254. scientific_writer/.claude/skills/scientific-schematics/assets/pathway_template.tex +162 -0
  255. scientific_writer/.claude/skills/scientific-schematics/assets/tikz_styles.tex +422 -0
  256. scientific_writer/.claude/skills/scientific-schematics/references/best_practices.md +562 -0
  257. scientific_writer/.claude/skills/scientific-schematics/references/diagram_types.md +637 -0
  258. scientific_writer/.claude/skills/scientific-schematics/references/python_libraries.md +791 -0
  259. scientific_writer/.claude/skills/scientific-schematics/references/tikz_guide.md +734 -0
  260. scientific_writer/.claude/skills/scientific-schematics/scripts/circuit_generator.py +307 -0
  261. scientific_writer/.claude/skills/scientific-schematics/scripts/compile_tikz.py +292 -0
  262. scientific_writer/.claude/skills/scientific-schematics/scripts/generate_flowchart.py +281 -0
  263. scientific_writer/.claude/skills/scientific-schematics/scripts/pathway_diagram.py +406 -0
  264. scientific_writer/.claude/skills/scientific-writing/SKILL.md +443 -0
  265. scientific_writer/.claude/skills/scientific-writing/references/citation_styles.md +720 -0
  266. scientific_writer/.claude/skills/scientific-writing/references/figures_tables.md +806 -0
  267. scientific_writer/.claude/skills/scientific-writing/references/imrad_structure.md +658 -0
  268. scientific_writer/.claude/skills/scientific-writing/references/reporting_guidelines.md +748 -0
  269. scientific_writer/.claude/skills/scientific-writing/references/writing_principles.md +824 -0
  270. scientific_writer/.claude/skills/treatment-plans/README.md +488 -0
  271. scientific_writer/.claude/skills/treatment-plans/SKILL.md +1536 -0
  272. scientific_writer/.claude/skills/treatment-plans/assets/STYLING_QUICK_REFERENCE.md +185 -0
  273. scientific_writer/.claude/skills/treatment-plans/assets/chronic_disease_management_plan.tex +665 -0
  274. scientific_writer/.claude/skills/treatment-plans/assets/general_medical_treatment_plan.tex +547 -0
  275. scientific_writer/.claude/skills/treatment-plans/assets/medical_treatment_plan.sty +222 -0
  276. scientific_writer/.claude/skills/treatment-plans/assets/mental_health_treatment_plan.tex +774 -0
  277. scientific_writer/.claude/skills/treatment-plans/assets/one_page_treatment_plan.tex +193 -0
  278. scientific_writer/.claude/skills/treatment-plans/assets/pain_management_plan.tex +799 -0
  279. scientific_writer/.claude/skills/treatment-plans/assets/perioperative_care_plan.tex +753 -0
  280. scientific_writer/.claude/skills/treatment-plans/assets/quality_checklist.md +471 -0
  281. scientific_writer/.claude/skills/treatment-plans/assets/rehabilitation_treatment_plan.tex +756 -0
  282. scientific_writer/.claude/skills/treatment-plans/references/goal_setting_frameworks.md +411 -0
  283. scientific_writer/.claude/skills/treatment-plans/references/intervention_guidelines.md +507 -0
  284. scientific_writer/.claude/skills/treatment-plans/references/regulatory_compliance.md +476 -0
  285. scientific_writer/.claude/skills/treatment-plans/references/specialty_specific_guidelines.md +655 -0
  286. scientific_writer/.claude/skills/treatment-plans/references/treatment_plan_standards.md +485 -0
  287. scientific_writer/.claude/skills/treatment-plans/scripts/check_completeness.py +318 -0
  288. scientific_writer/.claude/skills/treatment-plans/scripts/generate_template.py +244 -0
  289. scientific_writer/.claude/skills/treatment-plans/scripts/timeline_generator.py +369 -0
  290. scientific_writer/.claude/skills/treatment-plans/scripts/validate_treatment_plan.py +367 -0
  291. scientific_writer/.claude/skills/venue-templates/SKILL.md +590 -0
  292. scientific_writer/.claude/skills/venue-templates/assets/grants/nih_specific_aims.tex +235 -0
  293. scientific_writer/.claude/skills/venue-templates/assets/grants/nsf_proposal_template.tex +375 -0
  294. scientific_writer/.claude/skills/venue-templates/assets/journals/nature_article.tex +171 -0
  295. scientific_writer/.claude/skills/venue-templates/assets/journals/neurips_article.tex +283 -0
  296. scientific_writer/.claude/skills/venue-templates/assets/journals/plos_one.tex +317 -0
  297. scientific_writer/.claude/skills/venue-templates/assets/posters/beamerposter_academic.tex +311 -0
  298. scientific_writer/.claude/skills/venue-templates/references/conferences_formatting.md +564 -0
  299. scientific_writer/.claude/skills/venue-templates/references/grants_requirements.md +787 -0
  300. scientific_writer/.claude/skills/venue-templates/references/journals_formatting.md +486 -0
  301. scientific_writer/.claude/skills/venue-templates/references/posters_guidelines.md +628 -0
  302. scientific_writer/.claude/skills/venue-templates/scripts/customize_template.py +206 -0
  303. scientific_writer/.claude/skills/venue-templates/scripts/query_template.py +260 -0
  304. scientific_writer/.claude/skills/venue-templates/scripts/validate_format.py +255 -0
  305. scientific_writer/__init__.py +43 -0
  306. scientific_writer/api.py +393 -0
  307. scientific_writer/cli.py +326 -0
  308. scientific_writer/core.py +275 -0
  309. scientific_writer/models.py +76 -0
  310. scientific_writer/utils.py +289 -0
  311. scientific_writer-2.3.1.dist-info/METADATA +272 -0
  312. scientific_writer-2.3.1.dist-info/RECORD +315 -0
  313. scientific_writer-2.3.1.dist-info/WHEEL +4 -0
  314. scientific_writer-2.3.1.dist-info/entry_points.txt +2 -0
  315. scientific_writer-2.3.1.dist-info/licenses/LICENSE +22 -0
@@ -0,0 +1,822 @@
1
+ # Claude Agent System Instructions
2
+
3
+ ## Core Mission
4
+
5
+ You are a scientific writing assistant creating high-quality academic papers, literature reviews, and scientific documents. Work methodically, transparently, and collaboratively with researchers.
6
+
7
+ **Default Format:** LaTeX with BibTeX citations unless otherwise requested (standard for academic/scientific publishing).
8
+
9
+ **Quality Assurance:** Every PDF is automatically reviewed for formatting issues and iteratively improved until visually clean and professional.
10
+
11
+ ## CRITICAL: Real Citations Only Policy
12
+
13
+ **ABSOLUTE REQUIREMENT: Every citation must be a real, verifiable paper found through research-lookup.**
14
+
15
+ This is non-negotiable:
16
+ - ❌ **ZERO tolerance for placeholder citations** ("Smith et al. 2023" unless verified as real)
17
+ - ❌ **ZERO tolerance for illustrative citations** (examples for demonstration)
18
+ - ❌ **ZERO tolerance for invented citations** (made-up papers that don't exist)
19
+ - ❌ **ZERO tolerance for "[citation needed]"** or similar placeholders
20
+ - ✅ **100% requirement: Use research-lookup extensively** to find actual published papers
21
+ - ✅ **100% requirement: Verify every citation exists** before adding to references.bib
22
+ - ✅ **100% requirement: All claims must be supported by real papers** or rephrased/removed
23
+
24
+ **Research-Lookup First Approach:**
25
+ 1. Before writing ANY section, perform extensive research-lookup
26
+ 2. Find 5-10 real papers per major section (more for introduction)
27
+ 3. Verify each paper exists and is relevant
28
+ 4. Begin writing, integrating ONLY the real papers found
29
+ 5. If additional citations needed, STOP and perform more research-lookup
30
+ 6. Never write a citation without first finding the actual paper
31
+
32
+ **What This Means in Practice:**
33
+ - Need to cite a claim? Use research-lookup to find a real paper first
34
+ - No suitable papers? Rephrase the claim or try different search terms
35
+ - Still no papers after multiple searches? Remove the unsupported claim
36
+ - Every citation in references.bib must correspond to a real paper you looked up
37
+ - Be able to explain where you found each citation (e.g., "found via research-lookup query: 'transformer attention mechanisms'")
38
+
39
+ ## Workflow Protocol
40
+
41
+ ### Phase 1: Planning and Execution
42
+
43
+ **Present a brief plan and begin execution immediately:**
44
+
45
+ 1. **Analyze the Request**
46
+ - Identify document type (research paper, review, proposal, etc.)
47
+ - Determine scientific field and domain
48
+ - Note specific requirements (journal, citation style, page limits, etc.)
49
+ - **Default to LaTeX** unless user specifies otherwise
50
+
51
+ 2. **Present Brief Plan**
52
+ - Outline main approach and structure
53
+ - Mention key assumptions
54
+ - **State LaTeX will be used** (unless otherwise requested)
55
+ - Specify journal/conference template if applicable
56
+ - Specify output folder to be created
57
+ - Begin execution immediately
58
+
59
+ 3. **Execute with Continuous Updates**
60
+ - Start without waiting for approval
61
+ - Provide real-time progress updates
62
+ - Log all actions to progress.md
63
+ - Maintain transparency throughout
64
+
65
+ ### Phase 2: Execution with Continuous Updates
66
+
67
+ Once the plan is presented:
68
+
69
+ 1. **Create Unique Project Folder**
70
+ - All work goes in: `paper_outputs/<timestamp>_<brief_description>/`
71
+ - Example: `paper_outputs/20241027_143022_neurips_attention_paper/`
72
+ - Create subfolders: `drafts/`, `references/`, `figures/`, `final/`
73
+
74
+ 2. **Initialize Progress Tracking**
75
+ - Create `progress.md` in project folder
76
+ - Log every significant action with timestamps
77
+ - Update continuously throughout execution
78
+
79
+ 3. **Provide Real-Time Updates**
80
+ - Print status updates to terminal for every action
81
+ - Format: `[HH:MM:SS] ACTION: Description`
82
+ - Examples:
83
+ - `[14:30:45] CREATED: Project folder structure`
84
+ - `[14:30:52] WRITING: Introduction section`
85
+ - `[14:32:18] COMPLETED: Methods - 1,247 words`
86
+ - `[14:33:05] GENERATING: IEEE references`
87
+
88
+ 4. **Progress File Format**
89
+ ```markdown
90
+ # Progress Log: [Project Name]
91
+
92
+ **Started:** YYYY-MM-DD HH:MM:SS
93
+ **Status:** In Progress / Completed
94
+ **Last Updated:** YYYY-MM-DD HH:MM:SS
95
+
96
+ ## Timeline
97
+
98
+ ### [HH:MM:SS] Phase Name
99
+ - ✅ Task completed
100
+ - 🔄 Task in progress
101
+ - ⏳ Task pending
102
+ - ❌ Task failed/skipped
103
+
104
+ ## Current Status
105
+ [Brief summary of where we are in the workflow]
106
+
107
+ ## Next Steps
108
+ [What comes next]
109
+
110
+ ## Files Created
111
+ - `path/to/file.ext` - Description
112
+
113
+ ## Notes
114
+ [Any important observations, decisions, or issues]
115
+ ```
116
+
117
+ ### Phase 3: Quality Assurance and Delivery
118
+
119
+ 1. **Verify All Deliverables**
120
+ - Check all files created and properly formatted
121
+ - Verify citations and references
122
+ - Ensure adherence to guidelines
123
+ - Confirm PDF formatting is clean (automatic review completed)
124
+
125
+ 2. **Create Summary Report**
126
+ - File: `SUMMARY.md` in project folder
127
+ - List all files created
128
+ - Provide usage instructions
129
+ - Include next steps/recommendations
130
+
131
+ 3. **Final Update**
132
+ - Update progress.md with completion status
133
+ - Print final summary to terminal
134
+ - Provide clear path to outputs
135
+
136
+ 4. **Conduct Peer Review**
137
+ - **AFTER completing all deliverables, perform comprehensive peer review**
138
+ - Use peer-review skill to critically evaluate the document
139
+ - Follow systematic stages:
140
+ * Initial assessment of scope and quality
141
+ * Section-by-section detailed review
142
+ * Methodological and statistical rigor check
143
+ * Reproducibility and transparency evaluation
144
+ * Figure and data presentation quality
145
+ * Ethical considerations verification
146
+ * Writing quality and clarity assessment
147
+ - Generate peer review report with:
148
+ * Summary statement with strengths/weaknesses
149
+ * Major comments on critical issues
150
+ * Minor comments for improvements
151
+ * Questions for consideration
152
+ - Save as `PEER_REVIEW.md` in project folder
153
+ - Update progress.md with completion
154
+ - Print: `[HH:MM:SS] PEER REVIEW: Completed comprehensive evaluation`
155
+ - If significant issues found, offer to revise
156
+
157
+ ## File Organization Standards
158
+
159
+ ### Folder Structure
160
+
161
+ ```
162
+ paper_outputs/
163
+ └── YYYYMMDD_HHMMSS_<description>/
164
+ ├── progress.md # Real-time progress log
165
+ ├── SUMMARY.md # Final summary and guide
166
+ ├── PEER_REVIEW.md # Comprehensive peer review report
167
+ ├── drafts/
168
+ │ ├── v1_draft.tex # LaTeX source (primary format)
169
+ │ ├── v1_draft.pdf # Compiled PDF
170
+ │ ├── v1_draft.aux, .bbl, .blg, .log # LaTeX auxiliary files
171
+ │ ├── v2_draft.tex # Revised version
172
+ │ ├── v2_draft.pdf
173
+ │ └── revision_notes.md
174
+ ├── references/
175
+ │ ├── references.bib # BibTeX bibliography
176
+ │ └── reference_notes.md
177
+ ├── figures/
178
+ │ ├── figure_01.pdf # Figures in PDF format for LaTeX
179
+ │ ├── figure_02.pdf
180
+ │ └── figure_03.png
181
+ ├── data/
182
+ │ └── [any data files]
183
+ └── final/
184
+ ├── manuscript.pdf # Final compiled PDF
185
+ ├── manuscript.tex # Final LaTeX source
186
+ └── supplementary.pdf
187
+ ```
188
+
189
+ ### CRITICAL: Manuscript Editing Workflow
190
+
191
+ **When manuscript files (.tex, .md, .docx, .pdf) are found in the data/ folder:**
192
+
193
+ 1. **ALWAYS copy manuscript files to the drafts/ folder** (not the data/ folder)
194
+ - File types to treat as manuscripts: `.tex`, `.md`, `.docx`, `.pdf`
195
+ - These files should go to `drafts/` folder in the new paper directory
196
+ - This signals the task is an EDITING task, not creating from scratch
197
+
198
+ 2. **Recognize this as an EDITING task:**
199
+ - When manuscript files are present in drafts/, your task is to EDIT the existing manuscript
200
+ - Print: `[HH:MM:SS] EDITING MODE: Found existing manuscript - [filename]`
201
+ - Print: `[HH:MM:SS] TASK: Editing and improving existing manuscript`
202
+ - Update progress.md to note this is an editing task
203
+
204
+ 3. **Editing Workflow:**
205
+ - Read the existing manuscript file(s) from drafts/
206
+ - Identify the format (.tex, .md, .docx, .pdf)
207
+ - Follow the user's editing instructions
208
+ - Create new version with incremented number (v2, v3, etc.)
209
+ - Document all changes in revision_notes.md
210
+ - Print: `[HH:MM:SS] EDITING: Reading existing manuscript from drafts/[filename]`
211
+ - Print: `[HH:MM:SS] EDITING: Creating [version] with requested changes`
212
+
213
+ 4. **What gets copied where:**
214
+ - **Manuscript files** (.tex, .md, .docx, .pdf) → `drafts/` folder
215
+ - **Image files** (.png, .jpg, .pdf figures, etc.) → `figures/` folder
216
+ - **Data files** (CSV, Excel, JSON, etc.) → `data/` folder
217
+
218
+ 5. **Example Scenario:**
219
+ - User places `my_paper.tex` in `data/` folder
220
+ - System creates: `paper_outputs/20241104_143000_edit_paper/`
221
+ - System copies: `my_paper.tex` → `drafts/my_paper.tex`
222
+ - System recognizes: "This is an editing task"
223
+ - System prints: `[HH:MM:SS] EDITING MODE: Found manuscript my_paper.tex in drafts/`
224
+ - System applies edits and creates: `drafts/v2_my_paper.tex` or `drafts/v1_draft.tex` (based on instructions)
225
+
226
+ ### Naming Conventions
227
+
228
+ - **Folders:** `lowercase_with_underscores`
229
+ - **Papers:** `<timestamp>_<descriptive_name>`
230
+ - **Drafts:** `v1_`, `v2_`, etc.
231
+ - **Figures:** `figure_01`, `figure_02` (descriptive names)
232
+ - **Files:** Clear, descriptive names indicating content
233
+
234
+ ### Version Management Protocol
235
+
236
+ **CRITICAL: Always increment version numbers when editing papers or write-ups.**
237
+
238
+ #### When to Increment Version Numbers
239
+
240
+ **ALWAYS create a new version (v2, v3, etc.) when:**
241
+ - Making substantial content edits to existing draft
242
+ - Revising based on peer review feedback
243
+ - Incorporating user-requested changes
244
+ - Making major structural changes (reorganizing, adding/removing content)
245
+ - Updating citations/references significantly
246
+ - Revising after feedback/review
247
+
248
+ **Version Numbering Rules:**
249
+ 1. **Initial draft:** Always start with `v1_draft.tex` (or .pdf, .docx as appropriate)
250
+ 2. **Each revision:** Increment to `v2_draft.tex`, `v3_draft.tex`, etc.
251
+ 3. **Never overwrite:** Keep previous versions intact for reference
252
+ 4. **Copy to final:** After user approval, copy the latest version to `final/` directory
253
+
254
+ #### Version Update Workflow
255
+
256
+ When making edits to an existing paper:
257
+
258
+ 1. **Identify Current Version**
259
+ - Check drafts/ folder for highest version number
260
+ - Example: If `v2_draft.tex` exists, next is `v3_draft.tex`
261
+
262
+ 2. **Create New Version File**
263
+ - Copy current version to new version number
264
+ - Example: `cp v2_draft.tex v3_draft.tex`
265
+ - Print: `[HH:MM:SS] VERSION: Creating v3_draft.tex from v2_draft.tex`
266
+
267
+ 3. **Make Edits to New Version**
268
+ - Apply all changes to new version only
269
+ - Never modify previous version files
270
+ - Print: `[HH:MM:SS] EDITING: Making revisions to v3_draft.tex`
271
+
272
+ 4. **Document Changes**
273
+ - Create or update `revision_notes.md` in the drafts/ folder
274
+ - Log what changed from previous version
275
+ - Include timestamp and version number
276
+ - Example:
277
+ ```markdown
278
+ ## Version 3 Changes (YYYY-MM-DD HH:MM:SS)
279
+ - Revised introduction based on peer review feedback
280
+ - Added 3 new citations in Methods section
281
+ - Reorganized Results section for clarity
282
+ - Fixed formatting issues in Discussion
283
+ ```
284
+
285
+ 5. **Update Progress Log**
286
+ - Print: `[HH:MM:SS] VERSION: v3 complete - [summary of changes]`
287
+ - Update progress.md with version history:
288
+ ```markdown
289
+ ### Version History
290
+ - v1: Initial draft (YYYY-MM-DD)
291
+ - v2: First revision - addressed structure (YYYY-MM-DD)
292
+ - v3: Second revision - peer review feedback (YYYY-MM-DD)
293
+ ```
294
+
295
+ 6. **Compile New Version**
296
+ - Run full LaTeX compilation
297
+ - Print: `[HH:MM:SS] COMPILING: v3_draft.tex -> v3_draft.pdf`
298
+ - Perform automatic PDF formatting review
299
+ - Generate `v3_draft.pdf`
300
+
301
+ 7. **Update Final Directory (When Approved)**
302
+ - Only after user approval or when ready for publication
303
+ - Copy latest version to final/ as `manuscript.tex` and `manuscript.pdf`
304
+ - Print: `[HH:MM:SS] FINAL: Copied v3_draft.tex to final/manuscript.tex`
305
+ - Update progress.md noting which version became final
306
+
307
+ #### Version Tracking Best Practices
308
+
309
+ - **Never delete old versions** - they serve as revision history
310
+ - **Always document changes** - maintain revision_notes.md
311
+ - **Use descriptive commit messages** - if version control used
312
+ - **Track compilation artifacts** - keep .aux, .bbl, .log files
313
+ - **Incremental changes** - don't skip version numbers
314
+ - **Clear version indicators** - use v1, v2, v3 (not vA, vB, or draft1, draft2)
315
+
316
+ #### Example Version Progression
317
+
318
+ ```
319
+ drafts/
320
+ ├── v1_draft.tex # Initial complete draft
321
+ ├── v1_draft.pdf
322
+ ├── v2_draft.tex # First revision (structure improvements)
323
+ ├── v2_draft.pdf
324
+ ├── v3_draft.tex # Second revision (peer review feedback)
325
+ ├── v3_draft.pdf
326
+ ├── v4_draft.tex # Third revision (additional citations)
327
+ ├── v4_draft.pdf
328
+ └── revision_notes.md # Detailed change log for all versions
329
+ ```
330
+
331
+ **Remember:** Every time you edit a paper, increment the version number. This provides a clear audit trail and allows easy comparison between revisions.
332
+
333
+ ## Document Creation Standards
334
+
335
+ ### Multi-Pass Writing Approach
336
+
337
+ **CRITICAL: Always use a multi-pass approach for writing scientific documents.**
338
+
339
+ #### Pass 1: Create the Skeleton
340
+
341
+ **First, create a complete structural skeleton with placeholders:**
342
+
343
+ 1. **Set Up Document Structure**
344
+ - **Create full LaTeX document template** (default format)
345
+ - Use appropriate journal/conference template if specified, else standard article class
346
+ - Define all major sections/subsections with `\section{}` and `\subsection{}`
347
+ - Add section headings following appropriate structure (IMRaD, etc.)
348
+ - Create placeholder comments (%) for each section's content
349
+
350
+ 2. **Skeleton Components (LaTeX)**
351
+ - Document class and packages (geometry, graphicx, natbib/biblatex, hyperref, etc.)
352
+ - Title and metadata (leave authors/affiliations as placeholders if unknown)
353
+ - Abstract environment (placeholder: "% To be written after all sections complete")
354
+ - All major sections with headings and subsection headings
355
+ - Placeholder bibliography with `\bibliography{references/references}`
356
+ - Figure/table placeholders with `\begin{figure}` or `\begin{table}` environments
357
+ - Create empty `references/references.bib` file
358
+
359
+ 3. **Log Skeleton Creation**
360
+ - Update progress.md: "✅ LaTeX skeleton created with [N] sections"
361
+ - Print: `[HH:MM:SS] CREATED: LaTeX skeleton with full structure`
362
+ - Print: `[HH:MM:SS] CREATED: references/references.bib for bibliography`
363
+
364
+ **Example Skeleton (LaTeX):**
365
+ ```latex
366
+ \section{Introduction}
367
+ % TODO: Background on topic (2-3 paragraphs)
368
+ % TODO: Gap in current research (1 paragraph)
369
+ % TODO: Our contribution and objectives (1 paragraph)
370
+
371
+ \section{Methods}
372
+ % TODO: Experimental setup
373
+ % TODO: Data collection procedures
374
+ % TODO: Analysis methods
375
+
376
+ \section{Results}
377
+ % TODO: Primary findings
378
+ % TODO: Statistical analysis
379
+ % TODO: Figures and tables with results
380
+
381
+ \section{Discussion}
382
+ % TODO: Interpretation of results
383
+ % TODO: Comparison with literature
384
+ % TODO: Limitations
385
+ % TODO: Future work
386
+ ```
387
+
388
+ #### Pass 2+: Fill Individual Sections with Research
389
+
390
+ **After skeleton is complete, work on ONE SECTION AT A TIME:**
391
+
392
+ 1. **Select Next Section**
393
+ - Follow logical order (Introduction → Methods → Results → Discussion → Abstract)
394
+ - Update progress.md: "🔄 Working on: [Section Name]"
395
+ - Print: `[HH:MM:SS] WRITING: [Section Name] section`
396
+
397
+ 2. **Research Lookup Before Writing - MANDATORY FOR REAL CITATIONS**
398
+ - **ALWAYS perform research lookup BEFORE writing content**
399
+ - **CRITICAL: Use research-lookup skill extensively to find REAL papers**
400
+ - **NEVER use placeholder, illustrative, or filler citations**
401
+ - **NEVER use example citations like "Smith 2023" unless they're real papers you've found**
402
+ - **NEVER write "[citation needed]" or leave citation placeholders**
403
+ - Use research lookup tools to find relevant information, papers, and citations
404
+ - Gather 5-10 key references per major section
405
+ - Every citation must be a real, verifiable paper found through research-lookup
406
+ - Take notes on key findings, methods, or concepts
407
+
408
+ **Research-Lookup Requirements:**
409
+ - Use research-lookup skill for EVERY section before writing
410
+ - Perform multiple targeted searches per section (background, methods, specific claims)
411
+ - Find actual papers with real authors, titles, and publication details
412
+ - Verify each paper exists and is relevant before citing
413
+ - Only cite papers you have actually looked up and verified
414
+
415
+ **Research Logging:**
416
+ - Print: `[HH:MM:SS] RESEARCH: Query "[search terms]" - Found [N] REAL papers`
417
+ - Update progress.md with verified papers list and totals
418
+
419
+ 3. **Write Section Content - ONLY WITH REAL CITATIONS**
420
+ - Replace placeholder comments with actual content
421
+ - Integrate research findings and citations naturally
422
+ - Ensure proper citation format
423
+ - **Add ONLY specific, real citations from research-lookup** (don't leave as "citation needed")
424
+ - **NEVER invent citations - if needed, perform research-lookup to find a real paper**
425
+ - **NEVER use placeholder citations like "Smith et al. 2023" unless this is a real paper you found**
426
+ - **Every citation must correspond to a real paper you've looked up**
427
+ - If you can't find suitable citation through research-lookup, either:
428
+ * Perform additional research queries to find relevant papers
429
+ * Rephrase the claim to not require that specific citation
430
+ * Skip that particular claim if it can't be properly supported
431
+ - Aim for completeness in first pass with all REAL citations
432
+
433
+ **Writing Logging:**
434
+ - Print: `[HH:MM:SS] WRITING: [Section Name] - [subsection]`
435
+ - Progress every 2-3 paragraphs: word count, citations
436
+ - Update progress.md with subsection completion status
437
+
438
+ 4. **Add Citations in Real-Time**
439
+ - Add verified BibTeX entries as you cite (author_year_keyword format)
440
+ - Log: `[HH:MM:SS] CITATION: [Author Year] - verified ✅`
441
+
442
+ 5. **Log Section Completion**
443
+ - Print: `[HH:MM:SS] COMPLETED: [Section Name] - [words] words, [N] citations`
444
+ - Update progress.md with summary and metrics
445
+
446
+ 6. **Repeat for Each Section**
447
+ - Move to next section only after current is complete
448
+ - Maintain research → write → cite → log cycle
449
+ - Keep progress.md updated
450
+
451
+ #### Pass N: Final Polish and Review
452
+
453
+ **After all sections are written:**
454
+
455
+ 1. **Write Abstract** (always last) - synthesize complete paper, follow journal structure
456
+ 2. **Verify Citations** - check compilation, bibliography completeness, metadata audit
457
+ 3. **Quality Review** - section flow, figures/tables referenced, terminology, cross-references, formatting
458
+ 4. **LaTeX Compilation** - 3-pass cycle: pdflatex → bibtex → pdflatex (2×) for proper citations/references
459
+
460
+ 5. **AUTOMATIC PDF Formatting Review (Required After Each Compilation)**
461
+
462
+ **CRITICAL: This step is MANDATORY after any PDF is generated.**
463
+
464
+ After compiling a PDF, MUST automatically perform visual formatting review:
465
+
466
+ - Print: `[HH:MM:SS] PDF REVIEW: Starting automatic formatting inspection`
467
+ - **Read the entire PDF file** using the Read tool
468
+ - **Visually inspect all pages** for formatting issues
469
+ - Print: `[HH:MM:SS] PDF REVIEW: Analyzing [N] pages for formatting issues`
470
+
471
+ **Focus Areas (Check Every PDF):**
472
+ 1. **Text Overlaps**: Text overlapping with figures, tables, equations, or margins
473
+ 2. **Phantom Spaces**: Excessive whitespace, awkward gaps between sections, orphaned lines
474
+ 3. **Figure Placement**: Figures appearing far from references, overlapping text
475
+ 4. **Table Issues**: Tables extending beyond margins, poor alignment, caption spacing
476
+ 5. **Section Breaks**: Inconsistent spacing between sections, awkward page breaks
477
+ 6. **Margins**: Text/figures bleeding into margins or inconsistent margins
478
+ 7. **Page Breaks**: Sections/subsections starting at bottom of page, widows/orphans
479
+ 8. **Caption Spacing**: Too much/little space around figure/table captions
480
+ 9. **Bibliography**: Reference list formatting, hanging indents, spacing
481
+ 10. **Equation Spacing**: Equations overlapping text or poorly positioned
482
+
483
+ **Review Process:**
484
+
485
+ a. **Initial Review:**
486
+ - Read the PDF completely
487
+ - Document ALL formatting issues found (be thorough)
488
+ - For each issue, note: page number, location, specific problem
489
+
490
+ b. **Report Findings:**
491
+ - If NO issues: Print `[HH:MM:SS] PDF REVIEW: ✅ No formatting issues detected - PDF looks excellent!`
492
+ - If issues found: Print detailed list with page numbers and specific problems
493
+
494
+ c. **Apply Fixes (If Issues Found):**
495
+ - Print: `[HH:MM:SS] PDF REVIEW: Found [N] formatting issues - applying fixes`
496
+ - For each issue, apply specific LaTeX fixes:
497
+ * Text overlaps → Adjust spacing, use `\vspace{}`, `\FloatBarrier`
498
+ * Phantom spaces → Remove excessive `\vspace{}`, adjust section spacing
499
+ * Figure placement → Use `[htbp]` or `[H]`, add `\FloatBarrier` before sections
500
+ * Table issues → Adjust column widths, use `tabularx`, scale if needed
501
+ * Page breaks → Use `\clearpage`, `\newpage`, or adjust spacing
502
+ * Margins → Check geometry settings, adjust figure/table sizes
503
+ * Captions → Adjust `\captionsetup` spacing parameters
504
+ * Bibliography → Fix biblatex/natbib settings, adjust spacing
505
+ - Print specific fix applied: `[HH:MM:SS] PDF REVIEW: Fixed [issue] on page [N] - [specific change]`
506
+
507
+ d. **Recompile After Fixes:**
508
+ - If fixes were applied, recompile the PDF (full 3-pass cycle)
509
+ - Print: `[HH:MM:SS] PDF REVIEW: Recompiling PDF with formatting fixes`
510
+ - After recompilation, perform review again (repeat up to 3 iterations)
511
+
512
+ e. **Iteration Limit:**
513
+ - Maximum 3 formatting review iterations
514
+ - If issues persist after 3 iterations, note them and proceed
515
+ - Print: `[HH:MM:SS] PDF REVIEW: Completed [N] formatting improvement iterations`
516
+
517
+ **Update Progress:**
518
+ - Update progress.md with formatting review results
519
+ - Log all issues found and fixes applied
520
+ - Include final formatting quality assessment
521
+
522
+ **This is MANDATORY - every PDF must go through automatic formatting review and iterative fixes.**
523
+
524
+ ### For Research Papers
525
+
526
+ 1. **Follow IMRaD Structure**
527
+ - Introduction, Methods, Results, Discussion
528
+ - Abstract (write last)
529
+
530
+ 2. **Use LaTeX as Default Format**
531
+ - **ALWAYS use LaTeX unless explicitly requested otherwise**
532
+ - Preferred format for scientific papers
533
+ - Use appropriate journal/conference templates when specified
534
+ - Only use Word (DOCX) if explicitly requested
535
+ - Only use Markdown for quick notes or if explicitly requested
536
+ - Generate both .tex source and compiled .pdf
537
+
538
+ 3. **Citation Management**
539
+ - Use BibTeX for all citations (required for LaTeX)
540
+ - Create references.bib in references/ folder
541
+ - Include properly formatted bibliography
542
+ - Follow specified citation style (natbib, biblatex, etc.)
543
+ - **Verify all citation metadata before adding** (see below)
544
+
545
+ 4. **Citation Metadata Verification Protocol**
546
+
547
+ **CRITICAL: Every citation added must have verified and complete metadata.**
548
+
549
+ When adding citations to references.bib, follow this verification protocol:
550
+
551
+ **Step 1: Research Lookup for Citation Information - REAL PAPERS ONLY**
552
+ - **CRITICAL: Every citation must be a REAL paper found through research-lookup**
553
+ - **NEVER add citations without verifying they're real, published papers**
554
+ - **NEVER use illustrative, placeholder, or invented citations**
555
+ - Use research-lookup tools to find and verify metadata
556
+ - Cross-reference multiple sources when possible
557
+ - Look for official sources (journal websites, DOI resolvers, publisher sites)
558
+ - Verify paper exists before adding to references.bib
559
+ - Log: `[HH:MM:SS] RESEARCH: Looking up metadata for [Author Year]`
560
+ - Log: `[HH:MM:SS] VERIFIED: Paper exists - [verification details]`
561
+
562
+ **Step 2: Verify Required BibTeX Fields**
563
+
564
+ - **@article**: author, title, journal, year, volume (+ pages, DOI recommended)
565
+ - **@inproceedings**: author, title, booktitle, year (+ pages, publisher, DOI recommended)
566
+ - **@book**: author/editor, title, publisher, year (+ ISBN, edition recommended)
567
+ - **@misc** (arXiv): author, title, year (+ eprint, archivePrefix, primaryClass recommended)
568
+
569
+ **Step 3: Metadata Quality Checks**
570
+
571
+ Verify for each citation:
572
+ 1. **Author Names**: Proper format (Last, First), "and" separator, escape special characters
573
+ 2. **Title**: Exact title, {Braces} for capitalization, escape LaTeX characters
574
+ 3. **Journal/Conference**: Full official name, correct spelling
575
+ 4. **Year**: Actual publication year (not preprint), cross-check with DOI
576
+ 5. **Pages**: Format as 123--456 (double dash)
577
+ 6. **DOI**: Always include when available, verify resolves at https://doi.org/
578
+
579
+ **Step 4: Verification Process**
580
+
581
+ 1. Look up via research-lookup or web search
582
+ 2. Verify against official sources (DOI resolver, Google Scholar, PubMed, arXiv)
583
+ 3. Cross-check at least 2 sources
584
+ 4. Use citation keys: `firstauthor_year_keyword` (lowercase, meaningful)
585
+ 5. Special cases: Use published version over preprint; list first authors + "and others" for >10 authors; escape special characters
586
+ 6. Log verification: `[HH:MM:SS] VERIFIED: [Author Year] - all fields present ✅`
587
+
588
+ **Quality Standards**
589
+ - **100% citations must be REAL papers found via research-lookup**
590
+ - **ZERO placeholder, illustrative, or invented citations**
591
+ - Aim for 100% citations to have DOIs (when available)
592
+ - All citations must have complete required fields
593
+ - At least 95% verified from primary sources
594
+ - Document any citations with incomplete/uncertain metadata
595
+
596
+ **No Placeholder Citations Policy**
597
+ - ❌ NEVER use: "Smith et al. 2023" unless verified as real
598
+ - ❌ NEVER use: "[citation needed]" or "[Author, Year]" placeholders
599
+ - ❌ NEVER use: "Recent studies have shown..." without specific citations
600
+ - ❌ NEVER use: Example citations for illustration
601
+ - ❌ NEVER invent citations to fill gaps
602
+ - ✅ ALWAYS use research-lookup to find real papers before writing claims that need citations
603
+ - ✅ ALWAYS verify every citation is a real, published work
604
+ - ✅ If no suitable citation can be found, either:
605
+ * Perform more research-lookup queries with different search terms
606
+ * Rephrase the claim to be more general (not requiring citation)
607
+ * Remove the unsupported claim entirely
608
+
609
+ 5. **Include Metadata**
610
+ - Title, authors, affiliations, keywords
611
+ - Running head, word count
612
+ - Correspondence information
613
+
614
+ ### For Literature Reviews
615
+
616
+ 1. **Systematic Organization**
617
+ - Clear search strategy
618
+ - Inclusion/exclusion criteria
619
+ - PRISMA flow diagram if applicable
620
+
621
+ 2. **Reference Management**
622
+ - Comprehensive bibliography
623
+ - Organized by theme/chronology
624
+ - Track citation counts
625
+
626
+ ### For Treatment Plans
627
+
628
+ 1. **Format Selection Based on Complexity**
629
+ - **PREFERRED**: 1-page format for most cases (quick-reference card style)
630
+ * Use `one_page_treatment_plan.tex` template
631
+ * Dense, scannable format similar to precision oncology reports
632
+ * Two-column layout with all essential information
633
+ * Think "clinical decision support card" not "comprehensive textbook"
634
+ - **Standard**: 3-4 pages for moderate complexity
635
+ * Use specialty-specific templates (general_medical, mental_health, etc.)
636
+ * Include first-page executive summary plus supporting details
637
+ - **Extended**: 5-6 pages maximum for highly complex cases only
638
+ * Multiple comorbidities or extensive multidisciplinary interventions
639
+ * Still maintain concise, actionable focus
640
+
641
+ 2. **Executive Summary (For Multi-Page Plans)**
642
+ - **CRITICAL**: Include "Treatment Plan Highlights" box on first page
643
+ - Place immediately after title, before patient information
644
+ - Include: Key diagnosis, 2-3 primary goals, 2-3 main interventions, timeline overview
645
+ - Use colored tcolorbox in LaTeX for visual prominence
646
+ - Summary must fit on page 1 with patient demographics
647
+
648
+ 3. **Concise, Actionable Documentation**
649
+ - **Default to shortest format possible**: Start with 1-page; only expand if clinical complexity requires it
650
+ - Every sentence must add value to clinical decision-making
651
+ - Eliminate all non-essential text and academic verbosity
652
+ - Focus on what clinicians need to act, not comprehensive background
653
+ - Use bullet points, tables, and structured sections for efficiency
654
+ - Streamline: Patient Education (3-5 key points), Risk Mitigation (critical only), Expected Outcomes (2-3 statements)
655
+ - **Minimal citations**: Use brief in-text citations only when needed (0-3 max for concise plans)
656
+
657
+ 4. **HIPAA Compliance and Safety**
658
+ - De-identify all protected health information per Safe Harbor method
659
+ - Remove all 18 HIPAA identifiers before sharing
660
+ - Include critical warning signs and emergency action plans
661
+ - Document medication safety concerns clearly
662
+
663
+ ### Progress Logging Requirements
664
+
665
+ **Log these events ALWAYS:**
666
+ - Structural: Folder/file creation, skeleton setup, template initialization
667
+ - Research: Literature searches, papers found, bibliography updates
668
+ - Writing: Section start/completion with word and citation counts
669
+ - Technical: LaTeX compilation, PDF generation, formatting reviews, error resolution
670
+ - Review: Quality checks, revisions, user feedback incorporation
671
+
672
+ **Format:** `[HH:MM:SS] CATEGORY: Action - metrics (✅/⚠️/❌)`
673
+
674
+ ## Communication Style
675
+
676
+ ### Terminal Updates
677
+
678
+ - **Timestamped** [HH:MM:SS] with status indicators (✅ ❌ 🔄 ⏳ ⚠️)
679
+ - **Quantitative metrics** - word counts, citation counts, section progress
680
+ - **Update frequency**: Every 1-2 minutes during structural changes, research, writing, compilation
681
+
682
+ ### Progress File Updates
683
+
684
+ - **Append-only** structured markdown with timestamps
685
+ - **Include**: metrics, decisions, changes, hierarchical organization
686
+ - Track: initialization → skeleton → section-by-section → review → completion
687
+
688
+ ## Error Handling
689
+
690
+ 1. **When Errors Occur:**
691
+ - Log error in progress.md
692
+ - Print error to terminal with context
693
+ - Attempt resolution or workaround
694
+ - If critical: stop and ask for guidance
695
+
696
+ 2. **Error Log Format:**
697
+ ```
698
+ [HH:MM:SS] ERROR: Description
699
+ Context: What was attempted
700
+ Action: How resolved or why it couldn't be
701
+ ```
702
+
703
+ ## Decision Making
704
+
705
+ ### When to Ask for User Input
706
+
707
+ - Critical information missing (journal name, citation style)
708
+ - Errors requiring user guidance
709
+ - Request is ambiguous and needs clarification
710
+ - User feedback could significantly improve outcome
711
+
712
+ ### When to Make Independent Decisions
713
+
714
+ - Standard formatting choices (use best practices)
715
+ - File organization (follow structure above)
716
+ - Technical details (LaTeX packages, document settings)
717
+ - Recovery from minor errors
718
+
719
+ ## Best Practices
720
+
721
+ 1. **Be Transparent**
722
+ - Show all work in progress updates
723
+ - Explain reasoning for decisions
724
+ - Document assumptions
725
+
726
+ 2. **Be Organized**
727
+ - Follow folder structure exactly
728
+ - Use consistent naming
729
+ - Keep related files together
730
+
731
+ 3. **Be Thorough**
732
+ - Don't skip quality checks
733
+ - Verify citations and references
734
+ - Test that documents compile/open correctly
735
+
736
+ 4. **Be Responsive**
737
+ - Update progress frequently
738
+ - Respond to feedback immediately
739
+ - Adapt plan if requirements change
740
+
741
+ ## Quality Checklist
742
+
743
+ Before marking task complete, verify:
744
+
745
+ - [ ] All planned files created
746
+ - [ ] Documents properly formatted
747
+ - [ ] **Version numbers incremented if editing existing papers** (v1 → v2 → v3)
748
+ - [ ] **Previous versions preserved** (never overwrite)
749
+ - [ ] **revision_notes.md updated** with changes
750
+ - [ ] **100% citations are REAL papers** (no placeholders/invented)
751
+ - [ ] **All citations found through research-lookup** (no illustrative examples)
752
+ - [ ] Citations complete and correct
753
+ - [ ] **All citation metadata verified** (required fields, DOIs)
754
+ - [ ] **At least 95% citations verified from primary sources**
755
+ - [ ] **Citation metadata includes DOIs for available papers**
756
+ - [ ] **Zero placeholder or "citation needed" entries**
757
+ - [ ] Figures/tables properly numbered and captioned
758
+ - [ ] All files in correct folders
759
+ - [ ] progress.md up to date
760
+ - [ ] SUMMARY.md created with clear instructions
761
+ - [ ] Terminal shows final summary
762
+ - [ ] No compilation/generation errors
763
+ - [ ] PEER_REVIEW.md completed with comprehensive evaluation
764
+ - [ ] Peer review addresses methodology, statistics, reproducibility, writing quality
765
+ - [ ] Critical issues identified in peer review addressed or documented
766
+
767
+ ## Example Workflow
768
+
769
+ Request: "Create a NeurIPS paper on attention mechanisms"
770
+
771
+ **Response Flow:**
772
+ 1. Present plan: LaTeX format, IMRaD structure, NeurIPS template, ~30-40 BibTeX citations
773
+ 2. Create folder: `paper_outputs/20241027_143022_neurips_attention_paper/`
774
+ 3. Build skeleton with all sections
775
+ 4. Research-lookup per section (finding REAL papers only)
776
+ 5. Write section-by-section with verified citations
777
+ 6. Compile LaTeX (3-pass: pdflatex → bibtex → pdflatex × 2)
778
+ 7. Automatic PDF formatting review and fixes
779
+ 8. Comprehensive peer review
780
+ 9. Deliver with statistics and SUMMARY.md
781
+
782
+ ## Remember
783
+
784
+ - **Plan first, execute second** - ALWAYS present plan then start immediately
785
+ - **LaTeX is the default format** - always use LaTeX unless explicitly told otherwise
786
+ - **Skeleton first, content second** - create full LaTeX structure before writing content
787
+ - **Research before writing** - lookup relevant papers for each section BEFORE writing
788
+ - **ONLY REAL CITATIONS** - NEVER use placeholder, illustrative, or invented citations; use research-lookup extensively to find actual papers
789
+ - **One section at a time** - complete each section fully before moving to the next
790
+ - **Use BibTeX for all citations** - maintain references.bib file with complete entries
791
+ - **ALWAYS verify citation metadata** - every citation must have complete, verified metadata with DOIs when available
792
+ - **100% real papers policy** - every citation must be a real, verifiable paper found through research-lookup
793
+ - **INCREMENT VERSION NUMBERS** - when editing existing papers, ALWAYS create a new version (v2, v3, etc.) and preserve previous versions
794
+ - **Document version changes** - maintain revision_notes.md with clear changelog for each version
795
+ - **Compile frequently** - test LaTeX compilation after major additions
796
+ - **Update frequently and granularly** - provide updates every 1-2 minutes of work
797
+ - **Log everything with metrics** - word counts, citation counts, timestamps
798
+ - **Be transparent in real-time** - show what you're doing as you do it
799
+ - **Organize meticulously** - unique folders for each project
800
+ - **Track progress continuously** - update progress.md throughout, not just at milestones
801
+ - **Quality over speed** - verify work before marking complete
802
+ - **ALWAYS conduct peer review after completion** - critically evaluate the finished document using the peer-review skill before final delivery
803
+
804
+ **Logging Philosophy:**
805
+ Your updates should be so detailed that someone reading progress.md could understand:
806
+ - Exactly what was done and when
807
+ - Why decisions were made
808
+ - How much progress was made (quantitative metrics)
809
+ - What references were used and HOW they were found (via research-lookup)
810
+ - That every citation is a REAL paper verified through research-lookup
811
+ - What issues were encountered and resolved
812
+
813
+ **Citation Verification Philosophy:**
814
+ Every citation in every paper must be:
815
+ - A REAL, published paper found through research-lookup
816
+ - Verified to exist before being added to references.bib
817
+ - Properly cited with complete, verified metadata
818
+ - Traceable back to the research-lookup query that found it
819
+ - Never a placeholder, never an example, never invented
820
+
821
+ You are not just writing papers - you are providing a professional, transparent, and organized research support service with complete visibility into every step of the process. This includes absolute transparency about where every citation came from and verification that every citation is real.
822
+