tkr520521/dsh-repo-analyzer ↗★ 0
dsh-repo-analyzer
本地仓库分析:技术栈识别、依赖图与模块引用分析,无需额外服务。 适合让 agent 快速了解本地代码库结构;可配置根目录与遍历上限。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:tkr520521/dsh-repo-analyzer说明文档
阅读完整 README ↗閰嶇疆 / Configuration
- insert:
- id: dsh-repo-analyzer
name: dsh-repo-analyzer
config:
root: '.' # 浠撳簱鏍癸紝鐩稿 agent 鐨?cwd
maxDepth: 4 # 鏈€澶ч亶鍘嗘繁搴? maxFiles: 20000 # 鍗曟鍒嗘瀽鏂囦欢鏁颁笂闄? maxFileBytes: 1048576
exclude: # 璺宠繃鍚嶅崟锛堥粯璁ゅ凡鍚?node_modules/.git/dist 绛夛級
- node_modules
- .git
- lib
| 瀛楁 | 绫诲瀷 | 榛樿 | 璇存槑 |
|---|---|---|---|
root | string | . | 浠撳簱鏍癸紝鐩稿 agent 鐨?cwd |
maxDepth | number | 4 | 鐩綍閬嶅巻娣卞害涓婇檺锛?鈥?0锛? |
maxFiles | number | 20000 | 鍗曟鍒嗘瀽鏂囦欢鏁扮‖涓婇檺 |
maxFileBytes | number | 1048576 | 瓒呰繃璇ュ瓧鑺傛暟鐨勬枃浠惰烦杩? |
exclude | string[] | 瑙?schema | 鎸夊悕绉拌烦杩囩殑鐩綍/鏂囦欢 |
鐢ㄦ硶 / Usage
鍏?repo_scan 鐪嬩粨搴撴瑙?鈫?鍐?repo_deps 鐪嬩緷璧?鈫?鏈€鍚?repo_refs 鎵炬灦鏋勭儹鐐癸紝
鐒跺悗鍛婅瘔鎴戣繖涓粨搴撶殑妯″潡鍒掑垎鍜屾渶瀹规槗韪╅浄鐨勫湴鏂广€?```
```text
repo_deps 鏌ヤ竴涓?lodash 琚摢浜涙枃浠跺紩鐢紝璇勪及鍒犳帀瀹冪殑褰卞搷闈€?```