add-pricing-field
Skill by maximhq
Wires a new model-pricing field through Bifrost's pricing engine, from the datasheet struct to the UI override form. Built for maintainers of the Bifrost repository who add cost keys such as cost_per_request. It ends with a repo-wide probe to confirm no step was missed.
Install add-pricing-field
Built from the published package, never by AI.
git clone --depth 1 https://github.com/maximhq/bifrost /tmp/bifrost && mkdir -p ~/.claude/skills && cp -r /tmp/bifrost/.claude/skills/add-pricing-field ~/.claude/skills/add-pricing-fieldRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/maximhq/bifrost /tmp/bifrost && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/bifrost/.claude/skills/add-pricing-field ~/.gemini/antigravity-cli/skills/add-pricing-fieldAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
add-pricing-field is an agent skill for the Bifrost repository by maximhq. It wires a new model-pricing field, such as cost_per_request, through Bifrost's pricing engine. The skill covers the Options struct, the database table and migration, datasheet sync columns, cost calculation, custom pricing overrides, the public API, OpenAPI and MDX docs, and the UI override form.
The skill follows a nine-step workflow and ends with a repo-wide probe to confirm nothing was missed. It asks for the field name and billing semantics before writing code. It is aimed at maintainers and contributors who extend Bifrost's cost engine. It is invoked as /add-pricing-field with a field name, or without one to be asked.
Written from the project's SKILL.md and checked against it.
What it can do
- Semantics checkReads the closest existing compute cost function and asks before adding a new billing path.
- Options and mappingAdds the field to the Options struct and to both entry-to-table conversions.
- DB table and migrationAdds the table column and a migration that uses the package's add-column helpers.
- Datasheet sync columnsAdds the column to the upsert list so the datasheet resync keeps the value.
- Override patchingAdds the field to custom pricing override patching in patchPricing.
- Cost calculationWires the field into the matching cost function and checks cache-hit behavior.
- Public API checkChecks whether the field maps onto the public Pricing struct.
- OpenAPI and docsUpdates the PricingPatch schema, regenerates the bundle, and adds MDX doc rows.
- UI override formAdds the override type field and a PRICING_FIELDS entry for the form.
- Repo-wide probeRuns a final repo-wide search to confirm no step was missed.
What you need
- A checkout of the Bifrost repository
- Python 3 to run the OpenAPI bundler
- Git, for inspecting diffs
Try asking
- /add-pricing-field cost_per_request
- Add the output_cost_per_image_above_8_and_8_pixels field to model pricing.
- Wire a new per-session pricing field end to end and run the repo-wide probe.
Good to know
- Asks for confirmation on unclear billing semantics before writing code.
- Asks before editing .mdx and .yaml docs unless docs were named in scope.
- Does not add new fields to the public Pricing struct unless the user asks.
Security check
B- Allowed to use Bash, Edit, Write without limitsIn
SKILL.md
Checked automatically: .claude/skills/add-pricing-field/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: ReadGrepGlobBashEditWriteAskUserQuestion
-
SKILL.md16 KB
Alternatives to add-pricing-field
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
add-pricing-field: common questions
Why does the datasheet sync step matter?
Create writes every column, but ON CONFLICT DO UPDATE only updates listed columns. A field missing from pricingSyncUpdateColumns reverts to null on the next resync of an existing model.
Should openapi.json be edited by hand?
No. The skill says to regenerate it with bundle.py and then check the git diff for only the new field's lines.
Which request type group should a container field use?
The source says the UI has no container group, so a container-priced field such as code_interpreter_cost_per_session should be tagged to the chat group.
How do I install add-pricing-field?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is add-pricing-field free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is add-pricing-field safe to use?
It scores 86 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use bash, edit, write without limits). Review the code before you install. How grades work.
What are alternatives to add-pricing-field?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
