← 返回 Skills 市场
114
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install dianju-ofd-tools
功能描述
Convert local PDF and OFD files to each other and extract text content from OFD files with temporary download links provided.
使用说明 (SKILL.md)
\r
name: dianju-ofd-tools\r
description: An OFD document processing tool that can convert local PDF and OFD files to each other and extract content from OFD files. \r
version:1.0.0 \r
email:[email protected] \r
```\r
# OFD Tools Skill\r
\r
## Quick Start\r
\r
```\r
npx dianju-ofd-tools --APP_ID=xxx --APP_KEY=xxx --API_URL=http://ip:port/DCS\r
```\r
\r
APP_ID:appid\r
\r
APP_KEY:appkey\r
\r
API_URL:The system API address\r
\r
## Features\r
\r
### 1. PDF to OFD Conversion\r
- **Tool Name:** `pdf_to_ofd`\r
- **Description:** Convert local PDF files to OFD format\r
- **Parameters:**\r
```json\r
{\r
"filePath": "string" // Absolute path to local PDF file\r
}\r
```\r
- **Returns:** Temporary download link for the generated OFD file\r
\r
### 2. OFD to PDF Conversion\r
- **Tool Name:** `ofd_to_pdf`\r
- **Description:** Convert local OFD files to PDF format\r
- **Parameters:**\r
```json\r
{\r
"filePath": "string" // Absolute path to local OFD file\r
}\r
```\r
- **Returns:** Temporary download link for the generated PDF file\r
\r
### 3. OFD Content Extraction\r
- **Tool Name:** `get_ofd_content`\r
- **Description:** Extract text content from local OFD files\r
- **Parameters:**\r
```json\r
{\r
"filePath": "string" // Absolute path to local OFD file\r
}\r
```\r
- **Returns:** JSON array of extracted text content\r
\r
\r
## Usage Examples\r
\r
### Example 1: Convert PDF to OFD\r
```bash\r
ofd-tools pdf_to_ofd --filePath "/path/to/input.pdf"\r
```\r
\r
### Example 2: Convert OFD to PDF\r
```bash\r
ofd-tools ofd_to_pdf --filePath "/path/to/input.ofd"\r
```\r
\r
### Example 3: Extract OFD Content\r
```bash\r
ofd-tools get_ofd_content --filePath "/path/to/input.ofd"\r
```\r
\r
## Notes\r
\r
1. **File Paths:** Ensure the local file path is correct (absolute path recommended for non-current directory files).\r
2. **Temporary Links:** The `ofd_to_pdf` and `pdf_to_ofd` services return temporary download links for converted files; check link validity before use.\r
3. **Link Expiry:** OFD download links may expire after a set time; download the file promptly.\r
4. **File Integrity:** Always verify the integrity of the generated OFD file before sharing or using it.\r
5. **Performance:** Large files may take longer to process; avoid interrupting the conversion process.\r
6. **Logging:** Enable logging with `ENABLE_LOGGING=true` for troubleshooting; logs can be output to files with `LOG_TO_FILE=true`.\r
\r
## Error Handling\r
\r
- **File Not Found:** Ensure the file path is correct and the file exists\r
- **Permission Denied:** Check file permissions and ensure the tool has read access\r
- **Conversion Failed:** Verify the input file is valid and not corrupted\r
- **Network Issues:** Check internet connectivity when using external conversion services\r
\r
## Support\r
\r
For issues or questions, contact support at [email protected].
安全使用建议
This skill's docs instruct you to run npx (which will fetch and execute code from npm) and to provide APP_ID/APP_KEY and an API_URL for a remote DCS service, yet the registry entry declares no credentials or install provenance. Before installing or running: 1) Confirm the authoritative source (homepage, GitHub repo, or npm package) and review that package's code and maintainers; 2) Do not share secret APP_ID/APP_KEY with an unknown service until you verify it; 3) Prefer a local-only tool if you must keep files private, or verify the remote service's privacy/security and where temporary download links are hosted; 4) Ask the publisher to include a proper install spec, declare required env vars in metadata, and clarify whether conversions happen locally or on a remote server. If you cannot verify provenance, avoid running npx or supplying credentials.
功能分析
Type: OpenClaw Skill
Name: dianju-ofd-tools
Version: 1.0.0
The skill bundle defines a legitimate utility for converting between PDF and OFD formats and extracting text content. It functions as a wrapper for a remote API service (Dianju DCS), requiring standard configuration parameters like APP_ID and API_URL. No evidence of malicious intent, data exfiltration beyond the stated purpose, or prompt injection was found in SKILL.md or _meta.json.
能力评估
Purpose & Capability
The declared purpose (convert local PDF/OFD and extract text) is plausible, but the runtime instructions require an external service (APP_ID, APP_KEY, API_URL) and an npm package (npx dianju-ofd-tools). The skill metadata claims no required env vars, binaries, or install, so the external-service dependency and credentials are not declared — a mismatch.
Instruction Scope
SKILL.md tells the agent/user to run npx to fetch/execute dianju-ofd-tools and to run ofd-tools CLI commands that will read absolute local file paths. It also references APP_ID/APP_KEY/API_URL and logging env vars (ENABLE_LOGGING, LOG_TO_FILE) that are not declared. The instructions imply network calls (uploading files to a remote DCS service and returning temporary download links) which goes beyond pure local conversion and affects data exposure/privacy.
Install Mechanism
There is no install spec in the registry entry, but the documentation explicitly instructs use of 'npx dianju-ofd-tools' (which would fetch and run code from npm at runtime) and examples call an 'ofd-tools' CLI. That means code would be dynamically downloaded/installed from an external package registry without declared provenance — higher-risk than an instruction-only, local-only tool.
Credentials
The doc requires APP_ID, APP_KEY, and API_URL (and mentions logging env vars) but the skill metadata lists no required environment variables or primary credential. Requesting service credentials and an API endpoint is reasonable only if the skill truly uses a remote conversion service; failing to declare them in metadata is an incoherence that prevents privilege review and increases risk of accidental credential exposure.
Persistence & Privilege
The skill does not request always:true and has no install spec that writes persistent config in the registry data. Autonomous invocation is allowed (platform default) but there is no sign the skill requests permanent presence or modifies other skills.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install dianju-ofd-tools - 安装完成后,直接呼叫该 Skill 的名称或使用
/dianju-ofd-tools触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of dianju-ofd-tools.
- Convert local PDF files to OFD format and vice versa.
- Extract text content from local OFD files.
- Simple CLI usage with parameters for file paths.
- Returns temporary download links for converted files.
- Includes content extraction returning JSON arrays for OFD files.
- Support for error handling and logging options.
元数据
常见问题
dianju-ofd-tools 是什么?
Convert local PDF and OFD files to each other and extract text content from OFD files with temporary download links provided. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 114 次。
如何安装 dianju-ofd-tools?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install dianju-ofd-tools」即可一键安装,无需额外配置。
dianju-ofd-tools 是免费的吗?
是的,dianju-ofd-tools 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
dianju-ofd-tools 支持哪些平台?
dianju-ofd-tools 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 dianju-ofd-tools?
由 stmm(@stmmer)开发并维护,当前版本 v1.0.0。
推荐 Skills