<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: kajian du</title>
    <description>The latest articles on DEV Community by kajian du (@kajian_du_5c58aead7d2bc8e).</description>
    <link>https://dev.to/kajian_du_5c58aead7d2bc8e</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4261750%2F79b47627-5880-41e2-bb38-e61bb87718c9.png</url>
      <title>DEV Community: kajian du</title>
      <link>https://dev.to/kajian_du_5c58aead7d2bc8e</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kajian_du_5c58aead7d2bc8e"/>
    <language>en</language>
    <item>
      <title>How to Prove Peel-Match Puzzles Are 100% Solvable with Bounded DFS &amp; Blind-Bot Curves</title>
      <dc:creator>kajian du</dc:creator>
      <pubDate>Mon, 30 Nov 2026 01:49:13 +0000</pubDate>
      <link>https://dev.to/kajian_du_5c58aead7d2bc8e/how-to-prove-peel-match-puzzles-are-100-solvable-with-bounded-dfs-blind-bot-curves-23ch</link>
      <guid>https://dev.to/kajian_du_5c58aead7d2bc8e/how-to-prove-peel-match-puzzles-are-100-solvable-with-bounded-dfs-blind-bot-curves-23ch</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fndv6amjeqq7yv0tu0kud.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fndv6amjeqq7yv0tu0kud.png" alt="EP22 Peel-Match Puzzle Curve &amp;amp; DFS Solver" width="800" height="512"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Casual layered-peel puzzles (such as &lt;em&gt;Pixel Flow!&lt;/em&gt; or knitted wool-unravel games) live or die by a razor-thin emotional line: players must feel &lt;strong&gt;one slot away from jamming&lt;/strong&gt; without ever hitting an unfair, mathematically impossible board.&lt;/p&gt;

&lt;p&gt;If you shuffle tray queues naively, you ship unwinnable 0% levels within ten minutes of generation. Here is the exact 4-stage pipeline we use in production—and you can play it live (zero login) in our interactive &lt;strong&gt;&lt;a href="https://gameskill.dev/labs/puzzle-curve-solver" rel="noopener noreferrer"&gt;EP22 Puzzle Curve &amp;amp; DFS Solver Lab&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Exposed-Edge Peeling via Outer-Air BFS Flood Fill
&lt;/h2&gt;

&lt;p&gt;Instead of hardcoding brittle layer trees per handcrafted drawing, determine which board tiles are peelable by flooding &lt;strong&gt;empty/cleared cells from the perimeter inwards&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Seed outer-border air or border tiles, then 4-neighbor BFS across null cells.&lt;/span&gt;
&lt;span class="c1"&gt;// Any remaining non-null tile adjacent to an air cell (or on the perimeter) is EXPOSED.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Because exposure updates dynamically every time a tile clears, players can carve tunnels deep into any pixel tapestry—creating emergent &lt;em&gt;"Oh! That opened the inside ring!"&lt;/em&gt; aha moments.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Three Non-Negotiable Offline Math Gates
&lt;/h2&gt;

