dsh-repo-health
已验证dsh-repo-health · v0.1.0 · MIT
项目体检:检查仓库的 README/LICENSE/.gitignore/测试/CI/锁文件/脚本等最佳实践,返回体检报告卡与修复建议
安装
dsh plugin add dsh-repo-health 用 dsh --profile default --dump-config 确认 layer 已生效 —— 参见安装指南。
源码
发布到 npm 但没有公开仓库。安装前请检查包内容。
标签
说明文档
dsh-repo-health · 项目体检
检查仓库的常见最佳实践(README / LICENSE / .gitignore / 测试 / CI / 锁文件 / 脚本 / .env.example),返回体检报告卡与修复建议。纯 Node 实现,无网络、无外部服务。
提供的工具
| 工具 | 作用 |
|---|---|
health_check |
逐项检查并返回 ✓/✗ + 修复建议 + 总分 |
安装
dsh plugin add dsh-repo-health
安装后在 profile 的 package.json 的 dsh.profile.bundles 中加入 "dsh-repo-health"。
用法示例
给这个仓库做个体检
→ 调用 health_check(root="/workspace")
检查项
README、LICENSE、.gitignore、测试、CI 工作流、依赖锁文件、npm scripts、.env.example(8 项)。