Files

40 lines
1.6 KiB
Markdown

---
name: copilot-cost-review
description: "Use when reviewing a prompt, instruction, agent, or skill draft for avoidable token cost and reuse opportunities."
argument-hint: "target=<resource path or description>"
---
# Copilot Cost Review
Use this skill when you want to make a Copilot resource cheaper to run without
stripping away the behavior it actually needs.
## Procedure
1. Identify the resource's real job, expected inputs, and default output size.
2. Search for an existing shared resource that already covers most of the same
workflow before proposing a new artifact.
3. Re-evaluate the primitive choice: use an instruction for durable rules, a
skill for a portable workflow, a prompt for a thin VS Code entrypoint, and a
hook only for deterministic enforced behavior.
4. Remove repeated policy text, long examples, and broad workspace-reading
requirements unless they materially improve correctness.
5. Replace broad discovery steps with narrow anchors such as a file, symbol,
command, or manifest row whenever possible.
6. Add or tighten an explicit output budget and note when the resource should
not be used.
7. If the resource is still too heavy, split reference material into docs or
scripts and keep the runtime resource concise.
## Outputs
- Recommended primitive
- Reuse candidates in the shared repo
- Context and prompt reductions
- Output-budget guidance
- Non-goals or usage limits
## Notes
- Reduce prompt size without removing information that changes correctness.
- Treat transcript prompt-cost fields as proxies, not exact billing data.