Agent skill

Line Limit

by aiskillstore in aiskillstore/marketplace

Enforce file line count limits (200 recommended, 300 max) for CODE IMPLEMENTATION files only.

MITAuto-check: notes

Install Line Limit

skills CLI
$ npx skills add aiskillstore/marketplace --skill line-limit -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install aiskillstore/marketplace line-limit --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/aiskillstore/marketplace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/doyajin174/line-limit .claude/skills/line-limit && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
line-limit
GitHub stars
430
Token cost
~811 tokens
SKILL.md length
235 words
Files
3 (incl. references)
Skills in repo
1,044
Repo updated
First seen
Licence
MIT

At a glance

Enforce file line count limits (200 recommended, 300 max) for CODE IMPLEMENTATION files only.

  • Works in 3 steps: 라인 수 체크 → 상태 판정 → 위반 시 조치
  • SKILL.md covers Scope, Rules, When This Skill Activates and Enforcement Workflow, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Line Limit is an agent skill from aiskillstore/marketplace. 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.

Its SKILL.md is about 810 tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/modularization-guide.md` and `skill-report.json`).

The repository describes itself as: Security-audited skills for Claude, Codex & Claude Code. One-click install, quality verified. The licence is MIT.

Example prompts

  • “/line-limit”

Requirements

  • Python 3
  • Pre-approved tools (allowed-tools): Read, Glob, Grep, Edit, Write, Bash

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. 라인 수 체크
  2. 상태 판정
  3. 위반 시 조치

What it can do on your machine

Read from SKILL.md and the folder at commit 755bc35. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Glob
    • Grep
    • Edit
    • Write
    • Bash

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are bash).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Line Limit loads about 811 tokens when it runs, and up to ~1.6k if it reads all its reference files. Until then it costs about 52 tokens; SKILL.md has 235 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~52
When it runs · the whole SKILL.md, loaded when a task matches
~811
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Read, Glob, Grep, Edit, Write, Bash

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from aiskillstore/marketplace at commit 755bc35, republished under its MIT licence (© aiskillstore). 235 words, ~811 tokens.

Download SKILL.mdSave it as .claude/skills/line-limit/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
line-limit
description
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.
allowed-tools
Read, Glob, Grep, Edit, Write, Bash
license
MIT
metadata.author
antigravity-team
metadata.version
1.0

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

상태라인 수조치
✅ OK0-200정상
⚠️ WARNING201-300권장 리팩토링
🔴 VIOLATION301+필수 분리

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. 사용자 승인 후 리팩토링 실행

Modularization Patterns

React/TypeScript
# Before (500 lines)
src/components/Dashboard.tsx

# After
src/components/Dashboard/
├── index.tsx          # Main component (< 200 lines)
├── DashboardHeader.tsx
├── DashboardStats.tsx
├── DashboardChart.tsx
├── hooks/
│   └── useDashboardData.ts
├── types.ts
└── constants.ts
General Functions
# Before (400 lines)
src/utils/helpers.ts

# After
src/utils/
├── index.ts           # Re-exports
├── string.utils.ts
├── date.utils.ts
├── array.utils.ts
└── validation.utils.ts

Examples

Example 1: 코드 리뷰 시
User: 이 파일 리뷰해줘 - src/services/api.ts

Claude: [파일 읽기 후]
📊 라인 수 체크: 342 lines
🔴 VIOLATION: 300줄 초과 - 모듈화 필요

분석 결과:
- API 엔드포인트 함수: 15개 (240 lines)
- 타입 정의: 12개 (45 lines)
- 헬퍼 함수: 5개 (57 lines)

권장 분리:
1. api/endpoints/ - 엔드포인트별 분리
2. api/types.ts - 타입 정의 추출
3. api/helpers.ts - 헬퍼 함수 추출

분리를 진행할까요?
Example 2: 새 파일 작성 시
User: 대시보드 컴포넌트 만들어줘

Claude: [작성 중 200줄 도달 시]
⚠️ WARNING: 200줄 도달 - 분리 권장

현재 구조:
- DashboardHeader (40 lines)
- DashboardStats (60 lines)
- DashboardChart (80 lines)
- hooks (20 lines)

각 섹션을 별도 파일로 분리하면서 계속 진행할까요?
Example 3: 모듈화 요청
User: 이 파일 너무 길어, 정리해줘

Claude: [line-limit 스킬 활성화]
📊 현재: 456 lines
🔴 VIOLATION: 156줄 초과

[분석 및 분리 계획 제시...]

References

상세 모듈화 가이드: references/modularization-guide.md

© aiskillstore, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (references) in skills/doyajin174/line-limit of aiskillstore/marketplace.

  • SKILL.md
  • references/modularization-guide.md
  • skill-report.json

Open the folder on GitHubat commit 755bc35

Compare with similar skills

Line Limit next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Line Limit compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Line Limit this skillaiskillstore/marketplace430—~811Automated safety check: NotesMIT
Implementing API Abuse Detection With Rate Limitingmukul975/Anthropic-Cybersecurity-Skills34k—~3.4kAutomated safety check: PassApache-2.0
Web3 Rate Limiting Circuit Breakersickn33/agentic-awesome-skills47k1 repos~1.4kAutomated safety check: PassMIT
Limitsparcadei/Continuous-Claude-v33.9k1 repos~318Automated safety check: NotesMIT
Performing API Rate Limiting Bypassmukul975/Anthropic-Cybersecurity-Skills34k—~4.4kAutomated safety check: PassApache-2.0
Recommendagenticnotetaking/arscontexta3.5k—~5.1kAutomated safety check: PassMIT

Similar skills

  • Implementing API Abuse Detection With Rate Limiting

    mukul975/Anthropic-Cybersecurity-Skills

    Implements API abuse detection using token bucket, sliding window, and fixed window rate-limiting algorithms backed by Redis, including adaptive limits that tighten during detected attacks and relax…

    34k GitHub stars~3.4k tokensUpdated 1 mo ago
    Backend & APIsAuto-check passed
  • Web3 Rate Limiting Circuit Breaker

    sickn33/agentic-awesome-skills

    On-chain and relayer rate-limiting circuit breaker register: throughput thresholds, emergency pause triggers, and multi-sig recovery.

    47k GitHub starsUsed in 1 repo~1.4k tokens
    Backend & APIsAuto-check passed
  • Limits

    parcadei/Continuous-Claude-v3

    Problem-solving strategies for limits in real analysis. An agent skill from parcadei/Continuous-Claude-v3.

    3.9k GitHub starsUsed in 1 repo~318 tokens
    Research & ScienceAuto-check: notes
  • Performing API Rate Limiting Bypass

    mukul975/Anthropic-Cybersecurity-Skills

    Tests API rate limiting for bypass vulnerabilities using Python (requests/aiohttp) and Burp Suite Turbo Intruder to manipulate headers (e.g.

    34k GitHub stars~4.4k tokensUpdated 1 mo ago
    Backend & APIsAuto-check passed
  • Recommend

    agenticnotetaking/arscontexta

    Get research-backed architecture advice for your knowledge system.

    3.5k GitHub stars~5.1k tokensUpdated 7 mo ago
    Auto-check passed
  • Enforce AIRI's testing and Vitest practices in the AIRI monorepo.

    50k GitHub stars~951 tokensUpdated today
    Testing & QAAuto-check passed

More from aiskillstore/marketplace

All 1,044 skills in this repo
  • Code Stats

    aiskillstore/marketplace

    Analyze codebase with tokei (fast line counts by language) and difft (semantic AST-aware diffs).

    430 GitHub starsUsed in 1 repo~697 tokens
    Auto-check: notes
  • Data Processing

    aiskillstore/marketplace

    Process JSON with jq and YAML/TOML with yq. An agent skill from aiskillstore/marketplace.

    430 GitHub starsUsed in 1 repo~720 tokens
    Auto-check: notes
  • Doc Scanner

    aiskillstore/marketplace

    Scans for project documentation files (AGENTS.md, CLAUDE.md, GEMINI.md, COPILOT.md, CURSOR.md, WARP.md, and 15+ other formats) and synthesizes guidance.

    430 GitHub starsUsed in 1 repo~644 tokens
    Auto-check: notes
  • File Search

    aiskillstore/marketplace

    Modern file and content search using fd, ripgrep (rg), and fzf.

    430 GitHub starsUsed in 1 repo~598 tokens
    Auto-check: notes
  • Find Replace

    aiskillstore/marketplace

    Modern find-and-replace using sd (simpler than sed) and batch replacement patterns.

    430 GitHub starsUsed in 1 repo~527 tokens
    Auto-check: notes
  • Project Planner

    aiskillstore/marketplace

    Detects stale project plans and suggests session commands. An agent skill from aiskillstore/marketplace.

    430 GitHub starsUsed in 1 repo~504 tokens
    Auto-check passed

Questions about Line Limit

What does Line Limit do?

Enforce file line count limits (200 recommended, 300 max) for CODE IMPLEMENTATION files only. Line Limit is an agent skill from aiskillstore/marketplace. Enforce file line count limits (200 recommended, 300 max) for CODE IMPLEMENTATION files only.

How do I install Line Limit in Claude Code?

Run `npx skills add aiskillstore/marketplace --skill line-limit -a claude-code`. Or copy the skill folder (skills/doyajin174/line-limit in aiskillstore/marketplace) into .claude/skills/line-limit in your project. Claude Code loads it when a task matches its description.

How do I install Line Limit in Codex?

Run `npx skills add aiskillstore/marketplace --skill line-limit -a codex`. Or copy the skill folder (skills/doyajin174/line-limit in aiskillstore/marketplace) into .agents/skills/line-limit in your project. Codex loads it when a task matches its description.

Can I use Line Limit in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add aiskillstore/marketplace --skill line-limit -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/line-limit, .gemini/skills/line-limit, .github/skills/line-limit and .opencode/skills/line-limit in your project.

What does Line Limit need to run?

SKILL.md names no scripts, command-line tools or credentials: Line Limit is instructions for the agent only. Our summary lists: Python 3. Its frontmatter pre-approves these tools: Read, Glob, Grep, Edit, Write, Bash.

Does Line Limit access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Line Limit safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Line Limit use?

Line Limit is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Line Limit use?

About 811 tokens (SKILL.md is roughly 3.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 763 tokens, read only when the agent opens those files.

What are the alternatives to Line Limit?

Skills that share tags, products or a category with Line Limit: Implementing API Abuse Detection With Rate Limiting (mukul975/Anthropic-Cybersecurity-Skills, 34k stars), Web3 Rate Limiting Circuit Breaker (sickn33/agentic-awesome-skills, 47k stars), Limits (parcadei/Continuous-Claude-v3, 3.9k stars) and Performing API Rate Limiting Bypass (mukul975/Anthropic-Cybersecurity-Skills, 34k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Line Limit?

aiskillstore (a GitHub organization) maintains it in aiskillstore/marketplace, which has 430 GitHub stars. The repository holds 1,044 skills in this directory. The repository was last updated on October 9, 2026.

Source: aiskillstore/marketplace on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.