oc-cost-ops

Track LLM costs per project phase and enforce budget constraints.

Updated May 15, 2026
One-click install
npx skills add https://github.com/asfbay-bit/opchain-skills --skill oc-cost-ops
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: oc-cost-ops
Source: https://github.com/asfbay-bit/opchain-skills/tree/main/skills/oc-cost-ops
Command: npx skills add https://github.com/asfbay-bit/opchain-skills --skill oc-cost-ops

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires oc-claude-api, oc-prompt-ops, oc-telemetry-ops, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps you track and manage the costs associated with Large Language Models (LLMs) in your development pipeline, allowing you to optimize spending and ensure cost efficiency.

Core Features & Use Cases

  • Cost Attribution: Accurately attribute LLM spend to specific phases in your project.
  • Budget Management: Set and enforce budgets for each phase, with gate mechanisms to prevent overspending.
  • Model Tier Routing: Recommend the most cost-effective model tier for each phase to optimize costs without compromising quality.
  • Use Case: Use this Skill to analyze the cost of using an LLM to generate code comments and ensure that you stay within budget while still achieving high-quality results.

Quick Start

Run the command /oc-cost report to generate a cost report for your project.

Frequently Asked Questions about oc-cost-ops

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I track LLM spend per project phase?

You can track LLM spend per project phase by utilizing checkpoint protocols to attribute costs. This approach assigns expenditures to specific development stages, allowing accurate cost tracking and budget enforcement throughout your pipeline.

How do I enforce budget constraints for LLM API usage?

To enforce budget constraints for LLM API usage, you can set specific budget limits for each project phase with built-in gate mechanisms. These gates prevent overspending by blocking operations that exceed your predefined cost thresholds.

What is model tier routing for cost optimization?

Model tier routing for cost optimization recommends the most cost-effective LLM model tier for each project phase. This strategy optimizes overall expenditure by matching task complexity with appropriate model pricing without compromising output quality.

Do I need an LLM pricing API to manage cost attribution?

Yes, you need access to an LLM pricing API to manage cost attribution effectively. This access allows the system to calculate real-time expenditures, track costs against project checkpoints, and generate accurate budget reports.

How do I generate a cost report for LLM usage?

You can generate a cost report for LLM usage by running the `/oc-cost report` command. This action analyzes your project checkpoints and pricing data to output a detailed summary of expenditures and budget compliance.