code-stats

分析代码仓库的统计信息(行数、文件数,语言分布)。用于了解项目规模和复杂度。当需要了解项目有多大、有多少代码时使用。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "code-stats" with this command: npx skills add douduandou/openclaw-code-stats

Code Stats

分析当前工作区的代码统计信息。

使用方法

node skills/code-stats/index.js

或者在 OpenClaw 中作为技能使用。

功能特性

  • 总文件数统计 - 统计项目中的所有代码文件
  • 总行数统计 - 统计代码总行数
  • 语言分布 - 按编程语言分类统计
  • 百分比计算 - 计算各语言占比

支持的语言

  • JavaScript / TypeScript
  • Python
  • JSON / YAML
  • Markdown
  • Shell / Bash
  • HTML / CSS

示例输出

📊 Code Stats for /home/duan/.openclaw/workspace
========================================
Total Files: 408
Total Lines: 68,095

By Language:
  JavaScript: 176 files, 36,983 lines (54.3%)
  Markdown: 100 files, 16,365 lines (24.0%)
  TypeScript: 17 files, 2,359 lines (3.5%)
  Python: 3 files, 1,195 lines (1.8%)

使用场景

  1. 了解项目规模
  2. 评估代码复杂度
  3. 统计各语言占比
  4. 定期跟踪代码量变化

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Charging Ledger

充电记录账本 - 从截图提取充电信息并记录,支持按周、月查询汇总。**快速暗号**: 充电记录、充电账本、充电汇总。**自然触发**: 记录充电、查询充电费用、充电统计。

Registry SourceRecently Updated
General

qg-skill-sync

从团队 Git 仓库同步最新技能到本机 OpenClaw。支持首次设置、定时自动更新、手动同步和卸载。当用户需要同步技能、设置技能同步、安装或更新团队技能,或提到「技能同步」「同步技能」时使用。

Registry SourceRecently Updated
General

Ad Manager

广告投放管理 - 自动管理广告投放、优化ROI、生成报告。适合:营销人员、电商运营。

Registry SourceRecently Updated