pdf-background-gray-codex-skill
by zjsthmjialin
注册 remove-pdf-background-gray 技能:去除扫描 PDF 的灰色/米白底色,保持分辨率、页面几何与抗锯齿文字边缘(无损 Flate 写回),核心为单文件 Python 脚本(pypdf + Pillow + numpy)。
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).
安装
dsh plugin --profile web add github:zjsthmjialin/pdf-background-gray-codex-skill#path:/dsh-pdf-background-grayGitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试
安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗
安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。
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(同目录模板)。
同类插件
查看全部 →vibe-skills
vibe 编码技能合集(含快速开始、CI 证明、发布说明与文档)

Aegis
面向编码 Agent 的软件工程方法包,提供基线优先规划、系统化调试、提示词卫生、完成前验证,以及修复/退役双轨跟踪技能。

J-Space-Cognition-Suite-V3.6
A model-agnostic inference-time control suite for deep reasoning, long-horizon work, tool use, verification, and recovery. 面向深度推理、长程任务、工具调用、验证与恢复的模型不可知推理时控制套件。

MisakaNet
失败恢复记忆库:从真实工程会话中搜索和记录失败恢复教训,支持 BM25 + 语义 RAG 检索和知识库管理。

dsh-find-plugins
对 DSH 说一句「有没有插件能……」,它就会从全 GitHub 的 dsh-plugin topic 里找出候选,解释差别,等你选好以后再安装和验证。

humanizer-ru
AI代理技能:识别并清除俄语文本中的机器生成痕迹。38种模式,39个带证据注册的regex标记,盲对偶运行,C2PA/EXIF/XMP文件元数据清理