搜索

PythonReactSEOPDF
OpenClaw

code-stats

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

douduandou0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install douduandou/openclaw-code-stats

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

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
github
Repository
openclaw/skills
Path
skills/douduandou/openclaw-code-stats
Version
—
Commit
a0dd612bdb721f129aeef74516a1d2c7b5344498
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

来源内容

SKILL.md
# Code Stats

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

## 使用方法

```bash
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. 定期跟踪代码量变化

相关技能

OpenClaw

x402hub

capncoconut

Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay,...

OpenClaw

claw

capevace

Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.

OpenClaw

captchas-openclaw

captchasco

OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.