A World Graph Built by a Second Skill: Spoiler-Aware Knowledge Graph Overlay
Post 9 of the Pepper & Carrot AI flipbook series. The chat layer answers questions about pages and the wiki; now we add a third affordance — a spoiler-aware knowledge graph of the comic's world, rendered as an in-reader overlay — plus a third Claude Code skill that closes the loop back to the chat. A second skill walks the wiki sources + the per-page description JSONs and writes a durable YAML pair. A FastAPI route filters the graph with a Postgres row-value comparison so an edge whose own debut is past the reader's cursor doesn't leak even when both of its endpoints are visible. Two response modes — focus (on-page characters + 1-hop structural neighbors) and full (the whole spoiler- safe world) — share the same boundary. A React + xyflow overlay renders circular avatar nodes with kind-based SVG fallbacks, a kind-filter bar, kind-colored edges that brighten on the selected node, soft fade-in for newly-revealed entities, and an "Ask in wiki mode" click that round-trips back through the chat panel. A third skill — summarize-wiki — authors one tight ~150-word .md per entity so that "Ask in wiki mode" for a minor character like Truffel or a coven like Magmah actually works against qwen2.5:7b, instead of the 30 KB multi-entity articles blowing past the prompt-hardening guarantees from Post 8.