← Back to Skills Marketplace
114
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install dianju-ofd-tools
Description
Convert local PDF and OFD files to each other and extract text content from OFD files with temporary download links provided.
README (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].
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install dianju-ofd-tools - After installation, invoke the skill by name or use
/dianju-ofd-tools - Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Frequently Asked Questions
What is dianju-ofd-tools?
Convert local PDF and OFD files to each other and extract text content from OFD files with temporary download links provided. It is an AI Agent Skill for Claude Code / OpenClaw, with 114 downloads so far.
How do I install dianju-ofd-tools?
Run "/install dianju-ofd-tools" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is dianju-ofd-tools free?
Yes, dianju-ofd-tools is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does dianju-ofd-tools support?
dianju-ofd-tools is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created dianju-ofd-tools?
It is built and maintained by stmm (@stmmer); the current version is v1.0.0.
More Skills