Wc Lines Tool

SKILL开发
开发 未标注权限 许可证不明确
安装这个技能

统计文本文件中的总行数、空行、代码行和注释行。适用于代码统计、日志文件大小分析和文档分析。

累计安装 未标注 本周 未标注
GitHub 星标 未标注 仓库 未标注
下载量 未标注 技能市场下载数
权限级别 未标注权限 安装前请确认风险范围
许可证 许可证不明确 未说明

安装

ClawHub 市场
在支持 Skills 的客户端里执行,装完问一句「你有哪些技能」验证
skillhub install clawhub_dinghaibin/wc-lines-tool

技能档案

开发
字段来自技能仓库与公开索引,中文说明由本站标注
作者 / 维护方clawhub_dinghaibin仓库 未标注 · 版本 未标注
宿主客户端未标注技能可被这些客户端加载
安装方式ClawHub 市场安装包 clawhub
权限级别未标注权限安装前请确认风险范围
许可证未说明许可证不明确,商用前请自行确认条款
仓库可用性available技能仓库当前是否可访问
最近核验未标注上游最后核验时间 · 数据更新 1791707195
正文体量1.8 KBSKILL.md 原文大小,越大说明说明书写得越细

SKILL.md 全文

1.8 KB
模型实际读到的说明书原文,来自技能仓库

WC Lines Tool — Line Counting Utility

Count lines in text input with smart detection of blank lines, code lines, comment lines, and non-empty content. Ideal for codebases, log analysis, and document statistics.

Quick Start

# Count lines in a string
wc-lines-tool "line1\nline2\nline3"

# Count lines from stdin
cat README.md | wc-lines-tool

# Count lines in a file
wc-lines-tool --file log.txt

Usage

wc-lines-tool [TEXT] [OPTIONS]
wc-lines-tool --file FILE [OPTIONS]

Options:
  --file FILE       Read from file instead of argument
  --non-blank       Count only non-empty lines
  --blank           Count only blank/empty lines
  --code            Count lines likely containing code (non-comment, non-blank)
  --max N           Report if line count exceeds N (exit 1 if over)
  --min N           Report if line count is below N (exit 1 if under)
  --json            Output as structured JSON

Examples

# Total line count
wc-lines-tool --file server.log

# Non-blank lines only
wc-lines-tool --file app.py --non-blank

# Blank line count
wc-lines-tool --file main.go --blank

# Check log file size threshold (alert if > 10000 lines)
wc-lines-tool --file errors.log --max 10000

# Machine-readable output
wc-lines-tool --file data.csv --json

Features

  • Line counting — total, blank, non-blank, code
  • File, stdin, and argument input — flexible sources
  • Threshold alerts — --min/--max with exit codes for CI/CD
  • JSON output — pipeline-friendly
  • Fast — handles large files efficiently
  • UTF-8 safe — handles arbitrary encodings

热门专题

按场景挑技能
全部专题 →

技能内容以作者仓库为准;分类、权限级别与许可证状态的中文说明为中文整理,最近核验 未标注。