Mochi audit
Skill nishanthavva/mochi-flashcards-skill/skills/mochi-audit
Audit an existing Mochi deck for cards that fail spaced repetition — leeches, walls of text, vague cues, duplicates — and rewrite them in place.From its SKILL.md
npx -y skills add nishanthavva/mochi-flashcards-skill --skill mochi-auditAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its file declares
Copied from the file, not written here
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
3.8 KB, as published. Nobody here has run it
Audit a Mochi deck
Find the cards that are costing the user reviews and fix them. Target: $ARGUMENTS
CLI below means ../mochi-create/scripts/mochi.py — the client bundled with the sibling mochi-create skill, installed alongside this one. Resolve it once and use it for every call; it is the only thing that may touch the API key. If that path is missing, the mochi-create skill is not installed alongside this one — say so and stop, because the client lives there.
A card earns a rewrite when it fails atomic (one card, one retrieval) or cue (the front makes exactly one answer retrievable, alone, weeks later). Those two words decide every judgement here.
1. Measure before reading
CLI find-deck "NAME" # resolve the deck the user named before touching it
CLI stats --deck DECK_ID
Leeches — flagged L, meaning ≥4 reviews and ≤70% retention — are cards the user is actively failing. They are the highest-value thing in the deck to fix, and the reason to start here rather than reading from the top.
Done when: you have the deck's card count, mean retention, and the leech list.
2. Read the cards
CLI cards --deck DECK_ID --json
For decks past a few hundred cards, audit the leeches and a sample of the rest rather than everything — and say which you did.
Done when: every leech, plus your stated sample, has been read.
3. Diagnose
Read ../mochi-create/references/card-design.md for the full anti-pattern list. Classify each failing card:
| Symptom | Fix |
|---|---|
| Back is several paragraphs | Split into atomic cards; or make it an archived note and link atomic cards to it |
Front is a bare topic (Photosynthesis?) | Rewrite the front as a question with one answer |
| Back contains "and also" | Split |
| Enumeration on one card | Cloze groups, or one card per item |
| Near-identical front to another card | Merge, or sharpen both so they can't be confused |
| Depends on outside context ("why does it fail here?") | Make it self-contained |
| Leech with no structural fault | Add a mnemonic, a concrete example, or an image — or archive it |
A leech that is simply not worth knowing should be archived, not rewritten. Say when you judge that.
Done when: every leech has a diagnosis and a decision — rewrite, split, archive, or leave with a reason.
4. Propose
Write the changes as an update plan, and split them by kind because they carry different risk:
- Rewrites and archives —
{"cards": [{"id": "...", "content": "..."}]}→CLI update plan.json - Splits — the original becomes one card via
update, the new siblings go throughpush. Never delete the original; a rewrite preserves its review history, a delete throws it away.
Validate: CLI update plan.json --dry-run.
Show the user a before/after for every card. Before a large run, suggest the user export their collection (Settings → Export everything) — bulk writes are irreversible. Get an explicit go-ahead — this rewrites content in their account and there is no undo.
Done when: the user has approved a validated plan.
5. Apply and report
CLI update plan.json
CLI push new-cards.json # only if a split created siblings
Report: cards rewritten, split, archived, left alone and why, and the leech count before versus what you expect after. Note that retention only recovers over subsequent reviews — the numbers will not move today.