Credit Budget
ASecurityPlan AI coding work around a small budget (GitHub Copilot AI Credits, or any plan billed per request or per token). Chooses the model, or the Copilot Fusion effort level, each task needs and keeps the cheaper choice as the default, plans large jobs (decompositions, migrations, new modules) once on a strong model and runs each step on a cheap one, turns the ask into one complete prompt, runs tests in the terminal first so only failing lines go to the model, keeps context and tools small, caps ...
- 2 stars
- 0 votes
- 0 copies
- 0 views
- Added December 5, 2026
Works with
Security analysis
100/100Pro scans all 8 files and shows the line behind each finding
npx -y skills add shashikantdev3/guessproof --skill credit-budget --agent claude-codeAre you the author of Credit Budget?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/shashikantdev3-credit-budget)---
name: credit-budget
description: "Plan AI coding work around a small budget (GitHub Copilot AI Credits, or any plan billed per request or per token). Chooses the model, or the Copilot Fusion effort level, each task needs and keeps the cheaper choice as the default, plans large jobs (decompositions, migrations, new modules) once on a strong model and runs each step on a cheap one, turns the ask into one complete prompt, runs tests in the terminal first so only failing lines go to the model, keeps context and tools small, caps agent loops, and logs what each task cost. Use when someone is short on credits, has burned most of a month's allowance, asks how to spend fewer, or wants a budget plan for a set of tasks."
---
# credit-budget
Most of a small budget is lost to five things: a premium model left as the default for every task, a vague first prompt followed by follow-ups, one long chat that resends its whole history with every request, agent loops that rerun tests the person could run, and context full of files, tools and logs the task does not need. Cut those, and measure what is left.
Never trade a finished task for a saving. A task redone costs more than the task done once on the right model.
## Step 0: Know your meter
Fill this once, from your plan's own billing page or settings. Do not guess; the numbers differ by plan and change over time.
| Item | Value | Where you found it |
|---|---|---|
| Budget per month | <credits> | |
| What is charged | <per token, per request, or per session> | |
| Cheaper models you may use, and their rates | <CHEAP_MODEL> = <rate> | |
| Premium models, and their rates | <PREMIUM_MODEL> = <rate> | |
| Discounts (for example, for automatic model choice) | <if any> | |
| What happens at zero | <blocked, or billed as overage> | |
| Where to see usage so far | <page or panel> | |
### GitHub Copilot, checked 2 December 2026
- **Unit.** Since 1 June 2026 every plan bills chat, agent mode, subagents, the cloud agent and code review in AI Credits. 1 credit = $0.01, charged per model request on input, cached input, cache write and output tokens, at that model's rate per million tokens. No chat model is free, and there is no fallback model when the allowance runs out: your admin's policy either blocks you or bills the overage.
- **Free.** Code completions and next edit suggestions are not billed in credits. Lean on them for small edits.
- **The model is the biggest lever.** Rates from GitHub's "Models and pricing" page, in dollars per million tokens:
| Model | Input | Output | Compared with Claude Opus 5.5 |
|---|---|---|---|
| Claude Opus 5.5 | 4.00 | 20.00 | 1x |
| Claude Sonnet 5.5 | 2.00 | 10.00 | half |
| GPT-6.1 Terra | 1.00 | 5.00 | a quarter |
| Claude Haiku 5.5 (up to 100K tokens per request) | 0.10 | 0.50 | 1/40 |
| GPT-6 Luna | 0.10 | 0.50 | 1/40 |
Per token, Claude Haiku 5.5 costs a fortieth of Claude Opus 5.5. What a whole task costs also depends on how many tokens it takes and whether it finishes, which this skill has not measured. Above 100K tokens in one request, Haiku 5.5's rate rises fivefold, so keep its context small.
- **History is resent.** A long chat carries its whole history into every new request. Cached tokens cost about a tenth of normal input, but they still add up.
- **Copilot Fusion.** A model-picker option that routes each request itself, at an effort level you choose: Standard (one model per task, for everyday work), High or Max (can add a cheaper draft checked by a judge, or reviews by other models, so a task may use more credits). Each model it uses is billed at its own rate; through 31 December 2026, paid plans get 30% off model costs with Fusion. It does not start subagents.
- **Auto.** Choosing Auto in the model picker gives a 10% discount on paid plans and bills at the model it picks. GitHub's page lists the surfaces where the discount applies; check that your editor is on it.
- **Outside chat.** Copilot code review costs about $0.25 a review on Lite, $1.50 on Balanced and $10 on Max (GitHub's estimates): one Max review is about 1,000 credits. The cloud agent uses credits plus compute.
Rates change: open the "Models and pricing" page in GitHub's Copilot docs before you rely on this table.
## Rules
### 1. Pick the model per task, and make the cheap one the default
| Task | Model |
|---|---|
| Read, search, explain code, summarize a file or a log | A cheaper model |
| A small, clear edit: rename, add a field, fix a typo, write a docstring | A cheaper model, or a code completion |
| Write tests for code that already works | A cheaper model |
| A bug you understand, with a failing test | A cheaper model first; a premium model only if the first attempt fails |
| Design, architecture, a bug you cannot explain, security-sensitive code | A premium model |
| A large job: decomposition, migration, a new module | Plan once on a premium model, then each step on a cheaper one (rule 2) |
**In GitHub Copilot with Fusion,** this rule becomes a choice of effort level, not of model: use Fusion Standard by default and pick Fusion High or Max only for the rows above that need a premium model. Fusion does the per-request routing; these rules still decide how much you send and how often. Whether Fusion Standard with these rules costs less than Fusion Max without them has not been measured (see `evals/fusion-plan.md` in the guessproof repository).
Without Fusion, set the model picker's default to the cheaper model, so a premium model is a choice you make, not the one you forget is on. Start cheap and step up once, with what the cheap attempt learned. Never start a task on a premium model "to be safe".
Pick the model when you start the chat and keep it for that chat: switching models mid-chat throws away the cache, so the next request pays for the whole history again. To step up, start a new chat on the premium model and paste a short summary of what the cheap attempt found.
Leave thinking effort at its default. Raise it only for real design or debugging work: thinking tokens are billed as output.
### 2. Plan large jobs once, then do one step per chat
A decomposition or migration done in one long agent chat on a premium model is the most expensive way to work: every step resends everything before it, at the highest rate.
1. **Plan on a premium model, once.** Ask for a plan file, not code: the decisions and a numbered checklist of small steps, each with its files and a check that can be run. With the Copilot prompt files, type `/plan-big-task`.
2. **Do each step in a new chat on a cheaper model**, with only the plan and that step's files. Type `/do-next-step`. It does one step, runs its check once, ticks it and stops.
3. **Step up only the steps that fail** on the cheaper model, or that the plan marks for a strong model.
The plan file carries the decisions from chat to chat, so no chat needs the history of the others.
### 3. Send one complete prompt
Before sending, the prompt has:
- the goal in one line;
- the exact files, attached or named;
- the constraints (what must not change);
- "done when", as a check you can run;
- "stop and ask before you push, delete or change config".
A rough ask costs one request plus every follow-up. If the ask is not clear yet, use the wellasked skill first, then send the result once.
### 4. Run scripts first
Run the tests, the linter and the type checker in the terminal yourself, for free. Paste only the failing lines: the test name, the error and at most 30 lines of trace. Do not ask the model to "run the tests and fix everything" in a loop on a premium model.
### 5. Keep the context small
- Attach or name the exact files. Do not let the agent search the whole codebase for something you can point to.
- One task per chat. Start a new chat for the next task. To try an alternative, fork the chat instead of re-explaining it. When a chat must go on, compact it first.
- Never paste a whole log. Paste the error and the few lines before it.
- Turn off the tools and MCP servers the task does not need (in VS Code, the Configure Tools button). Every enabled tool's description is sent with every request.
- Keep always-on instruction files short (`.github/copilot-instructions.md`, `AGENTS.md`): they are sent with every request too. Put long guidance in skills or prompt files that load only when needed.
- Exclude build output, generated code and vendored folders from the workspace (`.gitignore`, `files.exclude`, `search.exclude`) so the agent does not read them.
### 6. Batch and reuse
- Put related small asks in one prompt: "In `orders.py`, rename X to Y, add type hints to Z, and fix the typo on line 40."
- Use prompt files with the model pinned for routine jobs, so they always run on the cheaper model (see "Copilot files" below).
### 7. Cap agent loops
In agent mode, say how far to go: "Make the change, run the tests once, and stop. Report what failed." Stop the agent when it starts repeating a failing step, and fix the cause yourself or with one sharper prompt. In VS Code, `chat.agent.maxRequests` caps the requests in one agent turn (default 25); lower it while the budget is tight.
Delegating to a subagent costs tokens too. Keep small tasks in the main chat, and send to a subagent only work that is large and simple: a wide search, a long log, a bulk edit. Give those subagents a cheaper model (the supervisor skill's Copilot agents do this).
### 8. Watch the meter, and log every task
In VS Code: hover over a chat response to see what that turn cost, hover over the context window control for the session's total, and open the Copilot status dashboard from the status bar for the month. Turn on `chat.subagents.showCreditUsage` to see what subagents cost.
One line per task, so you learn where the budget goes:
```text
date | task | model | credits before | credits after | done (yes/no) | note
```
After 10 tasks, look at the log: which tasks used the most, and did any premium task need it?
## Already low this month
1. Read where you stand: the share used, the days left, and what your organization does at zero (blocked, or billed).
2. Switch the default to a cheaper model, or to Fusion Standard, now (rule 1). If a premium model or Fusion Max was the default, this is the first change to make.
3. List the work left this month. Mark the few tasks that truly need a premium model; everything else runs cheap.
4. Split the remaining credits across those tasks, and keep about a fifth back for a surprise bug.
5. Turn large jobs into a plan and steps (rule 2) before spending anything on them.
6. Skip or downgrade paid extras until the reset: code review on Max, the cloud agent, image generation.
## Copilot files
`prompts/copilot/` has prompt files with the model pinned, ready to copy to `.github/prompts/`:
| Command | Model | For |
|---|---|---|
| `/plan-big-task` | Premium | Plan a large job once, as small steps in `PLAN.md` |
| `/do-next-step` | Cheaper | Do one step of `PLAN.md`, check it, tick it, stop |
| `/explain-code` | Cheaper | Explain attached code in at most 12 lines |
| `/fix-failing-test` | Cheaper | Fix one failing test from pasted output |
| `/write-tests` | Cheaper | Unit tests for code that already works |
| `/rename-symbol` | Cheaper | Rename across a folder |
| `/summarize-log` | Cheaper | The few lines of a log that matter |
The models are filled in with fallbacks; change them if your organization does not allow them. A pinned model takes the place of the one in the picker, so these files run on their own model even when Fusion is selected. Setup is in the supervisor skill's `SETUP-COPILOT.md`.
## Before you send: checklist
1. Is this the cheapest model, or the lowest Fusion effort level, that can do it? Is that my default?
2. Is it one complete prompt, with files and a "done when"?
3. Did you run the tests yourself and paste only the failures?
4. Is this a new chat, with only the files and tools the task needs?
5. Could it be batched with another small ask, or done with a code completion?
## Output format
When asked to plan a task or a set of tasks:
```text
Task: <one line>
Model: <cheaper or premium, or the Fusion effort level, and why>
Run first: <commands to run in the terminal before asking>
Attach: <exact files>
Prompt: <the one complete prompt>
Expect: <about how many requests, and the step-up rule if the first attempt fails>
Log line: <the template, pre-filled>
```
For a large job, give the plan-then-steps route instead: the `/plan-big-task` prompt, then how many steps to expect and which ones may need a premium model.
Do not claim a saving. Say what to measure: credits before and after, and whether the task was done.
Files in this skill
- SKILL.md
- prompts/copilot/do-next-step.prompt.md
- prompts/copilot/explain-code.prompt.md
- prompts/copilot/fix-failing-test.prompt.md
- prompts/copilot/plan-big-task.prompt.md
- prompts/copilot/rename-symbol.prompt.md
- prompts/copilot/summarize-log.prompt.md
- prompts/copilot/write-tests.prompt.md
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.