engineering-influence
Give it an idea. Get back a book you can publish.
BLUF: engineering-influence writes a complete book, non-fiction or a novel, with nobody in the loop, and
hands you the files Amazon KDP asks for: interior PDF, EPUB, covers, listing and a quality report. One command
installs it, one command writes a book, and a free model on your own machine does the writing.
# 1. Install everything a book needs (macOS with Homebrew, or Linux with apt-get)
curl -fsSL https://raw.githubusercontent.com/adammatthewsteinberger/engineering-influence/main/install.sh | sh
# 2. Write a book
ei book create --kind nonfiction "how to keep herbs alive indoors" --budget-usd 5 \
--out ./my-book --profile ~/.config/engineering-influence/author.toml
The book lands in ./my-book/run/book/. Nothing is uploaded: you read it, then you upload it to KDP yourself.
The idea in one minute
Daniel: I have a book idea and no free months. Everyone says an AI can write it. I asked a chatbot and got
eleven pages of mush that forgot its own first chapter.
Professor Feynman: Of course it did. You asked one cook to make a wedding dinner in one go, from memory,
without a kitchen. What does a real kitchen have?
Daniel: Stations. Somebody preps, somebody cooks, somebody checks the plate before it goes out.
Professor Feynman: That is the whole design. A book here goes through stations in order: a brief, research,
an outline, a draft of each chapter, three editing passes, then typesetting. Each station has one job and
writes down what it made. So what happens if the power goes out halfway through the draft?
Daniel: You would lose the night's work. Unless the finished plates were already on the shelf.
Professor Feynman: They are on the shelf. Run the same command with --resume and it starts at the next
station. Nothing finished is cooked twice, and nothing is paid for twice.
Daniel: And the last station is the one that checks the plate.
Professor Feynman: It builds the real PDF and EPUB and refuses a book that does not pass. The comparison
stops there, though: a kitchen has a chef who tastes. This has checks, not taste. A person still reads the
book before it is published. That person is you.
Daniel: So it is a kitchen that never loses a plate, and I am still the one who tastes the dinner.
What you get
In my-book/ |
What it is |
run/book/<slug>.pdf |
The paperback interior, typeset with LaTeX to KDP's trim, margins and gutter |
run/book/<slug>.epub |
The ebook, checked for structure and links |
run/book/<slug>-ebook.jpg, <slug>-paperback-wrap.pdf |
The ebook cover, and the paperback wrap at the exact page count |
run/book/listing.md |
Title, subtitle, description and seven keywords, ready to paste |
run/book/MANIFEST.json |
What is in the bundle, with a checksum of every file |
run/quality-report.json |
Pass or fail, every error and warning, and what was spent against the estimate |
src/chapter_NN.md, books/*.toml |
The manuscript and its settings, to edit and rebuild with ei book build |
What a KDP-ready package is, exactly.
Three commands worth knowing
ei doctor --ready # can this machine make a book now? every gap, with the fix
ei book create --out ./my-book --resume # carry on after a crash, a closed laptop or a provider at capacity
ei book create --out ./my-book --resume --approve-spend # allow the extra budget a stopped run asked for
ei book create exits 0 when the book is written, 1 when the run failed (what it made is kept, and a failed run is final), 2 when
it could not start, and 3 when it stopped to ask for more budget.
Let another AI drive it
Claude Code, or any agent with a shell, can run all of this for you. The shortest route:
curl -fsSL https://raw.githubusercontent.com/adammatthewsteinberger/engineering-influence/main/install.sh | sh -s -- --with-claude-skill
That adds a skill to ~/.claude/skills/. Then say: "Use engineering-influence to write a non-fiction book
about indoor herbs. My author profile is at ~/.config/engineering-influence/author.toml and the budget is 5
dollars." The agent checks the machine, starts the run in the background, reads the exit code, and asks you
before it approves any extra spend.
Driving it from an agent, step by step.
Choose your interface
One controller layer, reached six ways.
The REST API, the SDK, the MCP server and the webhooks need the stack (a database, a broker and a worker):
sh examples/up.sh starts one with generated credentials
(Getting started).
ei book create needs none of that.
Prefer to install by hand? uv tool install "engineering-influence[runtime,publishing,mcp] @ git+https://github.com/adammatthewsteinberger/engineering-influence"
installs ei alone. It is not on PyPI yet. The extras are api, webhooks, runtime, mcp and publishing
(and test and dev for contributors).
Documentation
| Read |
For |
| Getting started |
Install, check, write your first book, then run the stack |
| Driving it from an agent |
Claude Code or another LLM as the driver |
| Books and KDP |
What a finished package is, what is built and what is not |
| Novels |
The novel stages, from brief to a built book |
| Interfaces |
Reference for the REST API, SDK, MCP tools, CLI and webhooks |
| Configuration |
Every environment variable, security setting and limit |
| The local model |
The free model that writes by default |
| Model profiles, catalog, calls |
Choosing, pricing and calling a model you pay for |
| Research, tool lock |
Web search for the research stage, and approving tool servers |
| Skills, plugins, prompts |
Adding guidance to a stage, and how the prompts are versioned |
| Architecture |
Layers, request flow, the worker and the extension points |
| Threat model |
What is protected, from whom, and what is not |
| Evaluation, live smoke test |
The paid runs that measure quality and cost |
| Worker image |
The container and the TeX toolchain |
| Troubleshooting |
Symptoms, causes and fixes |
| Testing, compatibility, releasing |
The gates, what is promised to callers, and cutting a release |
| The documentation site |
How these pages become a website, and how to publish it |
| How these documents are written |
The page pattern, and who the Professor and Daniel are |
| Decision records, changelog |
Why it is built this way, and what changed |
Limitations
Read these before you depend on it.