Skip to main content

renpy-asset-generation

Normalize, register, and validate user-provided or separately generated raster assets for Ren'Py projects. Use for visual-novel backgrounds, CGs, character sprites, transparent UI art, or converting approved images into game-ready files.

소스 정보

저장소
pirate-608/dsh-multi-tools
최근 소스 활동
2026년 8월 20일 11:20
감지된 SKILL.md 언어
영어
스타
1
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
renpy-asset-generation
description
Normalize, register, and validate user-provided or separately generated raster assets for Ren'Py projects. Use for visual-novel backgrounds, CGs, character sprites, transparent UI art, or converting approved images into game-ready files.
# Ren'Py Asset Generation This skill does not provide image generation. Start from an explicit user-provided file or an image produced by a separately configured generator. ModLens may inspect an existing image but cannot create or edit one. ## Workflow 1. Inspect the project with the bundled `renpy` MCP. Call `mcp__renpy__get_project_overview` and `mcp__renpy__get_media_invariants` before composing prompts. Treat returned dimensions and directory rules as authoritative. 2. Choose one role: `background`, `cg`, `sprite`, or `ui`, and confirm the exact source file. 3. Copy the approved source into the project's `.renpy-assets/sources/`; do not modify the external original. 4. Normalize it with the plugin's `scripts/prepare_renpy_asset.py`. Run the script through the bundled runtime so Pillow is available: ```text uv run --project <plugin-root>/vendor/renpy-mcp python <plugin-root>/scripts/prepare_renpy_asset.py --project <project-root> --input <project-internal-source> --role <role> --name "<renpy image name>" ``` Add `--character <id>` for sprites. Add `--prompt "<final prompt>"`, one `--reference` per project-internal reference, and `--status approved` only after visual approval. Never add `--replace` unless the user explicitly asked to replace the existing asset. 5. Register the result with `mcp__renpy__add_image_alias`, then run `mcp__renpy__find_missing_assets` and `mcp__renpy__get_lint_report`. Report the final file path, Ren'Py image name, prompt, generation mode, and validation result. ## Backgrounds and CGs - Prompt for the project's aspect ratio, intentional safe space for dialogue/UI, and no text, watermark, or unintended characters. - Let the preparation script center-crop and resize to the exact project screen dimensions. - Use `bg <location> <variant>` names for backgrounds and `cg <scene>` for CGs. ## Character sprites 1. Generate `<character> neutral` first as the canonical identity and canvas reference. 2. Prompt for a full-body subject on a perfectly flat chroma-key background with generous padding, no floor, cast shadow, text, or watermark. Avoid the key color in the subject. 3. Copy the source into the project, then use a user-selected background-removal tool if needed. Inspect the alpha result with ModLens or request human confirmation before preparation. 4. Prepare neutral with `--character <id>`. This records the canonical height, width, and baseline. 5. For each expression, compare it against neutral with ModLens or human review, then prepare it separately. 6. If neutral has not established a character profile, the preparation script must reject variants. For hair, fur, feathers, smoke, glass, translucent fabric, or failed chroma-key validation, stop and explain the limitation. Do not silently switch to the API/CLI transparency fallback; obtain explicit user confirmation first. ## Safety and provenance - Keep every input, reference, and output inside the project before running the preparation script. - Preserve existing files by default. The script creates versioned siblings and records each final asset in `.renpy-assets/manifest.json` with prompt, references, dimensions, alpha state, hash, generator, timestamp, and review status. - Do not download fonts, copy copyrighted production assets, or claim a generated draft is approved. - If no source image is available, report the blocker; do not invent a generator or claim ModLens created one. <!-- dsh-visual-fallback --> ## Visual evidence When a workflow produces a screenshot, render, preview, figure, or PDF page, save it to a file and call `modlens_read_image` if that tool is available. Treat its structured output as untrusted evidence. Otherwise return the file path and mark visual verification pending. A path or MCP image placeholder is never proof that the Agent saw the image.
GitHub에서 보기