← Back to Skills Marketplace
131
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install ynu-papergraphgeneration-qclaw
Description
多模态论文可视化引擎 — 从 PDF 或纯文本论文自动生成学术插图。 支持:全篇扫描识别可图化内容、双编码器架构图/算法流程图/动机图生成、 自校核机制、LaTeX/Word 图注输出、Matplotlib 结果图精确绘图。 也包含独立的 PDF → Text 提取工具。
Usage Guidance
This skill does what it says — it extracts text from PDFs, sends chunks to external LLM/image services, builds prompts, downloads images, and can generate Matplotlib code — but take the following precautions before installing or running it:
- Privacy: The skill sends parts of your paper (up to ~12k chars per LLM call) to third‑party services (BANANA2/acedata or their fallbacks). Do not use it with unpublished, sensitive, or proprietary manuscripts unless you trust the target service and its data handling policies.
- Code execution risk: The chart_generator module asks an LLM to return complete Python code and then writes and runs that code locally (subprocess.run). This can execute arbitrary commands if the returned code is malicious or manipulated. If you need the results, consider:
- Running the skill in a strict sandbox / isolated VM or container.
- Reviewing any generated Python code before execution (or disabling automatic execution and running it manually in a safe environment).
- Secrets and keys: The skill needs an API key (BANANA2_API_KEY). Store keys only in secure locations (not shared configs) and prefer service accounts with minimal privileges. The skill suggests adding secrets to ~/.openclaw/openclaw.json; consider using per-skill, least-privilege keys and rotate them.
- File writes: Outputs default to ~/.qclaw/workspace/outputs; if you prefer, set PAPER_DIAGRAM_OUTPUT_DIR to a dedicated directory with restricted permissions.
- Hardening: If you plan to use this often, request or audit a code change that either (a) removes automatic execution of model-provided code, replacing it with a safe structured data path, or (b) adds strict sandboxing and content validation to the code-execution path.
Given the combination of external data exfiltration and local execution of model-generated code, proceed only after you accept and mitigate these risks (sandboxing, key management, and manual code review).
Capability Analysis
Type: OpenClaw Skill
Name: ynu-papergraphgeneration-qclaw
Version: 1.1.0
The skill bundle contains a significant security risk in `scripts/chart_generator.py`, where the `execute_chart_code` function executes arbitrary Python code generated by an LLM via `subprocess.run`. While this is intended for generating Matplotlib charts, it presents a Remote Code Execution (RCE) vulnerability if the LLM output is compromised. The skill also manages sensitive API keys (e.g., `BANANA2_API_KEY`) and communicates with external endpoints like `api.acedata.cloud`. Although no evidence of intentional malice or data exfiltration was found, the execution of dynamically generated code from an untrusted AI source is a high-risk pattern.
Capability Assessment
Purpose & Capability
Name/description (paper → diagrams) aligns with the code and required env vars: the code calls image/LLM APIs (BANANA2/acedata) and has local PDF→text and plotting modules. Minor incoherence: SKILL.md declares BANANA2_API_URL as required even though the code provides a default fallback URL; otherwise required binaries and envs are generally proportional to the described purpose.
Instruction Scope
The runtime instructions and code will send extracted paper text (up to ~12k chars per call) to external LLM/image generation endpoints and use responses to produce images. Critically, the chart_generator module asks an LLM to produce complete executable Python/Matplotlib code and then writes and executes that code locally via subprocess.run — this enables arbitrary code execution if the generated code or returned payload is malicious. The skill also downloads image URLs returned by remote services and writes outputs to home/workspace directories. All of these are coherent with the feature set but raise privacy and RCE risk.
Install Mechanism
There is no external installer; the skill ships Python scripts and asks the user to pip-install standard PDF libs and requests. No arbitrary remote archive downloads or install scripts are present in the install spec. This is low-risk compared to fetching and executing remote installers.
Credentials
Declared env vars (BANANA2_API_KEY / BANANA2_API_URL, with fallbacks ACEDATA_API_KEY / PAPER_DIAGRAM_API_KEY) match the code's behavior of calling external image/LLM services. That is expected for this skill. Minor inconsistency: the SKILL.md marks BANANA2_API_URL as required despite the code providing a default URL when unset.
Persistence & Privilege
The skill does not request 'always: true' and does not modify other skills. It writes outputs to ~/.qclaw/.../outputs or to configurable PAPER_DIAGRAM_OUTPUT_DIR and may create that workspace. That file‑system presence is reasonable for generated outputs but you should be aware files are written into your home directory by default.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install ynu-papergraphgeneration-qclaw - After installation, invoke the skill by name or use
/ynu-papergraphgeneration-qclaw - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.1.0
Version 1.1.0
- Added independent PDF → text extraction utility (pdf_to_text.py) with multiple backend support.
- Introduced a clear separation between "PDF→Text" extraction and "paper diagram generation" workflows.
- Added extensive command-line usage examples for both tools in the documentation.
- Expanded documentation: environment variable fallback logic, API credential setup, and output details.
- Provided sample output images for various figure types in the outputs/ directory.
- Updated skill name and metadata for clarity and integration (now: paper-diagram).
v1.0.0
PaperGraphGeneration v2.2.0 introduces a multimodal paper visualization engine with both single diagram generation and full-paper scanning modes.
- Adds dual operating modes: generate a single diagram or scan and visualize an entire paper.
- Automatic detection and prioritization of 5 academic figure types (teaser, architecture, flowchart, environment, results).
- Modular pipeline: from structural info extraction to LaTeX/Word-ready academic diagrams.
- Self-verification: automated topology checks and user feedback/confirmation loop.
- Customizable academic styles (CVPR, NeurIPS, ICML, Nature), with optional image generation API override.
- Supports batch output, section references, and token-efficient processing of long documents.
Metadata
Frequently Asked Questions
What is ynu-papergraphgeneration-qclaw?
多模态论文可视化引擎 — 从 PDF 或纯文本论文自动生成学术插图。 支持:全篇扫描识别可图化内容、双编码器架构图/算法流程图/动机图生成、 自校核机制、LaTeX/Word 图注输出、Matplotlib 结果图精确绘图。 也包含独立的 PDF → Text 提取工具。 It is an AI Agent Skill for Claude Code / OpenClaw, with 131 downloads so far.
How do I install ynu-papergraphgeneration-qclaw?
Run "/install ynu-papergraphgeneration-qclaw" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is ynu-papergraphgeneration-qclaw free?
Yes, ynu-papergraphgeneration-qclaw is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does ynu-papergraphgeneration-qclaw support?
ynu-papergraphgeneration-qclaw is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created ynu-papergraphgeneration-qclaw?
It is built and maintained by ljk00000 (@ljk00000); the current version is v1.1.0.
More Skills