CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

docx

This skill explains how to create DOCX files with JavaScript and how to read, convert, or edit existing documents through XML workflows. It includes reusable guidance on formatting, tracked changes, comments, validation, and common pitfalls.

1.52x
Quality

92%

Does it follow best practices?

Impact

93%

1.52x

Average score across 8 eval scenarios

SecuritybySnyk

Medium

Suggest reviewing before use

SKILL.md
Quality
Evals
Security

Quality

Content

85%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

The content is exceptionally actionable and workflow-safe: executable code throughout, correctly-pathed script references, explicit validation and auto-repair loops, and hard-won gotchas (A4 default, CLEAR vs SOLID shading, dual table widths) that Claude could not guess. Its weakness is structure, not substance — a ~590-line monolith that inlines a full docx-js cookbook and XML reference instead of splitting them into one-level-deep reference files. Splitting the API and XML material out would cut always-loaded context substantially without losing anything.

Suggestions

Move the per-feature docx-js cookbook (Styles, Lists, Tables, Images, Hyperlinks, Footnotes, Tab Stops, Multi-Column, TOC, Headers/Footers) into a references/docx-js.md file, keeping only the setup snippet, validation step, and Critical Rules in SKILL.md.

Move the XML Reference (schema compliance, tracked changes, comments, image embedding patterns) into a references/ooxml-editing.md, leaving the 3-step edit workflow and pointers in the body.

De-duplicate the table-width guidance (stated in both the Tables code comments and the 'Width rules' list) and the rules repeated between inline CRITICAL markers and the 'Critical Rules for docx-js' checklist to reduce always-loaded tokens.

DimensionReasoningScore

Conciseness

The body is dense with non-obvious, high-value specifics (DXA units, "docx-js defaults to A4", "ShadingType.CLEAR (not SOLID)", dual table widths) and almost never explains concepts Claude already knows. It falls just short of the score-5 anchor because of duplication: the "Critical Rules for docx-js" section restates rules already marked CRITICAL inline (page size, bullets, dual widths, ShadingType.CLEAR), and table-width guidance appears twice within the Tables section — minor padding that could be trimmed. It is clearly above score 3, which would require genuinely unnecessary explanation.

4 / 5

Actionability

Nearly every section is copy-paste-ready, executable code or exact commands: complete docx-js snippets for styles, lists, tables, images, hyperlinks, footnotes, tab stops, columns, TOC, headers/footers, and concrete bash commands ("pandoc --track-changes=all document.docx -o output.md", "python scripts/office/unpack.py document.docx unpacked/"), plus ready-to-use XML patterns for tracked changes, comments, and images. This matches the score-5 anchor (fully executable, covers common cases); there are no pseudocode or hand-wavy sections that would drop it to 4.

5 / 5

Workflow Clarity

The editing workflow is explicitly sequenced ("Follow all 3 steps in order": unpack → edit → pack) with a validation checkpoint built into pack ("Validates with auto-repair") and a documented error-recovery boundary ("Auto-repair will fix... Auto-repair won't fix: Malformed XML..."). The creation workflow has its own feedback loop ("After creating the file, validate it. If validation fails, unpack, fix the XML, and repack") and the "Critical Rules" list functions as a checklist. This matches the score-5 anchor; the destructive XML-manipulation cap of 3 does not apply because validation and repair loops are present.

5 / 5

Progressive Disclosure

The body is ~590 lines with everything inlined and no reference files at all: the docx-js API cookbook (~340 lines covering styles through headers/footers) and the XML Reference are exactly the "200 lines of API reference that could be in a separate file" pattern from the score-3 anchor. Structure and headers are good and all script references resolve to real bundle files, but SKILL.md is not an overview pointing to detail — it is the detail. Score 4 would require most bulk content to live in separate files with clear signals; score 2 would require poor structure or buried references, which is not the case.

3 / 5

Total

17

/

20

Passed

Description

100%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

The description is an exemplar of the form: it states comprehensive concrete capabilities in third person, gives explicit 'use when' triggers with natural synonyms and the .docx extension, and closes with clear negative boundaries against PDFs, spreadsheets, and Google Docs. No vague fluff or over-claims are present. No changes needed.

DimensionReasoningScore

Specificity

The description lists multiple concrete, comprehensive actions: "create, read, edit, or manipulate Word documents", "extracting or reorganizing content from .docx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments". This matches the score-5 anchor (multiple specific concrete actions, comprehensive coverage) and exceeds score 4, which allows minor coverage gaps — no meaningful docx capability is missing.

5 / 5

Completeness

It explicitly answers both questions: what ("create, read, edit, or manipulate Word documents (.docx files)... extracting or reorganizing content... inserting or replacing images... tracked changes or comments") and when ("Triggers include... Also use when... If the user asks for a 'report'... use this skill"), with concrete trigger phrases throughout. This is a direct match to the score-5 anchor; the 'when' is explicit, not merely present as at score 4.

5 / 5

Trigger Term Quality

Natural trigger terms are comprehensive and include synonyms, deliverable names, and the file extension: "'Word doc', 'word document', '.docx'", plus "'report', 'memo', 'letter', 'template'". This matches the score-5 anchor (comprehensive coverage including synonyms and file extensions); score 4 would require notable natural terms to be absent, which is not the case.

5 / 5

Distinctiveness Conflict Risk

The niche is clear (Word/.docx only) and it adds an explicit negative boundary — "Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks" — which minimizes conflict with adjacent document/spreadsheet skills. This matches the score-5 anchor (clear niche with distinct triggers, minimal conflict risk); score 4's 'minor overlap risk' would apply only if the PDF/spreadsheet exclusion were absent.

5 / 5

Total

20

/

20

Passed

Validation

87%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 14 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

skill_md_line_count

SKILL.md is long (591 lines); consider splitting into references/ and linking

Warning

referenced_paths_exist

Referenced path issues: 4 deeper-than-1-level

Warning

Total

14

/

16

Passed

Repository

tsinghua-fib-lab/AgentSociety

Path

extension/skills/docx/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.