/jonhill90-skills:prompt-corpusfrom jonhill90-skills
Turns transcript history into a queryable decision record: raw prompts, one judgement per prompt, and views for binding commitments, unacted directives, and unanswered questions.
Ships in jonhill90-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A chat archive answers what did I say. This answers what is still binding, what did nobody act on, and what did I ask that was never answered — which is a different thing and needs a different shape.
The whole design rests on one boundary: a model runs ONCE per prompt, at write time. Every read afterwards is plain SQL. Break that and this becomes another thing that needs inference to answer a question, which is what it exists to replace.
prompts raw + cleaned + context + project. text_raw is IMMUTABLE.
items one judgement per row: kind, body, weight, status, resolved_to
links conflicts_with / supersedes / depends_on — recorded by hand, NEVER inferred
views unacknowledged · live_parameters · open_questions · conflicts · possibility_count
context is NOT NULL and it is load-bearing, not decoration. "Live." means
nothing without knowing it answered "live terminal or refreshed preview?".
itemize_prompts.py --extract [--limit N] # pure SQL, decides nothing
<a model judges the extracted file> # the ONE model step
itemize_prompts.py --load judged.json # pure SQL, idempotent by hashed id
Item ids derive from (prompt_id, index, body), so re-loading the same
judgements writes 0. Always verify that after a load — an idempotency claim
nobody tested is not a property.
At scale, run the judging as a dynamic workflow: .claude/workflows/corpus-itemise.js
on the feat/prompt-corpus-skill branch of agent-supervisor (could not measure
whether this has since merged to main). Agents judge and write JSON only; a single serial
agent does every ledger write. Twelve concurrent writers on one SQLite file
contend.
Get these wrong and the corpus is worse than nothing, because it will look authoritative while being wrong.
kind=thought, weight=retracted, status=dropped and a
status_reason. Never omit one: --extract selects prompts with no items
row, so an omitted prompt resurfaces at the head of every future batch,
forever. This is the single most common mistake and two independent agents
made it before it was written down.resolved_to is only for things that CONSTRAIN — tooling=cli_first,
ui_fidelity=1:1. A question or a one-off directive has no resolved_to.weight=hard means binding; preference means he leans that way.
Getting this wrong manufactures false conflicts. A preference was once
treated as binding and cost a whole session.Matched literally, no model:
"do exactly what it says" "That file is your complete brief"
"carry it out exactly as written"
"Base directory for this skill:" "## Context Usage"
"Supervisor loop tick" "<local-command-stdout>"
A topic-keyword filter is a trap. Filtering on career/resume matched
Hill90 resume sweep and several real PR discussions. Structure is a property
of who wrote the text; topic is not.
order by length(text_raw) desc. It selects FOR
machine text and produced a confident wrong conclusion that the corpus was
mostly junk when 50 rows were.source_file — that is only a session
UUID. Recover it from the transcript's directory under ~/.claude/projects/,
or capture it at write time from the hook's cwd.kind and weight are different axes. preference is a WEIGHT. A judge
emitting kind: preference is a schema error, not a judgement.body crashes the loader with KeyError. Validate the judged
file before loading it.select count from possibility_count; -- how many hard constraints are live
select * from unacknowledged; -- said, never acted on
select * from open_questions; -- asked, never answered
select * from live_parameters where weight='hard';
conflicts reports links someone recorded. It never infers one — deciding two
items genuinely contradict, rather than describing different scopes or one
superseding the other, is judgement and stays with something accountable.
Query the corpus first. That is what it is for, and forgetting to is the
most likely way this skill goes unused: the answer to "should we build X first"
is usually already in live_parameters, in his own words, with more authority
than a fresh opinion.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jonhill90/skills --plugin jonhill90-skills44 skills in this plugin
/adopt-or-buildDecide, per component, whether to adopt an existing name, dependency, library, or tool or build it in-house, weighing blast radius over convenience. Use at the point a name or dependency is about to be chosen or recommended — before it is proposed, not after. Not for finding a technology's capability ceiling (research-the-limit), not the mechanism for genuinely different reviewer lenses (ask-a-council, which this skill may call), and not a substitute for attacking the chosen answer (devils-advocate, which this skill invokes as its final step)./ask-a-councilConvene several harnesses or models against one question, each doing a distinct job it can fail at — different evidence, a different objective, or a withheld conclusion — before an artifact becomes load-bearing and being wrong is expensive. Diversity comes from what each reviewer is given, never from a character it plays. Use when the failure modes genuinely differ in kind — a single reviewer's prompt would only catch what its own lens looks for. Not for a question a cheap deterministic check settles (run the check first); not for one reviewer's prompt (sanity-check owns that); not for dispatch mechanics or isolation boundaries (dispatching-subagents owns those); not for trusting a verdict already returned (verify-the-instrument owns that).