📏
QualityPython

Size Check

by doccker

Size Check is a Quality skill for Claude Code, published by doccker in cc-use-exp.

1K stars105 forkson doccker/cc-use-expAdded 2026/08/21Repository updated 2026/06/30
antigravityclaude-codecodexcursorgemini-cligithub-copilot
Install in seconds
Install Size Check
Copy Size Check into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/doccker/cc-use-exp/tree/main/skills/size-check ~/.claude/skills/size-check

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/doccker/cc-use-exp.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
skills/size-check/SKILL.md in doccker/cc-use-exp
Installs to
~/.claude/skills/size-check
Collection
One of 23 skills cataloged from this repository
Category
Quality1354 skills

What Size Check does

Size Check reviews changed code for reuse, quality, and efficiency, then flags issues to fix. It also scans project files for line-count limit violations and CSS extraction needs.

Size Check is cataloged under Quality on DirSkills. Size Check comes from a repository tagged antigravity, claude-code, codex, cursor and gemini-cli.

Documentation

README

Size Check - 代码简化与文件行数检查

触发方式

用户执行 /size-check 或描述"简化代码"、"检查文件大小"时触发。


功能 1:代码简化(原有能力)

审查变更代码的复用性、质量和效率,修复发现的问题。

检查项

检查项 说明
重复代码 提取公共方法/组件
过度抽象 简化不必要的设计模式
冗余逻辑 合并可简化的条件分支
未使用代码 删除死代码、无用 import

功能 2:文件行数扫描

行数阈值

语言 上限 拆分方式
Java 300 Service 拆分职责、提取 Helper/Converter
Go 400 按功能拆分同包文件
Vue 200 提取子组件、composables
TSX/JSX 200 提取子组件
TypeScript/JS 300 提取工具函数、常量、类型
Python 300 按职责拆分模块

执行流程

全项目扫描模式(用户未指定文件时):

1. 扫描项目所有代码文件(排除 node_modules、vendor、dist、build、.git)
2. 统计每个文件行数,对照阈值标记超限文件
3. 检测 Markdown 文件中的重复章节(相同标题出现多次)
4. 输出超限清单 + 拆分建议

单文件模式(用户指定文件时):

1. 检查代码复用、质量、效率
2. 检查行数是否超限
3. 如果超限,给出具体拆分方案

输出格式

This is the opening of the README. Read the full README on GitHub.

Commands Size Check provides

Slash commands named in this skill’s SKILL.md, listed in the order they first appear.

  • /size-check
  • /review

Frequently asked about Size Check

  • What else does doccker publish alongside Size Check?

    Size Check is one of 23 skills that DirSkills catalogs from doccker/cc-use-exp, the repository it ships in. Its siblings there include API Design Safety, Api Design Safety and Api Proxy Safety. Each one is a separate skill with its own page in this directory, installs the same way Size Check does, and is maintained by doccker in that same repository. The rest of the collection is listed on the doccker/cc-use-exp page.

  • How does Size Check compare to other Quality skills?

    Size Check ranks #844 by stars among the 1354 Quality skills in this catalog. The most-starred ones next to it are Benchmark, Benchmark Optimization Loop and API Design Patterns. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Size Check against them. Open each page to compare what they document and how they install.

More from doccker/cc-use-exp

Size Check is one of 23 skills cataloged on DirSkills from doccker/cc-use-exp.

See all 23 skills
🛡️
1w ago

API Design Safety

API Design Safety helps you design REST API responses and generated outputs with consistent field semantics, null handling, and status codes. It also checks required fields before exporting files or sending downstream payloads to avoid silent failures.
Quality
1K105
🧩
1w ago

Api Design Safety

Api Design Safety helps prevent REST API response design mistakes such as field mix-ups, ambiguous return types, and inconsistent empty values. Use it when designing or changing API responses and handling returned data.
AI Engineering
1K105
🛡️
1w ago

Api Proxy Safety

Api Proxy Safety defines safe keyword matching for gateways, proxies, WAFs, and CDNs so normal content is not misclassified as an error. It is used when implementing heuristic checks for response bodies, status codes, and error schemas.
DevOps
1K105
1w ago

Async Task Pattern

Async Task Pattern provides a standard triggerAsync/getStatus flow for operations that may run longer than 10 seconds. Use it for batch processing, remote API fan-out, or scans that would otherwise time out or be triggered twice.
Automation
1K105
🐚
1w ago

Bash Style

Bash Style provides shell scripting and command-writing conventions for .sh files, Dockerfiles, Makefiles, YAML, and Markdown bash blocks. Use it to format commands, heredocs, file writes, permissions, and script safety.
Writing
1K105
🧩
1w ago

Code Quality Principles

Code Quality Principles provides a checklist for modular design, refactoring, and code review. Use it to assess module size, call depth, fan-in/fan-out, boundaries, scope cohesion, and predictability.
Quality
1K105