[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EMVZM2GZH1CGV0Q8FJRX7R":3,"skill-same:01M7EMVZM2GZH1CGV0Q8FJRX7R":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M7EMVZM2GZH1CGV0Q8FJRX7R","docx-pro",null,"Word document automation — generating, templating, and parsing .docx files — use when working with Word documents programmatically.","TanNhatCMS\u002Fjarvis","TanNhatCMS","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F113796420?v=4","01M753MV17KG5CD3152G3WQEQY","KietNT","01M7EKEDYVYQ6PWVJJMZ911VMX",0,"MIT","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-docx-pro\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: docx-pro\ndescription: Word document automation — generating, templating, and parsing .docx files — use when working with Word documents programmatically.\ncategory: document-processing\n---\n\n## Overview\n\n`.docx` is a zipped XML format (Office Open XML), which makes Word documents\nsurprisingly automatable: generate reports from templates, mail-merge at scale,\nextract structured content, or convert to other formats. This skill covers\ntemplate-driven generation and reliable parsing across the major libraries.\n\n## When to use\n\n- Generating contracts, letters, or reports from templates with placeholders\n- Mail-merge style bulk document production\n- Extracting text, tables, headings, or images from .docx files\n- Converting .docx to PDF, HTML, or Markdown\n- Manipulating styles, headers\u002Ffooters, and tracked changes\n\n## Core concepts\n\n**Template + data is the winning pattern.** Author the document in Word with\nplaceholder syntax (`{{name}}`, `{% for item in items %}`), then render with\ndata. This keeps design in the hands of whoever owns the document and logic in\ncode — far more maintainable than building documents paragraph-by-paragraph in\ncode.\n\n**docx is XML in a zip.** Every library ultimately manipulates\n`word\u002Fdocument.xml` inside the archive. Knowing this helps when libraries fall\nshort: you can unzip, inspect, and patch XML directly for edge cases (custom\nXML parts, content controls, unusual formatting).\n\n**Styles beat direct formatting.** Documents built on named styles (Heading 1,\nNormal, custom styles) are parseable and convertible; documents with manual\nbold\u002Fsize\u002Fcolor everywhere are fragile. When generating, apply styles; when\nparsing, key off styles (headings → document outline) rather than font sizes.\n\n**Tracked changes and comments live in the XML.** Accept\u002Freject revisions\nprogrammatically before extraction if you want the \"final\" text; comments are\nseparate ranges that naive text extractors may interleave or drop.\n\n**Fidelity vs structure trade-off.** Converting docx → PDF preserves visual\nfidelity (use a real renderer like LibreOffice headless for best results);\ndocx → Markdown\u002FHTML preserves structure but loses precise layout. Choose by\nwhat the consumer needs.\n\n## Practical workflow\n\n1. **For generation:** create the template in Word with placeholders and real\n   styles; keep logic (loops, conditionals) minimal and readable in the\n   template.\n2. **Render with data,** then open the output in Word\u002FLibreOffice to verify —\n   automated checks catch missing placeholders, but only eyes catch broken\n   layout (orphaned headings, tables splitting badly).\n3. **Handle the edge cases in data:** empty lists (hide the table, don't render\n   an empty one), long text (test wrapping), special characters (escape\n   template syntax), missing values (defaults, not blanks).\n4. **For parsing:** extract by structure — styles for headings, table objects\n   for tables, paragraph iteration for body text; preserve the mapping back to\n   source locations for debugging.\n5. **For conversion:** prefer headless LibreOffice for docx → PDF fidelity;\n   prefer structure-aware extractors for docx → Markdown\u002FHTML.\n6. **Version your templates** alongside code — a template change is a code\n   change; test generation in CI with fixture data.\n\n## Common pitfalls\n\n- **Placeholders broken across XML runs** — Word splits `{{name}}` into multiple\n  runs if edited mid-word; templates authored carelessly fail to render. Type\n  placeholders in one go, or use content controls.\n- **Building documents purely in code** for complex layouts — unmaintainable;\n  templates exist for a reason.\n- **Ignoring section properties** (page size, margins, headers\u002Ffooters differ\n  per section) when manipulating documents — edits can silently apply to the\n  wrong section.\n- **Assuming .doc == .docx** — the old binary format needs different tooling;\n  convert legacy .doc files first (LibreOffice headless batch conversion).\n- **Losing images on round-trips** — images are separate parts referenced by\n  relationship IDs; naive XML patching can orphan them. Use library APIs for\n  image handling.\n- **Not testing with tracked changes present** — real-world documents arrive\n  with revisions; decide your accept\u002Freject policy up front.\n","## Overview\n\n`.docx` is a zipped XML format (Office Open XML), which makes Word documents\nsurprisingly automatable: generate reports from templates, mail-merge at scale,\nextract structured content, or convert to other formats. This skill covers\ntemplate-driven generation and reliable parsing across the major libraries.\n\n## When to use\n\n- Generating contracts, letters, or reports from templates with placeholders\n- Mail-merge style bulk document production\n- Extracting text, tables, headings, or images from .docx files\n- Converting .docx to PDF, HTML, or Markdown\n- Manipulating styles, headers\u002Ffooters, and tracked changes\n\n## Core concepts\n\n**Template + data is the winning pattern.** Author the document in Word with\nplaceholder syntax (`{{name}}`, `{% for item in items %}`), then render with\ndata. This keeps design in the hands of whoever owns the document and logic in\ncode — far more maintainable than building documents paragraph-by-paragraph in\ncode.\n\n**docx is XML in a zip.** Every library ultimately manipulates\n`word\u002Fdocument.xml` inside the archive. Knowing this helps when libraries fall\nshort: you can unzip, inspect, and patch XML directly for edge cases (custom\nXML parts, content controls, unusual formatting).\n\n**Styles beat direct formatting.** Documents built on named styles (Heading 1,\nNormal, custom styles) are parseable and convertible; documents with manual\nbold\u002Fsize\u002Fcolor everywhere are fragile. When generating, apply styles; when\nparsing, key off styles (headings → document outline) rather than font sizes.\n\n**Tracked changes and comments live in the XML.** Accept\u002Freject revisions\nprogrammatically before extraction if you want the \"final\" text; comments are\nseparate ranges that naive text extractors may interleave or drop.\n\n**Fidelity vs structure trade-off.** Converting docx → PDF preserves visual\nfidelity (use a real renderer like LibreOffice headless for best results);\ndocx → Markdown\u002FHTML preserves structure but loses precise layout. Choose by\nwhat the consumer needs.\n\n## Practical workflow\n\n1. **For generation:** create the template in Word with placeholders and real\n   styles; keep logic (loops, conditionals) minimal and readable in the\n   template.\n2. **Render with data,** then open the output in Word\u002FLibreOffice to verify —\n   automated checks catch missing placeholders, but only eyes catch broken\n   layout (orphaned headings, tables splitting badly).\n3. **Handle the edge cases in data:** empty lists (hide the table, don't render\n   an empty one), long text (test wrapping), special characters (escape\n   template syntax), missing values (defaults, not blanks).\n4. **For parsing:** extract by structure — styles for headings, table objects\n   for tables, paragraph iteration for body text; preserve the mapping back to\n   source locations for debugging.\n5. **For conversion:** prefer headless LibreOffice for docx → PDF fidelity;\n   prefer structure-aware extractors for docx → Markdown\u002FHTML.\n6. **Version your templates** alongside code — a template change is a code\n   change; test generation in CI with fixture data.\n\n## Common pitfalls\n\n- **Placeholders broken across XML runs** — Word splits `{{name}}` into multiple\n  runs if edited mid-word; templates authored carelessly fail to render. Type\n  placeholders in one go, or use content controls.\n- **Building documents purely in code** for complex layouts — unmaintainable;\n  templates exist for a reason.\n- **Ignoring section properties** (page size, margins, headers\u002Ffooters differ\n  per section) when manipulating documents — edits can silently apply to the\n  wrong section.\n- **Assuming .doc == .docx** — the old binary format needs different tooling;\n  convert legacy .doc files first (LibreOffice headless batch conversion).\n- **Losing images on round-trips** — images are separate parts referenced by\n  relationship IDs; naive XML patching can orphan them. Use library APIs for\n  image handling.\n- **Not testing with tracked changes present** — real-world documents arrive\n  with revisions; decide your accept\u002Freject policy up front.\n",{"name":5,"category":24,"description":7},"document-processing","main","af388a77c2fe5e0b4fd879cca4300a0ffa9a6579","skills\u002Fams-docx-pro",1,"https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis","https:\u002F\u002Fgithub.com\u002FTanNhatCMS","https:\u002F\u002Fmrkiet.name.vn","2026-11-07 14:23:08",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add TanNhatCMS\u002Fjarvis --skill docx-pro",{"tool":39,"command":40},"bunx","bunx skills add TanNhatCMS\u002Fjarvis --skill docx-pro",{"tool":42,"command":43},"pnpm","pnpm dlx skills add TanNhatCMS\u002Fjarvis --skill docx-pro","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-docx-pro\u002FSKILL.md",true,[],[48,55,63,70,77,84],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M7EWYJR0J8DARY7E59Z6Y9MV","web-scrape","Turn web pages into LLM-ready markdown via the Firecrawl API (renders JS, anti-bot handling). Use when browser_open\u002Ffetch fails on JS-heavy pages, or when you need clean markdown\u002Fstructured extraction from a site. Requires FIRECRAWL_API_KEY.","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fweb-scrape\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":59,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7EWYBN5P6F2AJG3FR24T9BP","design-taste-frontend","tasteskill v2, the anti-slop frontend skill. Art direction for websites, distilled from a study of 247 curated gallery sites (One Page Love, Awwwards Sites of the Day). Deals researched directions (idea, composition, type, palette, photographs, section blueprints) from a library, enforces a strict no-slop house style with a real-browser inspector, and runs a look-and-fix loop on screenshots. Use this whenever you build, design, redesign, restyle, polish or review a landing page, marketing site, portfolio, product page, one-pager, hero or any public-facing web page, in any stack (HTML\u002FCSS, React, Next.js, Vue, Svelte, Astro, Tailwind) — also when the user says a page looks generic, templated, \"AI-made\", sloppy, or asks to make it look designed, premium, award-level or less like every other site. Not for dashboards or app screens.","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Ftaste-design\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Ftaste-design\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7EWY8FQFNQ2GB7NZZWGSSDX","test-driven-development","Use when implementing any feature or bugfix, before writing implementation code","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-tdd\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7EWY5SHBFRH1HDHVWM9K7TV","systematic-debugging","Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-debugging\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7EWY3NM0Z0JAKS7HDZ24K66","requesting-code-review","Use when completing tasks, implementing major features, or before merging to verify work meets requirements","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-code-review\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7EWY0WRMWX4M9ZFY0WKC593","brainstorming","You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-brainstorming\u002FSKILL.md",[],[]]