lfe-extract-domain

lfe-extract-domain is a skill for Claude Code, Codex from StChiotis/Library-First-Engineering. It costs 40 tokens per session (438 once invoked), scanned A, original, MIT.

A guided founder interview that records the rules, terms, calculations, and constraints of a project in documentation. A Black Box is code whose purpose or internal logic is not yet understood.

In plain words
What is it for?
Use it to create domain-knowledge.md and CONTEXT.md when starting a project or investigating undocumented behavior.
Why use it?
It helps an agent work safely when important domain knowledge is missing from the code and documents. The interview turns that unwritten knowledge into shared project references.

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 create domain-knowledge.md and CONTEXT.md when starting a project or…

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/stchiotis/library-first-engineering/lfe-extract-domain.svg)](https://agentmods.dev/skills/stchiotis/library-first-engineering/lfe-extract-domain)
Your own site
<a href="https://agentmods.dev/skills/stchiotis/library-first-engineering/lfe-extract-domain"><img src="https://agentmods.dev/badge/skills/stchiotis/library-first-engineering/lfe-extract-domain.svg" alt="Measured on agentmods" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 438 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.00040 $0.00438
Opus 5 $0.00020 $0.00219
Sonnet 5 $0.00008 $0.00088
Haiku 4.5 $0.00004 $0.00044

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

Security

Grade A, and why

lfe-extract-domain 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 7d 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-extract-domain/SKILL.md · 33 lines

What it actually says

LFE Domain Extraction (Day 0)

Position in Pipeline

  • Phase: Any (Failure Recovery)
  • Persona: Architect
  • Trigger: Called when any persona encounters an undocumented "Black Box" in the code, or at project initialization
  • Output: .docs/domain/domain-knowledge.md + CONTEXT.md

Mission

Extract the project's core logic, math, and terminology from the founder's mind and formalize it into the Library System.

Workflow

  1. The Core Entity: Ask "What is the single most important noun in this project? What is its exact definition?"
  2. The Golden Logic: Ask "What is the 'Golden Rule' or primary calculation that this project performs? Walk me through the logic step-by-step."
  3. The Constraints: Ask "What are the project's absolute hard constraints (legal, safety, or architectural) — the rules that must always hold?"
  4. The Vocabulary: Identify synonyms or ambiguous terms used during the interview and map them to canonical terms.

Output

Produce a draft for:

  • .docs/domain/domain-knowledge.md
  • CONTEXT.md — using the format defined in CONTEXT-FORMAT.md

Rules

  • Follow the CONTEXT-FORMAT.md standard for all glossary entries (one-sentence definitions, Avoid aliases, relationships, example dialogue).
  • If CONTEXT.md already exists, merge new terms into it rather than overwriting.
  • If an ADR is warranted by a decision made during extraction, use the format in ADR-FORMAT.md.
  • After extraction, update pipeline_status.md to reflect the new domain knowledge.
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. 7d ago First seen · 33 lines · 40 tokens per session scan A 302aedf5d35d

Subscribe to this mod's changes

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

lx

Codebase exploration tool that reads many files or whole directories in a single call, with per-file headers, glob include/exclude filters, function/type skeleton extraction (signatures only, no bodies), and head/tail line slicing.

rasros/lx · 48 tokens

prompt-optimization

Improves LLM-facing context while preserving intent, execution boundaries, and proportional work. Use when creating or reviewing prompts, agent definitions, skill definitions, or other instructions for an LLM.

shinpr/rashomon · 42 tokens

recipe-eval-prompt

Compares original and optimized prompts through repeated blind paired execution in git worktrees. Use when evaluating prompt improvement effects or learning prompt engineering through concrete examples.

shinpr/rashomon · 36 tokens

knowledge-base

Retrieves and updates project-specific prompt knowledge from comparison evidence and user feedback. Use only for prompt analysis or post-comparison learning within a Rashomon evaluation.

shinpr/rashomon · 34 tokens

worktree-execution

Creates, pins, and cleans isolated Git worktree pairs for comparison trials. Use only when a Rashomon prompt or skill evaluation needs paired execution environments or orphan recovery.

shinpr/rashomon · 38 tokens

interview-me

Deep-dive spec interviewer. Reads a file, GitHub issue, or requirement, analyzes it against the codebase, then conducts a rigorous 1-on-1 interview using AskUserQuestion to produce a comprehensive, opinionated specification document. Acts as a collaborative architect with active pushback. Also runs --verify to detect…

Sorbh/interview-me · 79 tokens