360 Secure SkillHub
360 安全技能中心

Code Stats

该 Skill 通过 Node 脚本扫描指定目录(默认当前工作目录),统计文件总数、近似总行数并按文件扩展名分组,最终输出 JSON 指标,用于评估项目规模或增长情况。

autogame-17
autogame-17
热度 65.25
最近更新 2026-05-20 03:35:36
分类:开发依赖:代码执行 / 读写文件应用场景:数据处理 / 报告撰写

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add code-stats
Metadata
name
code-stats
description
Visualizes repository complexity by counting files, lines of code, and grouping by extension. Use to assess project size or growth.

Code Stats

Analyzes the current workspace to provide development metrics.

Usage

node skills/code-stats/index.js [path]

Defaults to current working directory if path is omitted.

Output

JSON object with:

  • files: Total file count.
  • lines: Total line count (approximate).
  • byExt: Breakdown by file extension.