[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-111546":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":14,"forks30d":14,"starsTrendScore":18,"compositeScore":19,"rankGlobal":9,"rankLanguage":9,"license":9,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":9,"pushedAt":24,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":14,"starSnapshotCount":14,"syncStatus":28,"lastSyncTime":29,"discoverSource":30},111546,"image-to-psd","link-ding\u002Fimage-to-psd","link-ding","Agent skill: split character art into a 19-layer PSD with editable masks",null,"Python",85,10,59,0,1,6,14,5,46.52,false,"main",true,[],"2026-11-10 01:32:13","2026-11-23 07:15:29","# image-to-psd\n\n**English** | [中文](README.zh-CN.md)\n\nAn agent skill that turns a single character illustration (PNG \u002F JPG \u002F SVG) into a **layered PSD** ready for 2.5D animation: 19 standard parts, each with its own pixels and an editable mask.\n\n| Original | Extracted layers |\n|---|---|\n| \u003Cimg src=\"examples\u002Fblue_maid_preview.png\" width=\"320\"> | \u003Cimg src=\"examples\u002Fblue_maid_layers.png\" width=\"520\"> |\n\n## Install\n\n```bash\nnpx skills add link-ding\u002Fimage-to-psd --skill image-to-psd -a codex -g -y\n```\n\n- `-a codex`: install for Codex. Use another agent name to install elsewhere.\n- `-g`: install globally, available in every project.\n- `-y`: skip the confirmation prompts.\n\nThe export script needs these Python packages:\n\n```bash\npip install pillow numpy psd-tools\n```\n\nAdd `cairosvg` if you want to read SVG input.\n\n## Usage\n\nGive the agent a character image and say:\n\n```\nUse $image-to-psd to split this character artwork into a layered PSD\n```\n\nThe skill's instructions are written in Chinese; the agent follows them whatever language you prompt in. It will:\n\n1. Study the artwork and work out each part's boundaries and occlusion.\n2. Generate part reference images with ImageGen.\n3. Segment the visible areas from the original, and fill in what is hidden (the face under the bangs, the back hair behind the head, the eye whites under the irises).\n4. Export a PSD where every layer has its own RGBA pixels and a grayscale mask.\n5. Reopen the PSD and review it layer by layer, fixing bleed between layers, gaps and stray fragments before delivery.\n\nArt style, colors, pose, position and canvas size stay unchanged.\n\n## The 19 standard layers\n\n| Layer | Contents |\n|---|---|\n| `back hair` | Hair behind the head |\n| `front hair` | Bangs and side locks |\n| `face` | Continuous face base, blush |\n| `ears` | Human or animal ears |\n| `earwear` | Earrings |\n| `eyebrow` | Both eyebrows |\n| `eyewhite` | Both eye whites |\n| `irides` | Irises, pupils, highlights |\n| `eyelash` | Eyelashes, eyeliner |\n| `nose` | Nose |\n| `mouth` | The mouth as drawn |\n| `headwear` | Hair accessories, hats, head bows |\n| `neck` | Neck |\n| `topwear` | Top and its decorations |\n| `handwear` | Hands, arms, sleeves, gloves |\n| `bottomwear` | Skirt, trousers |\n| `legwear` | Legs, socks |\n| `footwear` | Shoes |\n| `objects` | Hand-held props |\n\nParts that are not in the artwork are kept as empty layers. When a hand and a prop overlap in both directions, `handwear` can be split into `handwear back` and `handwear front`, giving 20 layers.\n\n## Examples\n\n[`examples\u002F`](examples) holds PSDs made with this skill. Download them and open in Photoshop, Krita or Clip Studio Paint.\n\n### Blue Maid\n\n\u003Cimg src=\"examples\u002Fblue_maid_preview.png\" width=\"300\"> \u003Cimg src=\"examples\u002Fblue_maid_layers.png\" width=\"480\">\n\n[Download blue_maid.psd](examples\u002Fblue_maid.psd) (1254×1254, 12 MB)\n\n### Orange Book Girl\n\n\u003Cimg src=\"examples\u002Forange_book_girl_preview.png\" width=\"300\"> \u003Cimg src=\"examples\u002Forange_book_girl_layers.png\" width=\"480\">\n\n[Download orange_book_girl.psd](examples\u002Forange_book_girl.psd) (1254×1254, 12 MB)\n\n### Star Cat\n\n\u003Cimg src=\"examples\u002Fstar_cat_preview.png\" width=\"300\"> \u003Cimg src=\"examples\u002Fstar_cat_layers.png\" width=\"480\">\n\n[Download star_cat.psd](examples\u002Fstar_cat.psd) (1254×1254, 10 MB)\n\n## Using the export script on its own\n\nIf you already have transparent part PNGs or a layered SVG, you can skip the agent and export the PSD directly:\n\n```bash\npython skills\u002Fimage-to-psd\u002Fscripts\u002Flayered_assets.py psd-png parts.json character.psd --report qa.json\n```\n\n```bash\npython skills\u002Fimage-to-psd\u002Fscripts\u002Flayered_assets.py psd existing.svg character.psd --report qa.json\n```\n\n`parts.json` lists the layers from back to front. Every PNG has the same size and position as the canvas:\n\n```json\n{\"width\":1254,\"height\":1254,\"layers\":[\n  {\"name\":\"back hair\",\"png\":\"parts\u002Fback_hair.png\"},\n  {\"name\":\"face\",\"png\":\"parts\u002Fface.png\"},\n  {\"name\":\"front hair\",\"png\":\"parts\u002Ffront_hair.png\"}\n]}\n```\n\nStandard layers you leave out are added as empty layers.\n\n## Notes\n\n- The skill provides a layer-splitting workflow and a reliable PSD export. It does not promise one-click, production-grade rigging quality for any artwork.\n- Hidden areas are inferred. The agent tells you which parts were filled in when it delivers the file.\n- Part reference images depend on an image generation tool (ImageGen in Codex).\n\n## Repository layout\n\n```\nskills\u002Fimage-to-psd\u002F\n├── SKILL.md              Workflow\n├── references\u002F           Layer spec, review checklist, transparency and compatibility notes\n├── scripts\u002F              PSD export script\n└── agents\u002Fopenai.yaml    Codex interface config\nexamples\u002F                 Example PSDs and previews\n```\n","该项目是一个将单张角色插画（PNG\u002FJPG\u002FSVG）自动分割为19层可编辑PSD文件的AI辅助工具，专为2.5D动画制作流程设计。核心功能包括基于语义理解的部件识别、遮挡区域补全（如刘海下的额头、后脑发丝）、逐层RGBA像素提取及配套灰度蒙版生成，并支持自动修复层间溢色、缝隙与噪点。技术上融合图像分割、生成式参考图辅助定位与PSD格式精准导出，依赖Pillow、NumPy和psd-tools等库。适用于二次元角色动画前期准备、游戏立绘分层、2.5D建模素材预处理等需高保真分层输出的设计场景。",2,"2026-11-24 04:41:06","CREATED_QUERY"]