Kpopper

From ilanbm/kpopper · View interactive version

Kpopper is an AI agent skill from the GitHub repository ilanbm/kpopper. The kpopper method: a knowledge record (GROUNDING.yaml) for work that gets revisited - what is known, where each piece came from, and what would make each conclusion wrong. Use when asked what kpopper is or how to keep a record, when choosing which kpopper skill fits a moment, or when no narrower on

How to use this skill

Skill file

kpopper

In ordinary conversation, name the product kpopper and describe the action in the user's language. Reserve the exact skill name kpopper:kpopper for invocation instructions, technical documentation, debugging, or explaining this specific skill. Fold the product name into the explanation of the action; no extra announcement is needed.

Start with the work the user wants to move forward. A project may span documents, conversations, calendars, task systems and earlier sessions;

code and repositories are one important setting among these. Keep the goals, commitments, constraints, decisions, sources and open questions that help later sessions continue.

The connection to the user's goal determines what belongs, rather than the mere availability of a tool or folder.

*Named for Popper: nothing here is ever verified, only exposed to refutation. Every judgment

must say what would make it wrong, and one that cannot be wrong is an opinion.*

This is epistemic bookkeeping. The record's subject is not the work but the state of

knowledge about the work: what is known, what each conclusion rests on, what the world looked

like when someone last checked, and where a hole was declared rather than filled. Do not

oversell that — it is not modal logic and there are no K operators here. Its nearest formal

relative is a truth-maintenance system, where rests_on is a justification and a changed input

invalidates everything downstream of it; what this adds is Popper's asymmetry, that a judgment

is never confirmed, only left standing.

That makes the record self-evolving, in one exact sense worth being precise about: nothing

here rewrites your conclusions or refreshes external sources. It re-checks judgments

against what they were last checked against, and puts the ones that no longer hold in front of you.

Nobody maintains a list of what went stale. Staleness is derived, so it cannot be forgotten,

cleared by accident, or survive a revert; the page's sections fill themselves from that derivation. Keep where each piece came from without changing the user's deliverable.

If the user chooses a reusable knowledge model as the product, use the model skill. See

living knowledge models for keeping its complete bundle

separate from optional project knowledge and case data.

Three things worth keeping

Simple shares one graph with named competing hypotheses; Advanced adds branch contexts and pending_grounding for shareable, feature-independent contributions, even with one checkout. Several sessions may work on one hypothesis.

New unconfigured projects default to private central Simple, including Git projects; Advanced is an explicit Experimental feature. Existing records and explicit configurations retain their behavior. Central storage is local only and never grants Board permission.

Private or unclear permission means a structured private draft outside Git. Preserve the exact scope of measured facts. Merge incorporates content without proving truth or refreshing seen.

Ordinary reads show relevant pending knowledge; committed artifacts use explicit frozen reads. See project modes.

Everything the record holds is one of three kinds, and each is written the moment it exists,

by the session doing the work:

  1. Something taken from a source - a number, a date, a quoted clause, a position someone

stated. Recorded with the source and the location within it, and with how faithful the

text is: quoted, paraphrased, or your reading of it.

  1. Something worked out - the rule, never the result. New calculations use structured expressions, computed by the local Lean core.
  2. Something concluded or composed - a recommendation, a comparison, a summary. It says what

it rests on, carries seen (what those held when it was written) and wrong_if (what would

make it wrong). A judgment that cannot be wrong is an opinion.

The record skill is where these are written; the

shape reference shows the file they land in.

Which skill, when

| the moment | skill (Claude Code · Codex) |

|---|---|

| before answering about the project's state, a number, a date, a decision or a source; before changing a value the record may hold; when the opener or a grounding line names entries | ground · /kpopper:ground · $ground |

| something worth keeping exists: a fact from a source, a rule, a decision, a measurement, a correction, an open question - and before finishing a session that produced any | record · /kpopper:record · $record |

| the user asks to map or investigate what already exists, or a workspace with no record needs the one-time starting offer | map · /kpopper:map · $map |

| Annotated Documents is explicitly requested or refreshed | annotated-doc · /kpopper:annotated-doc · $annotated-doc |

| explicitly use kpopper Hub, its layout or verification | hub · /kpopper:hub · $hub |

| hypotheses wait or an id is CONTESTED; a write was refused into a hypothesis; a branch's record must be reconciled before a merge; a dry run or remeasure is red | consolidate · /kpopper:consolidate · $consolidate |

| branch compatibility in the background, shared external facts, a daily review | watch · /kpopper:watch · $watch |

Compatibility names: page forwards to hub; document forwards to annotated-doc.

The plugin's hooks open every session with the record's head and what needs a person, and name

the skill for the next move in that host's own syntax. What they never carry is a value: values

are pulled by subject when the work asks. The long-form of the method - when structure is added,

what a view is, how the shape changes, where the reader lives - is in

references/method.md; the record's shape in

references/shape.md; what makes a falsifier honest in

references/falsifiers.md.

The part that does not change

Everything above is open to revision — the sections, the field names, the operators, the views.

Four things are not, because they are what the rest is built on:

  1. Every entry declares what it rests on. Something with no declaration does not go in.
  2. Do not store an output when you can store what produces it.
  3. Invalidation spreads automatically; re-running a judgment never applies itself.
  4. A change to the shape is valid only with a migration that leaves the build green.

A record that can rewrite its own rules will drift — slowly, unnoticed — unless something in it

is not up for revision. These four are that floor.

Never do these

Each is recognizable while you are doing it. If you catch yourself, stop.

in open:, an un-evaluable predicate says blocked_on. Shaping the record to pass a checker

produces records that look right and are not.

files — does a views file exist, does the build fail on a broken reference, do judgments carry

verdicts. So derive it, and if it is worth surfacing, have the build write it down beside the

evidence and the trigger that bought it. A hand-declared stage can contradict reality with

nobody noticing, and a number at the top of a file turns into something to increment.

Check yourself

preserve progress on the task and never repeat an explanation just because a session restarted.

A chosen mapping is work in its own right, with scope and a useful result.

What would show this was not worth it

The method promises exactly one measurable thing: the opening cost of session number N.

Today that cost is flat — every session re-reads, re-verifies, and sometimes re-invents. If it

is working, a later session reads only what is marked as moved.

An optional introduction should earn its small cost through useful work; a selected mapping

should return the picture the user asked for. If it takes more than the ladder in references/method.md to explain when to add

structure, the ladder failed. And if after five sessions the sixth does not open cheaper, the

method did not return what it cost, and you can drop it with a clear conscience.

There is no target state here. Refinement is driven by use, not by steps: what gets asked about

gets sharper, what nobody asks stays rough forever, and that is correct. An agent that believes

there is a finished version to converge on will keep polishing when nobody asked.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.