tokei

tokei is a fast and accurate code counting tool written in Rust that counts code lines, comments, and blank lines across more than 200 languages. It can output results in JSON, YAML, or CBOR formats for programmatic analysis of repository composition.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "tokei" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-53c6c84d4d06c488db69258ad0d4339fdaca8513ebbb70d4ff43d248014147d1. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/tokei-code-statistics-counter before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

tokei is a fast and accurate code counting tool written in Rust that counts code lines, comments, and blank lines across more than 200 languages. It can output results in JSON, YAML, or CBOR formats for programmatic analysis of repository composition.

0 Downloads

Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Not specified in the source documentation.
Inputs and outputs
Not specified in the source documentation.
Software, accounts and paid services
Not specified in the source documentation.
Limits and differences
Not specified in the source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: "tokei 代码统计计数器"
slug: "tokei-code-statistics-counter"
version: "1.0.0"
displayName: "tokei 代码统计计数器"
summary: "用Rust编写的快速准确的代码统计工具。可跨200多种语言统计代码行数、注释和空行,并以JSON、YAML或CBOR格式输出,便于对代码库组成进行程序化分析。"
license: "MIT"
description: "用Rust编写的快速准确的代码统计工具。可跨200多种语言统计代码行数、注释和空行,并以JSON、YAML或CBOR格式输出,便于对代码库组成进行程序化分析。"
github_stars: 14169
verification: "security_reviewed"
source: "https://github.com/1991513ccie-png/skills"
category: "Code Quality & Review"
framework: "Claude Code"
tool_ecosystem:
  github_repo: "1991513ccie-png/skills"
  github_stars: 14169

tokei 代码统计计数器

Fast and accurate code statistics tool written in Rust. Counts lines of code, comments, and blanks across 200+ languages, with output in JSON, YAML, or CBOR for programmatic analysis of codebase composition.

Installation

Use the upstream install or setup path that matches your environment:

Requirements and caveats from upstream:

  • You can also build and install from source (requires the latest stable [Rust] compiler.)
  • Tokei is available in a small alpine-based docker image, buildable through earthly:

Basic usage or getting-started notes:

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value78/100

Highlights

  • 封装了 tokei 代码统计工具,适用于代码质量分析和项目统计场景
  • 支持 200+ 种语言,输出格式丰富(JSON/YAML/CBOR),便于程序化分析
Trigger Precision55/100

Areas to improve

  • 缺少 When to Use 场景说明 Reported severity: Minor

    description 中未明确说明触发词或典型使用场景,用户难以判断何时使用该 Skill

    Recommendation: 补充 When to Use 章节,说明典型触发场景如'统计项目代码行数'、'分析代码库组成'等

Structure and Standards65/100

Areas to improve

  • 缺少清晰的步骤划分 Reported severity: Minor

    文档结构较为松散,缺少清晰的 Phase/步骤划分和出口条件

    Recommendation: 将 Installation 和 Example 内容组织为清晰的步骤,添加执行后的预期结果说明

  • 文档内容过长 Reported severity: Minor

    单文件内容较长,影响阅读体验

    Recommendation: 将内容拆分为多个章节,使用更清晰的小标题组织信息

Highlights

  • frontmatter 完整,包含必要的元数据信息
  • 提供了多种安装方式和基本使用示例
Execution Reliability68/100

Areas to improve

  • 异常处理覆盖不足 Reported severity: Minor

    未覆盖主要异常情况(如安装失败、环境不兼容等)

    Recommendation: 添加常见问题的解决方案和错误处理建议

Highlights

  • 提供了多种安装方式(cargo、conda、brew、源码),工具来源明确
  • 引用了官方文档和源码地址,信息可靠
Evidence Verifiability (mean of the first four)67/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Install or fetch external dependencies

    Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.

    Mentioned in main document · lines 28
Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • github.com
  • raw.githubusercontent.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Not specified in the source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.