loc-guardian
Enforces per-file lines-of-code limits, flags violations, and provides opus-powered extraction plans.
๐ก๏ธ AgentReady threat assessment
MAESTRO 7-layer threat model + OWASP AIVSS risk score for loc-guardian, derived from its capabilities.
AIVSS 7.4 ยท High
View MAESTRO 7-layer threat model โOverview
A Claude Code plugin that enforces pure lines-of-code limits per file using tokei, flags violations, and generates Opus-powered extraction plans to split oversized files. Runs as a hook on Write/Edit to count LOC and gate changes, giving it a place on the file-write path.
Key features
- Per-file LOC limits via tokei
- Violation flagging on write
- Opus-powered extraction plans
Use cases
- Keep files under size limits
- Plan refactors for oversized files