docx.json 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. {
  2. "id": "docx",
  3. "name": "DOCX creation, editing, and analysis",
  4. "description": "Comprehensive document creation, editing, and analysis with support for tracked changes, comments, formatting preservation, and text extraction. When Claude needs to work with professional documents (.docx files) for: (1) Creating new documents, (2) Modifying or editing content, (3) Working with tracked changes, (4) Adding comments, or any other document tasks",
  5. "steps": [
  6. {
  7. "id": 1,
  8. "name": "**MANDATORY - READ ENTIRE FILE**",
  9. "description": "**MANDATORY - READ ENTIRE FILE**: Read [`docx-js.md`](docx-js.md) (~500 lines) completely from start to finish. **NEVER set any range limits when reading this file.** Read the full file content for detailed syntax, critical formatting rules, and best practices before proceeding with document creation.",
  10. "type": "instruction"
  11. },
  12. {
  13. "id": 2,
  14. "name": "Create a JavaScript/TypeScript file using Document, Paragraph, TextRun components (You can assume all dependencies are installed, but if not, refer to the dependencies section below)",
  15. "description": "Create a JavaScript/TypeScript file using Document, Paragraph, TextRun components (You can assume all dependencies are installed, but if not, refer to the dependencies section below)",
  16. "type": "instruction"
  17. },
  18. {
  19. "id": 3,
  20. "name": "Export as .docx using Packer.toBuffer()",
  21. "description": "Export as .docx using Packer.toBuffer()",
  22. "type": "instruction"
  23. },
  24. {
  25. "id": 4,
  26. "name": "**MANDATORY - READ ENTIRE FILE**",
  27. "description": "**MANDATORY - READ ENTIRE FILE**: Read [`ooxml.md`](ooxml.md) (~600 lines) completely from start to finish. **NEVER set any range limits when reading this file.** Read the full file content for the Document library API and XML patterns for directly editing document files.",
  28. "type": "instruction"
  29. },
  30. {
  31. "id": 5,
  32. "name": "Unpack the document",
  33. "description": "Unpack the document: `python ooxml/scripts/unpack.py <office_file> <output_directory>`",
  34. "type": "instruction"
  35. },
  36. {
  37. "id": 6,
  38. "name": "Create and run a Python script using the Document library (see \"Document Library\" section in ooxml.md)",
  39. "description": "Create and run a Python script using the Document library (see \"Document Library\" section in ooxml.md)",
  40. "type": "instruction"
  41. },
  42. {
  43. "id": 7,
  44. "name": "Pack the final document",
  45. "description": "Pack the final document: `python ooxml/scripts/pack.py <input_directory> <office_file>`",
  46. "type": "instruction"
  47. },
  48. {
  49. "id": 8,
  50. "name": "**Get markdown representation**",
  51. "description": "**Get markdown representation**: Convert document to markdown with tracked changes preserved:",
  52. "type": "instruction"
  53. },
  54. {
  55. "id": 9,
  56. "name": "**Identify and group changes**",
  57. "description": "**Identify and group changes**: Review the document and identify ALL changes needed, organizing them into logical batches:",
  58. "type": "instruction"
  59. },
  60. {
  61. "id": 10,
  62. "name": "**Read documentation and unpack**",
  63. "description": "**Read documentation and unpack**:",
  64. "type": "instruction"
  65. },
  66. {
  67. "id": 11,
  68. "name": "**Implement changes in batches**",
  69. "description": "**Implement changes in batches**: Group changes logically (by section, by type, or by proximity) and implement them together in a single script. This approach:",
  70. "type": "instruction"
  71. },
  72. {
  73. "id": 12,
  74. "name": "**Pack the document**",
  75. "description": "**Pack the document**: After all batches are complete, convert the unpacked directory back to .docx:",
  76. "type": "instruction"
  77. },
  78. {
  79. "id": 13,
  80. "name": "**Final verification**",
  81. "description": "**Final verification**: Do a comprehensive check of the complete document:",
  82. "type": "instruction"
  83. },
  84. {
  85. "id": 14,
  86. "name": "**Convert DOCX to PDF**",
  87. "description": "**Convert DOCX to PDF**:",
  88. "type": "instruction"
  89. },
  90. {
  91. "id": 15,
  92. "name": "**Convert PDF pages to JPEG images**",
  93. "description": "**Convert PDF pages to JPEG images**:",
  94. "type": "instruction"
  95. }
  96. ],
  97. "inputs": [],
  98. "outputs": []
  99. }