loc-guardian
loc-guardian
Enforce per-file line-of-code limits with automated optimization strategies
What is loc-guardian?
Loc-Guardian monitors and enforces maximum LOC (lines of code) thresholds on individual files. It counts violations, flags files exceeding limits, and generates Claude-powered refactoring plans to help reduce file complexity.
- Counts lines of code per file using tokei-based metrics
- Flags files exceeding configurable LOC limits
- Generates automated optimization and extraction strategies
- Provides Claude-powered refactoring recommendations
- Integrates with Claude Code for continuous enforcement
How to install loc-guardian
Claude Code install command.
/plugin install loc-guardian@xiaolaiWorks with
Agents this plugin has been detected to support.
Related plugins

mac-it-guy-pro
Personal IT support agent for Mac users—remembers your machine and automates maintenance tasks

mermaid-preview
Auto-preview Mermaid diagrams in your browser as you edit

nlpm
Score, lint, and fix natural-language artifacts across Claude Code, Codex, and Antigravity with tier-aware quality rules.

north-star
System prompt that overrides RLHF defaults: removes confirmation-seeking, scarcity thinking, and best-practice ceilings.

reason-grill
Deep argument interrogation with adversarial analysis and calibrated verdicts.

tdd-guardian
Enforce strict test-driven development with per-lane gates, property testing, and mutation verification across 25+ languages.