[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7D1DB9THSSW6X1A72ZW0X82":3,"skill-same:01M7D1DB9THSSW6X1A72ZW0X82":45},{"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":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7D1DB9THSSW6X1A72ZW0X82","build-deck",null,"Use when building or extending a Fluenough deck, including writing the next planned unit of a language's B1 plan, a word unit or a grammar unit (a core in decks\u002F\u003Clang>\u002F plus its English layer in decks\u002F\u003Clang>\u002Fen\u002F). Not for app code.","aaronified\u002Ffluenough","aaronified","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F59017480?v=4","01M7D1D8YHKHSS51P9FM9BXMCG","Aro","01M7D1D8ZGW6HMSA4GNFPJYKMM",4,"GPL-3.0","https:\u002F\u002Fgithub.com\u002Faaronified\u002Ffluenough\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fbuild-deck\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: build-deck\ndescription: Use when building or extending a Fluenough deck, including writing the next planned unit of a language's B1 plan, a word unit or a grammar unit (a core in decks\u002F\u003Clang>\u002F plus its English layer in decks\u002F\u003Clang>\u002Fen\u002F). Not for app code.\n---\n\nThe wiki is the source of truth for documentation: https:\u002F\u002Fgithub.com\u002Faaronified\u002Ffluenough\u002Fwiki\n\n# Build a deck\n\nAn ordered checklist. It does not copy the format: [wiki\u002FDeck-Format.md](..\u002F..\u002F..\u002Fwiki\u002FDeck-Format.md)\nis the guide and `tools\u002Fvalidate_decks.py` is the test (owner, 2026-10-13,\n#506). Where this file and DECK-FORMAT differ, DECK-FORMAT wins. Read it before\nwriting, and [AGENTS.md](..\u002F..\u002F..\u002FAGENTS.md) and [CLAUDE.md](..\u002F..\u002F..\u002FCLAUDE.md)\nfor the rules. Section names below are headings in wiki\u002FDeck-Format.md.\n\nBefore you start:\n\n- Card ids are permanent: never renumber, reuse or tidy one (AGENTS.md rule 1).\n- Quote every YAML text value and key (\"YAML values\"). `true`, `false` and\n  whole numbers are the only unquoted values.\n- Do not write a card for one question type. The owner's rule (2026-10-13,\n  #506) is that a simple card should be able to generate all kinds of\n  questions. Questions will be derived from card data (ADR-0039, accepted).\n  The owner decided the mandatory set (2026-10-13, #506,\n  `wiki\u002FDeck-Format.md`, \"Card data\"): meaning; the reading for a non-Latin script; at\n  least 2 examples on a word card; the root word (`bases`); gender where the\n  language has it (per-language classes, decided: hi m\u002Ff; mr, gu, kn m\u002Ff\u002Fn;\n  te mahat\u002Famahat; es m\u002Ff; bn, as and ja none); and confusables on a sentence used for word\n  order. **The validator enforces only what it can check** (meaning, reading,\n  2 examples per word card, gender on nouns in gendered languages, as errors\n  once a language is filled in). Data that is \"mandatory when available\"\n  (confusables, root word, synonyms, antonyms, minimal pairs and the rest) is\n  never a validator error, so **you, the builder, must add it whenever it is\n  available**, and reviewers check it (owner, 2026-10-13, #506; review\n  pipeline work is #508). Fill what DECK-FORMAT allows (reading, ipa,\n  alt_target, pos, gender, examples, notes, bases, pair, picture, and the\n  card data: synonyms, antonyms, confusables, register, forms,\n  collocations, senses, frequency where it fits), at least 2 examples on a\n  word card, and do not set modes to restrict a card to one drill unless\n  DECK-FORMAT requires it. When a field lands, DECK-FORMAT and this list\n  are updated in the same change. New text for the learner goes in each\n  native layer.\n- **Narrow IPA (`[ ]`) is never written by hand** (owner, 2026-10-26, wiki:\n  Plan-Ipa-Revamp-And-Language-Phonology). `ipa` stays broad (\"the weak\n  notation keeps being used as is\"). A card's phonetic form, `phonetic:\n  \"[ˈkʰæt]\"`, with `phonetic_source: \"wiktionary\"` or `\"rules\"`, is written\n  only by the tools: `tools\u002Fimport_phonetic.py` takes Wiktionary's form where\n  there is one, and `tools\u002Fderive_phonetic.py` derives the rest from the\n  language's rule file. A builder does not write one from memory or from rules\n  in their head. **Status: the fields and the tools are not built yet.** Until\n  a release reads them (released apps reject unknown fields), leave them out.\n- Every question-word card (where, when, who, what, why, how, which, how\n  many) gets a `picture` plus `picture_ask: true` (DECK-FORMAT, \"A question\n  word's picture\"; owner, 2026-10-22, #707: \"So that all future decks can\n  start adding them\"). A deck can use `picture_ask` only once a release that\n  reads it is out: the released parser rejects unknown fields.\n- Closed groups (articles, pronouns, genders, cases and postpositions,\n  demonstratives, question words, conjunctions, days, months, number words\n  1-10, colours) need a set card that introduces the whole set, \"Teach only\"\n  (owner, 2026-10-13, #506), and verb forms too (#515). Every deck that\n  teaches such a group writes one: kind `set`, members by ref, its name\n  and explanation in each layer (DECK-FORMAT, \"Set cards\"). It gives the\n  learner the set's button after answering a member (owner, 2026-10-20).\n- Model: Haiku writes decks, and Sonnet reviews them once (CLAUDE.md, owner, 2026-10-22). Haiku for large reads. Any tool or validator change is Sonnet (CLAUDE.md, owner, 2026-10-22).\n\n## Checklist\n\n1. **Pick the unit.** In `decks\u002F\u003Clang>\u002F\u003Clang>-path.yaml`, take the first\n   `planned` unit in teaching order (list order), or the one you were asked\n   for. A unit with `grammar` and no `theme` is a grammar unit: follow\n   \"Grammar units\" below in place of steps 3 to 6 for words. Read its planned `id`, `theme` or `grammar`, `words`, and its\n   `listening_passages` and `reading_passages` (\"Paths\", \"The B1 plan\"). The\n   planned size is one number for every native language.\n2. **Get ids.** `python3 tools\u002Fvalidate_decks.py --next-id \u003Clang>` gives the\n   next free card id of the language. Take ids from it and nothing else. A\n   word another deck already teaches is listed by `ref`, not written twice\n   (\"A word in more than one deck: `ref`\").\n3. **Write the core and the English layer.**\n   - Core: `decks\u002F\u003Clang>\u002F\u003Clang>-\u003Cname>.yaml`, `part: \"core\"` (\"A core\"). Only\n     the language learnt: `target`, `reading` (letters *based on* ISO 15919;\n     never write that it strictly follows it), `ipa`, `alt_target`, `pos`,\n     `gender`, `picture`, `examples` (`target`, `reading`, `ipa`, `bases`,\n     and `source` on one taken from outside, such as Tatoeba),\n     `notes` (core form, with ids and `words`), `bases`, `rules`. No `native`.\n     `python3 tools\u002Ftranscribe.py \u003Ccode> \"\u003Cword>\"` gives reading and IPA.\n   - Layer: `decks\u002F\u003Clang>\u002Fen\u002F\u003Clang>-en-\u003Cname>.yaml`, `kind: \"layer\"`, keyed by\n     card id (\"A layer\"): `native`, `alt_native`, note texts by note id,\n     example translations by example target, base meanings, `wiktionary`, and\n     the deck's `name` and `description`.\n   - A sentence deck is `\u003Clang>-\u003Ctheme>-sentences` and names its `rules`; a\n     rules deck is core and layer only (\"Rules decks\"). Reading decks stay\n     single-file. See \"Writing a B1 course\", step 7, for what each part of a\n     unit holds.\n   - Every vocab and grammar deck is split (#498); only the reading decks\n     (owner, 2026-10-14: \"Keep reading decks single-file\") and Japanese's\n     `ja-en-hiragana` (owner, 2026-10-16: \"Keep single-file\") are single-file. To split a single-file deck, run\n     `python3 tools\u002Fsplit_deck.py \u003Cfile>` (\"Splitting a deck\"), never by\n     hand. A language's script guide and sounds file are a core and an\n     English layer too (\"Script guides\", \"Sounds files\").\n4. **Content rules.**\n   - Transliteration in deck prose: every non-Latin word in a note, meaning\n     or description is followed by its reading (\"Script in prose\").\n   - When a base word changes its stem in a card's form, say so in that\n     card's notes (\"Base words\"). Every inflected word has a `bases` entry.\n   - In a script written without spaces (Chinese, Japanese, Thai), every\n     target and example gives its `words` in order (\"Base words\"):\n     `[\"我\", \"听不懂\"]`, Japanese particles as words of their own.\n   - The meaning of a card never changes between layers or edits.\n   - A new situation teaches only words and phrases that are very widely used in that situation, not over-translated: one natural phrase per idea, the common register, short glosses, a handful per scene, professional situations included (\"What new situations teach\" in the Deck-Format wiki page).\n   - Tag the files `\"unreviewed\"`; a culture note needs a `source`\n     ([docs\u002FREVIEWING.md](..\u002F..\u002F..\u002Fdocs\u002FREVIEWING.md) is how a speaker clears it).\n   - Every word card gets at least one typed note (\"Notes\").\n   - Use the `homograph` and `lookalike` note kinds (each with a `ref`) where a\n     word shares its spelling with another, or differs only by a dot or mark,\n     and a layer's `dictionary` (senses, etymology, `source`) for an entry\n     imported from Wiktionary.\n   - Set `warning` on a core card that has more than one warning (owner,\n     2026-10-23: \"Newly written decks will choose the order when building\").\n     It names the one warning the teach card shows: the `id` of a `pair`,\n     `homograph` or `lookalike` note, `\"senses\"` for its other meanings, or\n     `\"none\"`. Choose the one that matters most to the learner: a rude\n     sound-alike only when it is very close (one IPA segment apart) and very\n     rude, else a close sound-alike, a homograph or a one-mark look-alike,\n     then further ones, then two or more other meanings, then a single one\n     (\"Which warning the teach card shows\" in the Deck-Format wiki page;\n     `tools\u002Fpick_warning.py` applies the same order). A card with none leaves\n     it out. Released apps reject a card key they do not know, so a deck that\n     sets `warning` waits for the release whose app reads it.\n   - Every word card gets at least 2 examples (\"Card data\", \"Examples\"):\n     natural sentences that use the word, each with its `reading` and `ipa`\n     in the core and its translation in each layer, keyed by the target.\n     The validator makes fewer than 2 an error only for a language in\n     `FILLED_LANGUAGES` (`tools\u002Fvalidate_decks.py`); write 2 anyway. An\n     example taken from outside names its own `source`; one written for the\n     deck has none.\n   - Every noun (`pos: \"noun\"`) in a language with gender gets its\n     `gender`, one of the language's classes (\"Card data\", \"Gender\"): hi\n     `\"m\"`\u002F`\"f\"`; mr, gu, kn `\"m\"`\u002F`\"f\"`\u002F`\"n\"`; te `\"mahat\"`\u002F`\"amahat\"`; es\n     `\"m\"`\u002F`\"f\"`. In bn, as and ja leave `gender` out. It goes on the core\n     card, never in a layer. The validator checks nouns against the\n     path's `genders`.\n   - Card data, whenever it is available (\"Card data\"), on the core card\n     with its text in each layer by id: a word that is its own root gets\n     `bases: \"self\"`; `synonyms` and `antonyms` name a card by `ref`, or\n     give the `word` and `reading` with its meaning in the layer;\n     `confusables` (2 to 3 on a sentence put in order, none a tile the\n     answer needs, each with its `kind` and a `why` in the layer);\n     `register`; `forms` (a label in the layer for kind `other`);\n     `collocations`; `senses` (each with its `native` in the layer). Data\n     taken from outside names its `source` per item, and any item may\n     give its `ipa` (a `word` only, never a `ref`). Never write\n     `frequency` by hand: `tools\u002Fwikipedia_frequency.py` writes it (step 6).\n   - A card's own `audio` and `image` (\"A card's own recording\", \"A card's\n     own image\") come only from `tools\u002Fimport_wiktionary.py --audio\n     --images` (step 6), never by hand: an image on a card with a\n     `picture`, or on a noun without one only once a reviewer approves the\n     report's proposal (`--approve \u003Ccard id>`); a recording only of exactly\n     the card's text.\n5. **Update the path.** Turn the planned unit into a written one exactly as\n   \"The B1 plan\" says: `planned` becomes `decks` (core ids, ending in `\"*\"`)\n   in the same change, keep `words` at least what the unit now counts, keep\n   `grammar` and any `milestone`. Each deck's core id appears on the path\n   once. A theme not in `decks\u002Fthemes.yaml` is added there with the first deck\n   (\"Writing a B1 course\", step 2); theme ids are permanent. The first layer\n   folder of a language needs its `pubspec.yaml` line, in a commit of its\n   own (\"Splitting a deck\").\n6. **Fill from Wiktionary and Wikipedia** (semi-verified data, each item\n   naming its source; `tools\u002FREADME.md`). Once the cards are written, fill\n   their empty fields from the language's kaikki.org extract\n   (`https:\u002F\u002Fkaikki.org\u002Fdictionary\u002F\u003CLanguage>\u002F`), then read the report: it\n   lists, card by card, what is still missing for you to write (a second\n   example, antonyms, confusables), and nothing it adds changes a meaning.\n\n   ```sh\n   python3 tools\u002Fimport_wiktionary.py \u003Clang> \u003CLanguage>.jsonl --dump-date \u003CYYYY-MM-DD>\n   python3 tools\u002Fimport_wiktionary.py \u003Clang> \u003CLanguage>.jsonl --dump-date \u003CYYYY-MM-DD> --write --report \u003Clang>-report.md\n   ```\n\n   Add `--audio --images` where `ffmpeg` and the network are there. Images\n   come from the word's Wiktionary page, then OpenMoji, never Wikidata. A\n   noun, verb or adjective without a `picture` gets none: the report's\n   \"Image proposals\" lists its candidate, and a reviewer approves each\n   before it lands, as `--approve \u003Ccard id>=\u003CFile name>` (the file is\n   pinned; mail-bot approvals come with #519). Each item's\n   `source` is its Wiktionary page only. With a\n   Wikipedia dump of the language, write the ranks:\n\n   ```sh\n   python3 tools\u002Fwikipedia_frequency.py \u003Clang> \u003Clang>wiki-\u003Cdate>-pages-articles.xml.bz2 --write\n   ```\n7. **Check.** CI runs the validator\n   (`python3 tools\u002Fvalidate_decks.py decks\u002F`); read its result, and fix every\n   error and each warning or explain it. Do not run `tools\u002Fdeck_index.py` or\n   commit `decks\u002Findex.json`: a workflow regenerates it on `decks-live` after the\n   merge (owner, 2026-10-23). A deck branch starts from `decks-live`, and its\n   pull request opens against `decks-live`, not main (owner, 2026-11-06).\n   Tools details: `tools\u002FREADME.md`.\n7a. **Flag what you are unsure of.** Before finishing a unit, append a row to\n   `docs\u002Freview-queue\u002F\u003Clang>.md` for each card you are unsure of (gender,\n   part of speech, reading or tone, a doubtful note, a traditional form,\n   naturalness, a missing phrase), in the same commit as the deck. Use the\n   card's real id and never invent one; a unit-level question uses\n   `unit-level` (the format is in [docs\u002Freview-queue\u002FREADME.md](..\u002F..\u002F..\u002Fdocs\u002Freview-queue\u002FREADME.md)).\n   The one-line question must be answerable by a bilingual reviewer. Never\n   put a flag in the deck YAML: released apps reject unknown card keys.\n   Owner decision (2026-11-06), quoted: \"go B\", answering \"Questions for a\n   bilingual reviewer: will these be in the decks? and asked to the reviewer\n   when they review?\": a sidecar list per language that the review bot reads;\n   no deck-format change; nothing ships to learners.\n8. **Ship.** Never create tags. For the owner's work, open a pull request\n   (owner, 2026-10-16: \"Do use PRs for everything\"); a deck-only change\n   needs only \"Validate decks\" and \"Released app reads the decks\" green\n   (CLAUDE.md). Contributors open a pull request on a branch\n   `deck\u002F\u003Cname>` ([CONTRIBUTING.md](..\u002F..\u002F..\u002FCONTRIBUTING.md), AGENTS.md\n   \"Branches, commits, pull requests\"). Get one independent review (Sonnet)\n   before finishing (CLAUDE.md, \"Which model does what\"); no extra passes.\n   Do not run the validator locally: push and read CI's result, ignoring\n   checks irrelevant to a deck. Say what you verified.\n\n## Validator lessons (2026-11-06)\n\nChecks every builder makes by reading before pushing. Each came from the zh\ndecks that failed CI's validator (`decks\u002Fzh\u002Fzh-emergencies.yaml`, the zh\nmoney, society and reading decks). CI's log repeats each error in its\n`Errors:` section, so count each once.\n\n- **Example bases.** Every word of a target and of each example is a card\n  the course teaches, or has a `bases` entry in that same example. A word\n  with no card gets `{ word, base, reading }` written in full, its base the\n  word itself when it is not inflected (从, 在, 把 in the older zh units).\n  Give a word's base once per text; a repeated `word` is an error.\n- **Transliteration in prose.** Every non-Latin word in a note, a `why`, a\n  prompt or any other layer string is followed by its reading in\n  parentheses: 道德 (dàodé), and in a phrase the syllables spaced, 这 是 什么\n  (zhè shì shénme). A run of Chinese words with spaces between them counts\n  as one, so the reading follows the whole run. Copy each reading from the\n  card's core; never write it from memory. Core strings in the language's\n  own script need none.\n- **Reading answers are 1-based.** `answer: 1` is the first option; a\n  question without options is `true` or `false`.\n- **Passage ids start with the language and name the passage:** `zh-opinion-column`,\n  not `opinion-column`. They share one namespace with the questions' ids, so\n  no passage id is a card id.\n- **No identical spelling in `target_scripts`.** Omit `han_traditional` when\n  it equals the target, as valid cards do.\n- **Rules tables.** Every new noun, verb or adjective gets a row in every\n  rules table of its class (or is listed in its `except`).\n\n## Grammar units\n\nA planned unit such as `{ id: \"mr-grammar-imperatives\", grammar: \"imperatives\" }`\nhas no theme and no new words (`words` 0 or left out). It teaches a pattern\nover words the course already teaches (owner, 2026-10-24: \"Extend the\nskill\"). Steps 1, 2, 4, 5 (the path) and 7 to 8 apply as they are; steps 3 and\n6 change as below. The forms are in DECK-FORMAT: \"Grammar decks\", \"A\ngrammar core\", \"Rules decks\", \"Sentences and their rules\", \"Paths\".\n\n1. **Name.** The id is `\u003Clang>-grammar-\u003Ctopic>` and the topic is the\n   `grammar` text: `mr-grammar-imperatives` teaches topic `imperatives`. Files:\n   core `decks\u002F\u003Clang>\u002F\u003Clang>-grammar-\u003Ctopic>.yaml`, layer\n   `decks\u002F\u003Clang>\u002Fen\u002F\u003Clang>-en-grammar-\u003Ctopic>.yaml` (`kind: \"layer\"`,\n   `core:` the core's id). The planned id must not exist yet.\n2. **Pick the kind.**\n   - **`kind: \"grammar\"`**: a few chosen rows, each a lemma with its forms.\n     Use it for a pattern over a small, fixed set (`tok-grammar-o-commands`,\n     `mr-grammar-present`). Its path topic is the deck's name: `imperatives`.\n   - **`kind: \"rules\"`**: the rows are every word of one `pos` the course\n     teaches, with a rule id, name and explanation (`te-grammar-conditional`).\n     Use it when the form is made for a whole class of words. Its path topics\n     are its rule ids' names (`te-rule-conditional` is topic `conditional`),\n     never the deck's own name once it has rules of another name. When the\n     plan says nothing, take `grammar`; the plan's topic text decides which.\n3. **Grammar core.** Header as a word core, `kind: \"grammar\"`, `tags:\n   [\"grammar\", \"unreviewed\"]`, then `pattern` with `slots` (the columns,\n   permanent in order) and `entries`. Each entry has a `lemma`, a `key` where the\n   lemma is not `[a-z0-9-]+` (permanent), `reading`, `ipa`, and `forms` with a\n   form for every slot (`null` for none), with `readings` (and `ipas`)\n   for a script that needs them. A cell with two right forms lists both.\n   Cell ids come from the core's id, the key and the slot's place, so never\n   reorder slots. No `gloss`, `name`, `slot_name` or `prompt` in the core.\n4. **Rules core.** `kind: \"rules\"`, `table` with `applies_to` (`pos`, `except`\n   for words the rule does not cover), `slots`, and `rows` (`word` the card id\n   of the vocab card, `forms`, `readings`); and `rules`, each with `id`\n   `\u003Clang>-rule-\u003Cname>`, the `slots` it makes (every slot in exactly one\n   rule), and `words` its explanation quotes, `{ word, reading }`. **Every\n   word of that `pos` that a B1 deck teaches gets a row**, or goes in\n   `except`: the words of this unit and of every earlier one. A word of a\n   later unit adds its row in the same change. A rule id is permanent.\n5. **Words already taught only.** Every lemma, row `word`, form and example\n   uses words a deck earlier on the path teaches. Look each up by its\n   card id (`rg '\"target\": \"\u003Cword>\"' decks\u002F\u003Clang>`), take `ref` for it, and\n   add a `bases` entry for any inflected form. Write no new word card:\n   a word that is missing means the unit is planned too early; stop and say so.\n6. **Layer.** For a grammar core: `pattern` with `name`, `slot_name`, `prompt`\n   (`\"{lemma} ({gloss}), {slot}\"`), `slots` (a label for each slot, optional),\n   `entries` (a gloss for **every** entry, by `key` or lemma) and `notes`, the one\n   text shown after the answer: say what changes and when the base word changes\n   its stem. For a rules core: `table` with `slot_name` and a label for\n   **every** slot (the only placeholder is `{meaning}`; the word is never\n   written into it), and `rules`, each id with a `name` and `explanation`\n   (quote the rule's `words` as `{1}`, `{2}`; a non-Latin word is followed by\n   its reading). A rule the layer leaves out is not taught. Both:\n   `name`, `description` (ending \"Not yet checked by a \u003CLanguage> speaker:\n   please report any mistake.\"), `tags`, `license`, `native`.\n7. **Sentences.** Where the unit has sentences, write a vocab core\n   `\u003Clang>-grammar-\u003Ctopic>-sentences` and its layer: `pos: \"phrase\"`, `bases`\n   (by `ref`) for every word, `confusables`, and on a sentence that uses a\n   rule `rules: [\"\u003Clang>-rule-\u003Cname>\"]`. Ids from `--next-id`.\n8. **The path.** Turn `planned` into `decks` in the same change, keeping\n   `grammar` and any `milestone`, and keep `listening_passages` and\n   `reading_passages`. List the core ids only: `decks: [\"mr-grammar-imperatives\",\n   \"mr-grammar-imperatives-sentences\"]`, then `words: 0` and\n   `grammar: [\"imperatives\"]`. The core is listed once on the path.\n\n**Worked example,** `tok-grammar-o-commands` (the real deck, shortened).\nPath (`decks\u002Ftok\u002Ftok-path.yaml`):\n\n```yaml\n  - decks: [\"tok-grammar-o\", \"tok-grammar-o-commands\", \"tok-grammar-o-address\", \"tok-grammar-o-sentences\", \"tok-reading-o\"]\n    words: 1\n    grammar: [\"o-commands\", \"o-address\"]\n```\n\nCore `decks\u002Ftok\u002Ftok-grammar-o-commands.yaml`:\n\n```yaml\nschema: 1\nid: \"tok-grammar-o-commands\"\npart: \"core\"\nkind: \"grammar\"\nlanguage: { code: \"tok\", iso639_3: \"tok\", name: \"Toki Pona\", script: \"latin\", icon: \"Tp\" }\nlicense: \"CC-BY-SA-4.0\"\ntags: [\"beginner\", \"grammar\", \"unreviewed\"]\npattern:\n  slots: [\"statement\", \"command\"]\n  entries:\n    - lemma: \"pali\"\n      forms:\n        \"statement\": \"sina pali\"\n        \"command\": \"o pali!\"\n```\n\nLayer `decks\u002Ftok\u002Fen\u002Ftok-en-grammar-o-commands.yaml`:\n\n```yaml\nschema: 1\nid: \"tok-en-grammar-o-commands\"\nkind: \"layer\"\ncore: \"tok-grammar-o-commands\"\nnative: { code: \"en\", iso639_3: \"eng\", name: \"English\" }\nname: \"Commands with o\"\npattern:\n  name: \"Commands with o\"\n  slot_name: \"form\"\n  prompt: \"{lemma} ({gloss}), {slot}\"\n  slots: { \"statement\": \"a statement (you do it)\", \"command\": \"a command (do it!)\" }\n  entries:\n    \"pali\": \"to make; to work\"\n  notes: \"Sina pali is you work. O pali! is Work! The command drops the subject and puts o first.\"\n```\n\nThe core id is `tok-grammar-o-commands`, so the topic is `o-commands`; the\ncell ids are `tok-grammar-o-commands-pali-0` and `-1`. A rules example\nis `te-grammar-conditional` and its layer, with the topic `conditional`.\n\n**Validator errors to expect** (CI reads them; do not run it):\n\n- Topic: `'x' is taught by none of the unit's decks` (the `grammar` text is\n  neither a rule's name nor a listed `\u003Clang>-grammar-x`); `names the rules\n  deck ...; its topics are its rules` (use a rule name).\n- Planned: `planned.id: ... already exists` (list it under `decks`);\n  `lists ..., a deck of the \u003Clang>-\u003Cnative> course` (list the core id).\n- Rules core: `no vocab deck writes card \u003Cid>`; `\u003Cid> is a \u003Cpos>, not one of\n  ...`; `\u003Cid> has no reading` (script needs one); `\u003Cid> ... has no row; add\n  its forms, or list it in applies_to.except`; `\u003Cslot> belongs to no rule`;\n  `is also in rule` (slot in two rules); `rules names \u003Cid>, which no rules\n  deck of \u003Clang> defines` (a sentence's `rules`); a rule id not\n  `\u003Clang>-rule-\u003Cname>`.\n- Grammar layer: `gives no gloss for \u003Ckey>`; a slot label for a key that is\n  not a slot; a rules layer with a label for every slot missing, or a\n  placeholder other than `{meaning}`.\n- Quoting: an unquoted key such as `yes`, `no` or `on` is a boolean; quote\n  every slot key.\n- Warnings to clear or explain: a row with one form only; a unit with more\n  words than `words`; a word in a text covered by no card or base.\n\n## Chinese, Japanese and Korean\n\nPattern decisions from the first batches (owner, 2026-10-24: \"Sonnet writes\nthe first batch per language, Haiku follows\"): zh grammar units shi,\nquestions and word order (#813), ja and ko sound-differences and questions\nunits (#814, #815). Copy them: `decks\u002Fzh\u002Fzh-grammar-shi.yaml`,\n`decks\u002Fja\u002Fja-sound-differences.yaml`, `decks\u002Fko\u002Fko-questions.yaml`.\n\n**All three**\n\n- **Readings are \"based on\" a standard**: pinyin with tone marks (Hanyu\n  Pinyin), Hepburn without macrons (`ja-romanisation.yaml`: long vowels\n  `ou`, `oo`, `uu`, `ii`, `aa`; を is `wo`), Revised Romanization. Never\n  say a reading strictly follows one.\n- **Prose rule bites twice.** Every hanzi, kanji, kana or hangul word in a note, a\n  `why`, a gloss or a question carries its reading, **including a wrong form\n  you quote** (\"never 我是忙 (wǒ shì máng)\"): CI errors on one without. The\n  reading in prose is the card's reading letter for letter: 무엇 (mueot),\n  never \"mu-eot\" (CI does not catch it; a reviewer did in #815).\n- **Words already taught, only.** Check a lemma, form or sentence word by\n  its card id. A word that is not a card goes in `bases` written in full, with\n  its base, reading and (in the layer) meaning. A word that has a card, once\n  you write it later, becomes a `ref`: when a unit writes どこ, いくら,\n  얼마예요 or 뭐예요, change the earlier phrasebook and first-words bases to\n  `{ word, ref }` in the same PR and delete their meaning lines in the layer.\n- **A card cannot `ref` itself.** In its own examples, a form of it (달이,\n  なん on なに's card) names its base in full (CI: \"ref names the card itself\").\n  A bare kana or letter in prose needs its reading too (\"the て (te)-form\"). Give a repeated word's base once per text.\n- **Sentences decks** (`\u003Clang>-\u003Ctheme>-sentences`, `pos: \"phrase\"`) give 2 to 3\n  `confusables` each, `kind: \"word\"` or `\"sound\"`, none a word of the\n  sentence, each with a `why` in the layer; a confusable that is no card is a\n  `word` with its `reading`.\n- **Reading decks stay single-file** (`\u003Clang>-en-reading-\u003Cname>.yaml`, listed\n  as `\u003Clang>-reading-\u003Cname>`), 2 passages of 4 short lines and 3 questions\n  each, question ids from `--next-id`. Word units also get the set card for\n  a closed group (question words). A grammar unit keeps its planned\n  passages and writes no reading deck. A question that asks \"which word\n  means 'X'\" offers the **words** (hangul or kana, with the reading) as its\n  options, as `ko-en-reading-sound-differences.yaml` does, never the English\n  meanings: the prompt already names the meaning, so English options give\n  the answer away (found in #814; the zh reading decks written earlier\n  have the flaw).\n- **`warning`** goes on every word card with a `pair` note, naming the note's\n  id; a card with two partners (a triple) takes the pick of\n  `tools\u002Fpick_warning.py` (`pick_warning.pick(card, index)` gives it without\n  writing files).\n- No pictures: a picture needs its emoji in `assets\u002Fpictures\u002F`, and the\n  question words' `picture_ask` waits for the owner (open question).\n\n**Chinese** (script `han_simplified`, `scripts` also traditional)\n\n- Written without spaces: `words` on every card, sentence and example, joined\n  they equal the target without punctuation; compounds the course has no card\n  for are one word with a `base` (听不懂, 喜不喜欢 as one word with `ref`).\n- Readings show the tone **as said**: 不 is `bú` before a fourth tone, `bù`\n  before the others; the 不 in 是不是 or 去不去 is neutral (`shì bu shì`).\n  Third-tone sandhi is not written, as in the existing decks.\n- Measure words come with their own unit (planned); do not use one in a grammar\n  unit before it.\n- A grammar unit has **one deck per topic** (`zh-grammar-shi` and\n  `zh-grammar-bu-negation` for `[\"shi\", \"bu-negation\"]`), each a `kind:\n  \"grammar\"` table: lemma = the verb, noun or question word, one slot per\n  form; for sentence tables put the whole sentence in each `forms` cell and\n  say in the layer's gloss which sentence it is (\"to go: I go to school\").\n  Add a sentences deck with confusables.\n\n**Japanese** (script `kana`)\n\n- Targets are in **hiragana** until the kanji units; katakana only where the\n  phrasebook already has it. Particles are words of their own: `[\"わたし\",\n  \"は\", \"せんせい\", \"です\"]`; set phrases stay whole. The hiragana letters\n  are not word cards: は, の, に still get a `base` entry (`は` reading `wa`).\n- `ipa` from `tools\u002Ftranscribe.py ja`, word by word, joined by spaces.\n- Long vowels, double consonants and the voiced mark are the A1 contrasts:\n  `ja-sounds.yaml` lists them as kana pairs (an empty side for a vowel or っ\n  added). Tag each card with its contrast; a te-form (きて) names its base\n  (くる) and says in a note that the stem changes.\n- Particles and polite forms are taught by their own planned units; examples\n  may use です, か, は, の, に, が, を, と and ください as bases only.\n\n**Korean** (script `hangul`)\n\n- Words are separated by spaces, with the particle joined (물이): each such\n  word names its base (`ref` on another card, `base` in full on its own).\n  The first verb forms are polite `-요`. Avoid, for now, stems that change\n  their first letter (크다, 커요), which the validator warns of.\n- No `ipa` in the existing Korean cards: do not add one by hand.\n  `tools\u002Ftranscribe.py ko` gives the reading of a whole sentence.\n- Sound contrasts (plain, tense, aspirated) are listed in `ko-sounds.yaml` as\n  syllable pairs of the deck's words, since a recogniser returns syllables.\n- Honorifics (선생님, 저, 요 and 세요) are taught in the first words and the\n  addressing unit; keep examples in the polite style.\n","The wiki is the source of truth for documentation: https:\u002F\u002Fgithub.com\u002Faaronified\u002Ffluenough\u002Fwiki\n\n# Build a deck\n\nAn ordered checklist. It does not copy the format: [wiki\u002FDeck-Format.md](..\u002F..\u002F..\u002Fwiki\u002FDeck-Format.md)\nis the guide and `tools\u002Fvalidate_decks.py` is the test (owner, 2026-10-13,\n#506). Where this file and DECK-FORMAT differ, DECK-FORMAT wins. Read it before\nwriting, and [AGENTS.md](..\u002F..\u002F..\u002FAGENTS.md) and [CLAUDE.md](..\u002F..\u002F..\u002FCLAUDE.md)\nfor the rules. Section names below are headings in wiki\u002FDeck-Format.md.\n\nBefore you start:\n\n- Card ids are permanent: never renumber, reuse or tidy one (AGENTS.md rule 1).\n- Quote every YAML text value and key (\"YAML values\"). `true`, `false` and\n  whole numbers are the only unquoted values.\n- Do not write a card for one question type. The owner's rule (2026-10-13,\n  #506) is that a simple card should be able to generate all kinds of\n  questions. Questions will be derived from card data (ADR-0039, accepted).\n  The owner decided the mandatory set (2026-10-13, #506,\n  `wiki\u002FDeck-Format.md`, \"Card data\"): meaning; the reading for a non-Latin script; at\n  least 2 examples on a word card; the root word (`bases`); gender where the\n  language has it (per-language classes, decided: hi m\u002Ff; mr, gu, kn m\u002Ff\u002Fn;\n  te mahat\u002Famahat; es m\u002Ff; bn, as and ja none); and confusables on a sentence used for word\n  order. **The validator enforces only what it can check** (meaning, reading,\n  2 examples per word card, gender on nouns in gendered languages, as errors\n  once a language is filled in). Data that is \"mandatory when available\"\n  (confusables, root word, synonyms, antonyms, minimal pairs and the rest) is\n  never a validator error, so **you, the builder, must add it whenever it is\n  available**, and reviewers check it (owner, 2026-10-13, #506; review\n  pipeline work is #508). Fill what DECK-FORMAT allows (reading, ipa,\n  alt_target, pos, gender, examples, notes, bases, pair, picture, and the\n  card data: synonyms, antonyms, confusables, register, forms,\n  collocations, senses, frequency where it fits), at least 2 examples on a\n  word card, and do not set modes to restrict a card to one drill unless\n  DECK-FORMAT requires it. When a field lands, DECK-FORMAT and this list\n  are updated in the same change. New text for the learner goes in each\n  native layer.\n- **Narrow IPA (`[ ]`) is never written by hand** (owner, 2026-10-26, wiki:\n  Plan-Ipa-Revamp-And-Language-Phonology). `ipa` stays broad (\"the weak\n  notation keeps being used as is\"). A card's phonetic form, `phonetic:\n  \"[ˈkʰæt]\"`, with `phonetic_source: \"wiktionary\"` or `\"rules\"`, is written\n  only by the tools: `tools\u002Fimport_phonetic.py` takes Wiktionary's form where\n  there is one, and `tools\u002Fderive_phonetic.py` derives the rest from the\n  language's rule file. A builder does not write one from memory or from rules\n  in their head. **Status: the fields and the tools are not built yet.** Until\n  a release reads them (released apps reject unknown fields), leave them out.\n- Every question-word card (where, when, who, what, why, how, which, how\n  many) gets a `picture` plus `picture_ask: true` (DECK-FORMAT, \"A question\n  word's picture\"; owner, 2026-10-22, #707: \"So that all future decks can\n  start adding them\"). A deck can use `picture_ask` only once a release that\n  reads it is out: the released parser rejects unknown fields.\n- Closed groups (articles, pronouns, genders, cases and postpositions,\n  demonstratives, question words, conjunctions, days, months, number words\n  1-10, colours) need a set card that introduces the whole set, \"Teach only\"\n  (owner, 2026-10-13, #506), and verb forms too (#515). Every deck that\n  teaches such a group writes one: kind `set`, members by ref, its name\n  and explanation in each layer (DECK-FORMAT, \"Set cards\"). It gives the\n  learner the set's button after answering a member (owner, 2026-10-20).\n- Model: Haiku writes decks, and Sonnet reviews them once (CLAUDE.md, owner, 2026-10-22). Haiku for large reads. Any tool or validator change is Sonnet (CLAUDE.md, owner, 2026-10-22).\n\n## Checklist\n\n1. **Pick the unit.** In `decks\u002F\u003Clang>\u002F\u003Clang>-path.yaml`, take the first\n   `planned` unit in teaching order (list order), or the one you were asked\n   for. A unit with `grammar` and no `theme` is a grammar unit: follow\n   \"Grammar units\" below in place of steps 3 to 6 for words. Read its planned `id`, `theme` or `grammar`, `words`, and its\n   `listening_passages` and `reading_passages` (\"Paths\", \"The B1 plan\"). The\n   planned size is one number for every native language.\n2. **Get ids.** `python3 tools\u002Fvalidate_decks.py --next-id \u003Clang>` gives the\n   next free card id of the language. Take ids from it and nothing else. A\n   word another deck already teaches is listed by `ref`, not written twice\n   (\"A word in more than one deck: `ref`\").\n3. **Write the core and the English layer.**\n   - Core: `decks\u002F\u003Clang>\u002F\u003Clang>-\u003Cname>.yaml`, `part: \"core\"` (\"A core\"). Only\n     the language learnt: `target`, `reading` (letters *based on* ISO 15919;\n     never write that it strictly follows it), `ipa`, `alt_target`, `pos`,\n     `gender`, `picture`, `examples` (`target`, `reading`, `ipa`, `bases`,\n     and `source` on one taken from outside, such as Tatoeba),\n     `notes` (core form, with ids and `words`), `bases`, `rules`. No `native`.\n     `python3 tools\u002Ftranscribe.py \u003Ccode> \"\u003Cword>\"` gives reading and IPA.\n   - Layer: `decks\u002F\u003Clang>\u002Fen\u002F\u003Clang>-en-\u003Cname>.yaml`, `kind: \"layer\"`, keyed by\n     card id (\"A layer\"): `native`, `alt_native`, note texts by note id,\n     example translations by example target, base meanings, `wiktionary`, and\n     the deck's `name` and `description`.\n   - A sentence deck is `\u003Clang>-\u003Ctheme>-sentences` and names its `rules`; a\n     rules deck is core and layer only (\"Rules decks\"). Reading decks stay\n     single-file. See \"Writing a B1 course\", step 7, for what each part of a\n     unit holds.\n   - Every vocab and grammar deck is split (#498); only the reading decks\n     (owner, 2026-10-14: \"Keep reading decks single-file\") and Japanese's\n     `ja-en-hiragana` (owner, 2026-10-16: \"Keep single-file\") are single-file. To split a single-file deck, run\n     `python3 tools\u002Fsplit_deck.py \u003Cfile>` (\"Splitting a deck\"), never by\n     hand. A language's script guide and sounds file are a core and an\n     English layer too (\"Script guides\", \"Sounds files\").\n4. **Content rules.**\n   - Transliteration in deck prose: every non-Latin word in a note, meaning\n     or description is followed by its reading (\"Script in prose\").\n   - When a base word changes its stem in a card's form, say so in that\n     card's notes (\"Base words\"). Every inflected word has a `bases` entry.\n   - In a script written without spaces (Chinese, Japanese, Thai), every\n     target and example gives its `words` in order (\"Base words\"):\n     `[\"我\", \"听不懂\"]`, Japanese particles as words of their own.\n   - The meaning of a card never changes between layers or edits.\n   - A new situation teaches only words and phrases that are very widely used in that situation, not over-translated: one natural phrase per idea, the common register, short glosses, a handful per scene, professional situations included (\"What new situations teach\" in the Deck-Format wiki page).\n   - Tag the files `\"unreviewed\"`; a culture note needs a `source`\n     ([docs\u002FREVIEWING.md](..\u002F..\u002F..\u002Fdocs\u002FREVIEWING.md) is how a speaker clears it).\n   - Every word card gets at least one typed note (\"Notes\").\n   - Use the `homograph` and `lookalike` note kinds (each with a `ref`) where a\n     word shares its spelling with another, or differs only by a dot or mark,\n     and a layer's `dictionary` (senses, etymology, `source`) for an entry\n     imported from Wiktionary.\n   - Set `warning` on a core card that has more than one warning (owner,\n     2026-10-23: \"Newly written decks will choose the order when building\").\n     It names the one warning the teach card shows: the `id` of a `pair`,\n     `homograph` or `lookalike` note, `\"senses\"` for its other meanings, or\n     `\"none\"`. Choose the one that matters most to the learner: a rude\n     sound-alike only when it is very close (one IPA segment apart) and very\n     rude, else a close sound-alike, a homograph or a one-mark look-alike,\n     then further ones, then two or more other meanings, then a single one\n     (\"Which warning the teach card shows\" in the Deck-Format wiki page;\n     `tools\u002Fpick_warning.py` applies the same order). A card with none leaves\n     it out. Released apps reject a card key they do not know, so a deck that\n     sets `warning` waits for the release whose app reads it.\n   - Every word card gets at least 2 examples (\"Card data\", \"Examples\"):\n     natural sentences that use the word, each with its `reading` and `ipa`\n     in the core and its translation in each layer, keyed by the target.\n     The validator makes fewer than 2 an error only for a language in\n     `FILLED_LANGUAGES` (`tools\u002Fvalidate_decks.py`); write 2 anyway. An\n     example taken from outside names its own `source`; one written for the\n     deck has none.\n   - Every noun (`pos: \"noun\"`) in a language with gender gets its\n     `gender`, one of the language's classes (\"Card data\", \"Gender\"): hi\n     `\"m\"`\u002F`\"f\"`; mr, gu, kn `\"m\"`\u002F`\"f\"`\u002F`\"n\"`; te `\"mahat\"`\u002F`\"amahat\"`; es\n     `\"m\"`\u002F`\"f\"`. In bn, as and ja leave `gender` out. It goes on the core\n     card, never in a layer. The validator checks nouns against the\n     path's `genders`.\n   - Card data, whenever it is available (\"Card data\"), on the core card\n     with its text in each layer by id: a word that is its own root gets\n     `bases: \"self\"`; `synonyms` and `antonyms` name a card by `ref`, or\n     give the `word` and `reading` with its meaning in the layer;\n     `confusables` (2 to 3 on a sentence put in order, none a tile the\n     answer needs, each with its `kind` and a `why` in the layer);\n     `register`; `forms` (a label in the layer for kind `other`);\n     `collocations`; `senses` (each with its `native` in the layer). Data\n     taken from outside names its `source` per item, and any item may\n     give its `ipa` (a `word` only, never a `ref`). Never write\n     `frequency` by hand: `tools\u002Fwikipedia_frequency.py` writes it (step 6).\n   - A card's own `audio` and `image` (\"A card's own recording\", \"A card's\n     own image\") come only from `tools\u002Fimport_wiktionary.py --audio\n     --images` (step 6), never by hand: an image on a card with a\n     `picture`, or on a noun without one only once a reviewer approves the\n     report's proposal (`--approve \u003Ccard id>`); a recording only of exactly\n     the card's text.\n5. **Update the path.** Turn the planned unit into a written one exactly as\n   \"The B1 plan\" says: `planned` becomes `decks` (core ids, ending in `\"*\"`)\n   in the same change, keep `words` at least what the unit now counts, keep\n   `grammar` and any `milestone`. Each deck's core id appears on the path\n   once. A theme not in `decks\u002Fthemes.yaml` is added there with the first deck\n   (\"Writing a B1 course\", step 2); theme ids are permanent. The first layer\n   folder of a language needs its `pubspec.yaml` line, in a commit of its\n   own (\"Splitting a deck\").\n6. **Fill from Wiktionary and Wikipedia** (semi-verified data, each item\n   naming its source; `tools\u002FREADME.md`). Once the cards are written, fill\n   their empty fields from the language's kaikki.org extract\n   (`https:\u002F\u002Fkaikki.org\u002Fdictionary\u002F\u003CLanguage>\u002F`), then read the report: it\n   lists, card by card, what is still missing for you to write (a second\n   example, antonyms, confusables), and nothing it adds changes a meaning.\n\n   ```sh\n   python3 tools\u002Fimport_wiktionary.py \u003Clang> \u003CLanguage>.jsonl --dump-date \u003CYYYY-MM-DD>\n   python3 tools\u002Fimport_wiktionary.py \u003Clang> \u003CLanguage>.jsonl --dump-date \u003CYYYY-MM-DD> --write --report \u003Clang>-report.md\n   ```\n\n   Add `--audio --images` where `ffmpeg` and the network are there. Images\n   come from the word's Wiktionary page, then OpenMoji, never Wikidata. A\n   noun, verb or adjective without a `picture` gets none: the report's\n   \"Image proposals\" lists its candidate, and a reviewer approves each\n   before it lands, as `--approve \u003Ccard id>=\u003CFile name>` (the file is\n   pinned; mail-bot approvals come with #519). Each item's\n   `source` is its Wiktionary page only. With a\n   Wikipedia dump of the language, write the ranks:\n\n   ```sh\n   python3 tools\u002Fwikipedia_frequency.py \u003Clang> \u003Clang>wiki-\u003Cdate>-pages-articles.xml.bz2 --write\n   ```\n7. **Check.** CI runs the validator\n   (`python3 tools\u002Fvalidate_decks.py decks\u002F`); read its result, and fix every\n   error and each warning or explain it. Do not run `tools\u002Fdeck_index.py` or\n   commit `decks\u002Findex.json`: a workflow regenerates it on `decks-live` after the\n   merge (owner, 2026-10-23). A deck branch starts from `decks-live`, and its\n   pull request opens against `decks-live`, not main (owner, 2026-11-06).\n   Tools details: `tools\u002FREADME.md`.\n7a. **Flag what you are unsure of.** Before finishing a unit, append a row to\n   `docs\u002Freview-queue\u002F\u003Clang>.md` for each card you are unsure of (gender,\n   part of speech, reading or tone, a doubtful note, a traditional form,\n   naturalness, a missing phrase), in the same commit as the deck. Use the\n   card's real id and never invent one; a unit-level question uses\n   `unit-level` (the format is in [docs\u002Freview-queue\u002FREADME.md](..\u002F..\u002F..\u002Fdocs\u002Freview-queue\u002FREADME.md)).\n   The one-line question must be answerable by a bilingual reviewer. Never\n   put a flag in the deck YAML: released apps reject unknown card keys.\n   Owner decision (2026-11-06), quoted: \"go B\", answering \"Questions for a\n   bilingual reviewer: will these be in the decks? and asked to the reviewer\n   when they review?\": a sidecar list per language that the review bot reads;\n   no deck-format change; nothing ships to learners.\n8. **Ship.** Never create tags. For the owner's work, open a pull request\n   (owner, 2026-10-16: \"Do use PRs for everything\"); a deck-only change\n   needs only \"Validate decks\" and \"Released app reads the decks\" green\n   (CLAUDE.md). Contributors open a pull request on a branch\n   `deck\u002F\u003Cname>` ([CONTRIBUTING.md](..\u002F..\u002F..\u002FCONTRIBUTING.md), AGENTS.md\n   \"Branches, commits, pull requests\"). Get one independent review (Sonnet)\n   before finishing (CLAUDE.md, \"Which model does what\"); no extra passes.\n   Do not run the validator locally: push and read CI's result, ignoring\n   checks irrelevant to a deck. Say what you verified.\n\n## Validator lessons (2026-11-06)\n\nChecks every builder makes by reading before pushing. Each came from the zh\ndecks that failed CI's validator (`decks\u002Fzh\u002Fzh-emergencies.yaml`, the zh\nmoney, society and reading decks). CI's log repeats each error in its\n`Errors:` section, so count each once.\n\n- **Example bases.** Every word of a target and of each example is a card\n  the course teaches, or has a `bases` entry in that same example. A word\n  with no card gets `{ word, base, reading }` written in full, its base the\n  word itself when it is not inflected (从, 在, 把 in the older zh units).\n  Give a word's base once per text; a repeated `word` is an error.\n- **Transliteration in prose.** Every non-Latin word in a note, a `why`, a\n  prompt or any other layer string is followed by its reading in\n  parentheses: 道德 (dàodé), and in a phrase the syllables spaced, 这 是 什么\n  (zhè shì shénme). A run of Chinese words with spaces between them counts\n  as one, so the reading follows the whole run. Copy each reading from the\n  card's core; never write it from memory. Core strings in the language's\n  own script need none.\n- **Reading answers are 1-based.** `answer: 1` is the first option; a\n  question without options is `true` or `false`.\n- **Passage ids start with the language and name the passage:** `zh-opinion-column`,\n  not `opinion-column`. They share one namespace with the questions' ids, so\n  no passage id is a card id.\n- **No identical spelling in `target_scripts`.** Omit `han_traditional` when\n  it equals the target, as valid cards do.\n- **Rules tables.** Every new noun, verb or adjective gets a row in every\n  rules table of its class (or is listed in its `except`).\n\n## Grammar units\n\nA planned unit such as `{ id: \"mr-grammar-imperatives\", grammar: \"imperatives\" }`\nhas no theme and no new words (`words` 0 or left out). It teaches a pattern\nover words the course already teaches (owner, 2026-10-24: \"Extend the\nskill\"). Steps 1, 2, 4, 5 (the path) and 7 to 8 apply as they are; steps 3 and\n6 change as below. The forms are in DECK-FORMAT: \"Grammar decks\", \"A\ngrammar core\", \"Rules decks\", \"Sentences and their rules\", \"Paths\".\n\n1. **Name.** The id is `\u003Clang>-grammar-\u003Ctopic>` and the topic is the\n   `grammar` text: `mr-grammar-imperatives` teaches topic `imperatives`. Files:\n   core `decks\u002F\u003Clang>\u002F\u003Clang>-grammar-\u003Ctopic>.yaml`, layer\n   `decks\u002F\u003Clang>\u002Fen\u002F\u003Clang>-en-grammar-\u003Ctopic>.yaml` (`kind: \"layer\"`,\n   `core:` the core's id). The planned id must not exist yet.\n2. **Pick the kind.**\n   - **`kind: \"grammar\"`**: a few chosen rows, each a lemma with its forms.\n     Use it for a pattern over a small, fixed set (`tok-grammar-o-commands`,\n     `mr-grammar-present`). Its path topic is the deck's name: `imperatives`.\n   - **`kind: \"rules\"`**: the rows are every word of one `pos` the course\n     teaches, with a rule id, name and explanation (`te-grammar-conditional`).\n     Use it when the form is made for a whole class of words. Its path topics\n     are its rule ids' names (`te-rule-conditional` is topic `conditional`),\n     never the deck's own name once it has rules of another name. When the\n     plan says nothing, take `grammar`; the plan's topic text decides which.\n3. **Grammar core.** Header as a word core, `kind: \"grammar\"`, `tags:\n   [\"grammar\", \"unreviewed\"]`, then `pattern` with `slots` (the columns,\n   permanent in order) and `entries`. Each entry has a `lemma`, a `key` where the\n   lemma is not `[a-z0-9-]+` (permanent), `reading`, `ipa`, and `forms` with a\n   form for every slot (`null` for none), with `readings` (and `ipas`)\n   for a script that needs them. A cell with two right forms lists both.\n   Cell ids come from the core's id, the key and the slot's place, so never\n   reorder slots. No `gloss`, `name`, `slot_name` or `prompt` in the core.\n4. **Rules core.** `kind: \"rules\"`, `table` with `applies_to` (`pos`, `except`\n   for words the rule does not cover), `slots`, and `rows` (`word` the card id\n   of the vocab card, `forms`, `readings`); and `rules`, each with `id`\n   `\u003Clang>-rule-\u003Cname>`, the `slots` it makes (every slot in exactly one\n   rule), and `words` its explanation quotes, `{ word, reading }`. **Every\n   word of that `pos` that a B1 deck teaches gets a row**, or goes in\n   `except`: the words of this unit and of every earlier one. A word of a\n   later unit adds its row in the same change. A rule id is permanent.\n5. **Words already taught only.** Every lemma, row `word`, form and example\n   uses words a deck earlier on the path teaches. Look each up by its\n   card id (`rg '\"target\": \"\u003Cword>\"' decks\u002F\u003Clang>`), take `ref` for it, and\n   add a `bases` entry for any inflected form. Write no new word card:\n   a word that is missing means the unit is planned too early; stop and say so.\n6. **Layer.** For a grammar core: `pattern` with `name`, `slot_name`, `prompt`\n   (`\"{lemma} ({gloss}), {slot}\"`), `slots` (a label for each slot, optional),\n   `entries` (a gloss for **every** entry, by `key` or lemma) and `notes`, the one\n   text shown after the answer: say what changes and when the base word changes\n   its stem. For a rules core: `table` with `slot_name` and a label for\n   **every** slot (the only placeholder is `{meaning}`; the word is never\n   written into it), and `rules`, each id with a `name` and `explanation`\n   (quote the rule's `words` as `{1}`, `{2}`; a non-Latin word is followed by\n   its reading). A rule the layer leaves out is not taught. Both:\n   `name`, `description` (ending \"Not yet checked by a \u003CLanguage> speaker:\n   please report any mistake.\"), `tags`, `license`, `native`.\n7. **Sentences.** Where the unit has sentences, write a vocab core\n   `\u003Clang>-grammar-\u003Ctopic>-sentences` and its layer: `pos: \"phrase\"`, `bases`\n   (by `ref`) for every word, `confusables`, and on a sentence that uses a\n   rule `rules: [\"\u003Clang>-rule-\u003Cname>\"]`. Ids from `--next-id`.\n8. **The path.** Turn `planned` into `decks` in the same change, keeping\n   `grammar` and any `milestone`, and keep `listening_passages` and\n   `reading_passages`. List the core ids only: `decks: [\"mr-grammar-imperatives\",\n   \"mr-grammar-imperatives-sentences\"]`, then `words: 0` and\n   `grammar: [\"imperatives\"]`. The core is listed once on the path.\n\n**Worked example,** `tok-grammar-o-commands` (the real deck, shortened).\nPath (`decks\u002Ftok\u002Ftok-path.yaml`):\n\n```yaml\n  - decks: [\"tok-grammar-o\", \"tok-grammar-o-commands\", \"tok-grammar-o-address\", \"tok-grammar-o-sentences\", \"tok-reading-o\"]\n    words: 1\n    grammar: [\"o-commands\", \"o-address\"]\n```\n\nCore `decks\u002Ftok\u002Ftok-grammar-o-commands.yaml`:\n\n```yaml\nschema: 1\nid: \"tok-grammar-o-commands\"\npart: \"core\"\nkind: \"grammar\"\nlanguage: { code: \"tok\", iso639_3: \"tok\", name: \"Toki Pona\", script: \"latin\", icon: \"Tp\" }\nlicense: \"CC-BY-SA-4.0\"\ntags: [\"beginner\", \"grammar\", \"unreviewed\"]\npattern:\n  slots: [\"statement\", \"command\"]\n  entries:\n    - lemma: \"pali\"\n      forms:\n        \"statement\": \"sina pali\"\n        \"command\": \"o pali!\"\n```\n\nLayer `decks\u002Ftok\u002Fen\u002Ftok-en-grammar-o-commands.yaml`:\n\n```yaml\nschema: 1\nid: \"tok-en-grammar-o-commands\"\nkind: \"layer\"\ncore: \"tok-grammar-o-commands\"\nnative: { code: \"en\", iso639_3: \"eng\", name: \"English\" }\nname: \"Commands with o\"\npattern:\n  name: \"Commands with o\"\n  slot_name: \"form\"\n  prompt: \"{lemma} ({gloss}), {slot}\"\n  slots: { \"statement\": \"a statement (you do it)\", \"command\": \"a command (do it!)\" }\n  entries:\n    \"pali\": \"to make; to work\"\n  notes: \"Sina pali is you work. O pali! is Work! The command drops the subject and puts o first.\"\n```\n\nThe core id is `tok-grammar-o-commands`, so the topic is `o-commands`; the\ncell ids are `tok-grammar-o-commands-pali-0` and `-1`. A rules example\nis `te-grammar-conditional` and its layer, with the topic `conditional`.\n\n**Validator errors to expect** (CI reads them; do not run it):\n\n- Topic: `'x' is taught by none of the unit's decks` (the `grammar` text is\n  neither a rule's name nor a listed `\u003Clang>-grammar-x`); `names the rules\n  deck ...; its topics are its rules` (use a rule name).\n- Planned: `planned.id: ... already exists` (list it under `decks`);\n  `lists ..., a deck of the \u003Clang>-\u003Cnative> course` (list the core id).\n- Rules core: `no vocab deck writes card \u003Cid>`; `\u003Cid> is a \u003Cpos>, not one of\n  ...`; `\u003Cid> has no reading` (script needs one); `\u003Cid> ... has no row; add\n  its forms, or list it in applies_to.except`; `\u003Cslot> belongs to no rule`;\n  `is also in rule` (slot in two rules); `rules names \u003Cid>, which no rules\n  deck of \u003Clang> defines` (a sentence's `rules`); a rule id not\n  `\u003Clang>-rule-\u003Cname>`.\n- Grammar layer: `gives no gloss for \u003Ckey>`; a slot label for a key that is\n  not a slot; a rules layer with a label for every slot missing, or a\n  placeholder other than `{meaning}`.\n- Quoting: an unquoted key such as `yes`, `no` or `on` is a boolean; quote\n  every slot key.\n- Warnings to clear or explain: a row with one form only; a unit with more\n  words than `words`; a word in a text covered by no card or base.\n\n## Chinese, Japanese and Korean\n\nPattern decisions from the first batches (owner, 2026-10-24: \"Sonnet writes\nthe first batch per language, Haiku follows\"): zh grammar units shi,\nquestions and word order (#813), ja and ko sound-differences and questions\nunits (#814, #815). Copy them: `decks\u002Fzh\u002Fzh-grammar-shi.yaml`,\n`decks\u002Fja\u002Fja-sound-differences.yaml`, `decks\u002Fko\u002Fko-questions.yaml`.\n\n**All three**\n\n- **Readings are \"based on\" a standard**: pinyin with tone marks (Hanyu\n  Pinyin), Hepburn without macrons (`ja-romanisation.yaml`: long vowels\n  `ou`, `oo`, `uu`, `ii`, `aa`; を is `wo`), Revised Romanization. Never\n  say a reading strictly follows one.\n- **Prose rule bites twice.** Every hanzi, kanji, kana or hangul word in a note, a\n  `why`, a gloss or a question carries its reading, **including a wrong form\n  you quote** (\"never 我是忙 (wǒ shì máng)\"): CI errors on one without. The\n  reading in prose is the card's reading letter for letter: 무엇 (mueot),\n  never \"mu-eot\" (CI does not catch it; a reviewer did in #815).\n- **Words already taught, only.** Check a lemma, form or sentence word by\n  its card id. A word that is not a card goes in `bases` written in full, with\n  its base, reading and (in the layer) meaning. A word that has a card, once\n  you write it later, becomes a `ref`: when a unit writes どこ, いくら,\n  얼마예요 or 뭐예요, change the earlier phrasebook and first-words bases to\n  `{ word, ref }` in the same PR and delete their meaning lines in the layer.\n- **A card cannot `ref` itself.** In its own examples, a form of it (달이,\n  なん on なに's card) names its base in full (CI: \"ref names the card itself\").\n  A bare kana or letter in prose needs its reading too (\"the て (te)-form\"). Give a repeated word's base once per text.\n- **Sentences decks** (`\u003Clang>-\u003Ctheme>-sentences`, `pos: \"phrase\"`) give 2 to 3\n  `confusables` each, `kind: \"word\"` or `\"sound\"`, none a word of the\n  sentence, each with a `why` in the layer; a confusable that is no card is a\n  `word` with its `reading`.\n- **Reading decks stay single-file** (`\u003Clang>-en-reading-\u003Cname>.yaml`, listed\n  as `\u003Clang>-reading-\u003Cname>`), 2 passages of 4 short lines and 3 questions\n  each, question ids from `--next-id`. Word units also get the set card for\n  a closed group (question words). A grammar unit keeps its planned\n  passages and writes no reading deck. A question that asks \"which word\n  means 'X'\" offers the **words** (hangul or kana, with the reading) as its\n  options, as `ko-en-reading-sound-differences.yaml` does, never the English\n  meanings: the prompt already names the meaning, so English options give\n  the answer away (found in #814; the zh reading decks written earlier\n  have the flaw).\n- **`warning`** goes on every word card with a `pair` note, naming the note's\n  id; a card with two partners (a triple) takes the pick of\n  `tools\u002Fpick_warning.py` (`pick_warning.pick(card, index)` gives it without\n  writing files).\n- No pictures: a picture needs its emoji in `assets\u002Fpictures\u002F`, and the\n  question words' `picture_ask` waits for the owner (open question).\n\n**Chinese** (script `han_simplified`, `scripts` also traditional)\n\n- Written without spaces: `words` on every card, sentence and example, joined\n  they equal the target without punctuation; compounds the course has no card\n  for are one word with a `base` (听不懂, 喜不喜欢 as one word with `ref`).\n- Readings show the tone **as said**: 不 is `bú` before a fourth tone, `bù`\n  before the others; the 不 in 是不是 or 去不去 is neutral (`shì bu shì`).\n  Third-tone sandhi is not written, as in the existing decks.\n- Measure words come with their own unit (planned); do not use one in a grammar\n  unit before it.\n- A grammar unit has **one deck per topic** (`zh-grammar-shi` and\n  `zh-grammar-bu-negation` for `[\"shi\", \"bu-negation\"]`), each a `kind:\n  \"grammar\"` table: lemma = the verb, noun or question word, one slot per\n  form; for sentence tables put the whole sentence in each `forms` cell and\n  say in the layer's gloss which sentence it is (\"to go: I go to school\").\n  Add a sentences deck with confusables.\n\n**Japanese** (script `kana`)\n\n- Targets are in **hiragana** until the kanji units; katakana only where the\n  phrasebook already has it. Particles are words of their own: `[\"わたし\",\n  \"は\", \"せんせい\", \"です\"]`; set phrases stay whole. The hiragana letters\n  are not word cards: は, の, に still get a `base` entry (`は` reading `wa`).\n- `ipa` from `tools\u002Ftranscribe.py ja`, word by word, joined by spaces.\n- Long vowels, double consonants and the voiced mark are the A1 contrasts:\n  `ja-sounds.yaml` lists them as kana pairs (an empty side for a vowel or っ\n  added). Tag each card with its contrast; a te-form (きて) names its base\n  (くる) and says in a note that the stem changes.\n- Particles and polite forms are taught by their own planned units; examples\n  may use です, か, は, の, に, が, を, と and ください as bases only.\n\n**Korean** (script `hangul`)\n\n- Words are separated by spaces, with the particle joined (물이): each such\n  word names its base (`ref` on another card, `base` in full on its own).\n  The first verb forms are polite `-요`. Avoid, for now, stems that change\n  their first letter (크다, 커요), which the validator warns of.\n- No `ipa` in the existing Korean cards: do not add one by hand.\n  `tools\u002Ftranscribe.py ko` gives the reading of a whole sentence.\n- Sound contrasts (plain, tense, aspirated) are listed in `ko-sounds.yaml` as\n  syllable pairs of the deck's words, since a recogniser returns syllables.\n- Honorifics (선생님, 저, 요 and 세요) are taught in the first words and the\n  addressing unit; keep examples in the polite style.\n",{"name":5,"description":7},"main","e12d242d50df37cf53a73a8f192cf137a076f3a6",".claude\u002Fskills\u002Fbuild-deck",0,"https:\u002F\u002Fgithub.com\u002Faaronified\u002Ffluenough","https:\u002F\u002Fgithub.com\u002Faaronified","2026-11-15 04:56:55",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add aaronified\u002Ffluenough --skill build-deck",{"tool":37,"command":38},"bunx","bunx skills add aaronified\u002Ffluenough --skill build-deck",{"tool":40,"command":41},"pnpm","pnpm dlx skills add aaronified\u002Ffluenough --skill build-deck","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Faaronified\u002Ffluenough\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fbuild-deck\u002FSKILL.md",true,[],[46,53,60],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":19},"01M7D1DWSP4FCZB087RS3VBPDW","work-rating","Opt-in, only when the owner asks. Have an independent subagent rate a finished piece of work out of 10 against the user's own prompts. Never run it at the end of a task on your own; the PR's one review is enough (owner, 2026-10-12, 2026-10-22).","https:\u002F\u002Fgithub.com\u002Faaronified\u002Ffluenough\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fwork-rating\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M7D1DK9NZS2SG7QMJ22CPRA4","flutter-dart-code-review","Library-agnostic Flutter\u002FDart code review checklist covering widget best practices, state management patterns (BLoC, Riverpod, Provider, GetX, MobX, Signals), Dart idioms, performance, accessibility, security, and clean architecture. Use when reviewing Flutter or Dart code, whatever state management library the project uses.","https:\u002F\u002Fgithub.com\u002Faaronified\u002Ffluenough\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fflutter-dart-code-review\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M7D1DF9ZTJ5Z27EST2XV02T2","changelog","Use before adding or editing a CHANGELOG.md line in a pull request. Rules for what earns a line (only what a learner can see or feel), how to word it, and what never does (CI, workflows, tools, tests, refactors, deck content, docs). Docs-only commits and pushes need no line.","https:\u002F\u002Fgithub.com\u002Faaronified\u002Ffluenough\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fchangelog\u002FSKILL.md",[],[]]