[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78F35MP2J204BPSR5KR4ZQA":3,"skill-same:01M78F35MP2J204BPSR5KR4ZQA":48},{"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":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M78F35MP2J204BPSR5KR4ZQA","katra",null,"Chronicle development work in a committed, rich-component dev log as you build. Use when starting a piece of work that should be logged, when capturing a screenshot\u002Fgif\u002Frender into the log, when adding a before\u002Fafter comparison, or at commit time to stamp the active draft with its hash + diffstat. Keywords - katra, dev log, changelog, capture screenshot, log this work, stamp the entry.","craigjmidwinter\u002Fkatra","craigjmidwinter","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F11050892?v=4","01M78F33SRAVV9YYJZ2QFGFED5","Craig J. Midwinter","01M78F33TXFXVJ3Q5H38BH4F02",0,"MIT","https:\u002F\u002Fgithub.com\u002Fcraigjmidwinter\u002Fkatra\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fkatra\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: katra\ndescription: Chronicle development work in a committed, rich-component dev log as you build. Use when starting a piece of work that should be logged, when capturing a screenshot\u002Fgif\u002Frender into the log, when adding a before\u002Fafter comparison, or at commit time to stamp the active draft with its hash + diffstat. Keywords - katra, dev log, changelog, capture screenshot, log this work, stamp the entry.\n---\n\n# katra\n\nKeep a living dev log while you work, using the `katra` CLI (or the\n`katra-mcp` MCP tools, if connected). The log is markdown entries with embedded\nrich components, served as a live page and committed alongside the code.\n\n## The model (read this first)\n\n- A katra lives in `katra\u002F` at the repo root: `entries\u002F` (one markdown file per\n  post) + `media\u002F` + `config.yml`. Run `katra list` to see if one exists; if not,\n  `katra init`.\n- **A draft is an entry with no commit hash.** It renders in the \"In Progress\"\n  panel immediately — there is no scratch file and no promote step. The draft is\n  the running post; you *stamp* it at commit time (hash + diffstat) and it drops\n  into the log. Nothing can get stuck.\n\n## You are writing a post, not a report\n\nThis is the part that goes wrong. Entries drift into flat technical documents —\na wall of prose that reads like a handoff note to the next agent — and a log of\nthose is one nobody, including you in a month, ever reads.\n\nYour project-memory already captures the play-by-play, and **katra ingests that\nmemory into the log at commit time**. So don't re-type the transcript. Spend your\neffort on the two things a text memory can't hold:\n\n- **Show the thing.** Screenshots, renders, before\u002Fafter sliders, diagrams,\n  charts. A single capture is worth paragraphs.\n- **The reasoning.** The decision and the *why*, the alternative you rejected,\n  what broke first. That's the signal memory paraphrases away.\n\nWrite it the way you'd write it up for someone who wasn't there:\n\n- **Open with the stakes, not the filename.** \"The HUD was eating the city\" beats\n  \"Implemented WorldHUD.cs changes in-place.\"\n- **Name the thing you rejected**, and why it lost. A post with no discarded\n  alternative reads as though the answer was obvious, which it wasn't.\n- **Land it.** End on what's now true and what's still shaky — a `warning` block\n  for the parts that need a device, a person, or a rerun to confirm.\n\nAnti-patterns, all observed in real katras:\n\n- Addressing the next agent instead of a reader (\"Integrator notes: wire X after\n  Y\", \"Do NOT trigger a full compile\"). Put coordination in the task\u002Fmemory; the\n  entry is for the reader.\n- Closing on tooling receipts (\"Validated clean via ValidateScript: 0\n  diagnostics\"). Evidence is good — bury it mid-post, don't end on it.\n- Invariant checklists and spec-dumps as the *body*. Summarize the guarantee in\n  a sentence; link or fold the exhaustive list into a collapsible tail if you\n  must keep it.\n- An entry with no visual at all (see below).\n\n## Every entry ships at least one visual\n\nTreat a draft with zero visuals as unfinished. If you're about to stamp one, stop\nand ask what could be *shown* instead of described. In order of preference:\n\n1. **It has a UI, a render, or a scene** → `katra capture` a screenshot or gif.\n   Changed something visible? `katra compare before.png after.png`.\n2. **It generates or transforms structured output** — a map, a graph, a layout, a\n   schedule, a parse tree → render one and capture it. A map generator's post\n   should contain a picture of a map.\n3. **It has numbers** — frame times, token counts, latencies, file sizes, pass\n   rates, before\u002Fafter benchmarks → chart them (recipe below).\n4. **It's pure architecture** → a diagram. A small hand-authored SVG or an HTML\n   figure showing the pieces and the arrows beats three paragraphs describing the\n   same boxes.\n\nOnly when none of those apply is a text-only entry the right call — and that's\nrarer than it feels in the moment.\n\n### Charts and diagrams: author HTML, then capture it\n\nThere's no chart component; you build the figure yourself and embed it, which\nmeans any chart you can draw is available, not a fixed set of types.\n\nWrite a **self-contained** `.html` file to a scratch path, then capture it —\n`katra capture` recognizes `.html` and emits an `embed` block automatically:\n\n```\nkatra capture \u002Ftmp\u002Fframe-times.html --caption \"Frame time vs district count, Quest 3 vs Editor\"\n```\n\nRules for the HTML, because it renders inside a sandboxed iframe:\n\n- **No external requests.** No CDN scripts, no web fonts, no remote images.\n  Inline everything; embed images as `data:` URIs. A `\u003Cscript>` tag with inline\n  JS is fine, but plain inline SVG is usually less work and always renders.\n- **Size it for the column.** Set an explicit `viewBox`, let it scale to 100%\n  width, and pass `height:` in the embed block if 480px is wrong.\n- **Give the figure its own background.** `prefers-color-scheme` follows the\n  *OS*, not the viewer's theme, and the iframe can't see its host — so a\n  transparent figure will eventually render dark ink on a light page. Set an\n  explicit `background` in both branches of your\n  `@media (prefers-color-scheme: dark)` so ink and surface always agree.\n- **Label the axes and the units.** An unlabeled chart is decoration.\n\nA bar chart is ~20 lines of inline SVG — `\u003Crect>` per bar, `\u003Ctext>` per label,\none `\u003Cline>` for the baseline. Don't reach for a library.\n\n## Workflow\n\n1. **Starting a chunk of work** → create a draft:\n   ```\n   katra new \"What you're about to do\" --tags area,kind\n   ```\n   The title is a headline; write it like one.\n\n2. **As you work** → capture assets and reasoning as they happen:\n   ```\n   katra capture path\u002Fto\u002Fscreenshot.png --caption \"after the fix\"\n   katra capture path\u002Fto\u002Fanimation.gif --caption \"the horde, dispatched\"\n   katra capture \u002Ftmp\u002Fbench.html --caption \"p95 latency, before vs after\"\n   katra compare before.png after.png --caption \"bunker reshape\"\n   katra append \"Why we went with X over Y, and what broke first.\"\n   ```\n   `append` also reads stdin (`--file -`) for longer markdown. Capture handles\n   images, gifs, video, and interactive `.html` artifacts automatically. Reach\n   for capture\u002Fcompare the moment there's something visual — the screenshot you\n   don't take now is gone by the time you're writing it up.\n\n3. **Rich components** — embed them in `append`ed markdown as fenced blocks:\n   `embed` (sandboxed iframe artifact), `compare` (before\u002Fafter slider),\n   `gallery` (image grid), `video`, `note`, `warning`. Plain markdown images get\n   a lightbox. Example:\n   ````\n   katra append $'```note\\nThis needs a rebuild to show in the headset.\\n```'\n   ````\n\n4. **At commit time** → stamp the active draft:\n   ```\n   katra stamp                 # uses HEAD + computes the diffstat\n   katra stamp --hash a,b,c    # a chapter of several small commits\n   ```\n   If the post-commit hook is installed (`katra hook install`), this happens\n   automatically after each commit — you only need to commit the stamped file.\n\n5. **Review** → `katra serve` (live LAN page, auto-reloads) or `katra build`\n   for a static site. `katra doctor` flags dangling media and parse errors.\n\n## Notes\n\n- katra folds your project-memory into the draft at commit time — keep using\n  memory as you always do. Your job here is the assets and the *why*, not a\n  running transcript.\n- One draft at a time is the happy path; `stamp` targets the newest draft. Use\n  `--entry \u003Cslug>` to target a specific one.\n- If the MCP server is connected, the equivalents are `katra_new`,\n  `katra_append`, `katra_capture`, `katra_compare`, `katra_stamp`,\n  `katra_list`, `katra_get`.\n","# katra\n\nKeep a living dev log while you work, using the `katra` CLI (or the\n`katra-mcp` MCP tools, if connected). The log is markdown entries with embedded\nrich components, served as a live page and committed alongside the code.\n\n## The model (read this first)\n\n- A katra lives in `katra\u002F` at the repo root: `entries\u002F` (one markdown file per\n  post) + `media\u002F` + `config.yml`. Run `katra list` to see if one exists; if not,\n  `katra init`.\n- **A draft is an entry with no commit hash.** It renders in the \"In Progress\"\n  panel immediately — there is no scratch file and no promote step. The draft is\n  the running post; you *stamp* it at commit time (hash + diffstat) and it drops\n  into the log. Nothing can get stuck.\n\n## You are writing a post, not a report\n\nThis is the part that goes wrong. Entries drift into flat technical documents —\na wall of prose that reads like a handoff note to the next agent — and a log of\nthose is one nobody, including you in a month, ever reads.\n\nYour project-memory already captures the play-by-play, and **katra ingests that\nmemory into the log at commit time**. So don't re-type the transcript. Spend your\neffort on the two things a text memory can't hold:\n\n- **Show the thing.** Screenshots, renders, before\u002Fafter sliders, diagrams,\n  charts. A single capture is worth paragraphs.\n- **The reasoning.** The decision and the *why*, the alternative you rejected,\n  what broke first. That's the signal memory paraphrases away.\n\nWrite it the way you'd write it up for someone who wasn't there:\n\n- **Open with the stakes, not the filename.** \"The HUD was eating the city\" beats\n  \"Implemented WorldHUD.cs changes in-place.\"\n- **Name the thing you rejected**, and why it lost. A post with no discarded\n  alternative reads as though the answer was obvious, which it wasn't.\n- **Land it.** End on what's now true and what's still shaky — a `warning` block\n  for the parts that need a device, a person, or a rerun to confirm.\n\nAnti-patterns, all observed in real katras:\n\n- Addressing the next agent instead of a reader (\"Integrator notes: wire X after\n  Y\", \"Do NOT trigger a full compile\"). Put coordination in the task\u002Fmemory; the\n  entry is for the reader.\n- Closing on tooling receipts (\"Validated clean via ValidateScript: 0\n  diagnostics\"). Evidence is good — bury it mid-post, don't end on it.\n- Invariant checklists and spec-dumps as the *body*. Summarize the guarantee in\n  a sentence; link or fold the exhaustive list into a collapsible tail if you\n  must keep it.\n- An entry with no visual at all (see below).\n\n## Every entry ships at least one visual\n\nTreat a draft with zero visuals as unfinished. If you're about to stamp one, stop\nand ask what could be *shown* instead of described. In order of preference:\n\n1. **It has a UI, a render, or a scene** → `katra capture` a screenshot or gif.\n   Changed something visible? `katra compare before.png after.png`.\n2. **It generates or transforms structured output** — a map, a graph, a layout, a\n   schedule, a parse tree → render one and capture it. A map generator's post\n   should contain a picture of a map.\n3. **It has numbers** — frame times, token counts, latencies, file sizes, pass\n   rates, before\u002Fafter benchmarks → chart them (recipe below).\n4. **It's pure architecture** → a diagram. A small hand-authored SVG or an HTML\n   figure showing the pieces and the arrows beats three paragraphs describing the\n   same boxes.\n\nOnly when none of those apply is a text-only entry the right call — and that's\nrarer than it feels in the moment.\n\n### Charts and diagrams: author HTML, then capture it\n\nThere's no chart component; you build the figure yourself and embed it, which\nmeans any chart you can draw is available, not a fixed set of types.\n\nWrite a **self-contained** `.html` file to a scratch path, then capture it —\n`katra capture` recognizes `.html` and emits an `embed` block automatically:\n\n```\nkatra capture \u002Ftmp\u002Fframe-times.html --caption \"Frame time vs district count, Quest 3 vs Editor\"\n```\n\nRules for the HTML, because it renders inside a sandboxed iframe:\n\n- **No external requests.** No CDN scripts, no web fonts, no remote images.\n  Inline everything; embed images as `data:` URIs. A `\u003Cscript>` tag with inline\n  JS is fine, but plain inline SVG is usually less work and always renders.\n- **Size it for the column.** Set an explicit `viewBox`, let it scale to 100%\n  width, and pass `height:` in the embed block if 480px is wrong.\n- **Give the figure its own background.** `prefers-color-scheme` follows the\n  *OS*, not the viewer's theme, and the iframe can't see its host — so a\n  transparent figure will eventually render dark ink on a light page. Set an\n  explicit `background` in both branches of your\n  `@media (prefers-color-scheme: dark)` so ink and surface always agree.\n- **Label the axes and the units.** An unlabeled chart is decoration.\n\nA bar chart is ~20 lines of inline SVG — `\u003Crect>` per bar, `\u003Ctext>` per label,\none `\u003Cline>` for the baseline. Don't reach for a library.\n\n## Workflow\n\n1. **Starting a chunk of work** → create a draft:\n   ```\n   katra new \"What you're about to do\" --tags area,kind\n   ```\n   The title is a headline; write it like one.\n\n2. **As you work** → capture assets and reasoning as they happen:\n   ```\n   katra capture path\u002Fto\u002Fscreenshot.png --caption \"after the fix\"\n   katra capture path\u002Fto\u002Fanimation.gif --caption \"the horde, dispatched\"\n   katra capture \u002Ftmp\u002Fbench.html --caption \"p95 latency, before vs after\"\n   katra compare before.png after.png --caption \"bunker reshape\"\n   katra append \"Why we went with X over Y, and what broke first.\"\n   ```\n   `append` also reads stdin (`--file -`) for longer markdown. Capture handles\n   images, gifs, video, and interactive `.html` artifacts automatically. Reach\n   for capture\u002Fcompare the moment there's something visual — the screenshot you\n   don't take now is gone by the time you're writing it up.\n\n3. **Rich components** — embed them in `append`ed markdown as fenced blocks:\n   `embed` (sandboxed iframe artifact), `compare` (before\u002Fafter slider),\n   `gallery` (image grid), `video`, `note`, `warning`. Plain markdown images get\n   a lightbox. Example:\n   ````\n   katra append $'```note\\nThis needs a rebuild to show in the headset.\\n```'\n   ````\n\n4. **At commit time** → stamp the active draft:\n   ```\n   katra stamp                 # uses HEAD + computes the diffstat\n   katra stamp --hash a,b,c    # a chapter of several small commits\n   ```\n   If the post-commit hook is installed (`katra hook install`), this happens\n   automatically after each commit — you only need to commit the stamped file.\n\n5. **Review** → `katra serve` (live LAN page, auto-reloads) or `katra build`\n   for a static site. `katra doctor` flags dangling media and parse errors.\n\n## Notes\n\n- katra folds your project-memory into the draft at commit time — keep using\n  memory as you always do. Your job here is the assets and the *why*, not a\n  running transcript.\n- One draft at a time is the happy path; `stamp` targets the newest draft. Use\n  `--entry \u003Cslug>` to target a specific one.\n- If the MCP server is connected, the equivalents are `katra_new`,\n  `katra_append`, `katra_capture`, `katra_compare`, `katra_stamp`,\n  `katra_list`, `katra_get`.\n",{"name":5,"description":7},"main","edcbef84afd36635c204bddeb075d71f0be0336d",".claude\u002Fskills\u002Fkatra",1,"https:\u002F\u002Fgithub.com\u002Fcraigjmidwinter\u002Fkatra","https:\u002F\u002Fcraigjmidwinter.github.io\u002Fkatra\u002F","https:\u002F\u002Fgithub.com\u002Fcraigjmidwinter","https:\u002F\u002Fcraigjmidwinter.github.io\u002F","Loves cats, curling, and Real Housewives","2026-11-12 21:33:00",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add craigjmidwinter\u002Fkatra --skill katra",{"tool":40,"command":41},"bunx","bunx skills add craigjmidwinter\u002Fkatra --skill katra",{"tool":43,"command":44},"pnpm","pnpm dlx skills add craigjmidwinter\u002Fkatra --skill katra","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcraigjmidwinter\u002Fkatra\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fkatra\u002FSKILL.md",true,[],[49,54],{"skillNo":50,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M78F3G1TX0ZMGZG7M4BZMBFY","https:\u002F\u002Fgithub.com\u002Fcraigjmidwinter\u002Fkatra\u002Fblob\u002Fmain\u002Fskills\u002Fkatra\u002FSKILL.md",[],[],{"skillNo":55,"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":56,"categories":57,"keywords":58,"publishedAt":19},"01M78F3A992BTVVSZ8Z2TKYS3T","https:\u002F\u002Fgithub.com\u002Fcraigjmidwinter\u002Fkatra\u002Fblob\u002Fmain\u002Finternal\u002Fcli\u002Fembed\u002FSKILL.md",[],[]]