spritecook-upload-assets
Installation
SKILL.md
SpriteCook Upload Assets
Use this skill when a local image file should become a reusable SpriteCook asset_id.
Pair it with spritecook-workflow-essentials for credential safety, manifests, and downstream asset reuse.
Preferred Flow
- Inspect the local file path without printing file bytes.
- Determine
file_name, MIMEcontent_type, optionalsize_bytes, and whetherpixelshould be true. - Call
create_asset_upload(file_name=..., content_type=..., pixel=..., size_bytes=...). - Upload the file bytes to the returned
upload_urlwith HTTPPUTand the returned headers. - Call
finalize_asset_upload(upload_token=...). - Use the returned
asset_idin the next SpriteCook tool.
The upload URL and token are short-lived secrets. Do not print them in user-facing prose, save them to project files, or include them in manifests.