Skip to content

The Skills

m4bwav edited this page Nov 1, 2026 · 5 revisions

historywright is three agent skills that share one command-line tool. An agent loads a skill when the user's request matches its description; the descriptions name each other, so a request near the edge of one skill points at its sibling.

Skill Loads on Owns
historywright (the hub) a history question that needs a real answer: who, when, where, with whom, how long, "is this quote real", "check this date" the research method, the answer format, hw.py
historywright-sources "where can I find records of", "what sources cover medieval Japan", "is this archive reliable", "add this source", "probe the sources" the source registry, the era outline, the query recipes
historywright-pack history research that must feed a 3D model, a film, a video or images: "research a Roman legionary for my model", "validate this pack" the research pack

The two siblings have no script of their own: they call the hub's scripts/hw.py, so install the three folders together.

The hub's method

The hub's rule is that model memory routes the question and sanity-checks the result, but is never the answer. Every claim in the reply rests on a page that the run fetched and read. The steps, in order:

  1. Already answered? hw.py cache get "<question>". A hit is a lead with its sources, not an answer: when it is older than 180 days, at least one of its sources is read again.
  2. Which question is this? A short reference interview pins the reading before any search, because many history questions have two true answers: formal reign or actual power, founding or incorporation, Old Style or New Style, "longest" by whose list. The agent asks only when the readings give different answers and the context cannot decide. Otherwise it names the reading it answers in the first line.
  3. Route. The era outline sends the question to sources by period and region. Memory is weakest for Sub-Saharan Africa, Oceania, South Asia and recent decades, so there the agent looks for a regional or non-English scholarly source and lowers its default confidence.
  4. Structured sources first. Wikidata's full statements (hw.py wd claims), with rank, precision, calendar, qualifiers and references; gazetteers for places.
  5. Follow the references. Wikipedia is a finder: hw.py wp refs maps a sentence to its footnotes, and the agent opens and reads the cited source. A book or article enters the answer only after its title, author and year all match one record.
  6. Corroborate. Two independent sources, one of them primary or scholarly. Neither may be Wikipedia or a mirror of it, and neither may derive from the other.
  7. Dates in code. Reign lengths, ages, BCE crossings, Old Style dates and East Asian eras all go through hw.py cal (How dates are computed).
  8. Answer in a fixed shape (below).
  9. Keep it. hw.py cache put saves the answer with its sources and retrieval dates.

The answer format

<the reading answered, then the answer in one or two sentences with inline citations [1] [2]>
<details that matter: alternatives, the other reading, who holds each view>

Confidence: high | medium | low: <what is uncertain and why>
Sources disagree (<outdated source | different frame | scholarly dispute>): <who says what>   (or: Sources agree.)
Sources: [1] <author, title, locator, URL, read YYYY-MM-DD> [2] ...
AI-researched with historywright; sources fetched and read on <date>.
  • A disputed date is a set or a range, attributed: "12 or 13 July 100 BC", with which source gives which day.
  • Every disagreement is classified before the note is written: an outdated source, a different frame (formal reign against actual power), or a genuine scholarly dispute. A settled finding is stated as fact, without false balance.
  • A direct quote of a person appears only when its exact words were found in a fetched text that names the speaker.
  • When the sources cannot be reached, or the only support is Wikipedia and its copies, the answer starts with "Unverified:" and says what would settle it. The gap is never filled from memory.
  • The last line says the answer was researched by an AI; it is never presented as an expert's.

The worked examples the skill carries (Caesar's birth, the longest-reigning Chinese emperor, Microsoft's founding) are in the hub's references/answer-format.md.

What the evals measured

Results from the repository's TESTS.md, run on 2026-10-17 and 2026-10-18 with Claude Code and Sonnet:

  • Each of the five trigger prompts (three for the hub, one for each sibling) loaded its skill in 3 of 3 runs: 15 of 15.
  • A story request, a PDF request and a news question loaded no historywright skill in 9 of 9 runs.
  • On 11 value cases at 3 runs each, 82% of runs passed with the skill and 39% without. That is a gain of 42 points against a noise margin of 22, at 3.1 times the cost. The runs without the skill missed Mommsen's 102 BC for Caesar, Qianlong's de facto rule to 1799, and Albuquerque as Microsoft's founding place.
  • Two action cases are graded on the commands in the trace. Reading Wikidata's full statements passed 3 of 3 with the skill and 0 of 3 without; saving the answer with cache put passed 3 of 3 against 0 of 3.

Two value cases (the misattributed quote and the October Revolution date) passed without the skill as well: models already handle them.

Cost in context

Measured by scripts/budget.py on 0.5.0: the three descriptions add about 492 tokens to every session, the installed files are 345 KB, and the era outline is 7,254 bytes. A skill's body loads only when it fires; the hub's is 122 lines.

Clone this wiki locally