사용 방법
- 설치 명령을 복사하고 자신의 에이전트 환경에 설치하기 전에 소스 패키지를 확인하세요.
- 필요한 도구, 인증 정보, 지원 환경은 원본 문서에서 확인하세요.
- 입력과 원하는 산출물을 설명하고 출처와 결과를 대조하세요.
npx skills add https://github.com/ewrogers/sgdk-skills --skill sgdk-assets시작 전 확인
- 설치에는 모델 구독, API 한도, 파일 접근 권한이 포함되지 않습니다.
- 별점 수와 설치 수는 활동 지표이며 독립적인 품질·보안 검증이 아닙니다.
원본 저장소의 제목, 예시, 코드, 표, 링크, 이미지를 유지해 표시합니다.
SGDK assets
Turn source art into SGDK resources without surprising the artist or exceeding the console's budgets.
Start with the project
- Find its
.resfiles, source art, build instructions and toolchain configuration. Preserve the original art and any palette ordering. Work on derived exports when conversion is needed. - Use the project's image. Otherwise use
ewrogers/sgdk:latest. It supports Linux ARM64 and AMD64; Docker supplies Linux containers on macOS and Windows too. Do not force--platformunless testing another architecture. - Read the installed manual before adding or changing a resource declaration. Use
/opt/sgdk/bin/rescomp.txt, the matching headers in/opt/sgdk/inc, and examples in/opt/sgdk/sample. Verify symbol names and signatures there before writing C. An API from another SGDK version is not evidence.
Run docker run --rm IMAGE cat /opt/sgdk/bin/rescomp.txt, replacing IMAGE with the chosen image. Commands run as argument arrays from automation. Avoid building shell command strings from asset filenames.
Import workflow
- Decide how the asset is used: a moving character, background, scrolling map, font, music or sample. Choose the matching ResComp resource rather than treating everything as a sprite.
- Agree on frame dimensions, palette ownership, transparency and animation layout. Show a preview when possible. Do not silently quantize colors, resize, crop, reorder palette indices or rewrite source files.
- Make a small
.reschange. Keep resource names valid C identifiers and paths relative to that.resfile. Check exact options in the manual. - Build in the container. Use
docker run --rm --pull=always --mount "type=bind,source=PROJECT,target=/workspace" IMAGE, replacingPROJECTwith the absolute project directory. PowerShell and POSIX shells both support this quoted mount argument. Usesgdk-projectif installed for project creation or broader build setup. - Fix the first resource error, then rebuild. Inspect the generated header and ResComp's resource totals. Consult importing.md for common causes and costs.
- Test the ROM in an emulator. Check colors, transparency, frame order, sprite dropout and scrolling. A successful build proves conversion and linking, not visual correctness or 60 Hz performance.
Guardrails
- Separate hardware limits, SGDK implementation choices and game policy when explaining a restriction. Refer to the budget table in the reference.
- Count used pixel indices and per-tile palette needs. A PNG's palette table can contain unused entries; its table length alone does not prove an invalid image.
- Budget shared palettes, resident tile patterns, decompression/upload work and scanline sprite pressure. Standard 8 by 8 patterns have 2048 theoretical addresses; tables and SGDK reservations leave less room for art. Check the actual allocated range before uploads. SGDK logical sprites may contain several hardware sprites. Compression saves ROM; it does not make the decoded tiles free in VRAM.
- Prefer preparing and loading shared data once. Do not decompress images, reload whole palettes or recreate sprites each update without a measured reason. Use SGDK's supported DMA/VBlank flow and check allocation failures.
- Keep generated assembly, headers, objects and ROMs out of source control unless the project explicitly needs them. Retain the authored
.res, source exports and asset license/provenance. - For audio, inspect the selected driver's documentation and the
WAV,XGMorXGM2declarations in the installed manual. Do not mix driver-specific resources or assume every WAV rate and channel layout is accepted. Audio conversion succeeding does not prove playback quality.
Small verified example
assets/import-example is a standalone resource project with an indexed background, two-frame sprite and generated resource types used by C. Copy it to a writable project directory before building. Its README explains the layout and proof limits. For unfamiliar options, build this small case before changing a large asset pipeline.
Report what changed, which image and resource declarations were used, build results, relevant budget changes and anything still needing visual or audio review. Do not claim that estimated totals are measured runtime usage.


