zz12hui/dsh-github-readme ↗★ 0
dsh-local-github-readme
DSH 工具插件:上传 GitHub 前把仓库 README 按统一版式优化——首图/过程图生成、排版校验、提交推送。 适合需要规范化README排版的开发者,需本机安装Python、Pillow和git。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:zz12hui/dsh-github-readme9. 配置与目录
| 变量 | 默认值 | 作用 |
|---|---|---|
GITHUB_README_HOME | ~/.dsh/github-readme | 数据根目录(克隆缓存、渲染临时文件) |
GITHUB_README_PYTHON | DSH 自带 Python | 指定渲染用的解释器 |
dsh-github-readme/
├── index.js # apply(ctx) 注册 4 个工具;扫描/校验/推送逻辑
├── cordis.patch.yml # DSH 启动时的插件注册行
├── scripts/render_readme_assets.py # 首图 / 过程图渲染器(Pillow,2x 超采样)
├── references/
│ ├── README-模板.md # 编号章节骨架 + 推送前检查清单
│ └── 素材-plan示例.json # readme_assets 的 plan 模板
├── skill/ # 配套技能 github-readme-optimize
├── locale/ # 插件清单里的中文名和描述
├── assets/readme/ # 本仓库自己的首图与过程图
├── icon.svg
└── package.json