Token导航 LogoToken导航

Agent Skill · 前端设计

word-document-creator(Word 文档创建者)

word-document-creator 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

word-document-creator 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证信息还不明确,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 684。

总安装 14,305周安装 512GitHub Stars 3下载 3,629核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:word-document-creator(Word 文档创建者)
来源仓库:https://github.com/jmsktm/claude-settings
仓库路径:skills/word-document-creator
安装命令:
npx skills add https://github.com/jmsktm/claude-settings --skill 'Word Document Creator'
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/jmsktm/claude-settings --skill 'Word Document Creator'

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

word-document-creator 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在开发流程中进行事项整理。适用于围绕仓库状态、代码变更或协作事项的开发管理场景。通过 GitHub API 或命令行工具集成,支持 Issue 跟踪与 PR 分析。

需确认访问权限、API 限额及是否涉及敏感数据读取。建议结合项目实际情况验证操作边界,避免误改生产环境。

来源仓库内路径:skills/word-document-creator

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/jmsktm/claude-settings --skill 'Word Document…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

word-document-creator 怎么安装?

在终端执行 npx skills add https://github.com/jmsktm/claude-settings --skill 'Word Document Creator'。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

word-document-creator 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

word-document-creator 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

word-document-creator 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

word-document-creator 用的人多吗?

公开数据是累计安装 14,305 次,近一周安装 512 次,下载 3,629 次,GitHub 3 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

word-document-creator 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。
  • 只想先试试效果、不希望它改动本地文件的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
word-document-creator

Word 文档创建者 · 本页

14,3053只读未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Word Document Creator

The Word Document Creator skill provides comprehensive capabilities for generating Microsoft Word (.docx) documents programmatically. It handles formatting, styles, tables, images, headers, footers, and complex layouts using the docx library for Node.js. This skill is essential for automated document generation, report creation, and template-based workflows.

Create everything from simple letters to complex reports with tables, charts, images, and custom styling. The skill supports both creation from scratch and template-based generation with variable replacement.

Core Workflows

Workflow 1: Create Formatted Document from Scratch

Purpose: Build a Word document with headings, paragraphs, lists, and formatting

Steps:

  1. Import docx library and create Document instance
  2. Define styles for headings, body text, lists
  3. Add sections with headers and footers
  4. Create paragraphs with formatting (bold, italic, color, alignment)
  5. Add numbered and bulleted lists
  6. Insert tables with formatting
  7. Export to.docx file

Implementation:

const { Document, Packer, Paragraph, TextRun, HeadingLevel, AlignmentType } = require('docx');
const fs = require('fs');

async function createDocument(outputPath) {
  const doc = new Document({
    sections: [{
      properties: {},
      headers: {
        default: new Header({
          children: [new Paragraph({ text: "Company Name", alignment: AlignmentType.RIGHT })]
        })
      },
      children: [
        new Paragraph({
          text: "Business Proposal",
          heading: HeadingLevel.HEADING_1,
          alignment: AlignmentType.CENTER
        }),
        new Paragraph({
          children: [
            new TextRun({ text: "Prepared for: ", bold: true }),
            new TextRun("Client Name")
          ]
        }),
        new Paragraph({
          text: "Executive Summary",
          heading: HeadingLevel.HEADING_2
        }),
        new Paragraph({
          text: "This proposal outlines the scope, timeline, and budget for the project...",
          alignment: AlignmentType.JUSTIFIED
        })
      ]
    }]
  });

  const buffer = await Packer.toBuffer(doc);
  fs.writeFileSync(outputPath, buffer);
}

Workflow 2: Generate Document from Template

Purpose: Use a template Word file and replace placeholders with actual data

Steps:

  1. Load template.docx file using pizzip and docxtemplater
  2. Define data object with replacement values
  3. Set data to template
  4. Render template with substitutions
  5. Handle loops for repeated sections (tables, lists)
  6. Handle images and conditional sections
  7. Export final document

Implementation:

const Docxtemplater = require('docxtemplater');
const PizZip = require('pizzip');
const fs = require('fs');

function generateFromTemplate(templatePath, data, outputPath) {
  const content = fs.readFileSync(templatePath, 'binary');
  const zip = new PizZip(content);

  const doc = new Docxtemplater(zip, {
    paragraphLoop: true,
    linebreaks: true
  });

  // Data object with placeholder values
  doc.setData({
    clientName: data.clientName,
    projectName: data.projectName,
    date: new Date().toLocaleDateString(),
    items: data.items, // Array for looping
    total: data.total
  });

  doc.render();

  const buf = doc.getZip().generate({
    type: 'nodebuffer',
    compression: 'DEFLATE'
  });

  fs.writeFileSync(outputPath, buf);
}

// Template placeholders: {clientName}, {projectName}, etc.
// Loop syntax: {#items}{name} - {price}{/items}

Workflow 3: Create Document with Tables and Images

Purpose: Build complex documents containing data tables and embedded images

Steps:

  1. Create Document instance
  2. Define table with rows and columns
  3. Set cell formatting (borders, shading, alignment)
  4. Add table headers with bold styling
  5. Populate data rows
  6. Insert images with sizing and positioning
  7. Add captions to images
  8. Export document

Implementation:

const { Document, Packer, Paragraph, Table, TableRow, TableCell, Media } = require('docx');
const fs = require('fs');

