lfe-improve-architecture

lfe-improve-architecture is a skill for Claude Code, Codex from StChiotis/Library-First-Engineering. It costs 43 tokens per session (772 once invoked), scanned A, original, MIT.

A codebase review that looks for shallow modules—pieces of code whose interface hides little of the actual work—and opportunities to make them more useful.

In plain words
What is it for?
Use it during scheduled repository hygiene work to inspect module interfaces, seams, adapters, depth, leverage, and locality.
Why use it?
It helps reduce repeated complexity and gives maintainers clearer places to change behavior without editing many callers.

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 during scheduled repository hygiene work to inspect module interfaces, seams, adapters, depth, leverage, and locality.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/stchiotis/library-first-engineering/lfe-improve-architecture.svg)](https://agentmods.dev/skills/stchiotis/library-first-engineering/lfe-improve-architecture)
Your own site
<a href="https://agentmods.dev/skills/stchiotis/library-first-engineering/lfe-improve-architecture"><img src="https://agentmods.dev/badge/skills/stchiotis/library-first-engineering/lfe-improve-architecture.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 772 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.00043 $0.00772
Opus 5 $0.00022 $0.00386
Sonnet 5 $0.00009 $0.00154
Haiku 4.5 $0.00004 $0.00077

Measured 8d ago against content hash 7417ed759963, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

lfe-improve-architecture 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 8d 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-improve-architecture/SKILL.md · 69 lines

How it starts

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

LFE Improve Architecture

Position in Pipeline

  • Phase: 5 (Hygiene sub-pipeline, Step 2)
  • Persona: Architect
  • Trigger: Scheduled every 5 sessions (tracked in pipeline_status.md)

Vocabulary

Use these terms exactly; keep "component," "service," "API," and "boundary" out of architectural suggestions. See LANGUAGE.md for full definitions.

  • Module — anything with an interface and an implementation
  • Interface — everything a caller must know to use the module
  • Implementation — the code inside
  • Depth — leverage at the interface: a lot of behavior behind a small interface
  • Seam — where an interface lives; a place behavior can be altered without editing in place
  • Adapter — a concrete thing satisfying an interface at a seam
  • Leverage — what callers get from depth
  • Locality — what maintainers get from depth

Key Principles

  • Deletion test: imagine deleting the module. If complexity vanishes, it was a pass-through. If complexity reappears across N callers, it was earning its keep.
  • The interface is the test surface.
  • One adapter = hypothetical seam. Two adapters = real seam.

Process

1. Explore

Read the project's domain glossary (CONTEXT.md) and any ADRs first.

Then walk the codebase organically and note friction:

  • Where does understanding one concept require bouncing between many small modules?
  • Where are modules shallow — interface nearly as complex as the implementation?
  • Where have pure functions been extracted just for testability, but real bugs hide in how they're called?
  • Where do tightly-coupled modules leak across their seams?
  • Which parts are untested, or hard to test through their current interface?

Apply the deletion test to anything suspected shallow.

2. Present candidates

Numbered list of deepening opportunities. For each:

  • Files — which files/modules are involved
  • Problem — why the current architecture causes friction
  • Solution — plain English description of what would change
  • Benefits — in terms of locality and leverage, and how tests would improve

Read the full file on GitHub · 69 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 8d ago First seen · 69 lines · 43 tokens per session scan A 7417ed759963

Subscribe to this mod's changes

lfe-improve-architecture is a skill published in the GitHub repository StChiotis/Library-First-Engineering (43 stars, last pushed 1mo ago), licensed MIT. It adds 43 tokens to every session and 772 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

discount-review

Inspect the discount policy fixture with a repeatable review checklist and helper script.

promptfoo/promptfoo · 18 tokens

code-review

Reviews code for bugs, security issues, and best practices.

promptfoo/promptfoo · 11 tokens

refactor-advisor

A code review helper that finds common design and maintenance problems in a codebase and suggests ways to restructure the code.

laolaoshiren/claude-code-skills-zh · 22 tokens

deep-review

Parallel competency-based code review. Launches independent Agent reviewers per competency (security, performance, architecture, database, concurrency, error-handling, frontend, testing), each with a focused checklist and isolated context. Synthesizes findings into unified report with FIX/DEFER/ACCEPT triage. Use…

AnastasiyaW/codex-claude-code-config · 180 tokens

openclaw-github-dedupe

Investigate a cluster of GitHub issues and PRs, determine canonical candidates, post duplicate/related status, preserve contributor credit, and execute cleanup actions. Supports autonomous mode for provided-link-only closeout, merge/fix follow-through, changelog, and post-merge issue/PR cleanup.

vincentkoc/dotskills · 68 tokens

pr-reviewer

Reviews a diff or security scope read-only using evidence-tiered findings, structural and context-error rubrics, and repository review policy. Use when asked to "review my changes", "structural review", "review for AI patterns", or "security audit". For applying fixes use tidy; for UI defects use ui-design.

mblode/agent-skills · 68 tokens