← 返回 Skills 市场
lan2898408767

合同文档转写技能

作者 Lan2898408767 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
107
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install shucheng-contract-to-spec
功能描述
将合同文件转换为需求规格说明书。使用场景:用户提供合同文件名(如"合同 -XXX 系统.docx"),需要生成完整的需求规格说明书。自动完成:1) 读取合同提取项目信息 2) 生成系统架构图 3) 生成 6 个子功能原型图 4) 生成带格式的 Word 文档到桌面。
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install shucheng-contract-to-spec
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /shucheng-contract-to-spec 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
Slug shucheng-contract-to-spec
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

合同文档转写技能 是什么?

将合同文件转换为需求规格说明书。使用场景:用户提供合同文件名(如"合同 -XXX 系统.docx"),需要生成完整的需求规格说明书。自动完成:1) 读取合同提取项目信息 2) 生成系统架构图 3) 生成 6 个子功能原型图 4) 生成带格式的 Word 文档到桌面。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 107 次。

如何安装 合同文档转写技能?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install shucheng-contract-to-spec」即可一键安装,无需额外配置。

合同文档转写技能 是免费的吗?

是的,合同文档转写技能 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

合同文档转写技能 支持哪些平台?

合同文档转写技能 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 合同文档转写技能?

由 Lan2898408767(@lan2898408767)开发并维护,当前版本 v1.0.0。

💬 留言讨论