&lt;p&gt;Every generated level must pass three CI checks before hitting production:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Gate&lt;/th&gt;
&lt;th&gt;Requirement&lt;/th&gt;
&lt;th&gt;Why It Matters&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Color Conservation Parity&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;sum(board[c].bites) === sum(trayBoxes[c].count)&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Prevents phantom un-clearable tiles or leftover dead boxes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Bounded Heuristic DFS (&lt;code&gt;5 slots&lt;/code&gt;)&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Finds a zero-booster clear sequence within &lt;code&gt;&amp;lt;= 3000&lt;/code&gt; nodes&lt;/td&gt;
&lt;td&gt;Guarantees every stage is 100% solvable without paying for boosters&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Monte Carlo Blind-Bot Win Rate&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;40 random-legal runs against target cadence&lt;/td&gt;
&lt;td&gt;Shapes tension without cruelty&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;For the DFS heuristic, prioritize candidate columns in this order:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Immediate board win (&lt;code&gt;+100000&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Free holding slots remaining (&lt;code&gt;freeSlots * 40&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Exposed tiles peeled on this move (&lt;code&gt;eaten * 6&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;Penalty (&lt;code&gt;-50&lt;/code&gt;) for feeding a sleeping (&lt;code&gt;Zzz&lt;/code&gt;) color that has zero exposed matches&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  3. Tuning the Blind-Bot Difficulty Wave
&lt;/h2&gt;

&lt;p&gt;A pure 100% win rate feels mindless; a 0% trap makes players uninstall. By adjusting queue box sizes (&lt;code&gt;chunk&lt;/code&gt;) and swap span (&lt;code&gt;weave&lt;/code&gt;), you sculpt an addiction-grade progression wave:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Tutorial Stages (&lt;code&gt;100%&lt;/code&gt; blind-bot rate)&lt;/strong&gt;: Large pure chunks matching the outermost colors immediately.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Breather Stages (&lt;code&gt;~80%&lt;/code&gt;)&lt;/strong&gt;: Mild interleaving so casual players breeze through after a tough stage.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Chapter Climax (&lt;code&gt;~36%&lt;/code&gt; blind-bot + &lt;code&gt;100%&lt;/code&gt; DFS solvable)&lt;/strong&gt;: Double-layer knots (&lt;code&gt;ice = 1&lt;/code&gt;, needing 2 hits) on inner boundaries + moderate weave so naive clicking threatens a 5-slot jam, while intentional sequencing clears cleanly.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try It Live or Ship It Today
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Play the 1:1 browser stage &amp;amp; run the 40-trial blind-bot live&lt;/strong&gt;: &lt;a href="https://gameskill.dev/labs/puzzle-curve-solver" rel="noopener noreferrer"&gt;EP22 Puzzle Curve &amp;amp; DFS Solver Lab&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Open-Source MIT &lt;code&gt;SKILL.md&lt;/code&gt; for Claude Code / Cursor / Codex&lt;/strong&gt;: &lt;a href="https://github.com/gdfsdjj145/awesome-game-skill" rel="noopener noreferrer"&gt;awesome-game-skill on GitHub&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Complete white-label JS engine, 64×64 offscreen 3D yarn renderer &amp;amp; iOS-safe WebAudio&lt;/strong&gt;: &lt;a href="https://gameskill.dev/pro/peel-match-puzzle-kit" rel="noopener noreferrer"&gt;Peel-Match Puzzle Kit v1.0.0&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Original article&lt;/strong&gt;: &lt;a href="https://gameskill.dev/learn/peel-match-dfs-solvability" rel="noopener noreferrer"&gt;gameskill.dev/learn/peel-match-dfs-solvability&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>gamedev</category>
      <category>algorithms</category>
      <category>javascript</category>
      <category>indiedev</category>
    </item>
    <item>
      <title>Turn Raw AI Video Clips into Foot-Anchored Transparent 2D Game Sprites (Godot 4 &amp; Phaser 3)</title>
      <dc:creator>kajian du</dc:creator>
      <pubDate>Fri, 27 Nov 2026 11:16:30 +0000</pubDate>
      <link>https://dev.to/kajian_du_5c58aead7d2bc8e/turn-raw-ai-video-clips-into-foot-anchored-transparent-2d-game-sprites-godot-4-phaser-3-5dak</link>
      <guid>https://dev.to/kajian_du_5c58aead7d2bc8e/turn-raw-ai-video-clips-into-foot-anchored-transparent-2d-game-sprites-godot-4-phaser-3-5dak</guid>
      <description>&lt;p&gt;AI video tools generate gorgeous character poses, yet dropping a 24 fps MP4 straight into Godot or Phaser ruins combat feel immediately.&lt;/p&gt;

&lt;p&gt;While shipping our martial roguelike (&lt;em&gt;Zhaoshi Wulin&lt;/em&gt;), we measured three concrete failure modes and built a repeatable pipeline to fix all of them. You can toggle the live before/after difference right in your browser (zero login): &lt;strong&gt;&lt;a href="https://gameskill.dev/labs/video-to-sprite-animation" rel="noopener noreferrer"&gt;EP06 Video-to-Sprite Lab&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Raw AI Video Fails in Real Games
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;4.33s Linear Motion Drag&lt;/strong&gt;: AI spreads windup, swing, impact, and recovery evenly across ~100 frames. Players press Attack and wait forever for damage to land.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Center-Trimming Causes Foot Drift (&lt;code&gt;±14px&lt;/code&gt;)&lt;/strong&gt;: When weapons slash wide, bounding-box width jumps. Centering trimmed sprites makes the character's feet teleport vertically and horizontally mid-swing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Green Screen Bounce Halo&lt;/strong&gt;: Basic color-keying leaves neon green borders on dark cloth outlines and alpha hair strands.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  The 3-Step Fix That Locks Game Feel
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Step 1 — Chroma Key + Despill at Extraction Time
&lt;/h3&gt;

&lt;p&gt;Always pair &lt;code&gt;colorkey&lt;/code&gt; with &lt;code&gt;despill&lt;/code&gt; inside FFmpeg before packing frames:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ffmpeg -y -i raw-action.mp4 \
  -vf &lt;span class="s2"&gt;"fps=12,scale=-2:512:flags=lanczos,colorkey=0x00FF00:0.24:0.08,despill=type=green:mix=0.35:expand=0.25,format=rgba"&lt;/span&gt; \
  frames/frame_%03d.png
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 2 — Lock Bottom-Center Foot Anchor (&lt;code&gt;0.0px&lt;/code&gt; Drift)
&lt;/h3&gt;

&lt;p&gt;Instead of packing individual tight boxes blindly, measure &lt;code&gt;footX&lt;/code&gt; and &lt;code&gt;footY&lt;/code&gt; relative to each frame's visible content box, size every atlas cell around the maximum bounds relative to that shared anchor, and record &lt;code&gt;(dx, dy)&lt;/code&gt; placements.&lt;/p&gt;

&lt;p&gt;The character's planted foot stays pinned to pixel &lt;code&gt;0.0&lt;/code&gt; even when a wide weapon arc expands the frame silhouette.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3 — Non-Linear Action Pacing + Hit-Stop Freeze
&lt;/h3&gt;

&lt;p&gt;Discard redundant linear in-betweens and assign explicit durations per combat phase:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Windup&lt;/strong&gt;: &lt;code&gt;50–85ms&lt;/code&gt; crisp anticipation&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Swing&lt;/strong&gt;: &lt;code&gt;45ms&lt;/code&gt; snap into impact&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hit-Stop Frame&lt;/strong&gt;: &lt;code&gt;150–170ms&lt;/code&gt; deliberate freeze for weight&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Follow-Through &amp;amp; Recovery&lt;/strong&gt;: &lt;code&gt;60–70ms&lt;/code&gt; back to idle stance&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Compressing a sluggish &lt;code&gt;4.33s&lt;/code&gt; linear AI clip down to &lt;code&gt;~1.88s&lt;/code&gt; immediately feels hand-keyed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try It Live &amp;amp; Grab the Free MIT &lt;code&gt;SKILL.md&lt;/code&gt;
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Live Browser A/B Lab (zero login)&lt;/strong&gt;: &lt;a href="https://gameskill.dev/labs/video-to-sprite-animation" rel="noopener noreferrer"&gt;EP06 Video-to-Sprite Animation Lab&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Open-Source MIT &lt;code&gt;SKILL.md&lt;/code&gt; (16 playable labs for Claude Code / Cursor / Codex)&lt;/strong&gt;: &lt;a href="https://github.com/gdfsdjj145/awesome-game-skill" rel="noopener noreferrer"&gt;awesome-game-skill on GitHub&lt;/a&gt; or paste &lt;code&gt;https://gameskill.dev/install.md&lt;/code&gt; directly into your coding agent&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Drop-in Production CLI &amp;amp; Godot 4 &lt;code&gt;.tres&lt;/code&gt; / Phaser 3 Exporter Kit&lt;/strong&gt;: &lt;a href="https://gameskill.dev/pro/sprite-asset-pipeline" rel="noopener noreferrer"&gt;AI 2D Asset &amp;amp; Sprite Pipeline Kit v1.0.0&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Original full guide&lt;/strong&gt;: &lt;a href="https://gameskill.dev/learn/ai-video-to-transparent-game-sprites" rel="noopener noreferrer"&gt;gameskill.dev/learn/ai-video-to-transparent-game-sprites&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>gamedev</category>
      <category>ai</category>
      <category>godot</category>
      <category>indiedev</category>
    </item>
    <item>
      <title>Building a Stateful AI Comic Studio Over Streamable HTTP MCP (for Claude Code, Cursor &amp; Antigravity)</title>
      <dc:creator>kajian du</dc:creator>
      <pubDate>Tue, 24 Nov 2026 04:31:33 +0000</pubDate>
      <link>https://dev.to/kajian_du_5c58aead7d2bc8e/building-a-stateful-ai-comic-studio-over-streamable-http-mcp-for-claude-code-cursor-antigravity-d8h</link>
      <guid>https://dev.to/kajian_du_5c58aead7d2bc8e/building-a-stateful-ai-comic-studio-over-streamable-http-mcp-for-claude-code-cursor-antigravity-d8h</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;TL;DR&lt;/strong&gt;: Calling stateless text-to-image APIs from an AI coding agent breaks down as soon as you need two consecutive comic pages with the same character and legible speech bubbles. This post walks through the &lt;strong&gt;4-Stage Agent Comic State Machine&lt;/strong&gt; we shipped over Streamable HTTP MCP (&lt;code&gt;https://starveilai.com/api/mcp&lt;/code&gt;), the &lt;strong&gt;3-Zone Bounding-Box&lt;/strong&gt; geometry that fixes typos without full rerolls, and a real Cloudflare Workers OAuth 2.1 JWKS gotcha we hit during Glama certification.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Why Stateless Image APIs Fail Multi-Page Comics
&lt;/h2&gt;

&lt;p&gt;AI coding agents (Claude Code, Antigravity, Cursor, Codex, OpenClaw) are great at multi-step tool loops, yet terrible at drawing sequential comics with raw image generators. The bottleneck isn't aesthetics — it's &lt;strong&gt;missing state&lt;/strong&gt;:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Identity drift&lt;/strong&gt;: Repeating a character's name or prose description across four requests produces four subtly different people (which is why subject-personalization papers like &lt;a href="https://arxiv.org/abs/2208.12242" rel="noopener noreferrer"&gt;DreamBooth&lt;/a&gt; and &lt;a href="https://arxiv.org/abs/2405.01434" rel="noopener noreferrer"&gt;StoryDiffusion&lt;/a&gt; treat sequence consistency as a distinct problem).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The 95%-finished trap&lt;/strong&gt;: Three panels look great, one speech bubble misspells a name, and regenerating the whole page breaks the three panels you already liked.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Text expansion during localization&lt;/strong&gt;: Per the &lt;a href="https://www.w3.org/International/articles/article-text-size" rel="noopener noreferrer"&gt;W3C Internationalization text-size guidelines&lt;/a&gt;, translating compact Chinese or Japanese comic dialogue into English or Spanish expands text length by &lt;strong&gt;30%–60%&lt;/strong&gt;, causing naive OCR white-box overlays to clip or wreck hand-drawn art.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  The 4-Stage Agent Comic State Machine
&lt;/h2&gt;

&lt;p&gt;Following the open &lt;a href="https://modelcontextprotocol.io/specification" rel="noopener noreferrer"&gt;Model Context Protocol specification&lt;/a&gt; and &lt;a href="https://datatracker.ietf.org/doc/rfc9728/" rel="noopener noreferrer"&gt;IETF RFC 9728&lt;/a&gt; OAuth 2.0 Protected Resource Metadata, StarVeil AI 2.0 splits comic generation into four explicit state transitions across &lt;strong&gt;18 agent-callable MCP tools&lt;/strong&gt; (plus an embedded MCP App side-pane):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Stage&lt;/th&gt;
&lt;th&gt;MCP Tool(s)&lt;/th&gt;
&lt;th&gt;What State It Locks&lt;/th&gt;
&lt;th&gt;Cost&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;1. Persistent Identity Vault&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;create_character&lt;/code&gt;, &lt;code&gt;list_my_characters&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Canonical face, hair, proportions, and default silhouette (&lt;code&gt;characterIds&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;0 cr&lt;/strong&gt; (upload photo) / 20 cr (AI ref sheet)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;2. Chained Page Render&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;create_comic_page&lt;/code&gt;, &lt;code&gt;get_comic_page&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Previous page context (&lt;code&gt;previousTaskId&lt;/code&gt;) so Page 2+ keeps outfits &amp;amp; ink on fresh layouts&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;25 cr&lt;/strong&gt; per 3:4 page (1st page free on &lt;code&gt;trial_v1&lt;/code&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;3. 3-Zone Region Patch&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;edit_comic_page&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Anchor Zone (locked) + 2%–3% Halo Buffer + Active Rewrite Zone (&lt;code&gt;0..1&lt;/code&gt; bbox)&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;25 cr&lt;/strong&gt; per edit (1st edit free on &lt;code&gt;trial_v1&lt;/code&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;4. Art-Preserving Localization&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;translate_comic&lt;/code&gt;, &lt;code&gt;get_translation_status&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Downstream 6-language derivatives (&lt;code&gt;en&lt;/code&gt;, &lt;code&gt;zh-CN&lt;/code&gt;, &lt;code&gt;zh-TW&lt;/code&gt;, &lt;code&gt;ja&lt;/code&gt;, &lt;code&gt;ko&lt;/code&gt;, &lt;code&gt;es&lt;/code&gt;) from &lt;code&gt;sourceVersionId&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;10 cr&lt;/strong&gt; per page (~$0.06 on &lt;code&gt;$6&lt;/code&gt; pack)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Connect in 10 Seconds
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Claude Code (OAuth 2.1 — one-click browser approval, no secrets in chat)&lt;/span&gt;
claude mcp add --transport http starveil https://starveilai.com/api/mcp

&lt;span class="c"&gt;# Antigravity / Cursor / Codex / CLI (installs plugin, starveil-cli, and SKILL.md)&lt;/span&gt;
curl -fsSL https://starveilai.com/install.sh &lt;span class="o"&gt;|&lt;/span&gt; bash
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For headless automation (&lt;code&gt;OpenClaw&lt;/code&gt;, &lt;code&gt;n8n&lt;/code&gt;, GitHub Actions, cron jobs), generate a revocable &lt;code&gt;sv_live_&lt;/code&gt; Personal API Key at &lt;code&gt;https://starveilai.com/app/agents&lt;/code&gt; and send &lt;code&gt;Authorization: Bearer sv_live_...&lt;/code&gt; to the exact same endpoint.&lt;/p&gt;

&lt;h2&gt;
  
  
  Reproducible JSON Loop
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Lock a Photo OC at 0 Credits
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"tool"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"create_character"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"arguments"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Mochi the Tabby"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"description"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Warm orange tabby kitten wearing an indigo developer hoodie"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"referenceImageUrl"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://example.com/mochi-photo.jpg"&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  2. Render Page 1, Then Chain Page 2 via &lt;code&gt;previousTaskId&lt;/code&gt;
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"tool"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"create_comic_page"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"arguments"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"title"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"The Yarn Ball Incident - Page 2"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"characterIds"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"chr_mochi_01"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"previousTaskId"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"task_page1_id"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"artStyle"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"warm watercolor healing storybook comic"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"language"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"en"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"prompt"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Direct continuation after Page 1. Panel 1: Sleepy engineer enters with coffee staring at the red yarn web. Panel 2: Mochi peeks out: \"Good news: zero merge conflicts.\" Panel 3: Warm sunrise wide shot as the engineer laughs."&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjzhcrv90izk75p6jcu77.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjzhcrv90izk75p6jcu77.webp" alt="StarVeil 2.0 Page 2 chained via previousTaskId preserving tabby OC identity" width="760" height="1013"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Fix One Speech Bubble with the 3-Zone Bounding-Box Model
&lt;/h3&gt;

&lt;p&gt;Informed by masked diffusion inpainting (&lt;a href="https://arxiv.org/abs/2201.09865" rel="noopener noreferrer"&gt;RePaint, arXiv:2201.09865&lt;/a&gt;), mask geometry matters as much as the prompt. Leave a &lt;strong&gt;2%–3% halo buffer&lt;/strong&gt; outside the black balloon stroke so old letters don't leave artifacts while everything outside the box stays anchored:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"tool"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"edit_comic_page"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"arguments"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"taskId"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"task_noir_page1"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"instruction"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Text-only edit inside the boxed white speech bubble: replace text with exact words \"He left at midnight.\" Keep face, rain lighting, and surrounding panels unchanged."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"region"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"x"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.54&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"y"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.06&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"width"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.40&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"height"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.16&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Production War Story: OAuth 2.1 JWKS Self-Fetch on Cloudflare Workers
&lt;/h2&gt;

&lt;p&gt;When we submitted StarVeil MCP to &lt;a href="https://glama.ai/mcp/connectors/com.starveilai/star-veil-ai" rel="noopener noreferrer"&gt;Glama's connector directory&lt;/a&gt;, OAuth authorization succeeded in the browser, yet hourly &lt;code&gt;tools/list&lt;/code&gt; health checks returned &lt;code&gt;HTTP 500&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The culprit: Better Auth's &lt;code&gt;mcpHandler({ jwksUrl })&lt;/code&gt; fetches &lt;code&gt;https://starveilai.com/api/auth/jwks&lt;/code&gt; over HTTP during token verification — which on Cloudflare Workers triggers a &lt;strong&gt;same-zone self-fetch&lt;/strong&gt; back to the same Worker route and fails under edge proxy rules.&lt;/p&gt;

&lt;p&gt;The fix was replacing the remote JWKS HTTP fetch with an &lt;strong&gt;in-process local JWKS lookup directly against Cloudflare D1&lt;/strong&gt; (&lt;code&gt;jose.createLocalJWKSet&lt;/code&gt; + &lt;code&gt;jwtVerify&lt;/code&gt; with exact &lt;code&gt;issuer&lt;/code&gt;/&lt;code&gt;audience&lt;/code&gt; verification). Latency dropped, the HTTP 500 disappeared permanently, and Glama's hourly introspection now reports &lt;strong&gt;Healthy&lt;/strong&gt; with &lt;strong&gt;OAuth: Works in Glama&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Honest Limits
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Visual inspection is still mandatory&lt;/strong&gt;: Crowded four-character panels or tricky hand/prop occlusions can still drift; inspect &lt;code&gt;latestDownloadUrl&lt;/code&gt; (or open &lt;code&gt;open_starveil_studio&lt;/code&gt;) before chaining Page 2+.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Not a replacement for print prepress&lt;/strong&gt;: If you need layered CMYK PSD/CLIP files for physical publishing, use a human artist.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep bubbles concise&lt;/strong&gt;: Sub-12px text or long paragraphs inside narrow balloons degrade readability across every model.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try It &amp;amp; Explore the Specs
&lt;/h2&gt;

&lt;p&gt;New verified accounts receive &lt;strong&gt;1 free full-color 3:4 page + 1 free box-edit + 0-credit photo OC uploads&lt;/strong&gt; (&lt;code&gt;trial_v1&lt;/code&gt;). Never-expiring credit packs start at &lt;strong&gt;$6 Mini (1,000 credits, ~40 pages)&lt;/strong&gt; and immediately unlock 100% watermark-free commercial PNG downloads across Web, MCP, CLI, and API.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Official MCP Registry (&lt;code&gt;com.starveilai/star-veil-ai@2.0.0&lt;/code&gt;)&lt;/strong&gt;: &lt;a href="https://registry.modelcontextprotocol.io/v0.1/servers/com.starveilai%2Fstar-veil-ai/versions/latest" rel="noopener noreferrer"&gt;https://registry.modelcontextprotocol.io/v0.1/servers/com.starveilai%2Fstar-veil-ai/versions/latest&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Open-Source SKILL.md Repo&lt;/strong&gt;: &lt;a href="https://github.com/gdfsdjj145/starveil-comic-skill" rel="noopener noreferrer"&gt;https://github.com/gdfsdjj145/starveil-comic-skill&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Glama Verified Healthy Connector&lt;/strong&gt;: &lt;a href="https://glama.ai/mcp/connectors/com.starveilai/star-veil-ai" rel="noopener noreferrer"&gt;https://glama.ai/mcp/connectors/com.starveilai/star-veil-ai&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Full 18-Tool MCP Docs&lt;/strong&gt;: &lt;a href="https://starveilai.com/agents" rel="noopener noreferrer"&gt;https://starveilai.com/agents&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;3-Layer AI Character Consistency Guide&lt;/strong&gt;: &lt;a href="https://starveilai.com/blog/ai-character-consistency" rel="noopener noreferrer"&gt;https://starveilai.com/blog/ai-character-consistency&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Machine-Readable LLM Specs&lt;/strong&gt;: &lt;a href="https://starveilai.com/llms.txt" rel="noopener noreferrer"&gt;https://starveilai.com/llms.txt&lt;/a&gt; · &lt;a href="https://starveilai.com/pricing.md" rel="noopener noreferrer"&gt;https://starveilai.com/pricing.md&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>mcp</category>
      <category>ai</category>
      <category>webdev</category>
      <category>claudecode</category>
    </item>
  </channel>
</rss>
