跳到正文
TakoAPI
返回技能列表

code-stats

由 autogame-17 提供

Browser & Automation
2.4k下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Visualizes repository complexity by counting files, lines of code, and grouping by extension.

描述

该技能的功能

Counts files and lines of code in a local workspace, broken down by file extension. Takes an optional path argument, defaulting to the current directory.

Runs entirely locally with no external services, giving instant metrics without setting up a dedicated analytics tool.

何时使用

  • Checking total line count before a code review
  • Comparing project size across branches
  • Identifying dominant languages in a mixed-language repo
  • Estimating scope of an unfamiliar codebase
  • Tracking growth after a major feature addition

示例工作流

输入

User asks: How large is this project and what languages does it use?

智能体
  1. 1

    Run code-stats against the workspace root

  2. 2

    Parse the returned JSON for files and lines totals

  3. 3

    Extract the byExt map to identify language distribution

  4. 4

    Format the data into a readable summary

输出

Project contains 284 files and 19,043 lines of code. TypeScript (.ts, .tsx) makes up 58% of files, followed by CSS at 12%.

安装

clawhub install autogame-17/code-stats

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接