Bundle
dsh-code-stats
代码统计:扫描项目,按语言统计文件数与代码行数,返回语言分布与最大文件清单
- Source
- uckkk
- License
- MIT
- Updated
- Updated 6 days ago
Readme
# dsh-code-stats · 代码统计 扫描项目,按语言统计文件数与代码行数,返回语言分布与最大文件清单。纯 Node 实现,无网络、无外部服务。 ## 提供的工具 | 工具 | 作用 | |---|---| | `code_stats` | 统计文件数/行数,按语言分组,列出最大文件 | ## 安装 ```bash dsh plugin add dsh-code-stats ``` 安装后在 profile 的 `package.json` 的 `dsh.profile.bundles` 中加入 `"dsh-code-stats"`。 ## 用法示例 ``` 帮我看看这个项目的规模和技术构成 → 调用 code_stats(root="/workspace") ``` ## 说明 - 支持 30+ 语言扩展名识别(JS/TS/Python/Go/Rust/Java/JSON/YAML/Markdown 等)。 - 自动跳过 node_modules、.git、二进制/图片/压缩包/锁文件等。 ## 安装 ```bash dsh plugin add github:uckkk/dsh-code-stats ``` > 安装即在本机运行第三方代码,请自行审阅源码。 ## 安装 ```bash dsh plugin add github:uckkk/dsh-code-stats ``` ## 使用 安装后在会话中调用该插件注册的工具即可。 ## 许可 MIT > 安装即在本机运行第三方代码,请自行审阅源码。
Install
dsh plugin --profile web add github:uckkk/dsh-code-stats
Profile: web
With the hub plugin installed, ask your agent to install it by name — it resolves the same plan shown here.
dsh plugin --profile web add github:stvlynn/dsh.fish#path:packages/dsh-plugin-hub
install dsh-code-stats from the hub
- This source has no pinned commit, so a later push upstream changes what installs. Prefer pinning a commit.