lfe-inspector

lfe-inspector is a skill for Claude Code, Codex from StChiotis/Library-First-Engineering. It costs 35 tokens per session (5,189 once invoked), scanned A, original, MIT.

A verification workflow for checking that software matches documented domain rules and expected numerical results. It acts as a second review that looks for regressions and calculation drift.

In plain words
What is it for?
Use it to inspect unfamiliar modules, challenge an implementation, run manual checks, compare outputs with snapshots, and write inspection findings.
Why use it?
It reduces the risk of declaring a change correct based only on appearance or passing assumptions. The workflow requires fresh tests and comparison with known baselines.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/stchiotis/library-first-engineering/lfe-inspector
Any agent
npx skills add StChiotis/Library-First-Engineering --skill lfe-inspector
Clone the repo
git clone --depth 1 https://github.com/StChiotis/Library-First-Engineering

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for lfe-inspector

README.md
[![agentmods](https://agentmods.dev/badge/skills/stchiotis/library-first-engineering/lfe-inspector.svg)](https://agentmods.dev/skills/stchiotis/library-first-engineering/lfe-inspector)
Your own site
<a href="https://agentmods.dev/skills/stchiotis/library-first-engineering/lfe-inspector"><img src="https://agentmods.dev/badge/skills/stchiotis/library-first-engineering/lfe-inspector.svg" alt="Measured on agentmods" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,189 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00035 $0.05189
Opus 5 $0.00017 $0.02594
Sonnet 5 $0.00007 $0.01038
Haiku 4.5 $0.00003 $0.00519

Measured 5d ago against content hash 6b49b8e27f85, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

lfe-inspector scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/lfe-inspector/SKILL.md · 224 lines

How it starts

The opening of the file, as written. The whole thing — 224 lines — stays where its author put it; the contents beside it link to each section on GitHub.

LFE Inspector

Mission

Verify that the implementation matches the domain truth and numerical baselines. You are the "Validator" who ensures no regressions or math drift enter the codebase.

Sub-Pipeline (execute in this order)

  1. /lfe-zoom-out → Orient on unfamiliar modules before verifying
  2. /lfe-inspector (this skill) → Write .plans/critique.md (Devil's Advocate pass) → then write .plans/inspection_report.md
  3. /lfe-diagnose → (conditional) If verification fails, enter diagnosis loop

Toolbox

  • /lfe-zoom-out: Step 1. Use when encountering unfamiliar code areas.
  • /lfe-diagnose: Step 3 (conditional). Use to build a deterministic feedback loop for suspected bugs or regressions.

Hard Rules

  1. Truth Over Vibe: Implementation must match documented domain knowledge exactly.
  2. Numerical Rigor: Verify outputs against validation baselines and snapshots.
  3. No Blind Trust: Run tests manually and inspect raw outputs before declaring success. This is the Inspector's instance of the shared Evidence Discipline (see the section at the end of this skill) — it reinforces that rule: a verification claim earns its place only from the fresh output you ran this session.
  4. File-Based Input (with explicit fallback):
    • Primary: read .plans/tdd_report.md. The Builder's TDD report tells you what was tested and what was refactored.
    • Fallback (LFE-FORCE recovery): if .plans/tdd_report.md does NOT exist AND .docs/quality/PROTOCOL_DEBT.md has at least one unresolved entry, read the latest unresolved Protocol Debt entry instead and verify the hotfix described there directly against src/. Set source: .docs/quality/PROTOCOL_DEBT.md in the inspection report frontmatter — exact full path, because Archivist Step 3.6's matcher keys off this string verbatim. This path is the ONLY way to clear Protocol Debt — the framework MUST stay recoverable here (no deadlock).
    • Hard fail: if neither input exists, halt and ask the human whether to escalate to /lfe-extract-domain (true black box) rather than fabricate a verification.

Read the full file on GitHub · 224 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 224 lines · 35 tokens per session scan A 6b49b8e27f85

Subscribe to this mod's changes

lfe-inspector is a skill published in the GitHub repository StChiotis/Library-First-Engineering (43 stars, last pushed 1mo ago), licensed MIT. It adds 35 tokens to every session and 5,189 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

playwright

Use when the task requires capturing or automating a real browser from the terminal.

openai/openai-agents-python · 19 tokens

ai-engineering-toolkit

6 production-ready AI engineering workflows: prompt evaluation (8-dimension scoring), context budget planning, RAG pipeline design, agent security audit (65-point checklist), eval harness building, and product sense coaching.

sickn33/agentic-awesome-skills · 47 tokens

implementation-final-review

Perform the repository's risk-tiered independent final review before implementation completion. Use only when explicitly invoked or when repository instructions require it after behavior-impacting implementation work; audit the complete task diff, supported contracts, lifecycle and security boundaries, complexity, and…

openai/openai-agents-python · 58 tokens

promptfoo-provider-setup

Configure promptfoo providers or redteam targets for hosted models, live HTTP APIs, Python/JavaScript local scripts, agent SDKs, or multi-input systems. Use when connecting promptfoo to the system under test, mapping vars, auth env vars, request bodies, response transforms, or static-code-derived provider wrappers. Do…

promptfoo/promptfoo · 91 tokens

redteam-plugin-development

Standards for creating redteam plugins and graders. Use when creating new plugins, writing graders, or modifying attack templates.

promptfoo/promptfoo · 29 tokens

search-params

URL search param and hash state management. Use when adding or modifying URL search params, working with useSearchParams, setSearchParams, useSearchParamState, or navigate() with query strings or hash fragments, or fixing browser back/forward button issues.

promptfoo/promptfoo · 55 tokens