CommunityWriting & Editinggithub.com

textbook-voice

Register and prose rules for undergraduate course writing in any technical or quantitative field (textbook chapters, lecture notes, handouts, homework, slides). Use before drafting or editing expository prose in a course document, and whenever the author says the prose is informal, punchy, compressed, verbose, or reads as machine-written. Covers roles, audience, cutting, cadence, register, equations, citations, slides, and the check to run before showing prose to the author.

What is textbook-voice?

textbook-voice is a Claude Code agent skill that register and prose rules for undergraduate course writing in any technical or quantitative field (textbook chapters, lecture notes, handouts, homework, slides). Use before drafting or editing expository prose in a course document, and whenever the author says the prose is informal, punchy, compressed, verbose, or reads as machine-written. Covers roles, audience, cutting, cadence, register, equations, citations, slides, and the check to run before showing prose to the author.

Works with~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/hh3082/my-experiments-with-claude/tree/HEAD/skills/textbook-voice

Installed? Explore more Writing & Editing skills: steipete/notion, langchain-ai/langchain, bytedance/podcast-generation · View all 6 →

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

Textbook voice

The target is plain scholarly exposition that is formal, narrative and economical. These rules were assembled from one author's corrections of AI-drafted prose in an undergraduate textbook, and the before/after pairs below come from that book (a probability text). The pattern in each pair carries to any field, so read the pairs for the pattern rather than the subject. When a rule and a pair seem to disagree, follow the pair. The prose rules never license a silent change to a technical claim; a claim that looks wrong is flagged to the author (see "Technical claims" below).

Settings for this course

Edit this section and nothing else. Every rule below refers to it, and the scanner in scripts/scan.py reads the vocabulary table from it. If the skill folder is shared or read-only, put the settings in a file named course-settings.md in the course repository or project instructions instead, and read that file. In that case give the scanner the file with --settings course-settings.md.

  • Reader: a student meeting the subject for the first time, who has taken the prerequisites and nothing more. (Name the course level and prerequisites here.)

  • Voice: second person and inclusive "we" are the intended voice and are not informal. (Change if your text uses a different voice.)

  • Reference passage: a paragraph the author wrote, used to match register. (Give a file and line range, or leave blank and the assistant will ask.)

  • Course vocabulary: preferred terms, the words to avoid in their place, and (optionally) the phrases in which an avoided word is correct. The scanner reads this table, so keep its three columns. The rows below are examples from a probability course; replace them with your own, or delete them all to switch the check off.

    WriteNotFine in
    sample pathrunlong run; to run
    distributionlawlaw of large numbers; law of total probability
    probabilitychance
  • Build: the command that compiles the document, for instance latexmk -pdf main.tex.

Roles

The author writes the prose and the assistant verifies claims, calculations, notation, consistency and the build. Do not re-polish the author's sentences unless asked. When asked for a draft, first give an ordered list of the facts to state, each with its source, unless full sentences are requested. Before writing in a document, read the reference passage (or another paragraph the author wrote in that document) and match its register.

Technical claims

Register is not correctness, and a passage can satisfy every rule below while stating something false. While editing, read each technical claim as the subject expert would.

  • A claim that is false, or true only under conditions the passage does not state, is flagged to the author with the correct statement and its source or derivation. Do not keep it silently and do not rewrite it silently. For instance, "Bernoulli's equation is why airplanes fly" is an oversimplification that a fluids instructor would want flagged, not polished.
  • Popular explanations, slogans and analogies in a draft are the most likely places for such claims.
  • If the subject-checks skill is installed, check the passage against its subject file as well.

Audience

Write for the reader in the settings, never for yourself. The author's question on a presupposed term was "Who are you writing for? Yourself, or the reader?"

  • Introduce every term, result and symbol before it is used. Describe the idea plainly, then attach the name in italics at first use. A section title does not introduce a term. The error to avoid is naming a result as if it were known one sentence before the result is stated.
  • Define every symbol with its type and range ("for each machine $j=1,\dots,m$"), and say what kind of quantity it is (a count or a fraction, a scalar or a vector, which units).
  • Gloss jargon in italics at first use.
  • Presuppose no knowledge the reader has not been given on the page. If the natural tool is beyond the course (a notation, a theorem, a programming construct), use the elementary form and say so.

