ai-billing
Installation
SKILL.md
AI billing
Treat AI billing as a measured billing workflow. Exact middleware options, token fields, pricing inputs, errors, and SDK calls come from the installed documentation and generated types.
Resolve installed context
- Detect the installed Commet SDK, AI provider or gateway, model wrapper, and the code path that receives authoritative usage totals.
- Locate the SDK's installed
docs/manifest.json, read its entrypoint, and follow the indexed AI token billing, usage, balance, and error documentation. - For
@commet/ai-sdk, also read its installed README and peer dependency versions. - In Node projects, run
commet doctor --output agentand resolve failed package, documentation, compatibility, API-version, or project-context checks.
Do not use token field names, cost formulas, model identifiers, middleware options, or error codes from this skill. They change with the installed contract and provider integration.