Conversation
- Created comprehensive SKILL.md documentation - Implemented load-table-data.js helper script with Entra ID and Shared Key auth - Added package.json for skill dependencies - Created README and .gitignore for skill directory - Updated main skills README to include new skill - Script supports filtering by date range, model, workspace, and user - Outputs JSON or CSV format to stdout or file Co-authored-by: rajbos <6085745+rajbos@users.noreply.github.com>
- Created example-usage.js demonstrating data loading and analysis - Shows model breakdown, daily usage, and workspace analytics - Includes usage instructions and error handling - Updated README to reference example script Co-authored-by: rajbos <6085745+rajbos@users.noreply.github.com>
- Improved sanitizeTableKey regex escaping with explanatory comments - Enhanced OData filter validation to prevent injection issues - Fixed argument parsing to validate values and reject missing/invalid args - Updated example-usage.js to use os.tmpdir() for cross-platform compatibility - Fixed CSV format example in SKILL.md to match actual output - Updated Microsoft documentation URLs to use learn.microsoft.com domain Co-authored-by: rajbos <6085745+rajbos@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add agent skill to load table data from Azure storage
Add azure-storage-loader skill for querying token usage data from Azure Tables
Jan 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enables loading actual token usage data from Azure Table Storage directly into chat conversations for rapid analysis and iteration without manual exports.
Implementation
New skill:
.github/skills/azure-storage-loader/load-table-data.js- CLI tool for querying Azure Tables with date range and dimension filters (model, workspace, user). Outputs JSON/CSV to stdout or file.SKILL.md- Complete Azure Tables schema reference, authentication patterns (Entra ID/Shared Key), OData filtering, troubleshooting.example-usage.js- Demonstrates data loading and aggregation patterns.Usage
Supports DefaultAzureCredential (az login, env vars, managed identity) and shared key authentication. Validates inputs to prevent OData filter injection.
Schema Reference
Entities use partition key
ds:{datasetId}|d:{YYYY-MM-DD}and row keym:{model}|w:{workspaceId}|mc:{machineId}|u:{userId}for efficient date-range queries.Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.