PluginBench
Plugin
Maintained
ISC

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@xiaolai

Works with

Agents this plugin has been detected to support.

Claude

Related plugins

nlpm

Active

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

Claude
Codex
124
View repository →

cc-suite

Active

Bridge Claude Code, Codex CLI, and Antigravity CLI with unified agents and bidirectional delegation.

Claude
42
View repository →

north-star

Maintained

System prompt that removes confirmation-seeking, scarcity thinking, and best-practice ceiling constraints from Claude.

Claude
32
View repository →

English language coach that auto-corrects prompts and tracks improvement for non-native speakers

Claude
28
View repository →

bureau

Active

Turn AI sessions into a maintained, inspectable knowledge base with append-only logbooks, human-gated review, and dependency tracking.

Claude
22
View repository →

Auto-updated reference skills for Claude, Anthropic API, MCP, and platform features.

Claude
15
View repository →