Cut

  1. Intensifiers: only, exactly, precisely, genuinely, just, really, the single most. Keep a word when it carries a technical meaning (an "exact" solution, "if and only if").
  2. Aphoristic closers and clever parallelisms. End a paragraph on its last fact.
  3. Self-justifying tack-ons. "The general case reduces to the irreducible one, which is why it is worth developing that case carefully" stops after "one". The same holds for "and this is what makes ... important" and "so it pays to ...".
  4. Roadmap lists ("Three totals are useful, and the chapter takes them in turn: ...").
  5. Restated setup, and explanations of what is self-evident. When asked why something obvious holds, give one clause that rests on a fact already stated.
    • Before: "Two distinct walks specify different states at some time $k$, and the chain is in exactly one state at each time, so no run follows both."
    • After: "The walks over times $0$ through $n$ are the sample paths of the chain on that horizon; it realizes exactly one, so distinct walks are mutually exclusive."
  6. Diary register. "A count observed once a day and therefore a discrete-time process" becomes "a discrete-time process".

Punctuation

  1. No em-dashes. Use commas, parentheses or separate sentences. A dash in a number range or a hyphenated name is fine.
  2. Few colons, and no suspense colon in the middle of a sentence. List-introducing colons are fine.

Cadence

  1. Narrative, not compressed. Carry the reader with connectives at the head of the sentence (however, therefore, whereas, nonetheless, for instance, in that case) and with full relative clauses. Length in the service of flow is correct, whereas terseness reads as a headline.
    • "the states it visits" becomes "the states visited by the chain"
    • "minimizing a total is maximizing its negative" becomes "... is equivalent to ..."
  2. No runs of short declarative sentences and no clipped openers ("The first is financial.").
  3. No stacked clauses. Use one main clause and at most one relative clause, and keep a verb as a verb with its subject rather than turning it into a noun.
  4. Repeat the noun rather than write "it", "this", "the former" or "the latter". A definite "the X" needs an antecedent on the page.
  5. Hedge to what is true. "The examples in this chapter measure costs" becomes "Some of the examples in this chapter measure costs". Illustrate in the subjunctive ("for instance $r$ could represent a number of dollars spent, and in that case ...").
  6. Extrapose a gerund subject inside a wh-clause: "what running the plant costs" becomes "what it costs to run a plant".
  7. No repeated interrogatives ("which ... which ..."), no parallel openers, and no transitions that announce themselves.
  8. Plain active verbs rather than emphatic passives.

Register

  1. Formal. No contractions, chatty "let's", conversational openers or scare quotes on casual words. The model register is declarative and section-attributing ("Section 2.1 paired each event with a proposition"), names a definition with "is called", and states a procedure directly ("computing it is a direct application of the multiplication rule").
  2. Abstract objects are not agents. A formula, matrix, model, market, molecule or algorithm does not want, know, decide, look back or single out, and a time period does not produce or ship anything. A transitive verb needs a clear object.
    • Before: "it holds for every process and so singles out none"
    • After: "the factoring formula holds for every process; a model is a choice of its conditionals."
  3. Rhetorical questions only in academic register, as a question that the following text answers. "Why build a model at all?" is the conversational form to avoid.
  4. Metaphor is rare; when unsure, drop it. Do not coin opaque phrases ("once the run is settled", "exact but empty", "what is left holding") or lean on a pet word.
  5. Use the course vocabulary from the settings. In labels and tables, name what is compared against what; never a bare "right", "exact" or "no verdict".

Equations and formal statements

Apply this group wherever the course uses equations, formulas or formal definitions.

  1. Write the equation, not a paraphrase. A named property used in an argument appears as the identity it asserts, introduced by a verb.
    • Before: "time-homogeneity makes a chain watched from time 1 with $X_1=k$ a copy of a chain started at $k$"
    • After: "time-homogeneity ensures that $\Pr(X_2=j\mid X_1=k)=\Pr(X_1=j\mid X_0=k)=p_{kj}$."
  2. Do not compress derivations. Put in the missing step, starting from the definition.
  3. Say what a result buys in one short paragraph after it. The author's example, after a theorem on the value of a reward process, notes that the value need not be computed as an infinite series, because it solves a linear system.
  4. Do not mention a named result the argument does not use.
  5. Do not refer to later chapters from a chapter introduction.
  6. Keep general statements and specific ones apart; a paragraph or slide of general claims should not switch to one example without saying so.
  7. Leave statements of definitions and theorems, proofs, code, labels and numbering alone when editing prose. Terse is correct for a theorem statement.

