lfe-builder

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

An LFE workflow skill for acting as the Builder: the role that implements an approved plan. It writes the planned code and follows rules for core logic, configuration, and separation between business code and external connections.

In plain words
What is it for?
Use it to implement an approved slice, preserve the project's architecture, and run the required follow-up testing workflow.
Why use it?
It keeps implementation tied to the approved plan and reduces accidental features, scattered logic, and hard-coded settings.

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 to implement an approved slice, preserve the project's architecture, and run the required follow-up testing workflow.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/stchiotis/library-first-engineering/lfe-builder/github.svg)](https://agentmods.dev/skills/stchiotis/library-first-engineering/lfe-builder)
Your own site
<a href="https://agentmods.dev/skills/stchiotis/library-first-engineering/lfe-builder"><img src="https://agentmods.dev/badge/skills/stchiotis/library-first-engineering/lfe-builder/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-builder

Your own site · 80×15
<a href="https://agentmods.dev/skills/stchiotis/library-first-engineering/lfe-builder"><img src="https://agentmods.dev/badge/skills/stchiotis/library-first-engineering/lfe-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,723 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.00034 $0.01723
Opus 5.5 $0.00014 $0.00689
Sonnet 5.5 $0.00007 $0.00345
Haiku 4.5 $0.00003 $0.00172

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

Security

Grade A, and why

lfe-builder 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-builder/SKILL.md · 102 lines

How it starts

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

LFE Builder

Mission

Execute the approved plan in .plans/active_plan.md into production-ready code. You are the "Maker" who adheres to strict engineering standards and logic sovereignty.

Sub-Pipeline (execute in this order)

  1. /lfe-builder (this skill) → Implement the plan
  2. /lfe-tdd → Red-green-refactor quality pass on what you just built → writes .plans/tdd_report.md

Toolbox

  • /lfe-tdd: Mandatory Step 2. Run after implementation to validate and refactor.

Hard Rules

  1. Plan Adherence: Implement only the features defined in the active plan.
  2. Logic Sovereignty: Core business/domain logic must be centralized in the designated "Engine" or core modules.
  3. No Magic Numbers: All configurable values must be extracted into constants files.
  4. Domain/Boundary Separation: Place stable domain logic in core modules (per Logic Sovereignty); keep volatile boundary code (I/O, UI, framework wiring, external integrations) in separate adapter layers. The project's engineering-standards.md defines what "core" and "boundary" mean for this project type.
  5. File-Based Input: Read active_plan.md as the source of truth, not conversation context.

Workflow

  1. Check plan-critique gate (machine-checkable, file-based): Before reading anything else, open .plans/plan_critique.md and parse its YAML frontmatter. The gate opens only when one of these is true:

    • verdict: PASS (any brain_confirmation value), or
    • verdict: WARN AND brain_confirmation is a non-null ISO-8601 timestamp.

    Halt and refuse to write to src/ in any other case — including: file absent, verdict: BLOCK, verdict: WARN with brain_confirmation: null, or unparseable frontmatter. Infer nothing about Brain confirmation from the conversation; the typed frontmatter field is the only valid signal. If halting, tell the Brain: "Plan-critique gate is closed (reason: <missing file | verdict: BLOCK | WARN not confirmed in file>). Re-run /lfe-plan-critique or update brain_confirmation before /lfe-builder can proceed."

  2. Review: Read .plans/active_plan.md and engineering-standards.md, then resolve the re-entry mode in this order:

    • Rework re-entry (highest precedence) — if .plans/rework_directive.md exists and its slice: matches active_plan.md's slice:: the Brain rejected this slice at the finalization gate. Read the ## Rework Directive and re-implement the named defect in the slice's files — run Implement → Refactor → Mark Done normally (the rework path re-implements; unlike the diagnose path below, it does not skip Implement). This branch wins over any diagnosis_report.md present. The plan-critique gate (Step 1) keys on plan_critique.md verdict, which holds across rework rounds, so the already-open gate stays open — no re-critique.
    • Diagnosis retry — else if .plans/diagnosis_report.md exists, check its slice: field against active_plan.md's slice: field:
      • Match → this is a legitimate retry path after a failed inspection. /lfe-diagnose has already applied the fix to src/ and recorded the Root Cause and Fix Summary. Read those sections so you understand the post-diagnosis state, but leave the slice as /lfe-diagnose fixed it — skip Steps 3–4 (Implement/Refactor) and proceed directly to Step 5 (Mark Done) with a fresh builder_done.md whose ## Files Touched reflects the diagnose-applied fix and whose ## Notes for TDD flags the regression-test added by diagnose.
      • Mismatch → the diagnosis report is stale (e.g., from a previous slice whose cleanup didn't complete). Ignore it and proceed with implementation normally from Step 3. (Hygiene will flag the stale file as orphaned on its next sweep.)
    • Fresh implementation — else proceed normally from Step 3.
  3. Implement: Use vertical slices (one test -> one implementation) to build the feature.

  4. Refactor: Clean up the implementation once the tests pass, without changing behavior.

  5. Mark Done: Before handing off to TDD, write .plans/builder_done.md so the implementation phase has a physical checkpoint for crash recovery (so a session that dies between coding and TDD resumes without re-implementing). Schema below.

  6. TDD Pass: Run /lfe-tdd for the red-green-refactor quality pass.

  7. Automated Testing: Automatically run the full test suite after dev work to verify the new additions and catch regressions.

  8. Handoff: Once code is written, builder_done.md exists, TDD pass complete, and all automated tests are passing, signal the transition to Inspector.

Read the full file on GitHub · 102 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 · 102 lines · 34 tokens per session scan A 4b82f0c1cbcb

Subscribe to this mod's changes

lfe-builder is a skill published in the GitHub repository StChiotis/Library-First-Engineering (44 stars, last pushed 4mo ago), licensed MIT. It adds 34 tokens to every session and 1,723 once invoked, about $0.0001 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-builder compared with skills from other repositories

lfe-builder next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
lfe-builderStChiotis/Library-First-EngineeringSkill444mo agoMITA34Claude Code, Codex
ai-engineering-toolkitsickn33/agentic-awesome-skillsSkill51ktodayMITA47Claude Code
promptfoo-provider-setuppromptfoo/promptfooSkill28kyesterdayMITA66Claude Code, Codex
sd-recon-enginelixiaoxiao9888-create/manju-laoli-skillSkill3.6k8d agoMITA334Claude Code, Codex
sd-decision-enginelixiaoxiao9888-create/manju-laoli-skillSkill3.6k8d agoMITA207Claude Code, Codex
prompt-masternidhinjs/prompt-masterSkill17k1mo agoMITB78Claude Code, Codex
flux2-lora-trainingAnastasiyaW/codex-claude-code-configSkill2182d agoMITA73Claude Code