qoder-agent-config.json 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. {
  2. "name": "docx-agent",
  3. "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",
  4. "version": "1.0.0",
  5. "type": "skill-agent",
  6. "capabilities": [
  7. "docx"
  8. ],
  9. "workflow": [
  10. {
  11. "step": "step-1",
  12. "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."
  13. },
  14. {
  15. "step": "step-2",
  16. "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)"
  17. },
  18. {
  19. "step": "step-3",
  20. "description": "Export as .docx using Packer.toBuffer()"
  21. },
  22. {
  23. "step": "step-1",
  24. "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."
  25. },
  26. {
  27. "step": "step-2",
  28. "description": "Unpack the document: `python ooxml/scripts/unpack.py <office_file> <output_directory>`"
  29. },
  30. {
  31. "step": "step-3",
  32. "description": "Create and run a Python script using the Document library (see \"Document Library\" section in ooxml.md)"
  33. },
  34. {
  35. "step": "step-4",
  36. "description": "Pack the final document: `python ooxml/scripts/pack.py <input_directory> <office_file>`"
  37. },
  38. {
  39. "step": "step-1",
  40. "description": "**Get markdown representation**: Convert document to markdown with tracked changes preserved:"
  41. },
  42. {
  43. "step": "step-2",
  44. "description": "**Identify and group changes**: Review the document and identify ALL changes needed, organizing them into logical batches:"
  45. },
  46. {
  47. "step": "step-3",
  48. "description": "**Read documentation and unpack**:"
  49. },
  50. {
  51. "step": "step-4",
  52. "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:"
  53. },
  54. {
  55. "step": "step-5",
  56. "description": "**Pack the document**: After all batches are complete, convert the unpacked directory back to .docx:"
  57. },
  58. {
  59. "step": "step-6",
  60. "description": "**Final verification**: Do a comprehensive check of the complete document:"
  61. },
  62. {
  63. "step": "step-1",
  64. "description": "**Convert DOCX to PDF**:"
  65. },
  66. {
  67. "step": "step-2",
  68. "description": "**Convert PDF pages to JPEG images**:"
  69. }
  70. ],
  71. "instructions": "SKILL.md",
  72. "metadata": {
  73. "source": "teaching-ai-skills",
  74. "original_skill": "docx"
  75. }
  76. }