The same patterns in other fields

The pairs above come from the author's corrections. The pairs below were constructed to show the same patterns in other subjects; use them to calibrate, and replace them with corrections from your own author as these accumulate.

  • Intensifier and aphorism (circuits). Before: "Kirchhoff's current law is just conservation of charge, nothing more." After: "Kirchhoff's current law expresses conservation of charge at a node."
  • Tack-on (economics). Before: "The demand curve slopes downward, which is why elasticity matters so much." After: "The demand curve slopes downward." If the importance of elasticity is the point, state the fact that makes it important in a sentence of its own.
  • Agency given to an object (chemistry). Before: "The equilibrium wants to shift right when the pressure rises." After: "When the pressure rises, the equilibrium position shifts toward the side with fewer moles of gas."
  • Equation, not paraphrase (thermodynamics). Before: "The first law says that energy in minus energy out is the change in stored energy." After: "For a closed system the first law reads $\Delta U = Q - W$, where $Q$ is the heat added to the system and $W$ is the work done by the system."
  • Symbols defined with range (algorithms). Before: "Each step is $O(n)$, so the loop is $O(n^2)$." After: "For an input array of length $n$, each pass of the inner loop makes at most $n$ comparisons and the outer loop makes $n$ passes, so the algorithm makes at most $n^2$ comparisons."
  • Narrative, not compressed (mechanics). Before: "Load applied. Beam bends. Maximum stress at the support." After: "When a load $P$ is applied at the free end of a cantilever of length $L$, the bending moment $M(x)=P(L-x)$ grows linearly toward the fixed support at $x=0$, and therefore the maximum bending stress occurs at the support."
  • Name after the idea (biology). Before: "Hardy-Weinberg tells us the frequencies stay put," one sentence before the principle is stated. After: "In a large population with random mating and no selection, mutation or migration, the allele frequencies do not change from one generation to the next. This result is called the Hardy-Weinberg principle."

Citations

Lead with the authors when their work is the subject. Split a joint citation so each claim carries its own source. Do not trail a citation on every sentence. Do not overstate what a cited work shows, and say so when the primary source has not been read.

Slides

The direction reverses on slides, which are annotated live and talked through. Use one idea per slide, two or three bullets, a display for each equation and no restated setup. The slide-decks skill, where installed, carries the full rules for decks. Measure words per slide against a deck the author has approved and bring new decks to that density; in one course the median fell from 67 to 47 words per slide once this rule was enforced.

The check before showing prose

  1. Run the scanner for the mechanical patterns, python3 scripts/scan.py FILE [--lines A-B] [--only category,category] (the path is relative to this skill's folder). It reports candidates by category (em-dashes, intensifiers, tack-ons, roadmaps, colons, informal register, agency verbs, vocabulary), and for a Beamer file or a Markdown deck it adds a table of words per slide. Each hit is a candidate, not a verdict; "if and only if" and a list-introducing colon are correct, for instance.
  2. Read every paragraph against the rules the scanner cannot see: cadence, antecedents, metaphors, undefined symbols, terms used before they are introduced, a result with no paragraph after it, and the technical claims themselves. A paragraph can pass every rule and still read as compressed, so re-read it beside the reference passage.
  3. If a fix needs content that is not on the page (a missing definition, an assumption, a paragraph after a theorem), what to do depends on the request. When editing the author's text, list the content for the author with the facts to state, and do not write it in. When the author has asked for a finished revision, standard material may be written in (the textbook definition of a term, an equation the course already uses), but every added fact is listed in the report so the author can check it.
  4. A scan with no candidates is not evidence of quality; it means only that the mechanical patterns are absent.
  5. Build the document with the command in the settings and confirm there are no errors, undefined references or duplicate labels. If wording changed, read the rendered page back.
  6. Report faithfully. If a step was skipped or failed, say so, and never claim a rule was applied when it was not.

Copyright © 2026 Harsha Honnappa. Licensed under CC BY 4.0; the scripts are under the MIT License (see LICENSE at the top of the skills folder).

Related Skills