[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ERBSBZ351ZA6PF153VXRPC":3,"skill-same:01M7ERBSBZ351ZA6PF153VXRPC":47},{"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":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7ERBSBZ351ZA6PF153VXRPC","verify-output-folder",null,"Check OutputFolder.tla, the statechart command's output folder; use when changing how from-spec publishes, swaps, refuses or stops.","JoshuaHayesWasHere\u002Fjstack","JoshuaHayesWasHere","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F78288453?v=4","01M7EQPZP0GDYN3SYY9SZZHFJE","Joshua Hayes","01M7EQPZPQKJDZR99NG512A8X2",1,"MIT","https:\u002F\u002Fgithub.com\u002FJoshuaHayesWasHere\u002Fjstack\u002Fblob\u002Fmain\u002Ffeatures\u002Fskill-library\u002Fproject-skill\u002Fverify-output-folder\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: verify-output-folder\ndescription: Check OutputFolder.tla, the statechart command's output folder; use when changing how from-spec publishes, swaps, refuses or stops.\npaths: \"features\u002Fskill-library\u002Fskills\u002Fstatechart\u002Fscripts\u002Fmodel\u002FOutputFolder.tla, features\u002Fskill-library\u002Fskills\u002Fstatechart\u002Fscripts\u002Fstatechart\u002Fcli.py\"\n---\n\n# verify-output-folder\n\n`features\u002Fskill-library\u002Fskills\u002Fstatechart\u002Fscripts\u002Fmodel\u002FOutputFolder.tla` models two runs of `statechart from-spec` on one output folder: each snapshots the spec, runs TLC, draws, and publishes by moving a work folder into place, setting the old folder aside and removing it; a run can be stopped, and its TLC can outlive it.\nIt is also the statechart skill's worked example, labelled by `OutputFolder.map.py`.\n\nThe rules, each with its harm:\n\n- **`ChartsOneSpec`:** a published chart was drawn from one version of the spec.\n  Broken, a chart mixes two versions.\n- **`KeepsYourFiles`:** a folder with files not the command's own (your notes) is never removed or replaced.\n  Broken, your files are lost.\n- **`NeverLosesChart`:** a failed swap puts the old chart back.\n  Broken, the folder is left with no chart.\n- **`ExitTwoLeavesFolder`:** a run that exits 2 left the output folder as it found it, unless `--png` could not render a chart: then it keeps what it wrote, as `--help`'s exit codes say.\n- **`OverlapNeverRefuses`:** an overlapping run never makes the other refuse.\n\n## The record\n\nModel: `features\u002Fskill-library\u002Fskills\u002Fstatechart\u002Fscripts\u002Fmodel\u002FOutputFolder.tla`\nSync: `2fb4e2587489ad3fbebf71561ac648801edb710f`\nCovers:\n- `features\u002Fskill-library\u002Fskills\u002Fstatechart\u002Fscripts\u002Fstatechart\u002Fcli.py`: `from_spec`, `snapshot`, `read_input`, `out_dir`, `refuse_foreign`, `foreign`, `OWN`, `run_tlc`, `publish`, `moved`, `put_back`, `unchanged`, `finish`, `in_work_folder`, `run_in_own_group`, `stop_group`\n\nThe spec quotes no code, so at the sync commit each action was mapped to it: `Start` is `from_spec` and `snapshot`; `Refuse` is `read_input`, `out_dir` and `refuse_foreign` ending in 2; `Tlc` is `run_tlc`; `Stale` is `unchanged`; `Swap` and `MoveIn` are `publish`'s loop on `moved` (`ENOTEMPTY`, `EEXIST`); `MoveAside` is `moved(out, old, \"ENOENT\")`; `Checked`, `KeepAside` and `Supersede` are `refuse_foreign` in `publish`; `Restore` and `RenameFails` are `put_back`; `RenderFails` is `finish`'s `render` before `publish`; `Clean` is the last `rmtree` and `finish`'s exit, 0, 1 or 2; `Stop` is `in_work_folder`; `KillPython` and `OrphanEnd` are `run_in_own_group` and `stop_group`.\n`OWN` and `foreign` decide what counts as the command's own files, the model's `notes`.\n`features\u002Frepo-guards\u002Ftests\u002Ftest_model_sync.py` fails when a file or name above is gone.\nMove `Sync:` forward only after you read every change to `cli.py` since it against the model, as `\u002Fmaintain-formal-verification-skill` says, and never because the check passes.\n\n## Does a change touch it\n\nRerun it when the diff touches `publish`, `moved`, `put_back`, `unchanged`, `finish`, `refuse_foreign`, `OWN`, how a run is stopped or its TLC killed, or when the input snapshot is taken.\n\n## Run it\n\n```sh\nuv run pytest features\u002Fskill-library\u002Ftests\u002Ftest_statechart_runs.py -q -k \"output_folder or worked_example or overlap\"\n```\n\nIt selects eight tests: `test_the_output_folder_model_keeps_every_rule_and_breaks_one_without_each_guard` (TLC on the model, and on five mutants of it), and seven that drive the real command on its output folder (two overlapping runs, a spec changed mid-run, a file put in the folder, a killed run, a TLC error, the worked example).\n\n- **Bounds:** two runs, run 2 starts only after run 1; two versions of the spec; one note; the cfg has no constants; 11,477 distinct states.\n- **The mutants:** `read'` set for every run, or `Swap` without `spec = snap[r]`, breaks `ChartsOneSpec`; `Checked` without `~aside[r].notes` breaks `KeepsYourFiles`; `RenameFails` without the restore, or `Supersede` without `~out.notes`, breaks `NeverLosesChart`.\n- **Assumptions:** renames are atomic, with no copy fallback; whether `--png` runs is not modeled, only a chart it cannot render; the snapshot is one step at `Start`; TLC failing, as a test slot that dies before TLC prints (#1743), exits 2 before publishing and touches no folder, as `Refuse` does, and has no step of its own.\n  The missing map file, written before any work folder, is a `Refuse` that leaves the output folder alone.\n\n## A real bug or a modeling error\n\nMap each step of a trace to `cli.py` with the table above.\nA step the command cannot take in that order is a modeling error, and the model is what gets fixed.\nWhen every step is the command's, it is a bug: tell it as the two runs' steps and what the folder held after each, and leave the rule as it is.\n\n## Change the model when the code changes on purpose\n\n- A new exit or a new write to the output folder: add it as an action, and a mutant in `test_statechart_runs.py` that shows the rule it bears on breaking without it.\n- Keep `OutputFolder.map.py` labelling every state the model adds, since the statechart skill shows it as its example.\n\n## The last upkeep\n\n`\u002Fmaintain-formal-verification-skill` ran at `228c1436c` (st-model-upkeep-run): `cli.py` is unchanged from it to the row's first base, and the drift st-model-sync found was settled from the code.\n\n- **`ExitTwoLeavesFolder` was false of the code, and the code says so on purpose:** `finish` returns 2 after `publish` when `--png` renders fewer PNGs than charts, and `--help` states it (\"When a chart does not render, the command keeps the files it wrote and exits 2\").\n  The model has `RenderFails`, and the rule and `OverlapNeverRefuses` take that exception; with the old rule TLC breaks it at once, which is the drift.\n- **Exit 1:** `Clean` exits 0 or 1, the folder published either way.\n- **Left out, each in the assumptions above:** `moved`'s copy fallback (`ENOSYS`, `EXDEV`, `EISDIR`), which is not atomic; a rename onto an empty folder, which no chart of a run's can be; the work folder a SIGKILL leaves, outside the output folder; and the snapshot of local modules and expectations after `out_dir`, later than `Start`.\n\nEvery rule holds over 11,477 states, and `uv run pytest features\u002Fskill-library\u002Ftests\u002Ftest_statechart_runs.py -q -k \"output_folder or worked_example or overlap\"` printed `8 passed`.\n\nThe row was then rebased onto st-model-sync, whose merge of main brought main to `8f4c21b6f`, and the upkeep diffed the covered code again from `228c1436c` to it: `cli.py` changed in #1698 and #1702, in its help, `from_chart` and `site_main`, none of the names this model covers, so the sync commit moved there.\n\nst-model-sync then merged main again, to `2fb4e2587`, and the row was rebased onto it; the upkeep diffed the covered code from `8f4c21b6f`: `run_tlc` changed in #1743: a test slot that dies before TLC prints raises `CannotFinish`, so the run exits 2 before it publishes, as a TLC run that fails always did; the model has no step for TLC failing, which touches no folder as `Refuse` does, and the assumptions now say so.\nThe sync commit moved there.\n","# verify-output-folder\n\n`features\u002Fskill-library\u002Fskills\u002Fstatechart\u002Fscripts\u002Fmodel\u002FOutputFolder.tla` models two runs of `statechart from-spec` on one output folder: each snapshots the spec, runs TLC, draws, and publishes by moving a work folder into place, setting the old folder aside and removing it; a run can be stopped, and its TLC can outlive it.\nIt is also the statechart skill's worked example, labelled by `OutputFolder.map.py`.\n\nThe rules, each with its harm:\n\n- **`ChartsOneSpec`:** a published chart was drawn from one version of the spec.\n  Broken, a chart mixes two versions.\n- **`KeepsYourFiles`:** a folder with files not the command's own (your notes) is never removed or replaced.\n  Broken, your files are lost.\n- **`NeverLosesChart`:** a failed swap puts the old chart back.\n  Broken, the folder is left with no chart.\n- **`ExitTwoLeavesFolder`:** a run that exits 2 left the output folder as it found it, unless `--png` could not render a chart: then it keeps what it wrote, as `--help`'s exit codes say.\n- **`OverlapNeverRefuses`:** an overlapping run never makes the other refuse.\n\n## The record\n\nModel: `features\u002Fskill-library\u002Fskills\u002Fstatechart\u002Fscripts\u002Fmodel\u002FOutputFolder.tla`\nSync: `2fb4e2587489ad3fbebf71561ac648801edb710f`\nCovers:\n- `features\u002Fskill-library\u002Fskills\u002Fstatechart\u002Fscripts\u002Fstatechart\u002Fcli.py`: `from_spec`, `snapshot`, `read_input`, `out_dir`, `refuse_foreign`, `foreign`, `OWN`, `run_tlc`, `publish`, `moved`, `put_back`, `unchanged`, `finish`, `in_work_folder`, `run_in_own_group`, `stop_group`\n\nThe spec quotes no code, so at the sync commit each action was mapped to it: `Start` is `from_spec` and `snapshot`; `Refuse` is `read_input`, `out_dir` and `refuse_foreign` ending in 2; `Tlc` is `run_tlc`; `Stale` is `unchanged`; `Swap` and `MoveIn` are `publish`'s loop on `moved` (`ENOTEMPTY`, `EEXIST`); `MoveAside` is `moved(out, old, \"ENOENT\")`; `Checked`, `KeepAside` and `Supersede` are `refuse_foreign` in `publish`; `Restore` and `RenameFails` are `put_back`; `RenderFails` is `finish`'s `render` before `publish`; `Clean` is the last `rmtree` and `finish`'s exit, 0, 1 or 2; `Stop` is `in_work_folder`; `KillPython` and `OrphanEnd` are `run_in_own_group` and `stop_group`.\n`OWN` and `foreign` decide what counts as the command's own files, the model's `notes`.\n`features\u002Frepo-guards\u002Ftests\u002Ftest_model_sync.py` fails when a file or name above is gone.\nMove `Sync:` forward only after you read every change to `cli.py` since it against the model, as `\u002Fmaintain-formal-verification-skill` says, and never because the check passes.\n\n## Does a change touch it\n\nRerun it when the diff touches `publish`, `moved`, `put_back`, `unchanged`, `finish`, `refuse_foreign`, `OWN`, how a run is stopped or its TLC killed, or when the input snapshot is taken.\n\n## Run it\n\n```sh\nuv run pytest features\u002Fskill-library\u002Ftests\u002Ftest_statechart_runs.py -q -k \"output_folder or worked_example or overlap\"\n```\n\nIt selects eight tests: `test_the_output_folder_model_keeps_every_rule_and_breaks_one_without_each_guard` (TLC on the model, and on five mutants of it), and seven that drive the real command on its output folder (two overlapping runs, a spec changed mid-run, a file put in the folder, a killed run, a TLC error, the worked example).\n\n- **Bounds:** two runs, run 2 starts only after run 1; two versions of the spec; one note; the cfg has no constants; 11,477 distinct states.\n- **The mutants:** `read'` set for every run, or `Swap` without `spec = snap[r]`, breaks `ChartsOneSpec`; `Checked` without `~aside[r].notes` breaks `KeepsYourFiles`; `RenameFails` without the restore, or `Supersede` without `~out.notes`, breaks `NeverLosesChart`.\n- **Assumptions:** renames are atomic, with no copy fallback; whether `--png` runs is not modeled, only a chart it cannot render; the snapshot is one step at `Start`; TLC failing, as a test slot that dies before TLC prints (#1743), exits 2 before publishing and touches no folder, as `Refuse` does, and has no step of its own.\n  The missing map file, written before any work folder, is a `Refuse` that leaves the output folder alone.\n\n## A real bug or a modeling error\n\nMap each step of a trace to `cli.py` with the table above.\nA step the command cannot take in that order is a modeling error, and the model is what gets fixed.\nWhen every step is the command's, it is a bug: tell it as the two runs' steps and what the folder held after each, and leave the rule as it is.\n\n## Change the model when the code changes on purpose\n\n- A new exit or a new write to the output folder: add it as an action, and a mutant in `test_statechart_runs.py` that shows the rule it bears on breaking without it.\n- Keep `OutputFolder.map.py` labelling every state the model adds, since the statechart skill shows it as its example.\n\n## The last upkeep\n\n`\u002Fmaintain-formal-verification-skill` ran at `228c1436c` (st-model-upkeep-run): `cli.py` is unchanged from it to the row's first base, and the drift st-model-sync found was settled from the code.\n\n- **`ExitTwoLeavesFolder` was false of the code, and the code says so on purpose:** `finish` returns 2 after `publish` when `--png` renders fewer PNGs than charts, and `--help` states it (\"When a chart does not render, the command keeps the files it wrote and exits 2\").\n  The model has `RenderFails`, and the rule and `OverlapNeverRefuses` take that exception; with the old rule TLC breaks it at once, which is the drift.\n- **Exit 1:** `Clean` exits 0 or 1, the folder published either way.\n- **Left out, each in the assumptions above:** `moved`'s copy fallback (`ENOSYS`, `EXDEV`, `EISDIR`), which is not atomic; a rename onto an empty folder, which no chart of a run's can be; the work folder a SIGKILL leaves, outside the output folder; and the snapshot of local modules and expectations after `out_dir`, later than `Start`.\n\nEvery rule holds over 11,477 states, and `uv run pytest features\u002Fskill-library\u002Ftests\u002Ftest_statechart_runs.py -q -k \"output_folder or worked_example or overlap\"` printed `8 passed`.\n\nThe row was then rebased onto st-model-sync, whose merge of main brought main to `8f4c21b6f`, and the upkeep diffed the covered code again from `228c1436c` to it: `cli.py` changed in #1698 and #1702, in its help, `from_chart` and `site_main`, none of the names this model covers, so the sync commit moved there.\n\nst-model-sync then merged main again, to `2fb4e2587`, and the row was rebased onto it; the upkeep diffed the covered code from `8f4c21b6f`: `run_tlc` changed in #1743: a test slot that dies before TLC prints raises `CannotFinish`, so the run exits 2 before it publishes, as a TLC run that fails always did; the model has no step for TLC failing, which touches no folder as `Refuse` does, and the assumptions now say so.\nThe sync commit moved there.\n",{"name":5,"paths":24,"description":7},"features\u002Fskill-library\u002Fskills\u002Fstatechart\u002Fscripts\u002Fmodel\u002FOutputFolder.tla, features\u002Fskill-library\u002Fskills\u002Fstatechart\u002Fscripts\u002Fstatechart\u002Fcli.py","main","daff051d2674b46e2eb8a333bbd3f3e40f8d1cea","features\u002Fskill-library\u002Fproject-skill\u002Fverify-output-folder",0,"https:\u002F\u002Fgithub.com\u002FJoshuaHayesWasHere\u002Fjstack","https:\u002F\u002Fgithub.com\u002FJoshuaHayesWasHere","Software Engineer @ Markel\r\n","2026-11-15 11:25:06",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add JoshuaHayesWasHere\u002Fjstack --skill verify-output-folder",{"tool":39,"command":40},"bunx","bunx skills add JoshuaHayesWasHere\u002Fjstack --skill verify-output-folder",{"tool":42,"command":43},"pnpm","pnpm dlx skills add JoshuaHayesWasHere\u002Fjstack --skill verify-output-folder","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FJoshuaHayesWasHere\u002Fjstack\u002Fblob\u002Fmain\u002Ffeatures\u002Fskill-library\u002Fproject-skill\u002Fverify-output-folder\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M7ERF9GXMY62V7QTVAR6G8DG","no-key","A skill its skills.json lists as hidden that a model may still call by itself, kept broken so the lint is seen to catch it.","https:\u002F\u002Fgithub.com\u002FJoshuaHayesWasHere\u002Fjstack\u002Fblob\u002Fmain\u002Ftesting\u002Ftests\u002Ffixtures\u002Fskills\u002Fno-key\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M7ERF83ZG3XKJ2SB8MJHCZ8H","fake-skill","A FAKE skill in a FAKE tree, named for its folder until the test renames the folder.","https:\u002F\u002Fgithub.com\u002FJoshuaHayesWasHere\u002Fjstack\u002Fblob\u002Fmain\u002Ftesting\u002Ftests\u002Ffixtures\u002Fskills\u002Fnamed-tree\u002Fskills\u002Ffake-skill\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7ERF698RV4VF8QCDF8H8DA4","extra-key","A skill its skills.json does not list as hidden that a model still cannot call, kept broken so the lint is seen to catch it.","https:\u002F\u002Fgithub.com\u002FJoshuaHayesWasHere\u002Fjstack\u002Fblob\u002Fmain\u002Ftesting\u002Ftests\u002Ffixtures\u002Fskills\u002Fextra-key\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7ERF2V8N73X9T0Y9PJ4SFV6","unslop","Cut AI tells from writing. Use when the user says text reads like AI, asks to unslop it, or before prose ships to people.","https:\u002F\u002Fgithub.com\u002FJoshuaHayesWasHere\u002Fjstack\u002Fblob\u002Fmain\u002Ffeatures\u002Fwriting\u002Fskills\u002Funslop\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7EREWM67WX934XKABM4XCSZ","technical-writing","Write or review docs, READMEs, RFCs, PR descriptions and commit messages to a layered standard: Diataxis structure, Google developer style, STE rules and Global English.","https:\u002F\u002Fgithub.com\u002FJoshuaHayesWasHere\u002Fjstack\u002Fblob\u002Fmain\u002Ffeatures\u002Fwriting\u002Fskills\u002Ftechnical-writing\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7EREMHJS9JY10AM5EKVX3GP","why","Find why code is the way it is, from its history and every evidence source this session can query, with citations. Use for 'why does X work this way', 'why did we pick Y', regressions and postmortems. Use how for runtime behavior.","https:\u002F\u002Fgithub.com\u002FJoshuaHayesWasHere\u002Fjstack\u002Fblob\u002Fmain\u002Ffeatures\u002Fwhy\u002FSKILL.md",[],[]]