본문으로 건너뛰기
cccskills
무료GitHub에 공개

code-stats

Analyzes code files and reports statistics including line counts, file counts by extension, and total size. Use this skill whenever the user wants to understand the composition of a codebase - asking about "how many lines of code", "what file types exist", "code distribution", or needing a quick audit of project size and structure. Make sure to invoke this skill when users mention analyzing codebases, counting lines, checking file distributions, or auditing code.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(12)

  • SKILL.md2.1 KB
  • evals/cases/analyze-directory.yaml1.5 KB
  • evals/cases/current-directory-format.yaml841 B
  • evals/cases/exclude-dependencies.yaml1.0 KB
  • evals/cases/top-extensions.yaml687 B
  • evals/eval.yaml821 B
  • evals/evals.json1.8 KB
  • evals/fixtures/repos/sample-project/main.go143 B
  • evals/fixtures/repos/sample-project/README.md73 B
  • evals/fixtures/repos/sample-project/util.go134 B
  • evals/fixtures/scripts/check-stats.sh1.9 KB
  • README.md4.6 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Code Stats Skill

Analyzes code files and generates statistics about a codebase.

Usage

When invoked, this skill will:

  1. Scan the specified directory (defaults to current directory)
    • Exclude node_modules/, .git/, dist/, and build/ unless the user explicitly asks to count them. These are dependencies, repository metadata, or generated output rather than project source.
  2. Count total lines, files by extension
  3. Report the largest files
  4. Output results in a structured format
  5. Sort extension summaries by total line count in descending order

Output Format

Always use this exact format for the output:

# Code Statistics

## Summary
- Total Files: <count>
- Total Lines: <count>
- Total Size: <size_bytes> bytes

## Files by Extension
| Extension | Files | Lines |
|-----------|-------|-------|
| .go | 12 | 1500 |
| .md | 5 | 200 |

## Top 5 File Extensions by Line Count
1. .go — 1500 lines
2. .md — 200 lines

## Largest Files (top 5)
1. main.go (500 lines)
2. util.go (300 lines)

If a file has no extension, group it under (no ext) in both extension sections.

Process

  1. Use Bash with find to locate project files, pruning the excluded directories
  2. Use Bash with wc -l to count lines per file
  3. Group files with no extension under (no ext)
  4. Sort both extension summaries by total line count in descending order
  5. Aggregate the results into the output format above
  6. If no directory is specified, analyze the current working directory

Examples

  • "Analyze the current directory"
  • "Run code-stats on ./src"
  • "Show me file type distribution"
  • "How many lines of Python do we have?"

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Ask for missing deployment settings and summarize the requested configuration without deploying it.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

alibaba/skill-up1.3천2026년 10월 20일 업데이트

Decode the marker fixture used by the DeepSeek Harness integration example.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

alibaba/skill-up1.3천2026년 10월 20일 업데이트

Capture and review Agent Skill observations, and create, run, diagnose, or iteratively improve Skill evaluations (evals) with the skill-up CLI. Use when the user asks to record explicitly attributed Skill usage or feedback; review observations or user-supplied traces/transcripts; turn an approved observation into a regression case; evaluate, test, regress, verify, fix, improve, iterate, or evolve a Skill; add or strengthen eval cases; write eval.yaml/case.yaml; run skill-up run/validate/list-cases/report/import/init; or migrate from Anthropic evals.json. Plugin observation capture/review require either the Codex skill-up plugin or an observer-enabled DSH skill-up plugin. User-supplied external evidence can be reviewed without a plugin; evaluation remains multi-engine.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

alibaba/skill-up1.3천2026년 10월 20일 업데이트

alibaba의 스킬 모두 보기

이 스킬의 문제 신고