Skip to content

feat: (azure-cost) add storage optimization guide and fix token limit - #2554

Merged
Jon Gallant (jongio) merged 5 commits into
microsoft:mainfrom
jongio:feature/cost-storage-optimization
Jun 3, 2026
Merged

feat: (azure-cost) add storage optimization guide and fix token limit#2554
Jon Gallant (jongio) merged 5 commits into
microsoft:mainfrom
jongio:feature/cost-storage-optimization

Conversation

@jongio

Copy link
Copy Markdown
Collaborator

Adds a Storage cost optimization reference guide and fixes the SKILL.md token budget issue (#2157).

Changes

  • New services/storage/azure-storage.md with prioritized optimization rules, lifecycle policy templates, Resource Graph queries, tier decision matrix, and pricing
  • New references/tools-and-best-practices.md (content extracted from SKILL.md to fix token limit)
  • SKILL.md slimmed from ~2100 to ~490 tokens; description trimmed from 1100+ to 409 chars
  • Step 1.7 Storage-specific routing in the optimization workflow
  • 4 new vally eval stimuli (3 routing + 1 response quality)

Checklist

  • Tests pass locally (cd tests && npm test): vally lint 3/3, build passes
  • If modifying skill descriptions: verified routing correctness. Storage cost prompts target azure-cost (not azure-storage) via cost-focused phrasing in eval stimuli
  • If modifying skill USE FOR / DO NOT USE FOR / PREFER OVER clauses: confirmed no routing regressions. The azure-storage skill handles educational tier questions; azure-cost handles cost optimization actions

Related Issues

Fixes #2157
Partial progress on #2524

- Add services/storage/azure-storage.md with optimization rules, lifecycle
  policy templates, Resource Graph queries, and pricing reference
- Add references/tools-and-best-practices.md (extracted from SKILL.md)
- Slim SKILL.md from ~2100 to ~490 tokens (fixes microsoft#2157)
- Add Step 1.7 Storage routing in optimization workflow
- Add 4 vally eval stimuli (3 routing + 1 response quality)

Closes microsoft#2524 (partial: storage service guide)

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Azure Storage cost-optimization coverage to the azure-cost skill while reducing the skill’s frontmatter/markdown token footprint by moving supporting guidance into reference docs. It also expands the azure-cost Vally suite with new storage-focused routing and response-quality stimuli.

Changes:

  • Added a new Storage cost optimization reference guide (tiering, lifecycle policies, ARG queries, pricing notes).
  • Slimmed azure-cost SKILL.md and extracted tooling/best-practices content into a dedicated reference file.
  • Added new storage routing + response-quality stimuli to evals/azure-cost/eval.yaml, plus lockfile updates.
Show a summary per file
File Description
plugin/skills/azure-cost/SKILL.md Shortened description and condensed the top-level skill content; added links to storage optimization and extracted references.
plugin/skills/azure-cost/references/tools-and-best-practices.md New extracted reference for MCP tools, best practices, pitfalls, and safety requirements.
plugin/skills/azure-cost/cost-optimization/workflow.md Added Storage-specific conditional step before AKS analysis and renumbered subsequent steps.
plugin/skills/azure-cost/cost-optimization/services/storage/azure-storage.md New storage optimization guide (rules, lifecycle templates, ARG queries, commands, pricing notes).
evals/azure-cost/eval.yaml Added storage-focused routing and response-quality integration stimuli.
package-lock.json Lockfile update (peer markers added).
scripts/package-lock.json Lockfile update (dependency graph adjustments + peer markers).
tests/package-lock.json Lockfile update (peer markers added).

Copilot's findings

Files not reviewed (2)
  • scripts/package-lock.json: Language not supported
  • tests/package-lock.json: Language not supported
  • Files reviewed: 5/8 changed files
  • Comments generated: 5

Comment thread plugin/skills/azure-cost/SKILL.md Outdated
Comment thread plugin/skills/azure-cost/cost-optimization/workflow.md
Comment thread evals/azure-cost/eval.yaml
Comment thread evals/azure-cost/eval.yaml
@JasonYeMSFT JasonYeMSFT (JasonYeMSFT) changed the title feat(azure-cost): add storage optimization guide and fix token limit feat: (azure-cost) add storage optimization guide and fix token limit Jun 3, 2026
Address Copilot review feedback:
- Replace 'storage tiering' with 'reduce storage costs' in description
- Tighten workflow triggers to storage-cost-specific terms (LRS/GRS, savings)
- Clarify orphaned disks rule is compute-adjacent (billed as storage)
- Add explicit cost/savings language to eval prompts for stable routing

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot's findings

  • Files reviewed: 5/5 changed files
  • Comments generated: 2

Comment thread plugin/skills/azure-cost/cost-optimization/services/storage/azure-storage.md Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot's findings

  • Files reviewed: 5/5 changed files
  • Comments generated: 3

Comment thread plugin/skills/azure-cost/SKILL.md Outdated
Comment thread plugin/skills/azure-cost/cost-optimization/workflow.md
@JasonYeMSFT

Copy link
Copy Markdown
Member

Sai Koumudi Kaluvakolanu (@saikoumudi) Could you please help review?

- Clarify Reader role is scoped (not global) in Quick Reference
- Add --resource-group to inline verification command
- Add explicit routing note for storage-only vs general optimization
@jongio
Jon Gallant (jongio) merged commit 54e0f11 into microsoft:main Jun 3, 2026
12 checks passed
@jongio
Jon Gallant (jongio) deleted the feature/cost-storage-optimization branch June 3, 2026 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

azure-cost skill description is too long

4 participants