← Back to Skills Marketplace
合同文档转写技能
by
Lan2898408767
· GitHub ↗
· v1.0.0
· MIT-0
107
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install shucheng-contract-to-spec
Description
将合同文件转换为需求规格说明书。使用场景:用户提供合同文件名(如"合同 -XXX 系统.docx"),需要生成完整的需求规格说明书。自动完成:1) 读取合同提取项目信息 2) 生成系统架构图 3) 生成 6 个子功能原型图 4) 生成带格式的 Word 文档到桌面。
Usage Guidance
Before installing or running this skill: 1) Review the full generate_spec.py yourself — it will scan your Desktop for files named like '合同*.docx' and write outputs to your Desktop. 2) Confirm you are comfortable with that file access and that no sensitive contracts will be processed unattended. 3) Note missing dependency declarations: you need python-docx (pip) and Node + npx + Playwright (npm). Invoking 'npx playwright' may download and execute code/binaries at runtime — only proceed in a trusted/sandboxed environment. 4) The script's extract_contract_info shown only parses the filename (not full contract text) which may not meet your expectations; test with a sample file. 5) The SKILL.md contained unicode-control characters flagged by the scanner — examine the raw SKILL.md for hidden or malicious prompt-injection content. If you lack the ability to audit/run in a sandbox, consider not installing or ask the publisher for a signed, dependency-declared release and a clarification of how contract content is parsed.
Capability Analysis
Type: OpenClaw Skill
Name: contract-to-spec
Version: 1.0.0
The skill bundle is designed to automate the conversion of contract documents into requirement specifications. It uses the `python-docx` library for document generation and `playwright` (via `subprocess`) to capture screenshots of dynamically generated HTML architecture diagrams. The logic is transparent, aligns with the stated purpose in `SKILL.md`, and lacks indicators of malicious intent such as data exfiltration, unauthorized network communication, or obfuscation.
Capability Assessment
Purpose & Capability
Name/description claim to read a contract, extract fields, generate architecture + prototype screenshots, and write a .docx to Desktop — that is the observable intent. The code implements HTML generation, Word document creation, and a screenshot step using Playwright, which aligns with the goal. However the skill declares no required binaries/dependencies while the script clearly relies on python-docx and an external Node tool (npx/playwright).
Instruction Scope
SKILL.md instructs the agent to read a contract .docx from the user's Desktop and produce files on the Desktop — this is consistent with the script. But SKILL.md promises extracting many contract fields from file content; the visible extract_contract_info implementation only parses the filename (not the file body), which is an incoherence between spec and implementation. The script may access arbitrary files on the Desktop (file discovery by prefix), so it can read user data in that location.
Install Mechanism
No install spec is provided, yet the script invokes external tooling via subprocess: 'npx playwright screenshot' (requires Node/npx and Playwright). There is also a dependency on the Python 'python-docx' package. Because there's no install specification, the runtime may attempt to invoke npx which can download and execute packages from npm at runtime — this is a moderate-to-high risk if you haven't vetted the environment.
Credentials
The skill requests no environment variables or credentials; that is proportionate to its stated purpose. However, it does read and write files on the user's Desktop (and references a workspace path under the user's home), which is expected for a file-conversion utility but still worth noting for sensitivity of data.
Persistence & Privilege
The skill is not marked always:true and does not request system-wide configuration changes. It writes outputs to the user's Desktop, which is within its stated scope and not an elevated privilege by itself.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install shucheng-contract-to-spec - After installation, invoke the skill by name or use
/shucheng-contract-to-spec - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release: contract-to-spec v1.0.0
- Converts project contract (.docx) files into standardized requirements specification documents.
- Automatically extracts project details, generates a system architecture diagram, and six feature prototype diagrams.
- Assembles a formatted Word document, including cover, revision history, table of contents, and structured content.
- Saves the final document to the user’s desktop with standardized naming.
Metadata
Frequently Asked Questions
What is 合同文档转写技能?
将合同文件转换为需求规格说明书。使用场景:用户提供合同文件名(如"合同 -XXX 系统.docx"),需要生成完整的需求规格说明书。自动完成:1) 读取合同提取项目信息 2) 生成系统架构图 3) 生成 6 个子功能原型图 4) 生成带格式的 Word 文档到桌面。 It is an AI Agent Skill for Claude Code / OpenClaw, with 107 downloads so far.
How do I install 合同文档转写技能?
Run "/install shucheng-contract-to-spec" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is 合同文档转写技能 free?
Yes, 合同文档转写技能 is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does 合同文档转写技能 support?
合同文档转写技能 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created 合同文档转写技能?
It is built and maintained by Lan2898408767 (@lan2898408767); the current version is v1.0.0.
More Skills