lfe-compete

lfe-compete is a command for Claude Code from StChiotis/Library-First-Engineering. It costs 0 tokens per session (3,196 once invoked), scanned A, original, MIT.

A command for comparing another software framework with Library-First Engineering, a set of practices for organizing libraries, people, logic, and file-based work. It examines whether ideas from the other framework fit those practices.

In plain words
What is it for?
Use it to produce a structured comparison of frameworks, identify meaningful missing coverage, and explain which ideas are worth adopting and why.
Why use it?
It prevents copying features without checking whether they solve a real gap or conflict with the project's principles. It also requires claims about the compared framework to be backed by specific evidence.

Command for Claude Code

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 commands/stchiotis/library-first-engineering/lfe-compete
Clone the repo
git clone --depth 1 https://github.com/StChiotis/Library-First-Engineering

Made for: Claude Code.

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-compete

README.md
[![agentmods](https://agentmods.dev/badge/commands/stchiotis/library-first-engineering/lfe-compete.svg)](https://agentmods.dev/commands/stchiotis/library-first-engineering/lfe-compete)
Your own site
<a href="https://agentmods.dev/commands/stchiotis/library-first-engineering/lfe-compete"><img src="https://agentmods.dev/badge/commands/stchiotis/library-first-engineering/lfe-compete.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,196 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.00000 $0.03196
Opus 5 $0.00000 $0.01598
Sonnet 5 $0.00000 $0.00639
Haiku 4.5 $0.00000 $0.00320

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

Security

Grade A, and why

lfe-compete 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 3d 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.

.claude/commands/lfe-compete.md · 222 lines

How it starts

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

LFE Competitive Analysis

You are acting as a senior framework architect conducting a structured competitive analysis against Library-First Engineering (LFE). The goal is NOT to copy — it's to identify genuine gaps in LFE's coverage and filter them through LFE's own principles to decide what's worth adopting.

Ground Rules

  1. The user leads. They have already personally assessed the target. Your job is to go deep on structural comparison, not to form the initial opinion.
  2. LFE's pillars are the lens. Library System, Persona Sovereignty, Logic Sovereignty, Rolling Window, File-Based Coordination.
  3. Framework-agnostic filter. LFE is language-, LLM-, and IDE-agnostic. Any improvement must preserve this.
  4. Substance over volume. A repo with 50 features LFE lacks is not automatically better. Most likely violate LFE's principles or solve problems LFE intentionally avoids.
  5. Honest about LFE. If the competitor genuinely does something better within LFE's value system, say so. If LFE intentionally chose differently, explain the trade-off.
  6. Evidence required. Every claim about the target must cite a specific file, section, README line, or commit. No assertions without source.
  7. Counterfactual check. For each named LFE strength, ask: "Would this still be a strength if X common assumption broke?" Surface fragile strengths.
  8. Time-box. Analysis depth scales with complexity, not with available time. Stop when each dimension has been answered with evidence.

Analysis Protocol

Phase 1 — Target Acquisition

If the user provided a repo argument, acknowledge it. If not, ask:

"Which repo should I analyze? Give me a URL, GitHub path (owner/repo), or a name to search for."

Phase 2 — User's Assessment First

Before any analysis:

"You've looked at this repo. Before I dive in, tell me:

  1. What caught your eye? What made this worth analyzing?
  2. First impression of strengths — what do they do well?
  3. First impression of gaps — where do you think LFE might be missing something?
  4. Specific focus areas you want me to prioritize?"

Read the full file on GitHub · 222 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. 3d ago First seen · 222 lines · 0 tokens per session scan A 87090cd1bbba

Subscribe to this mod's changes

lfe-compete is a command published in the GitHub repository StChiotis/Library-First-Engineering (43 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,196 tokens. 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.