async function createTableDocument(data, imagePath, outputPath) {
  const image = Media.addImage(doc, fs.readFileSync(imagePath), 300, 200);

  const doc = new Document({
    sections: [{
      children: [
        new Paragraph({ text: "Sales Report Q4 2025", heading: HeadingLevel.HEADING_1 }),
        new Table({
          rows: [
            // Header row
            new TableRow({
              children: [
                new TableCell({ children: [new Paragraph({ text: "Month", bold: true })] }),
                new TableCell({ children: [new Paragraph({ text: "Revenue", bold: true })] }),
                new TableCell({ children: [new Paragraph({ text: "Growth", bold: true })] })
              ]
            }),
            // Data rows
            ...data.map(row => new TableRow({
              children: [
                new TableCell({ children: [new Paragraph(row.month)] }),
                new TableCell({ children: [new Paragraph(row.revenue)] }),
                new TableCell({ children: [new Paragraph(row.growth)] })
              ]
            }))
          ]
        }),
        new Paragraph({ text: "" }), // Spacing
        new Paragraph({ text: "Revenue Trend Chart", heading: HeadingLevel.HEADING_2 }),
        new Paragraph({ children: [image] }),
        new Paragraph({ text: "Figure 1: Quarterly Revenue Trend", italics: true })
      ]
    }]
  });

  const buffer = await Packer.toBuffer(doc);
  fs.writeFileSync(outputPath, buffer);
}

Workflow 4: Batch Generate Documents

Purpose: Create multiple personalized documents from a data source

Steps:

  1. Load data source (JSON, CSV, database)
  2. Load document template
  3. For each record:

- Create new document instance - Populate with record data - Apply formatting - Save with unique filename

  1. Track success/failure for each document
  2. Generate summary report

Workflow 5: Add Advanced Formatting

Purpose: Apply styles, fonts, colors, spacing, and page layout

Steps:

  1. Define custom styles in document
  2. Create style hierarchy (heading levels, body, captions)
  3. Set font families, sizes, colors
  4. Configure paragraph spacing and indentation
  5. Set page margins and orientation
  6. Add page numbers and section breaks
  7. Apply themes and color schemes

Implementation:

const doc = new Document({
  styles: {
    paragraphStyles: [
      {
        id: "CustomHeading",
        name: "Custom Heading",
        basedOn: "Heading1",
        next: "Normal",
        run: {
          size: 32,
          bold: true,
          color: "2E74B5",
          font: "Calibri"
        },
        paragraph: {
          spacing: { before: 240, after: 120 }
        }
      }
    ]
  },
  sections: [{
    properties: {
      page: {
        margin: { top: 1440, right: 1440, bottom: 1440, left: 1440 } // 1440 = 1 inch
      }
    },
    children: [
      new Paragraph({ text: "Styled Heading", style: "CustomHeading" })
    ]
  }]
});

Quick Reference

ActionCommand/Trigger
Create new document"create word document [name]"
From template"generate docx from template [file]"
Add table"add table with [rows] rows to [doc]"
Insert image"insert [image] into word doc"
Batch generate"create word docs for each [data]"
Apply style"format word doc with [style]"
Add header/footer"add header [text] to document"
Create TOC"generate table of contents"

Best Practices

  • Styles Over Direct Formatting: Define and use styles for consistency and easy updates
  • Templates: Use templates for repeated document types (contracts, reports, letters)
  • Page Layout: Set margins, orientation, and page size early in document creation
  • Tables: Use table styles for professional appearance and easy maintenance
  • Images: Compress images before embedding; use appropriate resolution (150-300 DPI)
  • Headers/Footers: Keep them simple and consistent across sections
  • File Size: Monitor document size; avoid embedding high-resolution images unnecessarily
  • Compatibility: Test documents in different Word versions if targeting broad audience
  • Data Validation: Validate input data before template substitution to avoid errors
  • Error Handling: Gracefully handle missing template placeholders
  • Version Control: Use template versioning for document types that evolve
  • Accessibility: Use proper heading hierarchy and alt text for images

Common Patterns

Meeting Minutes:

const doc = new Document({
  sections: [{
    children: [
      new Paragraph({ text: "Meeting Minutes", heading: HeadingLevel.HEADING_1 }),
      new Paragraph({ text: `Date: ${date}` }),
      new Paragraph({ text: `Attendees: ${attendees.join(', ')}` }),
      new Paragraph({ text: "Agenda", heading: HeadingLevel.HEADING_2 }),
      // ... agenda items
      new Paragraph({ text: "Action Items", heading: HeadingLevel.HEADING_2 }),
      // ... action items table
    ]
  }]
});

Mail Merge:

// Template: Dear {firstName} {lastName}, ...
contacts.forEach(contact => {
  generateFromTemplate('letter-template.docx', contact, `letter-${contact.id}.docx`);
});

Dependencies

Install required packages:

npm install docx docxtemplater pizzip

Optional for advanced features:

npm install docx-templates # Alternative templating
npm install officegen      # Legacy support

Error Handling

  • Template Errors: Validate template structure before processing
  • Missing Data: Provide default values for optional template fields
  • Image Loading: Check image file existence before embedding
  • File Permissions: Handle write permission errors gracefully
  • Memory Issues: For large documents, consider streaming if supported
  • Encoding: Ensure proper UTF-8 encoding for international characters

Performance Tips

  • Reuse style definitions across multiple documents
  • Pre-load templates for batch operations
  • Use streaming for very large documents
  • Compress images before embedding
  • Batch file system operations
  • Cache compiled templates when possible

Advanced Features

Table of Contents:

new TableOfContents("Table of Contents", {
  hyperlink: true,
  headingStyleRange: "1-3"
});

Conditional Sections:

// In template: {#showSection}Content{/showSection}
doc.setData({ showSection: condition ? {...} : false });

Custom Numbering:

new Paragraph({
  text: "Numbered item",
  numbering: {
    reference: "custom-numbering",
    level: 0
  }
});

平台分布

Claude

32.94%
按下载量换算1,195

Codex

32.47%
按下载量换算1,178

Cursor

17.75%
按下载量换算644

Gemini CLI

10.37%
按下载量换算376

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills