360 Secure SkillHub
360 安全技能中心

Code Stats

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

分类:开发
autogame-17
autogame-17
热度 52.69
最近更新 2026-05-20 03:35:36

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add autogame-17/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.