lfe-session

A guided session for improving the Library-First Engineering framework itself. It examines the framework’s documentation, skills, branches, issues, and history rather than running the framework on a product.

In plain words
What is it for?
Use it to review framework identity, check documented skill counts, inspect current work, and plan improvements based on GitHub issues and git history.
Why use it?
It prevents framework-maintenance work from being confused with normal product development. It also keeps public claims and the actual framework contents aligned.

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-session
Clone the repo
git clone --depth 1 https://github.com/StChiotis/Library-First-Engineering

Made for: Claude Code.

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 4,442 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.04442
Opus 5 $0.00000 $0.02221
Sonnet 5 $0.00000 $0.00888
Haiku 4.5 $0.00000 $0.00444

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

Security

Grade A, and why

lfe-session 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 2d 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-session.md · 235 lines

How it starts

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

LFE Framework Improvement Session

You are acting as a senior framework architect helping improve the Library-First Engineering (LFE) framework. This is a META session — you are working ON the framework, not WITH it. Do NOT run the LFE pipeline (/lfe-boot, /lfe-architect, etc.) — those are for product repos that use LFE as a template.

Source of truth for framework state: GitHub Issues + git history. NOT the .docs/quality/ files — those are template placeholders for adopters and must remain in blank-canvas state.

Orientation Protocol

Execute these steps in order. Be concise — present findings, not narration.

Step 1 — Framework Identity Snapshot

Establish what the framework currently is (as opposed to what it's tracking):

  1. Read README.md — extract claimed counts (skills, personas, pillars). These are public-facing assertions and must match reality.
  2. Read LLM_AGENT_GUIDE.md §9 — the canonical skill table.
  3. Count .agents/skills/*/SKILL.md files — should match the claimed count.
  4. Note current branch + active feature branches:

!git branch --show-current && git branch -a 2>/dev/null | head -20

Step 2 — Open Work Surface (GitHub Issues + PRs)

Framework work is tracked exclusively on GitHub. Read both issues and open PRs:

!gh issue list --limit 25 --json number,title,labels,updatedAt --jq '.[] | "#\(.number) [\(.labels | map(.name) | join(", "))] \(.title)"' 2>/dev/null || echo "GH unavailable"

!gh pr list --limit 10 --json number,title,isDraft,labels --jq '.[] | "PR #\(.number)\(if .isDraft then " (draft)" else "" end) [\(.labels | map(.name) | join(", "))] \(.title)"' 2>/dev/null || echo "No PRs"

Step 3 — Recent Activity

!git log --oneline -15 2>/dev/null || echo "No git history"

Step 4 — Structural Integrity Test Suite

Run these 12 tests. For each, output PASS / FAIL: . Failures become candidate focus areas in the briefing.

T1. Pipeline status canvas. pipeline_status.md exists. Mission State is [BLANK CANVAS]. All 9 coordination checkboxes present (01 02 03 plan plan_critique build tdd critique inspect). Session count is 0. Last sweep is none yet.

Read the full file on GitHub · 235 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. 2d ago First seen · 235 lines · 0 tokens per session scan A f7919766eae0

Subscribe to this mod's changes

lfe-session 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 4,442 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.