From loc-guardian
Use when analyzing files that exceed pure LOC limits, or when suggesting code optimization opportunities to reduce file size.
How this skill is triggered — by the user, by Claude, or both
Slash command
/loc-guardian:loc-optimizationThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
The `/loc-guardian:init` command creates this file. Format:
.claude/loc-guardian.local.mdThe /loc-guardian:init command creates this file. Format:
---
max_pure_loc: 350
---
Followed by a markdown body containing the project's extraction rules — user-defined, project-specific patterns for how to split oversized files. Example format:
## Extraction Rules
- [What to extract] → `[target file naming convention]`
- [What to extract] → `[target file naming convention]`
The actual rules vary by project and are written by the user during init. The agent MUST read this file and use the user's extraction rules verbatim when making suggestions. If the file has no extraction rules in the body, fall back to generic patterns (see below).
Use these ONLY when the project has no extraction rules configured:
Whole-repo audit for over-engineering: finds dead code, unnecessary abstractions, stdlib-replaceable dependencies. Outputs ranked findings and net line/dep savings.
npx claudepluginhub xiaolai/claude-plugin-marketplace --plugin loc-guardian