Skip to content
Cyrus Pastelero
Article

I Built a Persona Skill That Has to Prove Its Quotes

Cyrus David Pastelero1

1 Software engineer, Singapore; cyrus@pastelero.ph

Abstract

Persona prompts tend to repeat what the model already knows and make up quotes to sound convincing. mindprint is a skill for coding agents that researches a real person, builds a perspective skill from the public record, and refuses to pass it unless every quote is found in an archived source. It then tests the skill blind against the same model with no skill. On the Benjamin Franklin example the skill scored 50 against 34 out of 60. Most of that gain came from real dilemmas, not famous stories. On the holdout it won one question clearly and tied three. A clean first run of a quick-tier build exposed friction that I fixed in a follow-up commit.

Keywords: Open Source; AI; Build log

Introduction

You can tell a model to answer as Benjamin Franklin. It will oblige. You get "a penny saved is a penny earned" in period costume, plus a few quotes that sound right and were never written down by anyone.

I wanted something I could trust more than that. When I ask "what would this person do here?", I want the answer built from what they actually did, with a way to check it.

So I built mindprint[1]. You say "distill Benjamin Franklin" and your agent researches him, builds a benjamin-franklin-mind skill, and tests it blind against its own unaided guess. It works with Claude Code, Codex, Cursor, Gemini CLI and any agent that reads Agent Skills.

What it's for

Think of it as a thinking advisor you build once and keep. You pick someone whose judgment you trust, mindprint builds the skill, and from then on you can bring them your own problems:

  • "What would Franklin do about this job offer?"
  • "How would he handle a partner who keeps missing deadlines?"
  • "I keep making the same bad decisions. I need a thinking advisor." (That one is straight from the README.)

The answer comes from what the person actually did in similar situations, with sources you can check. It's useful when you're stuck on a decision, when you want to look at a problem through someone else's lens, or when you want to learn how a person thought rather than what they're famous for. It can also build a skill for a whole field or school of thought instead of one person.

It is for public figures and public fields. A private, living person needs material they supplied and their consent, and anyone under 18 is out.

Where it came from

It is a rewrite of an idea I liked. The README credits nuwa-skill[2] by Huashu as the base, and the NOTICE file carries the original's licence.

The problem with persona prompts

Two things go wrong. The model repeats what it already believes about the person, so you learn nothing new. And it fills gaps with quotes that feel right.

The second one is worse, because you can't see it. A made-up quote reads exactly like a real one.

I decided the skill should be judged on what a model cannot say without it. The method file splits that into three kinds of value: things where the public image is wrong (overturn), things where the model points the right way but has nothing behind it (deepen), and things it doesn't contain at all (new). Everything else is a slogan, and slogans are free.

How it works

The method lives in skills/mindprint/SKILL.md, which is 232 lines. The README boils it down to six steps:

  1. Scope. Who, what for, and which tier: quick, standard or deep.
  2. Prior snapshot. The agent writes what it already believes about the person, from memory, before reading anything.
  3. Research. Six tracks: writings, conversations, fragments, critics, decisions, timeline. Sources get a tier, and primary sources are saved as plain text inside the skill.
  4. Seal a holdout. Three to five real decisions are set aside as test questions. They never enter the skill.
  5. Extract and write. Moves, mental models, heuristics, case cards, voice, tensions and boundaries.
  6. Validate. Blind tests, with the losses written down.

The prior snapshot is the step I'm happiest with. Once the agent has written down what it believes, the research has a target: find what differs. The skill spends its lines there.

Here is a small piece of what comes out, from the Franklin example:

Hand over a procedure, not a verdict

When: A friend asks me what to decide in their own affairs. I do: Decline to judge the facts I cannot see. Give a method: pro and con columns kept over three or four days, strike out equal weights, wait a day or two more, then decide. Example: 1772, Priestley asked my advice on a hard choice of his own. I answered that I could not advise him what to determine, "but if you please I will tell you how" [S202].

That [S202] points into a source ledger. The letter is saved as plain text in the skill.

The script that does the checking

I don't trust a rule that is only asked for in a prompt. An agent can nod at "cite your sources" and then not do it. So the rules live in a Python script, mindprint.py, that the agent runs. The main file is 726 lines with three small helper modules beside it. It uses the standard library only and runs on Python 3.9 and up. There are 129 tests behind it.

