line-limit

Solid

Enforce file line count limits (200 recommended, 300 max) for CODE IMPLEMENTATION files only. Use this when reviewing code, creating files, or when files exceed line limits and need modularization.

Data & Documents 335 stars 29 forks Updated today

Install

View on GitHub

Quality Score: 85/100

Stars 20%
84
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
0
Description 5%
100

Skill Content

# Line Limit Enforcement **코드 구현 파일**에 대한 라인 수 제한을 강제하는 스킬입니다. ## Scope > **이 스킬은 코드 구현 파일에만 적용됩니다.** ### ✅ 적용 대상 | 파일 유형 | 확장자 | |----------|--------| | JavaScript/TypeScript | `.js`, `.ts`, `.jsx`, `.tsx` | | Python | `.py` | | Go | `.go` | | Rust | `.rs` | | Java/Kotlin | `.java`, `.kt` | | C/C++ | `.c`, `.cpp`, `.h` | | 기타 실행 코드 | 언어별 소스 파일 | ### 🚫 예외 (적용 제외) | 파일 유형 | 확장자/위치 | 사유 | |----------|------------|------| | Jupyter Notebook | `.ipynb` | 셀 기반 구조, 출력 포함 | | 스킬 파일 | `SKILL.md` | 문서/가이드 (500줄까지 허용) | | 문서 파일 | `.md`, `.mdx` | 문서는 길어도 무방 | | 설정 파일 | `.json`, `.yaml`, `.toml` | 구조적 데이터 | | 테스트 픽스처 | `fixtures/`, `__mocks__/` | 테스트 데이터 | | 자동 생성 파일 | `*.generated.*`, `*.g.*` | 수동 관리 X | | 타입 정의 | `.d.ts` | 선언 파일 | | CSS/스타일 | `.css`, `.scss` | 스타일시트 | ## Rules | 상태 | 라인 수 | 조치 | |------|---------|------| | ✅ OK | 0-200 | 정상 | | ⚠️ WARNING | 201-300 | 권장 리팩토링 | | 🔴 VIOLATION | 301+ | **필수 분리** | ## When This Skill Activates - 새 파일 작성 시 라인 수 체크 - 코드 리뷰 요청 시 - "파일이 너무 길어", "모듈화 해줘" 등 요청 시 - 300줄 초과 파일 발견 시 ## Enforcement Workflow ### 1. 라인 수 체크 ```bash wc -l <file> ``` ### 2. 상태 판정 ``` if lines <= 200: ✅ OK elif lines <= 300: ⚠️ WARNING - 리팩토링 권장 else: 🔴 VIOLATION - 분리 필수 ``` ### 3. 위반 시 조치 **🔴 300줄 초과 파일 발견 시 반드시:** 1. 파일 구조 분석 (함수/클래스/섹션 파악) 2. 분리 가능한 단위 식별: - 유틸리티 함수 → `utils/` 또는 `helpers/` - 타입 정의 → `types/` 또는 `*.types.ts` - 상수/설정 → `constants/` 또는 `config/` - 하위 컴포넌트 → `components/` - 훅 → `hooks/` 3. 분리 계획 제시 4. 사용자 승인 후 리팩토링 실행 ...

Details

Author
aiskillstore
Repository
aiskillstore/marketplace
Created
5 months ago
Last Updated
today
Language
Python
License
None

Similar Skills

Semantically similar based on skill content — not just same category

Data & Documents Listed

file-granularity-audit

source/rules/common/file-granularity.md の「300/500 行ルール」を全プロジェクトに適用し、超過ファイルの分割候補を提示する。月次運用 or リファクタ前 health check として `/skill file-granularity-audit` で起動。

0 Updated today
ttamakijp
AI & Automation Listed

modularity

This skill should be used when designing, planning, implementing, or reviewing any non-trivial change, or when the user asks to "split this file", "decouple X from Y", "refactor into modules" — enforces small, focused modules so any change fits in context without compaction

5 Updated today
alo-exp
Code & Development Listed

code-review

【代码审查】对代码变更进行多维度审查,输出结构化审查报告。检查正确性、安全性、性能、可维护性、测试覆盖。 触发时机: - 用户要求"review代码"、"审查代码"、"检查代码质量" - PR 提交前的代码自查 - 学习代码审查方法论 与 wo-yao-yan-pai 的区别:wo-yao-yan-pai 是迭代式审查+自动修复循环,本技能专注于单次深度审查报告。

0 Updated 2 days ago
afine907
Code & Development Listed

lint-rules

拡張子別リンター・フォーマッターのコマンド対応表と型チェックルール。他スキルから参照される。

1 Updated today
ozzy-labs
Code & Development Solid

lint-and-validate

MANDATORY: Run appropriate validation tools after EVERY code change. Do not finish a task until the code is error-free.

39,350 Updated today
sickn33