size-check

Enforce size and complexity limits across codebases, flagging oversized functions and files.

Updated Mar 18, 2026
One-click install
npx skills add https://github.com/mikecubed/agent-orchestration --skill size-check
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: size-check
Source: https://github.com/mikecubed/agent-orchestration/tree/main/plugins/ccc/skills/size-check
Command: npx skills add https://github.com/mikecubed/agent-orchestration --skill size-check

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enforces code size and complexity rules (SIZE-1 through SIZE-6). Loaded by the conductor for write, review, and refactor operations. Detects oversized functions, files, deep nesting, long parameter lists, flag arguments, and God classes. Size thresholds are language-agnostic — no language reference files needed.

Core Features & Use Cases

  • Checks function length to prevent bloated code and improve readability and maintainability.
  • Flags large files and modules to signal refactoring opportunities or modularization.
  • Detects deep nesting and excessive parameter lists to promote better abstraction and SRP adherence.
  • Use Case: When integrating a new feature, run Size Check to ensure new code adheres to size and complexity guidelines.

Quick Start

Run size-check on your repository to identify oversized functions and files.

Frequently Asked Questions about size-check

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce code size and complexity limits during refactoring?

Static analysis checks enforce code size and complexity limits during refactoring by flagging oversized functions, files, deeply nested constructs, and god classes. This ensures new code adheres to maintainability guidelines.

What is a god class and how do I detect it in my codebase?

A god class is a large module handling too many responsibilities. You detect it in your codebase by applying static analysis rules that flag oversized files and modules, signaling refactoring opportunities for better abstraction and Single Responsibility Principle adherence.

Does code complexity static analysis work with TypeScript and Python?

Code complexity static analysis works with TypeScript, Python, Go, Rust, and JavaScript. The size thresholds are language-agnostic, meaning no language reference files are needed to count function lines, nesting depth, and parameter counts.

How do I check function length and parameter counts to improve code quality?

You check function length and parameter counts by running size-check rules on your repository. This identifies bloated functions and excessive parameter lists, promoting better abstraction and improving overall code quality and readability.

What are the SIZE-1 through SIZE-6 rules in static analysis?

The SIZE-1 through SIZE-6 rules in static analysis are code quality constraints that count function lines, file lines, nesting depth, parameter counts, flag arguments, and detect god classes. They prevent oversized constructs across multiple programming languages.

Can I use code size rules for code reviews without language-specific configuration?

You can use code size rules for code reviews without language-specific configuration because the size thresholds are language-agnostic. The rules apply uniformly across TypeScript, Python, Go, Rust, and JavaScript without needing reference files.