refresh-json-data

Refresh Copilot token estimation and pricing JSON data files.

100|30|Updated Sep 26, 2025
One-click install
npx skills add https://github.com/rajbos/github-copilot-token-usage --skill refresh-json-data
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: refresh-json-data
Source: https://github.com/rajbos/github-copilot-token-usage/tree/main/.github/skills/refresh-json-data
Command: npx skills add https://github.com/rajbos/github-copilot-token-usage --skill refresh-json-data

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Refresh token estimators and model pricing data to keep the Copilot Token Tracker extension accurate and up to date.

Core Features & Use Cases

  • Updates tokenEstimators.json and modelPricing.json with current data from AI model providers.
  • Validates JSON structure and consistency using the included validation script.
  • Builds and tests the extension to ensure changes load correctly in VS Code.

Quick Start

Run the JSON refresh workflow to update estimators and pricing, then validate, build, and test the extension.

Frequently Asked Questions about refresh-json-data

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

FAQPage Schema
How do I refresh token estimation and model pricing JSON data for a VS Code extension?

To refresh token estimation and model pricing JSON data, run the JSON refresh workflow to update estimators and pricing files, then validate syntax, build the extension, and run tests to ensure changes load correctly in VS Code.

What is JSON validation for token estimators and why is it needed?

JSON validation for token estimators ensures updated pricing and estimation files have correct syntax and required fields. It is needed during extension maintenance and model updates to guarantee accurate token usage estimates and cost calculations.

Do I need to run a build and test cycle after updating model pricing JSON files?

Yes, you need to run a build and test cycle after updating model pricing JSON files. This coordinated cycle ensures that the refreshed token estimation and pricing data loads correctly within the VS Code extension environment.

When should I update token estimation and pricing data files?

You should update token estimation and pricing data files during extension maintenance, when AI model providers release updates, or during pricing revisions to keep the Copilot Token Tracker extension accurate and up to date.

What's the best way to ensure required fields exist in token estimator JSON files?

The best way to ensure required fields exist in token estimator JSON files is by running the included validation script after updating the data, which checks JSON structure and consistency before coordinating a build-and-test cycle.