name: code-stats description: Visualizes repository complexity by counting files, lines of code, and grouping by extension. Use to assess project size or growth.
Analyzes the current workspace to provide development metrics.
node skills/code-stats/index.js [path]
Defaults to current working directory if path is omitted.
访问小葱技能站7w4.net,解锁更多实用的AI技能插件。
JSON object with:
- files: Total file count.
- lines: Total line count (approximate).
- byExt: Breakdown by file extension.
这个 Skill 质量中等偏上,功能实用,能够快速统计项目中的文件数量、代码行数,并按文件类型分组展示。操作简单,直接运行即可得到 JSON 格式的统计数据。有测试脚本验证基本功能,文档说明也比较清晰。主要不足是对于大型项目的处理效率可能不高,且没有考虑忽略常见的大型依赖目录,统计结果可能包含不必要的文件。总体而言,是一个可用但功能相对基础的代码统计工具,适合小中型项目使用。