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.
์คํฌ ZIP ๋ค์ด๋ก๋
Claude์์ ์ ๋ก๋
์ค์ โ ๊ธฐ๋ฅ โ ์คํฌ โ ์คํฌ ์ ๋ก๋๋ก ์ด๋
ํ ๊ธ์ ์ผ๊ณ ์ฌ์ฉ ์์
ํ ์คํธํด ๋ณด๊ธฐ
"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)
๋ณด์ ๊ฐ์ฌ
์์ 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.
์ํ ์์ธ
โ๏ธ ์ธ๋ถ ๋ช ๋ น์ด (58)
๐ ๋คํธ์ํฌ ์ ๊ทผ (1)
๐ ํ์ผ ์์คํ ์ก์ธ์ค (1)
ํ์ง ์ ์
๋ง๋ค ์ ์๋ ๊ฒ
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.
์ด ํ๋กฌํํธ๋ฅผ ์ฌ์ฉํด ๋ณด์ธ์
Check the line count of src/components/Dashboard.tsx and tell me if it needs modularization
Review this code file and check if it exceeds the recommended line limits: src/utils/helpers.js
This file is too long at 450 lines. Please modularize src/services/api.ts following best practices
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