plugsday
Week 1 · November 2, 2026 / china-patent-figure-skill

china-patent-figure-skill

SkillPassed every check★ 93 · by @PisenAILab

Turns a 3D CAD assembly (STEP) into CNIPA- or USPTO-style patent line drawings with reference numerals and leaders. The agent writes one figure-plan.json and the bundled scripts render it deterministically into DXF, PDF, Word or DWG. The tool also cleans existing patent drawings (DXF, DWG, Matplotlib, PDF, raster) into continuous-line DXF and audited DWG.

See it on GitHub

What it can touch

files · read and writenetwork · 10 hostsshell · runs commandssecrets · 4 keys
fileswrite, including saved tokens (.npmrc, .netrc, git credentials), every environment variable, ~/.config/patent-workbench/config.json, ~/.patent-workbench, ~/.local/share/patent-figure-kit
networkapi.deepseek.com, figs.internal, github.com, my-cnd-server.com, purl.org, pypi.org, pypi.tuna.tsinghua.edu.cn, schemas.microsoft.com, schemas.openxmlformats.org, www.python.org
shellruns commands
secretsDEEPSEEK_API_KEY, PFK_TOKEN, WORKBENCH_TOKEN, WP3B_TOKEN

What it actually does

The visible files match the claim. SKILL.md routes the agent through local Python CLIs (doctor, analyze_assembly, validate, render, annotate, export, clean_patent_dxf, autocad_core_dxf_to_dwg). These read STEP and DXF inputs and write outputs into new directories; the annotate and clean scripts refuse to overwrite their source file. The DWG converter launches the local AutoCAD Core Console with a generated .scr script in a temp directory. install.sh creates a venv under ~/.local/share/patent-figure-kit (or ~/Library/Application Support on macOS), pip-installs pinned dependencies from PyPI, runs a self-check, then starts a local web workbench on 127.0.0.1:8790 behind a token. The workbench offers REST and MCP endpoints. It stores projects in ~/.patent-workbench and its token or secrets in ~/.config/patent-workbench/config.json. It has an optional AI naming channel (DeepSeek API or a local CodeBuddy CLI) that sends part names, dimensions and assembly paths off the machine. The Docker deployment listens on 0.0.0.0 behind Caddy with HTTPS and Basic Auth. No credential theft, persistence, obfuscated code or hidden instructions were found in the files shown. Many core modules were omitted from the bundle for size (workbench.py, workbench_llm.py, workbench_mcp.py, the patent_figure/* package, doctor.py), so their contents were not reviewed directly.

What the check found

mediumHas a hidden comment that speaks to the agent

HTML comments don't show when Markdown is displayed, but agents read them.

README.md:100 <!-- For AI agents: non-interactive install + smoke test from a source checkout. No credentials, no AI channel, nothing leaves the machine.

automated rule

mediumTouches saved tokens or passwords

Reads files where other tools keep login tokens, such as .npmrc, .netrc or git credentials.

docs/deploy/pypi.md:56 凭据用 PyPI API token(`__token__` + 令牌),只放 `~/.pypirc`(权限 0600)或环境变量 `TWINE_PASSWORD`,**不进仓库、不写进任何 Markdown**。

automated rule

mediumChanges the agent's instructions or settings

Editing CLAUDE.md, AGENTS.md, memory files, hooks or MCP settings lets a tool keep steering the agent even after it's removed.

docs/mcp-clients.md:15 | **CodeBuddy** | `~/.codebuddy/.mcp.json` 或项目 `.mcp.json`;`codebuddy mcp add` | 见下 | — |

automated rule

mediumDownloads a script and runs it straight away

Piping a download into a shell runs code nobody reviewed, and the download can change after this check.

install.sh:17 # 安全约定:所有路径一律加引号(支持空格与中文路径);不 eval、不拼接命令字符串、不 curl | sh。

automated rule

mediumGoes through every environment variable

Reads the whole environment, usually to pass it on to another program. Together with a webhook or paste-site address it is how credential stealers work.

tests/test_install_scripts.py:63 env = {k: v for k, v in os.environ.items() if not k.startswith(("LC_", "BASH_ENV"))}

automated rule

mediumGoes through every environment variable

Reads the whole environment, usually to pass it on to another program. Together with a webhook or paste-site address it is how credential stealers work.

webui/dev/e2e_live.py:187 env = {k: v for k, v in os.environ.items() if k.lower() not in ("http_proxy", "https_proxy", "all_proxy")}

automated rule

mediumOptional AI channel turns on automatically and sends part metadata to a third-party LLM

If DEEPSEEK_API_KEY is set or a local CodeBuddy CLI is present, the workbench enables AI part-naming by default. It then sends part names, sizes and assembly paths to an external model. The README discloses this and documents an opt-out (PFK_AI_PROVIDER=none), and STEP geometry is said not to leave the machine. Still, unpublished patent material is confidential, so users should know the default is on when a key is present.

README.md:168 - **AI 是可选项。** 只用于给零件起名、识别结构分组。检测到 `DEEPSEEK_API_KEY` 或本机 CodeBuddy 时会默认开启,并会外发零件名、尺寸、装配路径等派生信息,不外发 STEP 文件和几何数据。

README.md:169 - **处理保密模型前请先关闭 AI**:启动前设置 `PFK_AI_PROVIDER=none`,首页显示「AI 未接入」即为关闭。

SKILL.md:249 or a local CodeBuddy CLI as fallback) only drafts **semantics** — part names and flowchart steps —

Claude review

Keep an eye on it

This check is of one commit. Watch china-patent-figure-skill and we'll email you if a later commit changes what it can touch.

Made this? Add the badge

Checked by Plugsday

[![Checked by Plugsday](https://plugsday.com/badge/pisenailab-china-patent-figure-skill.svg)](https://plugsday.com/tools/pisenailab-china-patent-figure-skill)

About this check

Checked November 5, 2026 at commit 6ced175436a5, 219 files. Rules for known red flags, then two Claude reviews, one of them told to assume the author is malicious. A later commit hasn't been checked. How checks work.