lfe-perf-check

lfe-perf-check is a skill for Claude Code, Codex from StChiotis/Library-First-Engineering. It costs 72 tokens per session (1,058 once invoked), scanned A, original, MIT.

A read-only review of code changes for common performance problems, such as leaked resources, repeated database queries, unbounded growth, or inefficient algorithms.

In plain words
What is it for?
Use it as part of the Inspector review after a code slice is built; its findings are saved for inclusion in the overall critique.
Why use it?
It provides an early check for likely slowdowns or resource waste without requiring a profiler or benchmark setup.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it as part of the Inspector review after a code slice is built; its findings are saved for inclusion in the overall critique.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/stchiotis/library-first-engineering/lfe-perf-check
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.

Any agent
npx skills add StChiotis/Library-First-Engineering --skill lfe-perf-check
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-perf-check

README.md
[![agentmods](https://agentmods.dev/badge/skills/stchiotis/library-first-engineering/lfe-perf-check/github.svg)](https://agentmods.dev/skills/stchiotis/library-first-engineering/lfe-perf-check)
Your own site
<a href="https://agentmods.dev/skills/stchiotis/library-first-engineering/lfe-perf-check"><img src="https://agentmods.dev/badge/skills/stchiotis/library-first-engineering/lfe-perf-check/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for lfe-perf-check

Your own site · 80×15
<a href="https://agentmods.dev/skills/stchiotis/library-first-engineering/lfe-perf-check"><img src="https://agentmods.dev/badge/skills/stchiotis/library-first-engineering/lfe-perf-check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,058 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00072 $0.01058
Opus 5.5 $0.00029 $0.00423
Sonnet 5.5 $0.00014 $0.00212
Haiku 4.5 $0.00007 $0.00106

Measured 3mo ago against content hash 5e18659f1734, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

lfe-perf-check 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 3mo 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-perf-check/SKILL.md · 94 lines

How it starts

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

LFE Performance Check — Prompt-Based Anti-Pattern Analysis

Position in Pipeline

  • Phase: 3 (Inspector sub-skill)
  • Persona: Inspector (read-only; no src/ writes)
  • Trigger: Invoked by /lfe-inspector Sub-Skill Dispatch when lfe-perf-check: true in .docs/quality/inspector-config.md
  • Output: .plans/checks/perf_findings.md — aggregated by Inspector into critique.md

Mission

Detect performance anti-patterns introduced by the current implementation through structured LLM reasoning over the diff. Findings are advisory unless a pattern is provably unbounded (e.g. O(n²) in a hot path with no upper bound on n).

Hard Rules

  1. Dispatch Context Required (refuse direct invocation): This skill is dispatched by /lfe-inspector Step 6 — it is not a Brain-typeable skill (per LLM_AGENT_GUIDE.md §8.8 Skill Invocation Authority). If invoked without .plans/builder_done.md for the current slice, halt immediately and reply: "/lfe-perf-check is an Inspector sub-skill dispatched by /lfe-inspector. It cannot be run standalone. Run /lfe-inspector — the dispatcher will invoke this sub-skill if it is enabled in .docs/quality/inspector-config.md (or via an ## Inspector Overrides section in active_plan.md)." Direct invocation produces orphaned findings files and breaks the Inspector's aggregation logic.
  2. Prompt-Only: No profiling tools, no benchmarks, no execution. Reasoning over code only.
  3. Diff-Scoped: Analyse only files listed in builder_done.md; skip unchanged code.
  4. Severity: Critical (provably unbounded, certain production impact) / High (likely hot-path) / Medium (probable overhead) / Low (style concern).
  5. Cite Line: Every finding quotes the specific pattern from the code.

Inputs

  1. .plans/builder_done.md — list of changed files
  2. .plans/active_plan.md — domain context and scope boundary
  3. .docs/domain/ — domain rules that might imply expected data volumes

Workflow

Step 1: Extract Diff Scope

From builder_done.md, identify and read modified files.

Read the full file on GitHub · 94 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. 3mo ago First seen · 94 lines · 72 tokens per session scan A 5e18659f1734

Subscribe to this mod's changes

lfe-perf-check is a skill published in the GitHub repository StChiotis/Library-First-Engineering (44 stars, last pushed 4mo ago), licensed MIT. It adds 72 tokens to every session and 1,058 once invoked, about $0.0003 per session on Opus 5.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

lfe-perf-check compared with skills from other repositories

lfe-perf-check next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
lfe-perf-checkStChiotis/Library-First-EngineeringSkill444mo agoMITA72Claude Code, Codex
discount-reviewpromptfoo/promptfooSkill28kyesterdayMITA18Claude Code, Codex
code-reviewpromptfoo/promptfooSkill28kyesterdayMITA11Claude Code
deep-reviewAnastasiyaW/codex-claude-code-configSkill2182d agoMITA180Claude Code
anti-sloproedyrustam/vibes-plugSkill132todayMITA41Cursor
living-codebase-ast-graphroedyrustam/vibes-plugSkill132todayMITA34Cursor
legacy-code-translatorroedyrustam/vibes-plugSkill132todayMITA37Cursor