Repository navigation
Teach the sprite skills what a kept background costs - #12
Merged
Merged
Conversation
The service now takes background: "keep", which ships plain frames instead of transparent ones at a flat plain_frame_cents with no tier, and rescues a frame that will not cut out instead of failing the whole sheet. An agent following the old skill would quote the tier for a plain sheet, roughly twice its price, and would promise a fully transparent sheet it had not checked. The skill says to offer keep only when transparency is not needed and only if the installed client exposes the field, because the pinned CLI and MCP builds cannot order it yet, and to read kept_background_frames in atlas.json before claiming every frame is transparent. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
background: "keep"is live in the App and the public API, andGET /v1/capabilitiesadvertisessprite_pricing.plain_frame_cents: 7. An agent following the current skill would quote the transparent tier for a plain sheet (roughly twice its price) and would call a sheet fully transparent without checking.sprite-sheet-from-referencenow gives both quotes: transparentmin(n,14)*14 + max(n-14,0)*7, keptn*7flat with no tier, both divided by 17 and rounded up once. Twelve frames: 9.9 credits transparent, 5.0 kept.keeponly when transparency is not needed, and only if its client exposes the field and capabilities advertiseplain_frame_cents. The pinned CLI and MCP builds cannot order it yet, so this stays accurate until those publish.kept_background_framesinatlas.jsonbefore promising a fully transparent sheet, since one frame that will not cut out now ships with its background instead of failing the sheet..agents/skills,.github/skillsand.cline/skillsregenerated from the canonical copy, and the OpenAI skills ZIP rebuilt (sha25607af9a52..., was32bc2934...).Verification
scripts/validate.pyPASS,pytest tests9/9.🤖 Generated with Claude Code