CommandWhat it does
initscaffolds a new skill for a tier
statusresearch gate: primary source share, critics, differences from the prior, holdout
checkheadings, counts, citations, holdout leaks, placeholders, machine paths, quotes
quoteseach quote against its archived source
blind / unblindshuffles answers for the grader, then joins grades with the key

quotes is the command I care about most. A quote counts only if its source is archived in the skill and the words are found in it. In strict mode, a quote with no archived source fails. The README records 120 quotes in the Franklin example, all found.

A portrait with no critics also fails the research gate. I added that because a skill built only from the subject's own words and their admirers comes out as a eulogy.

Testing it blind

It's easy to fool yourself when you test a skill about a person. You wrote it, so of course it sounds right to you.

The holdout is my guard against that. Before any extraction, a few real decisions are sealed away. Separate agents answer them with the skill and without it. A grader scores the answers without knowing which is which. The blind command shuffles them and keeps the key, and check fails if the sealed text leaks into the skill.

For the Franklin example, the answer model was Claude Sonnet 5.5 in both arms and the grader was Claude Opus 5.5. The full write-up is in the example's FIDELITY.md. The scores, out of 60:

TestWith skillWithout
Holdout (4 sealed decisions)3226
Task (2 real dilemmas)188
Overall5034

On the holdout, the skill won one question clearly and tied the other three.

The win was the question of how to pay the chief executive in 1787. The plain model argued for a modest fixed salary. Franklin moved that the executive get no salary beyond expenses. The skill made the same motion, for his reason.

The ties make sense once you look at them. Two of those episodes are famous enough that the plain model already knows them well, and it even outscored the skill on one, 10 to 9. Famous stories don't test a skill.

The task test is where it paid off. The grader found that the skill matched each problem to a real precedent and told the failures as well as the wins. The verdict on the baseline in the write-up: "sound advice any advisor would give, in period dress." All 8 Franklin-specific points the skill made were real and present in the skill, and none were invented.

There is also a boundary test: a question about smartphones, which Franklin never saw. The skill passed by saying the view was inferred, not his.

What was hard

Matching quotes is fussier than it sounds. Archived text has hard line breaks, curly quotes and odd dashes, and a quote in the skill often skips words with an ellipsis. So the checker lowercases both sides, drops punctuation and collapses whitespace before comparing. A quote with cuts in it is split at each ellipsis, and the pieces have to appear in the source in that order.

Honest tests are awkward to write down. The FIDELITY.md file has a "Known weak spots" section on purpose. In the Franklin run, the holdout win scored 8, not 10, because the skill used generic examples of unpaid service instead of the ones Franklin gave. I left that in.

Two sources were out of reach. Project Gutenberg was down for maintenance on the day I built the example, so the plain-text files came from a university mirror, with the canonical URL kept in each header. Founders Online refused automated access, so a few things are known only through secondary accounts. The build notes say so.

My first clean run found friction. After the main build, I ran a quick-tier build from scratch to see what a new user would hit. That run became its own commit: status now warns on an unsealed holdout during research instead of failing, every FAIL prints its own fix line, and there is a --allow-low-primary flag for subjects with one main work. I had written the rules from the inside. A cold start showed where they rubbed.

Limits

A built skill is a model of the public record, not the person, and every skill says so. The ethics reference has rules for who can be built. Public figures and fields of thought are fine. A living private person needs material the user supplies and consent, with no web search. People under 18 are off the list.

It's also early. The changelog calls this 0.1.0 and marks it unreleased. As I write this the repo has 8 commits, all from 2026-11-28, and one worked example. The blind test has been run on one person, once. I wouldn't claim more than that.

CI covers Python 3.9 on macOS only. The Ubuntu runners had no 3.9 build, so they run 3.12.

What I'd do next

  1. Build a second and third example, on someone with a very different record. A person with one main book will stress the research gate in new ways.
  2. Test with a harder subject, such as a living public figure, where the "check the last 12 months" rule gets used for real.
  3. Put the blind test results of other people's builds next to mine. One author grading his own method is the weakest link right now.

If you want to try it, copy examples/benjamin-franklin-mind/ into your skills folder and ask what Franklin would do about your own problem. Then look at where the answer cites [S...], and open that source.

The code is at github.com/cyruspastelero/mindprint[1]. It's MIT licensed.

References

  1. mindprint. github.com. https://github.com/cyruspastelero/mindprint ↑
  2. nuwa-skill. github.com. https://github.com/alchaincyf/nuwa-skill ↑
Version www.pastelero.ph/posts/building-mindprint

© 2026 Cyrus David Pastelero