AGENT SKILL
tokei
Use this skill when the user wants to count lines of code, get code statistics for a project, or analyze code by language.
- License 许可
- MIT
- 最近更新
- 2026-11-02
- Stars
- ★ 57
- Forks
- 5
01 前言 Front Matter
- name
- tokei
- description
- Use this skill when the user wants to count lines of code, get code statistics for a project, or analyze code by language.
03 SKILL.md 正文
tokei Plugin
Count your code quickly. Fast code statistics for 150+ languages.
Commands
Count
tokei count run— Count code statisticstokei count files— Count with individual file statstokei count json— Output as JSON
Usage Examples
- "Count lines of code in this directory"
- "Get code statistics as JSON"
- "Show per-file statistics"
Installation
cargo install tokei
# or
brew install tokei
Examples
# Basic count
tokei .
# Count specific path
tokei ./src
# With file details
tokei --files ./src
# JSON output
tokei --output json ./src
# Sort by code lines
tokei --sort code ./src
# Exclude patterns
tokei ./src --exclude *.test.*
Output Columns
- Files — number of files
- Lines — total lines
- Code — lines of code
- Comments — lines of comments
- Blanks — blank lines
Key Features
- Supports 150+ languages
- Respects .gitignore
- Multiple output formats (text, JSON, YAML, CBOR)
- Very fast (millions of lines in seconds)
- Accurate multi-line comment handling
04 同仓库更多 Skills
sc-machin-mcp
暂无简介
★ 57
supercli.quickstart
SuperCLI capability router — discover and execute CLI commands through namespace.resource.action interface
★ 57
zzdoc
Use this skill to compile scdoc manpages with a fast Zig-based compiler.
★ 57
zx
Use this skill when the user wants to a tool for writing better scripts using node.js.
★ 57
zvm
Use this skill when the user wants to manage multiple Zig compiler versions.
★ 57
quickstart
暂无简介
★ 57