TraeSkill: Skill for Claude Code

.trae/Skills/06_Office_Docx/SKILL.md

docx is a skill for Claude Code, Codex from boshi-xixixi/TraeSkill. It costs 99 tokens per session (2,751 once invoked), scanned B, a copy of docx, MIT.

A toolkit for creating, reading, editing, and analysing Microsoft Word .docx files. It preserves formatting and supports tracked changes, comments, text extraction, and document structure.

In plain words
What is it for?
Use it to draft Word files, revise documents, review tracked changes, add or inspect comments, extract text, and analyse existing documents.
Why use it?
It helps make controlled changes to professional documents without losing layout or revision history. It also provides ways to inspect document contents when ordinary text editing is not enough.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

This is boshi-xixixi/TraeSkill's own configuration. It tells Claude Code and Codex how to work on TraeSkill itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything TraeSkill configures →

Reuse

Borrowing it

Nothing to install: this file belongs to boshi-xixixi/TraeSkill. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/boshi-xixixi/TraeSkill/main/.trae/Skills/06_Office_Docx/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/boshi-xixixi/TraeSkill

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for docx

README.md
[![agentmods](https://agentmods.dev/badge/skills/boshi-xixixi/traeskill/06_office_docx/github.svg)](https://agentmods.dev/skills/boshi-xixixi/traeskill/06_office_docx)
Your own site
<a href="https://agentmods.dev/skills/boshi-xixixi/traeskill/06_office_docx"><img src="https://agentmods.dev/badge/skills/boshi-xixixi/traeskill/06_office_docx/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for docx

Your own site · 80×15
<a href="https://agentmods.dev/skills/boshi-xixixi/traeskill/06_office_docx"><img src="https://agentmods.dev/badge/skills/boshi-xixixi/traeskill/06_office_docx.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 99 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,751 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 97% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00099 $0.02751
Opus 5.5 $0.00040 $0.01100
Sonnet 5.5 $0.00020 $0.00550
Haiku 4.5 $0.00010 $0.00275

Measured 8d ago against content hash fc8f80a37916, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

docx scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

The scan reads SKILL.md. This mod also ships 11 executable files (ooxml/scripts/pack.py, ooxml/scripts/unpack.py, ooxml/scripts/validate.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- **pandoc**: `sudo apt-get install pandoc` (for text extraction)
Origin

This is a copy

97% identical to docx — 24 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.trae/Skills/06_Office_Docx/SKILL.md · 214 lines

How it starts

The opening of the file, as written. The whole thing — 214 lines — stays where its author put it; the contents beside it link to each section on GitHub.

DOCX creation, editing, and analysis

🤖 智能体与 MCP 增强 (Agent & MCP Enhancements)

本 Skill 支持并推荐配合特定的智能体角色和 MCP 工具使用,以获得最佳效果。

推荐智能体角色

  • Office Docx Architect: 详见 AGENTS.md。
    • 该角色专注于 OOXML 结构的完整性和合规性修订。
    • 在 Trae 中配置该角色后,AI 将自动采用更严谨的“解压-编辑-打包”思维模式,而非简单的文本替换。

推荐 MCP 工具

  • Filesystem MCP: 允许 AI 直接操作解压后的 XML 目录,进行更精细的结构验证。
  • Git MCP: 用于管理文档编辑过程中的版本回滚。
  • mcp-feedback-enhanced: 允许 AI 在文档创建或编辑过程中,使用 ask_followup_question 向用户确认内容细节(如“这个段落的语气是否需要更正式?”)或编辑范围(如“是否需要保留所有修订记录?”)。

Overview

A user may ask you to create, edit, or analyze the contents of a .docx file. A .docx file is essentially a ZIP archive containing XML files and other resources that you can read or edit. You have different tools and workflows available for different tasks.

Workflow Decision Tree

Reading/Analyzing Content

Use "Text extraction" or "Raw XML access" sections below

Creating New Document

Use "Creating a new Word document" workflow

Editing Existing Document

  • Your own document + simple changes Use "Basic OOXML editing" workflow

  • Someone else's document Use "Redlining workflow" (recommended default)

  • Legal, academic, business, or government docs Use "Redlining workflow" (required)

Reading and analyzing content

Text extraction

If you just need to read the text contents of a document, you should convert the document to markdown using pandoc. Pandoc provides excellent support for preserving document structure and can show tracked changes:

# Convert document to markdown with tracked changes
pandoc --track-changes=all path-to-file.docx -o output.md
# Options: --track-changes=accept/reject/all

Raw XML access

You need raw XML access for: comments, complex formatting, document structure, embedded media, and metadata. For any of these features, you'll need to unpack a document and read its raw XML contents.

Unpacking a file

python ooxml/scripts/unpack.py <office_file> <output_directory>

Read the full file on GitHub · 214 lines

Files

What ships with it

60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 214 lines · 99 tokens per session scan B fc8f80a37916

Subscribe to this mod's changes

docx is a skill published in the GitHub repository boshi-xixixi/TraeSkill (288 stars, last pushed 9d ago), licensed MIT. It adds 99 tokens to every session and 2,751 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). It is 97% identical to docx, differing in 24 lines, and is treated as a copy.

Related

docx compared with skills from other repositories

docx next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
docxboshi-xixixi/TraeSkillSkill2889d agoMITB99Claude Code, Codex
doc-processorRune-kit/runeSkill962d agoMITA47Claude Code
doc-previewsentimony/skillsSkill8todayMITA73Claude Code
azure-content-understandingMicrosoftDocs/Agent-SkillsSkill82421d agoCC-BY-4.0A128Claude Code
azure-document-intelligenceMicrosoftDocs/Agent-SkillsSkill82421d agoCC-BY-4.0A118Claude Code
akf-trust-metadataranbot-ai/awesome-skillsSkill15yesterdaynoneA59Claude Code, Codex
visual-recapfabiandistler/agentsSkill2todaynoneA55Claude Code, Codex