์Šคํ‚ฌ line-limit
๐Ÿ“

line-limit

์•ˆ์ „ โš™๏ธ ์™ธ๋ถ€ ๋ช…๋ น์–ด๐ŸŒ ๋„คํŠธ์›Œํฌ ์ ‘๊ทผ๐Ÿ“ ํŒŒ์ผ ์‹œ์Šคํ…œ ์•ก์„ธ์Šค

Enforce Code File Line Limits

Long code files are hard to maintain and understand. This skill automatically checks line counts and helps you split oversized files into manageable, well-organized modules. Keep your codebase clean and navigable.

์ง€์›: Claude Codex Code(CC)
๐Ÿ“Š 70 ์ ์ ˆํ•จ
1

์Šคํ‚ฌ ZIP ๋‹ค์šด๋กœ๋“œ

2

Claude์—์„œ ์—…๋กœ๋“œ

์„ค์ • โ†’ ๊ธฐ๋Šฅ โ†’ ์Šคํ‚ฌ โ†’ ์Šคํ‚ฌ ์—…๋กœ๋“œ๋กœ ์ด๋™

3

ํ† ๊ธ€์„ ์ผœ๊ณ  ์‚ฌ์šฉ ์‹œ์ž‘

ํ…Œ์ŠคํŠธํ•ด ๋ณด๊ธฐ

"line-limit" ์‚ฌ์šฉ ์ค‘์ž…๋‹ˆ๋‹ค. Check src/components/UserProfile.tsx for line limit violations

์˜ˆ์ƒ ๊ฒฐ๊ณผ:

  • Line count check: 387 lines
  • VIOLATION: 87 lines over the 300 limit
  • ย 
  • Analysis:
  • - User info section: 120 lines
  • - Profile settings: 95 lines
  • - Activity feed: 102 lines
  • - Helper functions: 70 lines
  • ย 
  • Recommended split:
  • 1. components/UserProfile/index.tsx (main component)
  • 2. components/UserProfile/UserInfo.tsx
  • 3. components/UserProfile/ProfileSettings.tsx
  • 4. components/UserProfile/ActivityFeed.tsx
  • 5. components/UserProfile/utils.ts

"line-limit" ์‚ฌ์šฉ ์ค‘์ž…๋‹ˆ๋‹ค. This Python file is getting too long at 350 lines

์˜ˆ์ƒ ๊ฒฐ๊ณผ:

  • Line count check: 350 lines
  • WARNING: Approaching the 300 maximum limit
  • ย 
  • Current structure:
  • - Data models: 80 lines
  • - Core logic: 150 lines
  • - Helper functions: 70 lines
  • - Constants: 50 lines
  • ย 
  • Recommended modularization:
  • 1. models.py (data models)
  • 2. core.py (business logic)
  • 3. helpers.py (utility functions)
  • 4. constants.py (configuration)

๋ณด์•ˆ ๊ฐ์‚ฌ

์•ˆ์ „
v5 โ€ข 1/17/2026

Documentation-only skill with no executable code. Contains only markdown files describing line limit enforcement and modularization patterns. All 68 static findings are false positives: the 'backtick execution' detections are markdown code block syntax, 'weak cryptographic algorithm' references are JSON line numbers, and 'hardcoded URL' is repository metadata. No security risks present.

3
์Šค์บ”๋œ ํŒŒ์ผ
495
๋ถ„์„๋œ ์ค„ ์ˆ˜
3
๋ฐœ๊ฒฌ ์‚ฌํ•ญ
5
์ด ๊ฐ์‚ฌ ์ˆ˜

ํ’ˆ์งˆ ์ ์ˆ˜

41
์•„ํ‚คํ…์ฒ˜
100
์œ ์ง€๋ณด์ˆ˜์„ฑ
85
์ฝ˜ํ…์ธ 
21
์ปค๋ฎค๋‹ˆํ‹ฐ
100
๋ณด์•ˆ
91
์‚ฌ์–‘ ์ค€์ˆ˜

๋งŒ๋“ค ์ˆ˜ ์žˆ๋Š” ๊ฒƒ

Code Review Checks

Automatically flag oversized files during reviews and suggest proper modularization strategies.

Enforce Project Standards

Maintain consistent file size limits across your codebase to improve readability and maintainability.

Learn Modularization

Get guided assistance on how to properly structure and organize large code files step by step.

์ด ํ”„๋กฌํ”„ํŠธ๋ฅผ ์‚ฌ์šฉํ•ด ๋ณด์„ธ์š”

Basic File Check
Check the line count of src/components/Dashboard.tsx and tell me if it needs modularization
Review with Limits
Review this code file and check if it exceeds the recommended line limits: src/utils/helpers.js
Modularize Request
This file is too long at 450 lines. Please modularize src/services/api.ts following best practices
New File Creation
Create a new React component but keep it under 200 lines by splitting into logical sub-components

๋ชจ๋ฒ” ์‚ฌ๋ก€

  • Keep files under 200 lines for optimal readability and maintenance
  • Group related functionality together when splitting files
  • Use consistent naming conventions across split modules
  • Maintain clear import and export relationships between modules

ํ”ผํ•˜๊ธฐ

  • Splitting files purely to meet line limits without logical separation
  • Creating circular dependencies between split modules
  • Over-fragmenting into single-function files that hurt discoverability
  • Ignoring code cohesion just to reduce line count

์ž์ฃผ ๋ฌป๋Š” ์งˆ๋ฌธ

Which files are exempt from line limits?
Documentation files, config files, test fixtures, Jupyter notebooks, CSS files, and auto-generated files are exempt from line limits.
What happens at exactly 300 lines?
Files at 300 lines trigger a warning. Files with 301 or more lines require mandatory modularization before continuing.
Can I customize the line limits?
The skill uses fixed limits of 200 recommended and 300 maximum lines based on established software engineering best practices.
Will this modify my code automatically?
No, the skill suggests modularization plans but requires your explicit approval before making any code changes.
How does it handle existing import statements?
The skill preserves and properly re-exports all imports when splitting files into multiple modules.
Which programming languages are supported?
Supports major languages including JavaScript, TypeScript, Python, Go, Rust, Java, C, C++, and other source code files.

๊ฐœ๋ฐœ์ž ์„ธ๋ถ€ ์ •๋ณด

์ž‘์„ฑ์ž

Doyajin174

๋ผ์ด์„ ์Šค

MIT

์ฐธ์กฐ

main

ํŒŒ์ผ ๊ตฌ์กฐ

๐Ÿ“ references/

๐Ÿ“„ modularization-guide.md

๐Ÿ“„ SKILL.md