[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77Z5HFPMKEZYB1MWWNRFSND":3,"skill-same:01M77Z5HFPMKEZYB1MWWNRFSND":67},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M77Z5HFPMKEZYB1MWWNRFSND","markless-anatomy",null,"Build a live pen-and-ink figure for a markless.dev docs page, one idea drawn as 2 or 3 objects where the reader acts once and sees one change, in the same hand and ink as the State figure. Use whenever you add or rewrite a markless.dev docs page (website\u002Fpages\u002F**), explain a Markless concept visually, add a figure or diagram to the docs, or someone mentions \"anatomy\", the wired drawing, or website\u002Fcomponents\u002Ffigures\u002F.","compiled-run\u002Fmarkless","compiled-run","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F312797118?v=4","01M77Z248Q9PCPK92HPHM6X174","Compiled.Run","01M77Z249DKAP6PE0Y5CNFSSMM",3,"MIT","https:\u002F\u002Fgithub.com\u002Fcompiled-run\u002Fmarkless\u002Fblob\u002Fmain\u002F.ruler\u002Fskills\u002Fmarkless-anatomy\u002FLICENSE-UPSTREAM","https:\u002F\u002Fgithub.com\u002Fcompiled-run\u002Fmarkless\u002Fblob\u002Fmain\u002F.ruler\u002Fskills\u002Fmarkless-anatomy\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: markless-anatomy\ndescription: Build a live pen-and-ink figure for a markless.dev docs page, one idea drawn as 2 or 3 objects where the reader acts once and sees one change, in the same hand and ink as the State figure. Use whenever you add or rewrite a markless.dev docs page (website\u002Fpages\u002F**), explain a Markless concept visually, add a figure or diagram to the docs, or someone mentions \"anatomy\", the wired drawing, or website\u002Fcomponents\u002Ffigures\u002F.\n---\n\n# Markless ink figures\n\nConcept pages on markless.dev can carry one live drawing that makes one idea click. Draw the\nrelationship, not a scene around it: two or three objects, one press, one consequence.\n\nThe accepted reference is the State figure: `website\u002Fcomponents\u002Ffigures\u002Fstate\u002F`, placed in\n`website\u002Fpages\u002Fconcepts\u002Fstate.mdx` under `## Follow the wire`. The owner froze it as the target.\nA new figure is right when it looks like it was drawn by the same hand, in the same ink. Each\nconcept gets its own 2- or 3-object picture of its own relationship; the desk, the shop and the\nwires belong to State. Do not edit the State figure to build a new one.\n\nAdapted from the MIT-licensed anatomy skill by Ryan, github.com\u002Fwheresryan22\u002Fanatomy (notice in\n`LICENSE-UPSTREAM`). Only the idea of a live explanatory figure and the projection helpers remain;\nthe isometric machine look from upstream was rejected and is not used.\n\n## 1. Write the brief before any drawing\n\nWrite the brief and check it against the page's own prose and code. The figure may only show\nwhat the page says is true. If the brief needs more than four short lines, the figure is too big.\n\nCore rules:\n\n- **One idea per figure.** The idea itself is the picture, not a scene around it. No whole shop\n  page unless the idea is about the page.\n- **Two or three objects.** If you need a fourth, the figure explains too much: split it or cut it.\n- **One action and one change.** The reader presses once, then one thing changes. Nothing else\n  moves.\n- **At most about five words of text inside the drawing.** Names the code uses (`bags`, `total`)\n  and values count; sentences do not.\n- **A metaphor only if it maps one to one** onto the mechanism, including what it cannot do (a\n  shadow cannot be moved on its own, as a computed value cannot be set). Otherwise draw the\n  concept literally.\n- **No metaphor repeats across the site.** Wires, cords, clips and jars stay on State only.\n- **Draw the real thing when one exists.** When the idea has a real object (a keyboard, a\n  terminal, an editor, a PR checks box, a folder tree, the component itself), draw that object\n  faithfully in ink, with craft, and make it playable. Use a metaphor only when no real object\n  shows the idea. The owner's verdicts so far: the chess board, awesome; the links key that only\n  fits doors that exist, pretty good; the Computed paper tiles, ok; the CI boarding pass with\n  stamps and a bare wireframe parts anatomy, rejected.\n\n1. **The one thing the reader must believe.** One sentence. State: \"the cart count is wired to\n   the two spots that show it, and nothing else on the page moves\".\n2. **The real parts, as the reader knows them.** A product, a price, a button, a cart badge.\n   Name them in shop words, not framework words.\n3. **What moves, and what deliberately does not.** State: the badge and the cart line move; the\n   shop name, product and price have no wire and never move. The still parts are half the lesson.\n4. **The misunderstanding the picture prevents.** State: \"the whole page re-runs on every click\".\n\nThe brief must pass every point before drawing:\n\n- [ ] The one sentence the reader must believe, in 15 words or fewer.\n- [ ] Objects counted: 2 or 3 (a background sheet counts as one).\n- [ ] Each object maps to one thing in the code (`mugs`, `total`), and nothing is left over.\n- [ ] If it is a metaphor, list the metaphor's properties the concept lacks. The list is empty, or\n      none of them shows in the drawing.\n- [ ] The reader does exactly one action, and the effect is visible within one glance of it.\n- [ ] Something that deliberately does not change is shown, and there is at most one such thing.\n- [ ] Words on the drawing: only code names and values.\n- [ ] Eraser test: remove each object in turn; if the sentence still comes across, remove it.\n- [ ] Not a picture another concept page already uses (no wires outside State).\n- [ ] Squint test: shrunk to a thumbnail, you can still see what relates to what.\n- [ ] A reader who skips the prose gets the sentence from the drawing alone.\n\nIf the picture needs decoding, start again.\n\nRejected by the owner, do not repeat:\n\n- A tally counter beside a \"stamped once\" card. A metaphor the reader has to translate.\n- An annotated code figure. No code in the drawing; it is a picture, not a listing.\n- Isometric machines, gears, shafts and labelled boxes.\n- The first Computed figure: a whole shop page around a small idea, with a three-line recipe card\n  (\"too much going on, too much to explain\"). No recipe card of several steps.\n- Wires and pipes on every page (\"why is everything just wires and pipes?\").\n- The CI boarding pass with stamps: a forced metaphor where a real object existed.\n- A bare wireframe anatomy of the parts.\n\n## 2. The State figure's own scene\n\nThe State figure's picture, not a rule for other pages. A new figure takes only the shared hand\nin section 3.\n\n- **A real business screen.** State is an everyday web page, the bean shop: `beanshop.dev`,\n  **Beanshop**, **House blend · 250 g**, **$14**, an **Add to cart** button, a cart badge and\n  the line \"In your cart: N bags\".\n- **The page is a sheet of paper on a desk**, with a browser bar (three dots, a URL pill) drawn\n  on it, one corner lifting in a soft curl, and its shadow hatched onto the desk.\n- **Values are physical objects** standing on the desk: the `cart` jar holds one bean per bag. A\n  paper tag on a string carries the state variable's name exactly as it is written in code.\n- **Ink wires** run from the object to a crocodile clip biting every spot that shows the value. A\n  second spot gets a branch off the same wire, joined at a small splice. A thin wire runs from\n  the action button back into the object.\n- **No wire, no change.** Static content sits on the paper with nothing attached.\n- **One margin note** in the corner, handwritten capitals with a loose arrow:\n  `WIRED BEFORE THE PAGE RAN`.\n- **Motion:** the button sinks into the paper; a pulse runs along its thin wire into the jar; a\n  bean drops in; pulses run out along every wire together; at each spot the old number is struck\n  through and the new one is inked in over a fresh yellow wash, keeping at most one smaller\n  crossed-out value per spot.\n\n## 3. Ink style, shared by every figure\n\nFull recipes in `references\u002Fink.md`. In words:\n\n- **Camera (State):** true perspective from about 60° above, the sheet nearly square to the\n  viewer, so the text on the paper reads level and the desk recedes gently.\n- **Line:** a black fineliner. Every line is a filled, tapered shape: thin at both ends, heavier\n  on the underside of a form, slightly wobbly, overshooting its corners. Outlines are inked in\n  two to four runs with small pen lifts, and now and then a stretch is retraced.\n- **Tone:** hatching in clusters of a few strokes, each cluster at its own slight tilt, following\n  the form (up a jar, around a lid). Darks are cross-hatched, never filled grey.\n- **Colour:** one loose yellow wash over what changes, spilling a little past the lines with a\n  darker pool on one side. Pink only on what the reader presses. Everything else is paper and\n  ink. Faint pink-orange pencil construction lines stay visible under the ink.\n- **Placement:** directly on the page, the width of the prose column. No card, no border, no\n  figure number, no legend, no title inside the drawing.\n- **Themes:** light and dark come from the site tokens in `website\u002Fstyles\u002Fglobal.css`, with an\n  `html.dark &` override block in the figure's `\u003Cstyle>`. Dark follows the chalk rule below.\n\n### Dark mode: chalk on a dark ground\n\nDark is the swap of light: the page ground is light's ink and `--ink` is light's cream paper.\nAccents (`--yellow`, `--pink`, `--purple`, `--green-soft`) are the same colours in both themes.\nDesign in light first; light is the reference and must not change when you add dark.\n\n- **Line work** is `--ink` everywhere, so it reads as cream chalk in dark.\n- **Paper-like objects go dark.** A sheet, card, screen, window or plain paper is\n  `--figure-sheet` in dark, with `--raised` or `--slab` for depth. No cream slabs on the dark\n  page.\n- **Accent surfaces keep their light pastel,** solid: mix the accent into `--cream` (never\n  `--paper`, which is dark in dark mode), `mix-blend-mode: normal`, opacity 1. Everything drawn\n  on that fill uses `--on-accent`. Never mix an accent or material colour into the dark ground;\n  it turns olive or a murky jewel tone. Washes that `multiply` in light switch to `normal` in\n  dark.\n- **Shadows are hatching** in `--figure-hatch` over a faint `--figure-shade`, never a filled dark\n  blob.\n- **Status and code colours are shared tokens:** `--figure-error`, `--figure-ok`, `--syntax-*`\n  (also `--pencil`, `--marker`, `--highlight`, `--figure-kraft`). No literal hex or oklch in a\n  figure's `\u003Cstyle>`. A new role gets a new token in `global.css` whose light value equals the\n  old literal, plus a dark value.\n- **CSS gotcha:** never nest `html.dark &` inside a rule whose selector ends in a pseudo-element\n  (`::before`, `::marker`); write `html.dark .x::before { ... }` as its own rule.\n\nCheck: screenshot light and dark side by side, at rest and after each interaction; light is\nunchanged, text on every fill passes contrast, and if blends or filters are involved, Chromium,\nFirefox and WebKit agree. Checklist in `references\u002Fverify.md`.\n\n## 4. Motion and play\n\nClick, Enter or Space presses. One press, cause then effect, once. The object that does not\nchange stays still. No motion without a reason. Escape resets.\n\nFigures are toys. The one main action carries the lesson, but the figure must also reward play.\nThe bar is the chess figure the owner praised (\"AWESOME. But you could only click on it.\"):\n\n- **Every object responds to hover.** It lifts or tilts, shows its name or value in ink, and the\n  cursor feels it (a piece casts a moving shadow, a tile wobbles).\n- **Drag, keyboard and touch work too,** not only press: drag a tile's number up and down like a\n  dial, move a piece to a square, arrows and Enter.\n- **One unexpected surprise that still teaches.** Try to set the computed total and it shakes and\n  refuses; drop a chess piece on an illegal square and it slides back.\n- **Respond instantly.** Never make the reader wait on a tour.\n- Still one idea and 2 or 3 objects. Delight comes from how the objects respond, not from adding\n  objects.\n\nAn idle tour only hints while nobody touches the figure, stops for good after the first touch,\nand pauses while the figure is offscreen. Reduced motion keeps every interaction but drops the\nanimation, and runs no tour. A visually hidden live region speaks one plain\nsentence after each change (\"Added a bag. The cart badge and the cart line now show 4.\").\n\n## 5. Text\n\n- Words on the drawing are code names and values only, about five at most. No margin note unless\n  it is the one belief in three words (State's `WIRED BEFORE THE PAGE RAN` is State's own).\n  **No readout or stat line** (the owner rejected \"CART 3 · 2 SPOTS REDRAWN\").\n- Section heading: a short instruction to the reader, as State's \"Follow the wire\" is. Never\n  \"Anatomy of X\".\n- Section prose: one or two short sentences, naming the object and the variable, then what one\n  press changes.\n- Numbers on the paper sit inline right after their label, bold and big enough to read at 390 px.\n\n## 6. Build rules\n\nThese came from failures while building State. Walkthrough in `references\u002Fwalkthrough.md`.\n\n- **Geometry in plain `.ts`, frozen to `*.art.ts`.** The compiler rejects computed geometry as\n  component props, so the scene builder (`wired.ts`) returns plain data and the test writes it to\n  `wired.art.ts` with `toMatchFileSnapshot`. The `.tsrx` imports only `art`. The browser never\n  computes geometry. Refresh after a geometry change from `website\u002F` with\n  `pnpm test run components\u002Ffigures -u`, then read the diff.\n- **Deterministic seeds.** Every random stroke takes a fixed seed; the test asserts two runs of\n  `drawing()` are identical.\n- **Text on the paper is real `\u003Ctext>`** placed with a precomputed SVG `matrix(...)` that maps\n  page millimetres onto the sheet in perspective.\n- **Never put `Ring` or any imported component inside an `@if` arm or `@for` row.** Draw it\n  inline. Doing so pulled 151 KB into the docs home page's prefetch.\n- **No keyed `@for` over a computed list.** It broke resume with\n  `MARKLESS_MDX_RENDER_DATA_ROOT_MISSING`. Loop over frozen art, and pick per-value pieces with\n  `computed()` indexing into that art.\n- **TSRX types reject SVG filter and pattern attributes, `href` and `dy`.** Texture is real\n  strokes, not filters or patterns.\n- **Motion is CSS driven by state.** A `beat` state flips between `odd` and `even`, which swaps\n  between two identical copies of each keyframe so every press restarts the animations.\n- **Order of work:** brief, then the still drawing, judged against the brief in screenshots; only\n  then motion. Screenshot light, dark, 390 px wide and mid-motion, and read every image.\n  Checklist in `references\u002Fverify.md`.\n\n## Where things live\n\n| Path | What it is |\n|---|---|\n| `website\u002Fcomponents\u002Ffigures\u002Fstate\u002Fink.ts` | The ink renderer: `stroke`, `outline`, `line`, `hatch`, `wash`, `pool`, `hull`, `clipTo`, `seeded`. Reusable as is. |\n| `website\u002Fcomponents\u002Ffigures\u002Fstate\u002Fwired.ts` | The scene builder: camera, sheet with curl, page contents, jar, beans, cords, clips, strikes, margin note. Its patterns (`sheetAt`, `sheetMatrix`, `cord`, `crocodile`, `shadowOnDesk`) are the kit for the next figure. |\n| `website\u002Fcomponents\u002Ffigures\u002Fstate\u002Fmodel.ts` | The values, the press, the tour and the spoken sentence. |\n| `website\u002Fcomponents\u002Ffigures\u002Fstate\u002Fstate-anatomy.tsrx` | Markup, state, CSS motion, tour and accessibility. |\n| `website\u002Fcomponents\u002Ffigures\u002Fstate\u002Fwired.test.ts` | Model and page pins, determinism, and the freeze. |\n| `website\u002Fcomponents\u002Ffigures\u002Fkit\u002F` | The isometric port. Only `iso-kit.ts` (perspective projection) and `lathe.ts` (vector maths) are used by State; the drawing parts (`draw.tsrx`, gears, tubes, audit, motion, sketch, proof) are unused. |\n\nWhen the second figure is built, move `ink.ts`, the reusable parts of `wired.ts` and the two kit\nhelpers into a shared folder such as `website\u002Fcomponents\u002Ffigures\u002Fink\u002F`, and leave each page's\nfigure in `website\u002Fcomponents\u002Ffigures\u002F\u003Cpage>\u002F`. Do that move as its own change.\n\n## Briefs for the other pages\n\nThe owner's picks. Read each page first and check the brief against what it actually claims.\n\n- **State.** Keeps its frozen figure. If it is ever simplified: jar, one badge with a wire, one\n  price with no wire.\n- **Computed.** Three paper tiles: `[mugs 2] + [coasters 3] = [total 5]`. Tap a left tile and\n  its number goes up; the total re-inks. The total has no grip: tap it and it only shakes.\n  Belief: the total is made from the other two and cannot be set by hand.\n- **Events.** A keyboard key, a small card, an open hand. Press `a`: one card reading\n  `key: \"a\"` slides out and lands in the hand. No press, no card. Belief: the handler is handed\n  the browser's real event, once per event.\n- **Conditionals.** A sticky note on a sheet, and a waste bin. Write on the note and close it:\n  the note goes in the bin and the sheet is bare. Open again: a fresh blank note. Belief: closing\n  removes the element and what it held; opening builds a new one.\n- **Lists (keyed).** Three name cards in three slots, one card ticked. Press Reverse: the cards\n  travel to new slots and the tick rides with its card; the slots stay put. Belief: a row and its\n  state move together because the key names the row.\n- **Async.** A finished ink sheet with one pencil spot. The answer arrives and is inked over the\n  pencil; pick again and the old ink stays, with a pencil `…` beside it, until the new ink\n  replaces it. Belief: waiting is one spot's block, and the old answer stays until the new one is\n  ready.\n- **Styling (scoped).** Two identical cards, both labelled `.card`, each with a file tab, and one\n  paint pot with a matching tab. Press: the wash lands on the matching card only. Belief: the\n  same class name in two files does not collide.\n- **Links (in-place navigation).** A clipboard: the board and clip stay, the sheet under the clip\n  is swapped, and the tag on the clip re-inks with the new address. Belief: the shell stays;\n  only the content and the address change. (For the build-checked links page: a key that fits\n  only doors that exist.)\n- **Resuming.** The chess board the owner praised, kept and simplified to a few pieces: it arrives\n  mid-game and the next move lifts one piece, made fully playable as in section 4. Belief: the\n  position arrives with the page, and the browser carries on from it. (The research pick, a relay\n  baton passed mid-stride, is the fallback.)\n\nAnything else: derive a new picture by the same rules, and check it against these so no\nmetaphor repeats. Alternatives and sources are in `goals\u002Fdocs-rewrite\u002Ffigure-research.md`.\n\n## References\n\n- `references\u002Fwalkthrough.md`: how the State figure is built, from brief to motion.\n- `references\u002Fink.md`: the ink style with the renderer's functions and settings.\n- `references\u002Fverify.md`: tests, screenshots and the review checklist.\n","# Markless ink figures\n\nConcept pages on markless.dev can carry one live drawing that makes one idea click. Draw the\nrelationship, not a scene around it: two or three objects, one press, one consequence.\n\nThe accepted reference is the State figure: `website\u002Fcomponents\u002Ffigures\u002Fstate\u002F`, placed in\n`website\u002Fpages\u002Fconcepts\u002Fstate.mdx` under `## Follow the wire`. The owner froze it as the target.\nA new figure is right when it looks like it was drawn by the same hand, in the same ink. Each\nconcept gets its own 2- or 3-object picture of its own relationship; the desk, the shop and the\nwires belong to State. Do not edit the State figure to build a new one.\n\nAdapted from the MIT-licensed anatomy skill by Ryan, github.com\u002Fwheresryan22\u002Fanatomy (notice in\n`LICENSE-UPSTREAM`). Only the idea of a live explanatory figure and the projection helpers remain;\nthe isometric machine look from upstream was rejected and is not used.\n\n## 1. Write the brief before any drawing\n\nWrite the brief and check it against the page's own prose and code. The figure may only show\nwhat the page says is true. If the brief needs more than four short lines, the figure is too big.\n\nCore rules:\n\n- **One idea per figure.** The idea itself is the picture, not a scene around it. No whole shop\n  page unless the idea is about the page.\n- **Two or three objects.** If you need a fourth, the figure explains too much: split it or cut it.\n- **One action and one change.** The reader presses once, then one thing changes. Nothing else\n  moves.\n- **At most about five words of text inside the drawing.** Names the code uses (`bags`, `total`)\n  and values count; sentences do not.\n- **A metaphor only if it maps one to one** onto the mechanism, including what it cannot do (a\n  shadow cannot be moved on its own, as a computed value cannot be set). Otherwise draw the\n  concept literally.\n- **No metaphor repeats across the site.** Wires, cords, clips and jars stay on State only.\n- **Draw the real thing when one exists.** When the idea has a real object (a keyboard, a\n  terminal, an editor, a PR checks box, a folder tree, the component itself), draw that object\n  faithfully in ink, with craft, and make it playable. Use a metaphor only when no real object\n  shows the idea. The owner's verdicts so far: the chess board, awesome; the links key that only\n  fits doors that exist, pretty good; the Computed paper tiles, ok; the CI boarding pass with\n  stamps and a bare wireframe parts anatomy, rejected.\n\n1. **The one thing the reader must believe.** One sentence. State: \"the cart count is wired to\n   the two spots that show it, and nothing else on the page moves\".\n2. **The real parts, as the reader knows them.** A product, a price, a button, a cart badge.\n   Name them in shop words, not framework words.\n3. **What moves, and what deliberately does not.** State: the badge and the cart line move; the\n   shop name, product and price have no wire and never move. The still parts are half the lesson.\n4. **The misunderstanding the picture prevents.** State: \"the whole page re-runs on every click\".\n\nThe brief must pass every point before drawing:\n\n- [ ] The one sentence the reader must believe, in 15 words or fewer.\n- [ ] Objects counted: 2 or 3 (a background sheet counts as one).\n- [ ] Each object maps to one thing in the code (`mugs`, `total`), and nothing is left over.\n- [ ] If it is a metaphor, list the metaphor's properties the concept lacks. The list is empty, or\n      none of them shows in the drawing.\n- [ ] The reader does exactly one action, and the effect is visible within one glance of it.\n- [ ] Something that deliberately does not change is shown, and there is at most one such thing.\n- [ ] Words on the drawing: only code names and values.\n- [ ] Eraser test: remove each object in turn; if the sentence still comes across, remove it.\n- [ ] Not a picture another concept page already uses (no wires outside State).\n- [ ] Squint test: shrunk to a thumbnail, you can still see what relates to what.\n- [ ] A reader who skips the prose gets the sentence from the drawing alone.\n\nIf the picture needs decoding, start again.\n\nRejected by the owner, do not repeat:\n\n- A tally counter beside a \"stamped once\" card. A metaphor the reader has to translate.\n- An annotated code figure. No code in the drawing; it is a picture, not a listing.\n- Isometric machines, gears, shafts and labelled boxes.\n- The first Computed figure: a whole shop page around a small idea, with a three-line recipe card\n  (\"too much going on, too much to explain\"). No recipe card of several steps.\n- Wires and pipes on every page (\"why is everything just wires and pipes?\").\n- The CI boarding pass with stamps: a forced metaphor where a real object existed.\n- A bare wireframe anatomy of the parts.\n\n## 2. The State figure's own scene\n\nThe State figure's picture, not a rule for other pages. A new figure takes only the shared hand\nin section 3.\n\n- **A real business screen.** State is an everyday web page, the bean shop: `beanshop.dev`,\n  **Beanshop**, **House blend · 250 g**, **$14**, an **Add to cart** button, a cart badge and\n  the line \"In your cart: N bags\".\n- **The page is a sheet of paper on a desk**, with a browser bar (three dots, a URL pill) drawn\n  on it, one corner lifting in a soft curl, and its shadow hatched onto the desk.\n- **Values are physical objects** standing on the desk: the `cart` jar holds one bean per bag. A\n  paper tag on a string carries the state variable's name exactly as it is written in code.\n- **Ink wires** run from the object to a crocodile clip biting every spot that shows the value. A\n  second spot gets a branch off the same wire, joined at a small splice. A thin wire runs from\n  the action button back into the object.\n- **No wire, no change.** Static content sits on the paper with nothing attached.\n- **One margin note** in the corner, handwritten capitals with a loose arrow:\n  `WIRED BEFORE THE PAGE RAN`.\n- **Motion:** the button sinks into the paper; a pulse runs along its thin wire into the jar; a\n  bean drops in; pulses run out along every wire together; at each spot the old number is struck\n  through and the new one is inked in over a fresh yellow wash, keeping at most one smaller\n  crossed-out value per spot.\n\n## 3. Ink style, shared by every figure\n\nFull recipes in `references\u002Fink.md`. In words:\n\n- **Camera (State):** true perspective from about 60° above, the sheet nearly square to the\n  viewer, so the text on the paper reads level and the desk recedes gently.\n- **Line:** a black fineliner. Every line is a filled, tapered shape: thin at both ends, heavier\n  on the underside of a form, slightly wobbly, overshooting its corners. Outlines are inked in\n  two to four runs with small pen lifts, and now and then a stretch is retraced.\n- **Tone:** hatching in clusters of a few strokes, each cluster at its own slight tilt, following\n  the form (up a jar, around a lid). Darks are cross-hatched, never filled grey.\n- **Colour:** one loose yellow wash over what changes, spilling a little past the lines with a\n  darker pool on one side. Pink only on what the reader presses. Everything else is paper and\n  ink. Faint pink-orange pencil construction lines stay visible under the ink.\n- **Placement:** directly on the page, the width of the prose column. No card, no border, no\n  figure number, no legend, no title inside the drawing.\n- **Themes:** light and dark come from the site tokens in `website\u002Fstyles\u002Fglobal.css`, with an\n  `html.dark &` override block in the figure's `\u003Cstyle>`. Dark follows the chalk rule below.\n\n### Dark mode: chalk on a dark ground\n\nDark is the swap of light: the page ground is light's ink and `--ink` is light's cream paper.\nAccents (`--yellow`, `--pink`, `--purple`, `--green-soft`) are the same colours in both themes.\nDesign in light first; light is the reference and must not change when you add dark.\n\n- **Line work** is `--ink` everywhere, so it reads as cream chalk in dark.\n- **Paper-like objects go dark.** A sheet, card, screen, window or plain paper is\n  `--figure-sheet` in dark, with `--raised` or `--slab` for depth. No cream slabs on the dark\n  page.\n- **Accent surfaces keep their light pastel,** solid: mix the accent into `--cream` (never\n  `--paper`, which is dark in dark mode), `mix-blend-mode: normal`, opacity 1. Everything drawn\n  on that fill uses `--on-accent`. Never mix an accent or material colour into the dark ground;\n  it turns olive or a murky jewel tone. Washes that `multiply` in light switch to `normal` in\n  dark.\n- **Shadows are hatching** in `--figure-hatch` over a faint `--figure-shade`, never a filled dark\n  blob.\n- **Status and code colours are shared tokens:** `--figure-error`, `--figure-ok`, `--syntax-*`\n  (also `--pencil`, `--marker`, `--highlight`, `--figure-kraft`). No literal hex or oklch in a\n  figure's `\u003Cstyle>`. A new role gets a new token in `global.css` whose light value equals the\n  old literal, plus a dark value.\n- **CSS gotcha:** never nest `html.dark &` inside a rule whose selector ends in a pseudo-element\n  (`::before`, `::marker`); write `html.dark .x::before { ... }` as its own rule.\n\nCheck: screenshot light and dark side by side, at rest and after each interaction; light is\nunchanged, text on every fill passes contrast, and if blends or filters are involved, Chromium,\nFirefox and WebKit agree. Checklist in `references\u002Fverify.md`.\n\n## 4. Motion and play\n\nClick, Enter or Space presses. One press, cause then effect, once. The object that does not\nchange stays still. No motion without a reason. Escape resets.\n\nFigures are toys. The one main action carries the lesson, but the figure must also reward play.\nThe bar is the chess figure the owner praised (\"AWESOME. But you could only click on it.\"):\n\n- **Every object responds to hover.** It lifts or tilts, shows its name or value in ink, and the\n  cursor feels it (a piece casts a moving shadow, a tile wobbles).\n- **Drag, keyboard and touch work too,** not only press: drag a tile's number up and down like a\n  dial, move a piece to a square, arrows and Enter.\n- **One unexpected surprise that still teaches.** Try to set the computed total and it shakes and\n  refuses; drop a chess piece on an illegal square and it slides back.\n- **Respond instantly.** Never make the reader wait on a tour.\n- Still one idea and 2 or 3 objects. Delight comes from how the objects respond, not from adding\n  objects.\n\nAn idle tour only hints while nobody touches the figure, stops for good after the first touch,\nand pauses while the figure is offscreen. Reduced motion keeps every interaction but drops the\nanimation, and runs no tour. A visually hidden live region speaks one plain\nsentence after each change (\"Added a bag. The cart badge and the cart line now show 4.\").\n\n## 5. Text\n\n- Words on the drawing are code names and values only, about five at most. No margin note unless\n  it is the one belief in three words (State's `WIRED BEFORE THE PAGE RAN` is State's own).\n  **No readout or stat line** (the owner rejected \"CART 3 · 2 SPOTS REDRAWN\").\n- Section heading: a short instruction to the reader, as State's \"Follow the wire\" is. Never\n  \"Anatomy of X\".\n- Section prose: one or two short sentences, naming the object and the variable, then what one\n  press changes.\n- Numbers on the paper sit inline right after their label, bold and big enough to read at 390 px.\n\n## 6. Build rules\n\nThese came from failures while building State. Walkthrough in `references\u002Fwalkthrough.md`.\n\n- **Geometry in plain `.ts`, frozen to `*.art.ts`.** The compiler rejects computed geometry as\n  component props, so the scene builder (`wired.ts`) returns plain data and the test writes it to\n  `wired.art.ts` with `toMatchFileSnapshot`. The `.tsrx` imports only `art`. The browser never\n  computes geometry. Refresh after a geometry change from `website\u002F` with\n  `pnpm test run components\u002Ffigures -u`, then read the diff.\n- **Deterministic seeds.** Every random stroke takes a fixed seed; the test asserts two runs of\n  `drawing()` are identical.\n- **Text on the paper is real `\u003Ctext>`** placed with a precomputed SVG `matrix(...)` that maps\n  page millimetres onto the sheet in perspective.\n- **Never put `Ring` or any imported component inside an `@if` arm or `@for` row.** Draw it\n  inline. Doing so pulled 151 KB into the docs home page's prefetch.\n- **No keyed `@for` over a computed list.** It broke resume with\n  `MARKLESS_MDX_RENDER_DATA_ROOT_MISSING`. Loop over frozen art, and pick per-value pieces with\n  `computed()` indexing into that art.\n- **TSRX types reject SVG filter and pattern attributes, `href` and `dy`.** Texture is real\n  strokes, not filters or patterns.\n- **Motion is CSS driven by state.** A `beat` state flips between `odd` and `even`, which swaps\n  between two identical copies of each keyframe so every press restarts the animations.\n- **Order of work:** brief, then the still drawing, judged against the brief in screenshots; only\n  then motion. Screenshot light, dark, 390 px wide and mid-motion, and read every image.\n  Checklist in `references\u002Fverify.md`.\n\n## Where things live\n\n| Path | What it is |\n|---|---|\n| `website\u002Fcomponents\u002Ffigures\u002Fstate\u002Fink.ts` | The ink renderer: `stroke`, `outline`, `line`, `hatch`, `wash`, `pool`, `hull`, `clipTo`, `seeded`. Reusable as is. |\n| `website\u002Fcomponents\u002Ffigures\u002Fstate\u002Fwired.ts` | The scene builder: camera, sheet with curl, page contents, jar, beans, cords, clips, strikes, margin note. Its patterns (`sheetAt`, `sheetMatrix`, `cord`, `crocodile`, `shadowOnDesk`) are the kit for the next figure. |\n| `website\u002Fcomponents\u002Ffigures\u002Fstate\u002Fmodel.ts` | The values, the press, the tour and the spoken sentence. |\n| `website\u002Fcomponents\u002Ffigures\u002Fstate\u002Fstate-anatomy.tsrx` | Markup, state, CSS motion, tour and accessibility. |\n| `website\u002Fcomponents\u002Ffigures\u002Fstate\u002Fwired.test.ts` | Model and page pins, determinism, and the freeze. |\n| `website\u002Fcomponents\u002Ffigures\u002Fkit\u002F` | The isometric port. Only `iso-kit.ts` (perspective projection) and `lathe.ts` (vector maths) are used by State; the drawing parts (`draw.tsrx`, gears, tubes, audit, motion, sketch, proof) are unused. |\n\nWhen the second figure is built, move `ink.ts`, the reusable parts of `wired.ts` and the two kit\nhelpers into a shared folder such as `website\u002Fcomponents\u002Ffigures\u002Fink\u002F`, and leave each page's\nfigure in `website\u002Fcomponents\u002Ffigures\u002F\u003Cpage>\u002F`. Do that move as its own change.\n\n## Briefs for the other pages\n\nThe owner's picks. Read each page first and check the brief against what it actually claims.\n\n- **State.** Keeps its frozen figure. If it is ever simplified: jar, one badge with a wire, one\n  price with no wire.\n- **Computed.** Three paper tiles: `[mugs 2] + [coasters 3] = [total 5]`. Tap a left tile and\n  its number goes up; the total re-inks. The total has no grip: tap it and it only shakes.\n  Belief: the total is made from the other two and cannot be set by hand.\n- **Events.** A keyboard key, a small card, an open hand. Press `a`: one card reading\n  `key: \"a\"` slides out and lands in the hand. No press, no card. Belief: the handler is handed\n  the browser's real event, once per event.\n- **Conditionals.** A sticky note on a sheet, and a waste bin. Write on the note and close it:\n  the note goes in the bin and the sheet is bare. Open again: a fresh blank note. Belief: closing\n  removes the element and what it held; opening builds a new one.\n- **Lists (keyed).** Three name cards in three slots, one card ticked. Press Reverse: the cards\n  travel to new slots and the tick rides with its card; the slots stay put. Belief: a row and its\n  state move together because the key names the row.\n- **Async.** A finished ink sheet with one pencil spot. The answer arrives and is inked over the\n  pencil; pick again and the old ink stays, with a pencil `…` beside it, until the new ink\n  replaces it. Belief: waiting is one spot's block, and the old answer stays until the new one is\n  ready.\n- **Styling (scoped).** Two identical cards, both labelled `.card`, each with a file tab, and one\n  paint pot with a matching tab. Press: the wash lands on the matching card only. Belief: the\n  same class name in two files does not collide.\n- **Links (in-place navigation).** A clipboard: the board and clip stay, the sheet under the clip\n  is swapped, and the tag on the clip re-inks with the new address. Belief: the shell stays;\n  only the content and the address change. (For the build-checked links page: a key that fits\n  only doors that exist.)\n- **Resuming.** The chess board the owner praised, kept and simplified to a few pieces: it arrives\n  mid-game and the next move lifts one piece, made fully playable as in section 4. Belief: the\n  position arrives with the page, and the browser carries on from it. (The research pick, a relay\n  baton passed mid-stride, is the fallback.)\n\nAnything else: derive a new picture by the same rules, and check it against these so no\nmetaphor repeats. Alternatives and sources are in `goals\u002Fdocs-rewrite\u002Ffigure-research.md`.\n\n## References\n\n- `references\u002Fwalkthrough.md`: how the State figure is built, from brief to motion.\n- `references\u002Fink.md`: the ink style with the renderer's functions and settings.\n- `references\u002Fverify.md`: tests, screenshots and the review checklist.\n",{"name":5,"description":7},"main","a65038eb31b69b03c9d7b57b7a8149386d02064c",".ruler\u002Fskills\u002Fmarkless-anatomy",0,"https:\u002F\u002Fgithub.com\u002Fcompiled-run\u002Fmarkless","https:\u002F\u002Fgithub.com\u002Fcompiled-run","https:\u002F\u002Fcompiled.run\u002F","Building the next generation of compiler software","2026-11-15 05:16:50",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add compiled-run\u002Fmarkless --skill markless-anatomy",{"tool":40,"command":41},"bunx","bunx skills add compiled-run\u002Fmarkless --skill markless-anatomy",{"tool":43,"command":44},"pnpm","pnpm dlx skills add compiled-run\u002Fmarkless --skill markless-anatomy","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcompiled-run\u002Fmarkless\u002Fblob\u002Fmain\u002F.ruler\u002Fskills\u002Fmarkless-anatomy\u002FSKILL.md",true,[48,53,59,63],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":16},"LICENSE-UPSTREAM","LICENSE","许可证",1207,{"path":54,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":57,"sourceHtmlUrl":58},"references\u002Fink.md","REFERENCE","参考文档",4508,"https:\u002F\u002Fgithub.com\u002Fcompiled-run\u002Fmarkless\u002Fblob\u002Fmain\u002F.ruler\u002Fskills\u002Fmarkless-anatomy\u002Freferences\u002Fink.md",{"path":60,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":61,"sourceHtmlUrl":62},"references\u002Fverify.md",4991,"https:\u002F\u002Fgithub.com\u002Fcompiled-run\u002Fmarkless\u002Fblob\u002Fmain\u002F.ruler\u002Fskills\u002Fmarkless-anatomy\u002Freferences\u002Fverify.md",{"path":64,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":65,"sourceHtmlUrl":66},"references\u002Fwalkthrough.md",6632,"https:\u002F\u002Fgithub.com\u002Fcompiled-run\u002Fmarkless\u002Fblob\u002Fmain\u002F.ruler\u002Fskills\u002Fmarkless-anatomy\u002Freferences\u002Fwalkthrough.md",[68,75,82,89,96,103],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":20},"01M77Z5Z2DN4WKQD805NF4DBQC","review-with-engineer-lenses","Use when reviewing API changes, API design, technical docs, developer experience, or repo changes through junior engineer, senior engineer, platform engineer, and AI-agent perspectives.","https:\u002F\u002Fgithub.com\u002Fcompiled-run\u002Fmarkless\u002Fblob\u002Fmain\u002F.ruler\u002Fskills\u002Freview-with-engineer-lenses\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":20},"01M77Z5XCP92P5J58JK56SGTHS","markless-spec-maintenance","Use when updating, reviewing, or reconciling Markless specifications under specs\u002F.","https:\u002F\u002Fgithub.com\u002Fcompiled-run\u002Fmarkless\u002Fblob\u002Fmain\u002F.ruler\u002Fskills\u002Fmarkless-spec-maintenance\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":20},"01M77Z5TXA1T7A32ECR5R3PB1S","markless-implementation","Use for Markless implementation, compiler, bundler, performance, testing, and release work.","https:\u002F\u002Fgithub.com\u002Fcompiled-run\u002Fmarkless\u002Fblob\u002Fmain\u002F.ruler\u002Fskills\u002Fmarkless-implementation\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":20},"01M77Z5NWFHXM8Z0EAWV3X3598","markless-component-research","Research component accessibility patterns and API design for a @markless\u002Fui family by analyzing headless UI libraries, the QDS reference, and accessibility specifications. Use before designing or migrating any component family — when asked to research a UI component, create its research.md, analyze accessibility patterns across component libraries, or document keyboard interactions and ARIA attributes.","https:\u002F\u002Fgithub.com\u002Fcompiled-run\u002Fmarkless\u002Fblob\u002Fmain\u002F.ruler\u002Fskills\u002Fmarkless-component-research\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":20},"01M77Z5D0FTA3XSEVNVNX2P7HV","guessless","Prove structural claims about JavaScript\u002FTypeScript with a guessless receipt. Use when about to say \"all call sites\", \"every reference\", \"nothing else imports this\", or \"safe to delete\"; when renaming or deleting an exported symbol; when a claim gate has blocked a turn asking for a receipt; or when auditing whether a change is complete. Do not use for non-JS\u002FTS languages.","https:\u002F\u002Fgithub.com\u002Fcompiled-run\u002Fmarkless\u002Fblob\u002Fmain\u002F.ruler\u002Fskills\u002Fguessless\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":20},"01M77Z5A945457WK5J4ZGKPWXR","efficient-fable","Use when running Claude Fable on codebase-heavy or token-heavy work and the user wants Fable to orchestrate research, coding, and testing while cheaper subagents do bounded heavy lifting.","https:\u002F\u002Fgithub.com\u002Fcompiled-run\u002Fmarkless\u002Fblob\u002Fmain\u002F.ruler\u002Fskills\u002Fefficient-fable\u002FSKILL.md",[],[]]