[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M719WBNVH24AEZ7GJTSGXRMM":3,"skill-same:01M719WBNVH24AEZ7GJTSGXRMM":68},{"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":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":49,"ownerHtmlUrl":50,"ownerBlogUrl":51,"ownerDescription":52,"updatedAt":53,"install":54,"resources":67},"01M719WBNVH24AEZ7GJTSGXRMM","img-gen",null,"Declare an AI-generated image inline — Neko calls an OpenAI image model when the `neko gen-images` command runs, saves a PNG into the page's assets\u002Fimg-gen\u002F folder, and rewrites the directive into a regular Markdown image with the original directive preserved as an HTML comment.","curiosity-ai\u002Fneko","curiosity-ai","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F26607183?v=4","01M719T89H2VGM26V263FNZPC8","Curiosity","01M719T8APP8YJ44A9DZ6C41JB",2,"MIT","https:\u002F\u002Fgithub.com\u002Fcuriosity-ai\u002Fneko\u002Fblob\u002Fmain\u002F.template\u002F.claude\u002Fskills\u002Fimg-gen\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"img","img gen","png","html","openai","assets","folder","markdown","command","inline","directive","with","image","when","generated","calls","page","model","as","images","2026-11-10 10:12:30",false,"---\nname: img-gen\ndescription: Declare an AI-generated image inline — Neko calls an OpenAI image model when the `neko gen-images` command runs, saves a PNG into the page's assets\u002Fimg-gen\u002F folder, and rewrites the directive into a regular Markdown image with the original directive preserved as an HTML comment.\n---\n\n# Image Generation\n\nA `[!img-gen]` directive describes an image you want generated. Running\n`neko gen-images --api-key sk-...` walks every Markdown file under the input\nfolder, calls OpenAI to (1) pick a slug and an alt-text for the image and\n(2) generate the PNG itself, writes the PNG into the page's\n`assets\u002Fimg-gen\u002F` folder, then rewrites the directive in place to a real\nMarkdown image — keeping the original directive as an HTML comment so you\ncan re-generate later.\n\nOnly OpenAI is supported at the moment. The default models are\n`gpt-image-1` for the image and `gpt-4o-mini` for the filename\u002Falt-text\nstep; both can be overridden on the command line.\n\nBy default Neko generates each image **at landscape `1536x1024`**, appends a\n\"render for a light theme\" instruction to the prompt, and then **automatically\ngenerates a paired dark-mode variant** by calling the image-edit endpoint\nwith the light image as input. The rewritten Markdown carries a\n`src-dark=\"…\"` attribute so the active theme picks the right variant. All of\nthis is configurable in `neko.yml` (`imageGen` section) or per-directive.\n\n## Syntax\n\n```markdown\n[!img-gen\nA cozy cat sitting by a window during a rainstorm, watercolor style\n]\n```\n\nThe block body is the image prompt — anything is allowed, including\nmulti-line descriptions.\n\n## With attributes\n\nAttributes go on the first line, before the newline:\n\n```markdown\n[!img-gen size=1024x1024 quality=high\nA diagram of how Neko builds a static site, isometric pixel art\n]\n```\n\nSupported attributes:\n\n- `size` — `auto`, `1024x1024` (square), `1536x1024` (landscape, default),\n  `1024x1536` (portrait), `2048x2048` (2K square), `2048x1152` (2K landscape),\n  `3840x2160` (4K landscape), `2160x3840` (4K portrait), or any explicit\n  `\u003Cwidth>x\u003Cheight>`. Sizes matching the `TornadoImageSizes` enum are sent\n  directly; the larger 2K\u002F4K resolutions go through the `Custom` enum value\n  with explicit `Width`\u002F`Height`.\n- `quality` — `auto`, `low`, `medium`, `high`, `standard`, `hd`.\n- `background` — `auto`, `opaque`, `transparent`. Useful for models that\n  support transparent backgrounds (gpt-image-1).\n- `style` — `natural`, `vivid`. DALL·E-3 only.\n- `light` — `true` \u002F `false`. Override the global `imageGen.lightMode`\n  setting for this directive only.\n- `dark` — `true` \u002F `false`. Override the global `imageGen.darkMode`\n  setting for this directive only — set `dark=false` to skip the dark\n  variant for a single image.\n\n## Project-level defaults (`neko.yml`)\n\nDefaults live under `imageGen:` in `neko.yml`. Every key is optional.\n\n```yml\nimageGen:\n  systemPrompt: \"Use a flat illustration style with thin strokes.\"\n  size: 1536x1024            # default size when a directive omits it\n  lightMode: true            # append a light-theme instruction to each prompt\n  darkMode: true             # auto-generate a *-dark.png paired variant\n  lightModePrompt: \"Render this in light mode: bright background...\"\n  darkModePrompt: \"Recreate this image in dark mode: dark background...\"\n```\n\nThe `systemPrompt` is appended to every `[!img-gen]` prompt — perfect for a\nglobal house style. The light\u002Fdark prompts boilerplate; override them if the\ndefaults don't match your visual language.\n\n## Command-line\n\n```bash\nneko gen-images \\\n  --input . \\\n  --api-key sk-... \\\n  --image-model gpt-image-1 \\\n  --llm-model gpt-4o-mini\n```\n\nIf `--api-key` is omitted, Neko reads `OPENAI_API_KEY` from the\nenvironment.\n\n## Backfilling dark variants\n\nIf you have existing `![alt](assets\u002Fimg-gen\u002Ffoo.png)` references that don't\nyet have a paired dark image (older runs, or hand-authored references), run:\n\n```bash\nneko gen-dark-images --api-key sk-... --input .\n```\n\nIt walks every Markdown file, finds `assets\u002Fimg-gen\u002F*.png` references\nwithout a `{src-dark=\"…\"}` attribute, asks the OpenAI image-edit endpoint\nto recreate each in dark mode using `imageGen.darkModePrompt`, saves the\nnew file as `\u003Cname>-dark.png`, and rewrites the Markdown attribute — preserving\nany other attributes already on the image. Idempotent: paired images are\nskipped, and `\u003Cname>-dark.png` files already on disk are relinked without a\nsecond API call.\n\n## What the rewrite looks like\n\nBefore:\n\n```markdown\n[!img-gen\nA cozy cat sitting by a window during a rainstorm, watercolor style\n]\n```\n\nAfter running `neko gen-images` (with the default `darkMode: true`):\n\n```markdown\n\u003C!--\n[!img-gen\nA cozy cat sitting by a window during a rainstorm, watercolor style\n]\n-->\n![A cozy cat by a rainy window, watercolor.](assets\u002Fimg-gen\u002Fcozy-cat-rainstorm.png){src-dark=\"assets\u002Fimg-gen\u002Fcozy-cat-rainstorm-dark.png\"}\n```\n\nThe `src-dark=\"…\"` attribute makes Neko emit two `\u003Cimg>` tags — the light\none hidden in dark mode (`dark:hidden`), the dark one hidden in light mode —\nso the right variant shows automatically.\n\nWith `dark=false` (or `imageGen.darkMode: false` in `neko.yml`) you instead\nget a plain Markdown image:\n\n```markdown\n\u003C!-- … directive … -->\n![A cozy cat by a rainy window, watercolor.](assets\u002Fimg-gen\u002Fcozy-cat-rainstorm.png)\n```\n\nSubsequent `neko build` runs treat the page as a normal Markdown image\nreference.\n\n## Tips\n\n- Commit both the rewritten Markdown and the generated PNGs (light **and**\n  dark) so visitors see the image without anyone needing an API key.\n- Use `quality=low` for drafts, then re-generate at higher quality once the\n  prompt is right. To re-generate, delete the rewritten image line and\n  uncomment the directive.\n- The directive renders nothing in HTML until you run `neko gen-images`.\n  This is intentional — pages with un-generated directives simply show no\n  image yet.\n- Filenames are picked by the LLM as a short lowercase ASCII slug, then\n  sanitised and de-duplicated. They live alongside the page in\n  `assets\u002Fimg-gen\u002F`. The dark variant uses the same slug with a `-dark`\n  suffix.\n- A dark variant doubles the per-image API cost. Turn it off site-wide with\n  `imageGen.darkMode: false`, or selectively with `dark=false` on individual\n  directives.\n","# Image Generation\n\nA `[!img-gen]` directive describes an image you want generated. Running\n`neko gen-images --api-key sk-...` walks every Markdown file under the input\nfolder, calls OpenAI to (1) pick a slug and an alt-text for the image and\n(2) generate the PNG itself, writes the PNG into the page's\n`assets\u002Fimg-gen\u002F` folder, then rewrites the directive in place to a real\nMarkdown image — keeping the original directive as an HTML comment so you\ncan re-generate later.\n\nOnly OpenAI is supported at the moment. The default models are\n`gpt-image-1` for the image and `gpt-4o-mini` for the filename\u002Falt-text\nstep; both can be overridden on the command line.\n\nBy default Neko generates each image **at landscape `1536x1024`**, appends a\n\"render for a light theme\" instruction to the prompt, and then **automatically\ngenerates a paired dark-mode variant** by calling the image-edit endpoint\nwith the light image as input. The rewritten Markdown carries a\n`src-dark=\"…\"` attribute so the active theme picks the right variant. All of\nthis is configurable in `neko.yml` (`imageGen` section) or per-directive.\n\n## Syntax\n\n```markdown\n[!img-gen\nA cozy cat sitting by a window during a rainstorm, watercolor style\n]\n```\n\nThe block body is the image prompt — anything is allowed, including\nmulti-line descriptions.\n\n## With attributes\n\nAttributes go on the first line, before the newline:\n\n```markdown\n[!img-gen size=1024x1024 quality=high\nA diagram of how Neko builds a static site, isometric pixel art\n]\n```\n\nSupported attributes:\n\n- `size` — `auto`, `1024x1024` (square), `1536x1024` (landscape, default),\n  `1024x1536` (portrait), `2048x2048` (2K square), `2048x1152` (2K landscape),\n  `3840x2160` (4K landscape), `2160x3840` (4K portrait), or any explicit\n  `\u003Cwidth>x\u003Cheight>`. Sizes matching the `TornadoImageSizes` enum are sent\n  directly; the larger 2K\u002F4K resolutions go through the `Custom` enum value\n  with explicit `Width`\u002F`Height`.\n- `quality` — `auto`, `low`, `medium`, `high`, `standard`, `hd`.\n- `background` — `auto`, `opaque`, `transparent`. Useful for models that\n  support transparent backgrounds (gpt-image-1).\n- `style` — `natural`, `vivid`. DALL·E-3 only.\n- `light` — `true` \u002F `false`. Override the global `imageGen.lightMode`\n  setting for this directive only.\n- `dark` — `true` \u002F `false`. Override the global `imageGen.darkMode`\n  setting for this directive only — set `dark=false` to skip the dark\n  variant for a single image.\n\n## Project-level defaults (`neko.yml`)\n\nDefaults live under `imageGen:` in `neko.yml`. Every key is optional.\n\n```yml\nimageGen:\n  systemPrompt: \"Use a flat illustration style with thin strokes.\"\n  size: 1536x1024            # default size when a directive omits it\n  lightMode: true            # append a light-theme instruction to each prompt\n  darkMode: true             # auto-generate a *-dark.png paired variant\n  lightModePrompt: \"Render this in light mode: bright background...\"\n  darkModePrompt: \"Recreate this image in dark mode: dark background...\"\n```\n\nThe `systemPrompt` is appended to every `[!img-gen]` prompt — perfect for a\nglobal house style. The light\u002Fdark prompts boilerplate; override them if the\ndefaults don't match your visual language.\n\n## Command-line\n\n```bash\nneko gen-images \\\n  --input . \\\n  --api-key sk-... \\\n  --image-model gpt-image-1 \\\n  --llm-model gpt-4o-mini\n```\n\nIf `--api-key` is omitted, Neko reads `OPENAI_API_KEY` from the\nenvironment.\n\n## Backfilling dark variants\n\nIf you have existing `![alt](assets\u002Fimg-gen\u002Ffoo.png)` references that don't\nyet have a paired dark image (older runs, or hand-authored references), run:\n\n```bash\nneko gen-dark-images --api-key sk-... --input .\n```\n\nIt walks every Markdown file, finds `assets\u002Fimg-gen\u002F*.png` references\nwithout a `{src-dark=\"…\"}` attribute, asks the OpenAI image-edit endpoint\nto recreate each in dark mode using `imageGen.darkModePrompt`, saves the\nnew file as `\u003Cname>-dark.png`, and rewrites the Markdown attribute — preserving\nany other attributes already on the image. Idempotent: paired images are\nskipped, and `\u003Cname>-dark.png` files already on disk are relinked without a\nsecond API call.\n\n## What the rewrite looks like\n\nBefore:\n\n```markdown\n[!img-gen\nA cozy cat sitting by a window during a rainstorm, watercolor style\n]\n```\n\nAfter running `neko gen-images` (with the default `darkMode: true`):\n\n```markdown\n\u003C!--\n[!img-gen\nA cozy cat sitting by a window during a rainstorm, watercolor style\n]\n-->\n![A cozy cat by a rainy window, watercolor.](assets\u002Fimg-gen\u002Fcozy-cat-rainstorm.png){src-dark=\"assets\u002Fimg-gen\u002Fcozy-cat-rainstorm-dark.png\"}\n```\n\nThe `src-dark=\"…\"` attribute makes Neko emit two `\u003Cimg>` tags — the light\none hidden in dark mode (`dark:hidden`), the dark one hidden in light mode —\nso the right variant shows automatically.\n\nWith `dark=false` (or `imageGen.darkMode: false` in `neko.yml`) you instead\nget a plain Markdown image:\n\n```markdown\n\u003C!-- … directive … -->\n![A cozy cat by a rainy window, watercolor.](assets\u002Fimg-gen\u002Fcozy-cat-rainstorm.png)\n```\n\nSubsequent `neko build` runs treat the page as a normal Markdown image\nreference.\n\n## Tips\n\n- Commit both the rewritten Markdown and the generated PNGs (light **and**\n  dark) so visitors see the image without anyone needing an API key.\n- Use `quality=low` for drafts, then re-generate at higher quality once the\n  prompt is right. To re-generate, delete the rewritten image line and\n  uncomment the directive.\n- The directive renders nothing in HTML until you run `neko gen-images`.\n  This is intentional — pages with un-generated directives simply show no\n  image yet.\n- Filenames are picked by the LLM as a short lowercase ASCII slug, then\n  sanitised and de-duplicated. They live alongside the page in\n  `assets\u002Fimg-gen\u002F`. The dark variant uses the same slug with a `-dark`\n  suffix.\n- A dark variant doubles the per-image API cost. Turn it off site-wide with\n  `imageGen.darkMode: false`, or selectively with `dark=false` on individual\n  directives.\n",{"name":5,"description":7},"main","4f114553f19bf593d54dfbf7d4a024a789a660fd",".template\u002F.claude\u002Fskills\u002Fimg-gen",0,"https:\u002F\u002Fgithub.com\u002Fcuriosity-ai\u002Fneko","https:\u002F\u002Fneko.curiosity.ai\u002F","https:\u002F\u002Fgithub.com\u002Fcuriosity-ai","https:\u002F\u002Fcuriosity.ai","Build enterprise AI by describing it","2026-11-13 21:54:58",{"source":8,"skillName":5,"commands":55,"prompt":65,"zipAvailable":66},[56,59,62],{"tool":57,"command":58},"npx","npx skills add curiosity-ai\u002Fneko --skill img-gen",{"tool":60,"command":61},"bunx","bunx skills add curiosity-ai\u002Fneko --skill img-gen",{"tool":63,"command":64},"pnpm","pnpm dlx skills add curiosity-ai\u002Fneko --skill img-gen","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcuriosity-ai\u002Fneko\u002Fblob\u002Fmain\u002F.template\u002F.claude\u002Fskills\u002Fimg-gen\u002FSKILL.md",true,[],[69,85,107,130,149,166],{"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":39},"01M719XZPVD833ZT3PWDX03CV3","youtube","Embed a YouTube video by pasting its URL on its own line. Neko auto-detects watch\u002Fyoutu.be\u002Fembed forms and honours timestamp, autoplay, loop, and mute parameters.","https:\u002F\u002Fgithub.com\u002Fcuriosity-ai\u002Fneko\u002Fblob\u002Fmain\u002F.template\u002F.claude\u002Fskills\u002Fyoutube\u002FSKILL.md",[],[71,76,77,78,79,80,81,82,83,84],"watch","embed","URL","loop","auto","forms","timestamp","line","Video",{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":39},"01M719XXP648Z2N9BVP2169HM0","workflow","Render a workflow diagram from a node-and-arrows DSL — labelled boxes with icons and optional badges, auto-arranged in columns. Use for pipelines, data flows, sign-off chains, ETL diagrams.","https:\u002F\u002Fgithub.com\u002Fcuriosity-ai\u002Fneko\u002Fblob\u002Fmain\u002F.template\u002F.claude\u002Fskills\u002Fworkflow\u002FSKILL.md",[],[87,92,93,94,95,96,97,98,99,100,101,102,30,103,104,80,105,106],"diagrams","for","data","boxes","pipelines","columns","dsl","node","etl","sign","diagram","icons","use","render","flows",{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":39},"01M719XS9SEC99FDQ8VNVBG6YV","video","Author a video as a single Markdown file (`video:` front matter) — scenes separated by horizontal rules, every block animating in on its own, video components (lockup, swap, typewriter, scramble, counter, stats, chart, code, terminal, browser\u002Fwindow\u002Fphone, cursor, lower-third, captions, quote, steps, checklist, grid\u002Fcard, cta, logo, media), scene transitions and camera moves, and a synthesized voice-over (`--- {narration}` parts, `narration:` voice, `neko voiceover`) — preview it in the browser and render it to MP4 with `neko render` (Playwright + ffmpeg). Also covers the `[!video]` component that embeds the rendered file in a page. Use when asked for a video, an animated explainer, a product or release teaser, a changelog video, a motion graphic, a narrated walkthrough, or an MP4 from docs content.","https:\u002F\u002Fgithub.com\u002Fcuriosity-ai\u002Fneko\u002Fblob\u002Fmain\u002F.template\u002F.claude\u002Fskills\u002Fvideo\u002FSKILL.md",[],[84,114,26,115,116,117,118,119,120,121,122,123,32,124,125,105,126,127,128,129],"terminal","product","voiceover","window","component","changelog","browser","components","code","preview","chart","logo","walkthrough","card","Captions","Media",{"skillNo":131,"name":132,"nameZh":6,"description":133,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":134,"categories":135,"keywords":136,"publishedAt":39},"01M719XNZZ03XR61NZ6A7ZCRFZ","update-documentation","Workflow for updating Neko documentation — base every page on the real source code, never invent APIs, warn loudly when the source isn't available, and check that the page (and any changed `tesserae` sample) renders correctly with Playwright \u002F snapframe \u002F a visual check. Use whenever you add or edit docs that describe code, APIs, components, or live samples.","https:\u002F\u002Fgithub.com\u002Fcuriosity-ai\u002Fneko\u002Fblob\u002Fmain\u002F.template\u002F.claude\u002Fskills\u002Fupdate-documentation\u002FSKILL.md",[],[137,138,139,140,32,141,142,143,144,30,145,121,122,146,147,87,104,35,93,148],"update documentation","documentation","update","base","describe","edit","sample","playwright","check","visual","you","never",{"skillNo":150,"name":151,"nameZh":6,"description":152,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":153,"categories":154,"keywords":155,"publishedAt":39},"01M719XJX16NY4BZ43SJGB5PNH","tesserae","Render a live Tesserae C# UI block — Neko compiles and executes the C# at build time and shows both the code and a working preview side-by-side. Use only when the project documents Tesserae or runs live C# samples.","https:\u002F\u002Fgithub.com\u002Fcuriosity-ai\u002Fneko\u002Fblob\u002Fmain\u002F.template\u002F.claude\u002Fskills\u002Ftesserae\u002FSKILL.md",[],[151,123,32,156,104,157,105,158,159,122,160,161,162,163,164,165],"documents","only","time","project","ui","live","block","at","build","C#",{"skillNo":167,"name":168,"nameZh":6,"description":169,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":170,"categories":171,"keywords":172,"publishedAt":39},"01M719XH9ZZ1JDYG3C3GCNS2T3","table","Render a Markdown table with alignment, compact mode, and no-wrap option. Use for any tabular comparison, reference matrix, option list.","https:\u002F\u002Fgithub.com\u002Fcuriosity-ai\u002Fneko\u002Fblob\u002Fmain\u002F.template\u002F.claude\u002Fskills\u002Ftable\u002FSKILL.md",[],[168,104,173,174,175,176,177,178,179,105,180,181,93,26,182,30],"tabular","compact","comparison","reference","list","matrix","wrap","mode","option","alignment"]