Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Wires a new per-model pricing field through Bifrost's cost engine, from datasheet parsing to billing, overrides, API, and docs.
36% 91%+55 ptsof test cases passed
Passed 20 of 22 test cases with the skill, and 8 of 22 without it.
3 of 3 safety checks passed
Not used yet
Add a new per-model pricing field to Bifrost's cost engine so it is parsed from the upstream datasheet, persisted, billed correctly, overridable, and documented — with no silent gap.
The pricing engine has one source-of-truth shape (Options in framework/modelcatalog/datasheet/types.go)
that gets mechanically mirrored into ~8 other places. Missing any one of them produces a field that
looks wired (compiles, shows up in one API) but silently doesn't bill, doesn't survive the 24h
datasheet resync, or can't be overridden — so treat every step below as mandatory, not optional.
Ask (or infer from context) three things about the new field:
cost_per_request,
output_cost_per_image_above_8_and_8_pixels). This becomes the Go field name (PascalCase) and
the DB column name (as-is, snake_case).cost.go it plugs in — read the existing
compute*Cost functions for the closest analog before writing new logic.compute*Cost function to touch and the
UI's requestTypeGroups tagging. At the Go level this includes container (schemas. ContainerCreateRequest), but the override UI's REQUEST_TYPE_GROUPS only has 7 groups (chat/
text/responses, embedding, rerank, audio, image, video, ocr) — there is no dedicated container
group. A container-priced field (e.g. code_interpreter_cost_per_session) still needs a
requestTypeGroups entry in Step 9, so tag it onto the existing group it's conceptually closest
to (that field uses "chat") rather than inventing an unsupported "container" value.If any of these is unclear from the user's message, ask before writing code — silently guessing the billing semantics of a money field is the one mistake in this skill that isn't easily caught by tests.
| Concern | File | What to add |
|---|---|---|
| Canonical struct | framework/modelcatalog/datasheet/types.go | Field on Options (with json:"..." tag) |
| Entry↔Table mapping | same file, convertEntryToTablePricing / convertTablePricingToEntry | Mapping line in both directions |
| DB table | framework/configstore/tables/modelpricing.go | Field on TableModelPricing (gorm column: tag) |
Next to this one in the catalogue, plus popular skills in the same category.