codex

loc-guardian

Per-file pure-LOC limits for Codex: $loc-guardian-scan counts with tokei through a tested reducer script (no model arithmetic), flags files over the limit with per-glob overrides and ignores, and proposes extractions whose savings are measured with tokei; $loc-guardian-init sets the limit and extraction rules.

0 on GitHubby xiaolaiv0.4.1ISCupdated 1 month agoCoding

Plugin loc-guardian in xiaolai/codex-marketplace. Commands read from the repo's manifest — 1 month ago.

What it installs

Skills (8)

  • loc-guardian-counter

    Count lines of code and produce the loc-guardian LOC report with per-file limit enforcement, for all languages or one (e.g. python). The counting step of $loc-guardian-scan. Not for suggesting how to shrink over-limit files; that is $loc-guardian-optimizer.

  • loc-guardian-init

    Initialize loc-guardian for this project — set the per-file pure-LOC limit and project-specific extraction rules in .claude/loc-guardian.local.md.

  • loc-guardian-loc-optimization

    Shrinking files over the pure LOC limit: config format, extraction patterns.

  • loc-guardian-loc

    LOC counting with tokei: metrics, limits, reading and checking loc-guardian reports.

  • loc-guardian-optimizer

    Analyze files over the pure-LOC limit and propose concrete extractions with measured line savings; given only warning-zone (WARN) files, a lighter pass with one candidate per file. Consumes a $loc-guardian-counter report. Not for counting lines (use $loc-guardian-counter) or a warnings-only scan, wh

  • loc-guardian-scan

    Count pure LOC, enforce per-file limits, and get measured optimization strategies for over-limit files. Optional arguments: a language (e.g. typescript) and paths. Entry point for loc-guardian in Codex.

  • loc-optimization

    Shrinking files over the pure LOC limit: config format, extraction patterns.

  • loc

    LOC counting with tokei: metrics, per-file limits, report formats.

Slash commands (2)

  • /loc-guardian:init

    Initialize loc-guardian for this project — set LOC limit and extraction rules.

  • /loc-guardian:scan

    Count LOC, enforce per-file limits, get optimization strategies.

Subagents (2)

  • counter

    Use this agent to count lines of code and produce LOC statistics reports with file size limit enforcement, for all languages or filtered to one (for example /loc-guardian:scan python). Not for suggesting how to shrink over-limit files; that is the optimizer agent's job. <example> Context: User wants

  • optimizer

    Use this agent to analyze over-limit files and provide concrete optimization strategies. This agent is called by the scan command when files exceed the pure LOC limit. It reads the actual file contents and suggests specific extractions; invoked directly with only warning-zone (WARN) files, it runs a

View source on GitHub

More from xiaolai/codex-marketplace

All 10 plugins →

TDD discipline for Codex: per-lane gates (unit/integration/e2e/contract), spec-strength levels S1-S6 with property tooling, adversarial spec review, red receipts, per-path critical thresholds, 9-format coverage merging and mutation testing, as 11 workflow skills ($tdd-guardian-init, -plan, -design-tests, -implement, -gate, -workflow, ...). A PreToolUse hook denies git commit/push until the gating lanes are fresh; Claude Code's TaskCompleted auto-gate has no Codex event, so $tdd-guardian-gate runs those lanes.

32 skills · 16 commands · 7 agents · hooks

0

Documentation quality and freshness for Codex: $docs-guardian-audit checks staleness, accuracy, coverage and quality into one report with a fixing plan; $docs-guardian-coverage finds undocumented public APIs; $docs-guardian-generate writes missing docs in the project's framework format (Markdown, MkDocs, VitePress, Docusaurus, Sphinx). A PreToolUse hook warns on, or blocks, code-only commits.

35 skills · 5 commands · 5 agents · hooks

0

nlpm

codex

Natural-Language Programming reference knowledge as Codex skills — the 50 Rules, the 100-point scoring rubric, per-tool conventions (Claude Code / Codex CLI / Antigravity), anti-patterns, vocabulary discipline, and authoring guides. Knowledge skills, not commands: load $nlpm-rules + $nlpm-scoring to score an artifact, $nlpm-conventions-codex for the Codex skill layout. The interactive /nlpm:* linting commands remain a Claude Code plugin; cross-tool deterministic checks use the standalone bin/nlpm-check.

17 skills · 15 commands · 8 agents · hooks

0

English coach for non-native speakers: a UserPromptSubmit hook shows the corrected English of each prompt, translates prompts in other languages, and refines :: prompts, and Codex works from the clean version. Corrections are logged locally for $claude-english-buddy-today, -stats, -mistakes and -drill; $claude-english-buddy-review and -preview check any text for grammar, tone and clarity. The hook calls Claude Haiku with your own Anthropic credentials and runs once you trust it with /hooks.

23 skills · 10 commands · 4 agents · hooks

0

Personal IT guy for non-technical macOS users — checkups, safe cleanup, undoable file organising, evidence-first diagnosis, backups with a restore drill, home network, automation that leaves reusable tools behind, and a tutor grounded in your machine's own numbers. PreToolUse guard and SessionStart digest both run under Codex. macOS only.

8 skills · 12 commands · 4 agents · hooks

0

Recursive governance for Executable Operating Units (EOUs). Faceted classification, generating-EOU constraints, ECP-governed change, no-self-approval. v0.7.0: Stage 0 (captured_workflow + domain_values constitutional layer + Rule 96). v0.8.0: agentic judgment (judgment_authorized flag, value_invocations trace, F14–F17 taxonomy, $audit-judgment skill, Rule 97, counterfactual-swap audit).

14 skills · 1 command

0

Similar plugins

Matt Pocock's agent skills for real engineering (grilling, spec/ticket flows, TDD, code review, domain modelling and more).

39 skills

mattpocock/skills 323,108

superpowers

claudecodex

Core skills library for Claude Code: TDD, debugging, collaboration patterns, and proven techniques

15 skills · hooks

obra/superpowers 316,836

claude-mem

claudecodex

Persistent memory for Claude Code: the next session starts where the last one left off.

29 skills · 1 MCP server · hooks

thedotmack/claude-mem 116,618

career-ops

claudecodex

Open-source AI job search that runs locally in your AI coding CLI: scan job portals, evaluate listings into a structured A-H report with a 1-5 score, tailor your CV, track applications

5 skills · hooks

career-ops-hq/career-ops 82,253

mem0

claudecodex

Cross-session memory and token savings for coding agents.

6 skills · 1 agent · 1 MCP server · hooks

mem0ai/mem0 68,893

context7

claudecodex

Up-to-date documentation lookup. Pull version-specific documentation and code examples directly from source repositories into your coding agent's context.

1 MCP server

upstash/context7 64,709

Maintain loc-guardian?

This page updates itself from your repo. Add the badge to your README, or get it Featured to pin it above the organic results with a followed link to your site.

claude & codex plugins10 plugins