takumi
Installation
SKILL.md
Takumi
Use this skill when work touches Takumi / takumi-js: rendering JSX, HTML, or node trees to PNG/JPEG/WebP/ICO/SVG/animations without Chromium; ImageResponse OG routes; fonts/images/emoji; Tailwind tw vs full stylesheets; or migrating from next/og / Satori.
Workflow
- Inspect the local surface before changing code:
- Packages:
takumi-js(preferred all-in-one), optionally@takumi-rs/core,@takumi-rs/wasm,@takumi-rs/helpers. - Version: target v2 (current
2.5.x). Treat v1 APIs (loadFonts,fetchedResources,createImageResponse) as legacy. - Runtime: Node (native) vs Edge / Cloudflare Workers / browser (WASM).
takumi-jsauto-picks; pin platform natives for cross-compile deploys. - Entry:
render/renderSvg/renderAnimationvsImageResponsefromtakumi-js/response. - Styling path: inline
style, built-intw,<style>, or compiled CSS viastylesheets.
- Packages:
- Refresh docs when the user asks for latest behavior, the installed major is unclear, or work touches v2 resource options / animation. Start from source-map.md.
- For install, packages,
render/ImageResponse, inputs, and canvas sizing, use setup-core.md. - For fonts, images, emoji,
tw, and stylesheets, use fonts-images-styling.md. - For formats, DPR, SVG, animation, and raw/ffmpeg frames, use formats-animation.md.
- For Next.js, TanStack Start, Workers, Astro, and other hosts, use frameworks.md.
- For v2 upgrades, Satori/
next/ogmigration, and troubleshooting, use pitfalls-migration.md. - Prefer
bun/bunxin command examples. Never copy Fumadocs annotations ([!code --],[!code highlight]) into generated code.