技能详情(站内镜像,无评论)
许可证:MIT-0
MIT-0 ·免费使用、修改和重新分发。无需归因。
版本:v1.0.0
统计:⭐ 0 · 19 · 0当前安装次数· 0历史安装次数
⭐ 0
安装量(当前) 0
🛡 VirusTotal :良性 · OpenClaw :可疑
Package:cjboy007/ssa-word-docx
安全扫描(ClawHub)
- VirusTotal :良性
- OpenClaw :可疑
OpenClaw 评估
The skill is largely consistent with producing DOCX files, but the bundled script modifies Python's import path to load a validation module from outside the skill directory — that import could execute external code and is not justified by the simple stated purpose.
目的
Name/description (create/read/edit .docx, templates, tables, styling) matches the provided SKILL.md and the included Python script which uses python-docx. The single dependency (python-docx) is appropriate for the stated functionality.
说明范围
SKILL.md instructs local processing only and the script otherwise stays within that scope, but the script inserts a path (parent/../quotation-workflow/scripts) onto sys.path and attempts to import quotation_schema.validate_quotation_data. That allows execution of arbitrary code from outside the skill directory if such a module exists on disk — a behavior beyond simple DOCX manipulation and not documented in SKILL.md.
安装机制
No install spec (instruction-only) and dependency is a single pip package (python-docx) mentioned in SKILL.md. This is proportionate to the task and lower risk than arbitrary binary downloads.
证书
The skill requests no environment variables or credentials (appropriate). However, the script's dynamic sys.path modification could cause it to import and run code from unrelated parts of the host filesystem — this is a form of broad filesystem trust rather than credential misuse.
持久
always is false and there are no install-time persistence actions or modifications to other skills or global agent settings. The skill does local file reads/writes (creating DOCX files) which are expected for this purpose.
安装(复制给龙虾 AI)
将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。
请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「Word Handler」。简介:Create, read, and edit Word documents (.docx) with support for templates, table…。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/cjboy007/ssa-word-docx/SKILL.md
(来源:yingzhi8.cn 技能库)
SKILL.md
---
name: Word / DOCX
description: Create, read, and edit Word documents (.docx) with support for templates, tables, and styling.
metadata: {"clawdbot":{"emoji":"📘","os":["linux","darwin","win32"]}}
---
## When to Use
User needs to create, read, or edit Word documents (.docx). Supports template filling, table generation, and professional styling.
## Architecture
This skill uses `python-docx` for DOCX manipulation. All processing happens locally.
## Quick Reference
| Topic | File |
|-------|------|
| Generate Quotation | `scripts/generate_quotation_docx.py` |
## Core Rules
### 1. Use Templates for Consistency
When generating documents repeatedly (quotations, proposals), use templates with placeholder text that gets replaced.
### 2. Handle Chinese Filenames Carefully
Use `glob` wildcards or `pathlib` for Chinese filename compatibility:
```python
from pathlib import Path
for f in Path(".").glob("*.docx"):
doc = Document(str(f))
```
### 3. Tables Need Explicit Styling
Word tables require explicit border and cell styling. Use `Table Grid` style as baseline.
### 4. Section Properties Control Layout
Page margins, orientation, and headers/footers are controlled at section level:
```python
for section in doc.sections:
section.left_margin = Cm(2.5)
section.right_margin = Cm(2.5)
```
### 5. Runs vs Paragraphs
Text formatting happens at run level. A paragraph can contain multiple runs with different styles.
## Common Traps
- **Merged cells** - Only top-left cell holds value in merged ranges
- **Page breaks** - Insert explicitly with `doc.add_page_break()`
- **Images** - Require absolute paths or file-like objects
- **Styles** - Built-in styles vary by Word version; test compatibility
## Dependencies
```bash
pip3 install python-docx
```
## Security & Privacy
**Data that stays local:**
- All file processing happens locally
- No external services called
**This skill does NOT:**
- Send data to external endpoints
- Require network access
## Related Skills
- `read-docx` — Read-only DOCX extraction
- `excel-xlsx` — Excel file handling
- `pdf-text-extractor` — PDF text extraction
## Feedback
- If useful: `clawhub star word-docx`
- Stay updated: `clawhub sync`