loc-guard — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited loc-guard (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Use this skill whenever source files are created, edited, reviewed, or refactored.
The purpose of this skill is not to force tiny files. The purpose is to prevent oversized, hard-to-review, multi-responsibility files.
When a changed or new file triggers the 400 LOC warning:
Run the LOC checker after source edits.
Preferred project-local command:
python3 .agent-tools/loc_guard.py . --config .agent-tools/loc-guard.config.jsonIf the project has not copied the checker into .agent-tools/, run the bundled checker from this skill instead:
python3 skills/loc-guard/scripts/loc_guard.py .In Claude Code, when the skill is installed under ~/.claude/skills/ or .claude/skills/, use Claude's skill-directory variable for the bundled checker:
python3 "${CLAUDE_SKILL_DIR}/scripts/loc_guard.py" .If no warning or failure occurs, no special report is needed.
If a file exceeds 400 counted LOC but stays at or below 600 counted LOC, report one of:
warning accepted with justification: ...or:
split performed because: ...If a file exceeds 600 counted LOC, do not continue as if the task is complete. Either:
Accepting a 400 LOC warning may be reasonable when:
Do not accept a warning merely because:
A file over 600 counted LOC is a failed state for normal handwritten source files.
The user must explicitly approve any exception. Do not infer approval.
Generated, vendored, minified, designer, lock, snapshot, migration, and machine-produced files may be excluded by configuration.
The bundled checker is at:
scripts/loc_guard.pyRecommended project-local copy:
.agent-tools/loc_guard.pyFor the full reusable policy text to copy into AGENTS.md, CLAUDE.md, or another agent instruction file, see:
references/loc-policy.md~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.