loc-guardian
loc-guardian
Enforce per-file LOC limits with automated optimization strategies and violation detection
What is loc-guardian?
loc-guardian monitors lines-of-code metrics per file and flags violations against configured limits. It uses Claude Opus to generate extraction and refactoring plans when files exceed thresholds, helping maintain code quality and manageable file sizes.
- Count lines of code per file using tokei-based metrics
- Flag files that exceed configured LOC limits
- Generate automated optimization and extraction strategies via Claude Opus
- Provide refactoring recommendations to reduce file complexity
- Track code quality metrics across your codebase
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
nlpm
Score, check, fix, and test natural-language artifacts across Claude Code, Codex, and Antigravity with tier-aware quality rules.
cc-suite
Bridge Claude Code, Codex CLI, and Antigravity CLI with unified agents and bidirectional delegation.
north-star
System prompt that removes confirmation-seeking, scarcity thinking, and best-practice ceiling constraints from Claude.
claude-english-buddy
English language coach that auto-corrects prompts and tracks improvement for non-native speakers
bureau
Turn AI sessions into a maintained, inspectable knowledge base with append-only logbooks, human-gated review, and dependency tracking.
anthropic-docs
Auto-updated reference skills for Claude, Anthropic API, MCP, and platform features.