Every two weeks, learn from Gemini's picture mistakes in the Dino picture log - read every new picture try, group the failures by kind, pair each kind with the prompt wording that later passed, rewrite gemini-lessons.md and fix the illustrator's prompt templates and check list where the fix is clear, ship it as a docs PR that merges on its own, and leave a short note on a board card. Run by the scheduled task from tools/dino/picture-lessons/install-task.ps1 through the picture-lessons agent, ...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Picture Lessons?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/elinsoft-ltd-picture-lessons)
---
name: picture-lessons
description: Every two weeks, learn from Gemini's picture mistakes in the Dino picture log - read every new picture try, group the failures by kind, pair each kind with the prompt wording that later passed, rewrite gemini-lessons.md and fix the illustrator's prompt templates and check list where the fix is clear, ship it as a docs PR that merges on its own, and leave a short note on a board card. Run by the scheduled task from tools/dino/picture-lessons/install-task.ps1 through the picture-lessons agent, or by hand on "run the picture lessons", "what did Gemini get wrong", "update the Gemini lessons". Slice 497.
---
# Picture lessons (Slice 497)
Gemini repeats the same mistakes book after book. This skill turns the picture log into lessons and into better prompts, on a timer,
with no approval round (owner, 2026-12-02: every two weeks, changes merged directly, a short note of what changed and why).
Run it through the repo agent `picture-lessons` (Opus: deciding which wording fixed a mistake is judgment). It runs in its own
worktree of `origin/main` (the scheduled task makes one), never in the primary checkout.
## Hard rules: never weakened, whatever the data says
1. **Nobody gets hurt** (no eating, burning, drowning, beating, no fangs or teeth-bared menace, nothing near fire or hot water).
2. **No character ever wears a scarf.** A lesson may add wording that keeps scarves out; it never allows one.
3. **Accepted pages stay untouched.** Never touch a picture, its row in `art.md` `## Accepted by the user`, or the `gemini-take-download.ps1` guard. This skill changes only the files listed under *What it may change*.
4. **At most two illustrators run at once**, JS-only input, one `gemini-lock`. Never raise the cap or change the lock rules.
5. Never lower the check list's line: every character whole above the 73% line (prompts ask for 32% free, the check passes at 27%). A lesson may make the prompt stricter or the check clearer; it never moves the line down.
A lesson that seems to need one of these changed goes on the board card as a question for the owner, and the files stay as they are.
## Steps
1. **Collect.** `node tools/dino/picture-lessons/collect.mjs` (run from the worktree root) prints JSON and does **not** classify anything: `sinceUsed` (the `Last run:` line of
`.claude/skills/create-dino-story/gemini-lessons.md`; null on a first run or when only `Lines read:` was used), `firstRun`, `noNewTries`, `changed` (tries whose verdict flipped since an earlier run, e.g. check-pass then review-fail: counted again with the latest status; the earlier run's counts are not rewritten), a per-try `counted` (a try is counted once, in the run that reads its verdict; a saved-only try has status `unchecked`) and `changedFrom`, `linesRead` (the `Lines read:` value to write back; new log lines are those past the counts in that file's `Lines read:` line, so a book whose PR merged after the last run is still read; with no `Lines read:` line, lines newer than `Last run:`), `counts`, `byModel` and `byAccount`
(tries, passed, failed, refused: counted from the log's verdict events, never from words), `tries` (each try with a new row: page, try, model, account, `status`, its prompt, the checker's and reviewer's notes, its owner rows and, for a failed or refused one,
`nextPass`: the prompt of the next passing try of the same page), `ownerRows`, `overrules` (the owner against the checker) and, on a first run, `artNotes` (every book's `art.md` `## Check results` and
`## Accepted by the user`). Never read pictures; the log and notes are the whole input. **You read the notes and group them into mistake kinds yourself** (a note can show several faults; "no scarf" is not a scarf).
2. **No new tries: stop.** `noNewTries: true` (no new tries and no new owner rows) means no branch, no PR, no edit. Put one line on the board card ("picture-lessons: no new tries since <date>")
and mark it done. The worktree stays clean (the next run's setup removes it).
3. **Analyse (judgment).** Group the notes into kinds, then for each kind: how often, since when, which model and account, and which prompt wording sits on the passing tries after it failed.
- **The owner's overrules count most.** An `owner-accept` of a try the checker failed means the check is too strict or wrongly worded for that mistake; an `owner-reject` of a passed try means the check missed it. Each one earns a line in the lessons and, where clear, a change to the check list.
- A kind seen once, or a fix seen once, is a note, not a rule: say "seen once". A prompt change needs the same wording passing at least twice after the same failure, or an owner overrule. `prompt` is empty on older log lines: those count for how often, never for wording.
- Failures are counted per model and account so a problem of one account or model is not written as a Gemini rule.
4. **Rewrite** (edit only these):
- `.claude/skills/create-dino-story/gemini-lessons.md`: rewrite the *Lessons from the logs* section (each mistake: how often, since when, the wording that fixes it, the source tries `<stem> page <p> try <n>`; plus a line of counts per model and account and one for overrules) and set `Last run: <UTC timestamp now>` and `Lines read: <linesRead from collect, as stem=count, comma separated>` (the next run reads only the lines after those counts). Every lesson starts with a stable slug in braces (`{#scarf-not-asked}`); `prompts.md`, the check list and the illustrator cite lessons by that slug, never by number, so keep every existing slug on its lesson when you rewrite or reorder, and give a new lesson a new slug. Keep *Moved lessons* unless the data shows one is wrong; a changed one says so and why.
- `.claude/skills/create-dino-story/prompts.md`: change a template's wording where a fix is clear (step 3 rule above).
- `.claude/skills/create-dino-story/SKILL.md` step 5 check list and `.claude/agents/dino-story-illustrator.md`: only to add or sharpen a check line for a mistake the log shows; never remove or loosen one.
- Nothing else: not `content/`, not `docs/books/`, not `plan.md`, not any script.
5. **Ship.** In the worktree: `git add` those files, commit `docs(dino): picture lessons <date> (Slice 497)` with `+semver: none` in the message
(follow `pr-conventions`), push the branch, open the PR with the note as its body, then `gh pr checks <n> --watch --fail-fast && gh pr merge <n> --merge`
(the `ship-branch` steps; a docs-only change needs no review gate). A red check is fixed once; if it stays red, leave the PR open and say so on the card.
6. **The note to the owner goes on the board card, and nowhere else** (from the Bash tool: `node ~/.claude/skills/run-wave/board.mjs report-progress --key "readthestupidtext/picture-lessons-<date>" --type unplanned --status in_progress --title "picture-lessons <date>" --agent picture-lessons --outcome "<the note>"`,
then the same with `--tool mark_done --key ...` after the merge; the agent has no agent-board MCP tool). Nothing is sent by mail, chat, Drive or any outside service. The note: what changed and why, with the counts
(new tries, failures per kind, per model and account, overrules), and any question the hard rules stopped.
## What it may change
`gemini-lessons.md`, `prompts.md`, `create-dino-story/SKILL.md` (step 5 check list only), `.claude/agents/dino-story-illustrator.md` (check list only), and its own PR. If a fix needs any other file, say so on the card.
## The schedule
`pwsh tools/dino/picture-lessons/install-task.ps1` registers the Windows scheduled task `DinoPictureLessons` (every 14 days, idempotent; `-DryRun` or `-WhatIf` shows
it without registering). The task runs `tools/dino/picture-lessons/run.ps1`, which makes a fresh worktree of `origin/main` and starts `claude -p --agent picture-lessons`
detached there (`run-all-waves/start-detached.ps1`). `run.ps1 -DryRun` prints the worktree and command without making or starting anything.