Registers the remove-pdf-background-gray skill for DSH: whitens gray/off-white scan backgrounds in image-based PDFs while preserving resolution, page geometry, and anti-aliased text edges (lossless Flate write-back), via a single Python script (pypdf + Pillow + numpy).
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-pdf-background-gray
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:zjsthmjialin/pdf-background-gray-codex-skill#path:/dsh-pdf-background-gray
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
「Remove PDF Background Gray」技能的 DeepSeek Harness (DSH) 插件化分发包。
安装后自动向 DSH 技能系统注册 remove-pdf-background-gray 技能:去除扫描 PDF 的灰色/米白底色,保持原始分辨率、页面几何与抗锯齿文字边缘(不做硬阈值/二值化、不重采样、无损 Flate 压缩)。
安装
dsh plugin --profile web add dsh-pdf-background-gray
重启 DSH Web 后,向 Agent 说"把这份扫描 PDF 去底灰"即自动走技能工作流。
运行时要求(Python)
- Python 3.10+
python -m pip install pypdf Pillow numpy
用法(技能内嵌,直接给 agent 即可)
python scripts/remove_pdf_background_gray.py INPUT.pdf OUTPUT.pdf
# 深色纸张:--low 235 --white-point 250
内容
SKILL.md:工作流与护栏(pdfinfo 检查 → 直改图像对象 → 验证)scripts/remove_pdf_background_gray.py:核心脚本(单文件,124 行)
发布 / 维护
npm pack --dry-run
npm publish
维护纪律:技能本体改动 → 同步 skills/remove-pdf-background-gray/ 快照 → 版本迭代重发。
完整迁移流程见 SKILL-TO-DSH-PLUGIN.md(同目录模板)。
Links
More in this category
tt-a1i/archify#integrations/deepseek-harness★ 75868
Generate validated, self-contained interactive architecture, workflow, sequence, data-flow, and lifecycle diagrams from repositories or system descriptions.
dream-num/dsh-univer-office★ 457
Give DeepSeek Harness a real office environment. Univer Office Plugin brings spreadsheets, docs, slides, canvases, relational tables, and more into one runtime — with connected data, validation, versioned changes, and isolated worktrees for multi-agent collaboration.
PerryLink/dsh-industry-research★ 199
Deterministic industry research reports for DeepSeek Harness — company and industry research flows produce structured, verifiable reports from staged evidence.
HuanLinOTO/dsh-plugin-mineru★ 47
Expose MineRU document parsing tools to the model.
PolinniZhong/dsh-knit★ 30
Lists the Markdown documents, images and video that already exist anywhere in the session workspace in the DSH sidebar, ranked by relevance to the current conversation: recent messages are matched locally against document title, summary and body with IDF weighting, with no model calls and no network. Because the list is scanned from the workspace instead of remembered, restarting DSH or starting a new session does not empty it. Images and video preview in place, with relative-path images resolved and video streamed over HTTP Range. A references bar under the preview header shows which documents cite the one being previewed and which it cites, with one click to jump between them. The same ranking is exposed to the agent as a knit_docs tool, which returns the most relevant documents along with the passage that matched in each, where one is found.
kw78/dsh-office-tools★ 26
Workspace-safe Office tools for agents: create/read Word, create/read/update Excel, and create/read PowerPoint decks with PNG/JPG/GIF image placement.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.