Перейти к содержимому
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 — любой кодинг-агент, которым пользуетесь.

Ссылки