注册 remove-pdf-background-gray 技能:去除扫描 PDF 的灰色/米白底色,保持分辨率、页面几何与抗锯齿文字边缘(无损 Flate 写回),核心为单文件 Python 脚本(pypdf + Pillow + numpy)。
安装
# npm 包(预构建)
dsh plugin --profile web add dsh-pdf-background-gray
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:zjsthmjialin/pdf-background-gray-codex-skill#path:/dsh-pdf-background-gray
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本。请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
「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(同目录模板)。
链接
同类插件
tt-a1i/archify#integrations/deepseek-harness★ 14090
从仓库或系统描述生成经过校验的自包含交互式架构图、流程图、时序图、数据流图和生命周期图。
HuanLinOTO/dsh-plugin-mineru★ 35
向模型暴露 MineRU 文档解析工具。
AKS1st/dsh-mermaid★ 7
把 DSH Web 会话消息中的 Mermaid 代码围栏渲染为惰性加载的 SVG 图表,严格消毒并跟随明暗主题。
fly233338/dsh-overleaf★ 7
通过 OverleafMCP 将多个 Overleaf 项目接入 DSH,支持浏览、分析和通过 Git 写回 LaTeX 文件。
bill9109/dsh-101★ 4
DSH 文档阅读模式。
Jesse-njx/dsh-cowork#dsh★ 4
doc_read/doc_write:以有界、单元格寻址的方式读写 xlsx / pdf / docx / pptx / ipynb,另附 MCP 服务器与 CLI。