manifest.json 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. {
  2. "name": "docx",
  3. "version": "1.0.0",
  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. "author": "Teaching AI",
  6. "type": "workflow-plugin",
  7. "workflows": [
  8. {
  9. "id": "docx",
  10. "name": "DOCX creation, editing, and analysis",
  11. "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",
  12. "steps": [
  13. {
  14. "id": 1,
  15. "name": "**MANDATORY - READ ENTIRE FILE**",
  16. "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.",
  17. "type": "instruction"
  18. },
  19. {
  20. "id": 2,
  21. "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)",
  22. "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)",
  23. "type": "instruction"
  24. },
  25. {
  26. "id": 3,
  27. "name": "Export as .docx using Packer.toBuffer()",
  28. "description": "Export as .docx using Packer.toBuffer()",
  29. "type": "instruction"
  30. },
  31. {
  32. "id": 4,
  33. "name": "**MANDATORY - READ ENTIRE FILE**",
  34. "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.",
  35. "type": "instruction"
  36. },
  37. {
  38. "id": 5,
  39. "name": "Unpack the document",
  40. "description": "Unpack the document: `python ooxml/scripts/unpack.py <office_file> <output_directory>`",
  41. "type": "instruction"
  42. },
  43. {
  44. "id": 6,
  45. "name": "Create and run a Python script using the Document library (see \"Document Library\" section in ooxml.md)",
  46. "description": "Create and run a Python script using the Document library (see \"Document Library\" section in ooxml.md)",
  47. "type": "instruction"
  48. },
  49. {
  50. "id": 7,
  51. "name": "Pack the final document",
  52. "description": "Pack the final document: `python ooxml/scripts/pack.py <input_directory> <office_file>`",
  53. "type": "instruction"
  54. },
  55. {
  56. "id": 8,
  57. "name": "**Get markdown representation**",
  58. "description": "**Get markdown representation**: Convert document to markdown with tracked changes preserved:",
  59. "type": "instruction"
  60. },
  61. {
  62. "id": 9,
  63. "name": "**Identify and group changes**",
  64. "description": "**Identify and group changes**: Review the document and identify ALL changes needed, organizing them into logical batches:",
  65. "type": "instruction"
  66. },
  67. {
  68. "id": 10,
  69. "name": "**Read documentation and unpack**",
  70. "description": "**Read documentation and unpack**:",
  71. "type": "instruction"
  72. },
  73. {
  74. "id": 11,
  75. "name": "**Implement changes in batches**",
  76. "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:",
  77. "type": "instruction"
  78. },
  79. {
  80. "id": 12,
  81. "name": "**Pack the document**",
  82. "description": "**Pack the document**: After all batches are complete, convert the unpacked directory back to .docx:",
  83. "type": "instruction"
  84. },
  85. {
  86. "id": 13,
  87. "name": "**Final verification**",
  88. "description": "**Final verification**: Do a comprehensive check of the complete document:",
  89. "type": "instruction"
  90. },
  91. {
  92. "id": 14,
  93. "name": "**Convert DOCX to PDF**",
  94. "description": "**Convert DOCX to PDF**:",
  95. "type": "instruction"
  96. },
  97. {
  98. "id": 15,
  99. "name": "**Convert PDF pages to JPEG images**",
  100. "description": "**Convert PDF pages to JPEG images**:",
  101. "type": "instruction"
  102. }
  103. ],
  104. "inputs": [],
  105. "outputs": []
  106. }
  107. ]
  108. }