|
| 1 | +# Azure Storage Loader Skill |
| 2 | + |
| 3 | +Load token usage data from Azure Table Storage for analysis in chat conversations. |
| 4 | + |
| 5 | +## Quick Start |
| 6 | + |
| 7 | +```bash |
| 8 | +# Install dependencies |
| 9 | +npm install |
| 10 | + |
| 11 | +# Load data (using Entra ID auth) |
| 12 | +node load-table-data.js \ |
| 13 | + --storageAccount "youraccount" \ |
| 14 | + --tableName "usageAggDaily" \ |
| 15 | + --datasetId "default" \ |
| 16 | + --startDate "2026-01-01" \ |
| 17 | + --endDate "2026-01-30" |
| 18 | + |
| 19 | +# Output to file |
| 20 | +node load-table-data.js \ |
| 21 | + --storageAccount "youraccount" \ |
| 22 | + --startDate "2026-01-01" \ |
| 23 | + --endDate "2026-01-30" \ |
| 24 | + --output "usage-data.json" |
| 25 | + |
| 26 | +# Get help |
| 27 | +node load-table-data.js --help |
| 28 | +``` |
| 29 | + |
| 30 | +## Files |
| 31 | + |
| 32 | +- **SKILL.md**: Complete skill documentation with examples and troubleshooting |
| 33 | +- **load-table-data.js**: Helper script to fetch data from Azure Storage Tables |
| 34 | +- **example-usage.js**: Example script demonstrating data loading and analysis |
| 35 | +- **package.json**: Node.js dependencies |
| 36 | + |
| 37 | +## Authentication |
| 38 | + |
| 39 | +### Entra ID (Default) |
| 40 | +Authenticate using one of these methods: |
| 41 | +- Azure CLI: `az login` |
| 42 | +- VS Code: Sign in via Azure extension |
| 43 | +- Environment variables |
| 44 | + |
| 45 | +### Shared Key |
| 46 | +Use `--sharedKey` parameter to provide storage account key. |
| 47 | + |
| 48 | +## Common Use Cases |
| 49 | + |
| 50 | +1. **Quick Analysis**: Load recent data for ad-hoc queries |
| 51 | +2. **Model Comparison**: Compare token usage across different AI models |
| 52 | +3. **Team Analytics**: Analyze per-user or per-workspace usage |
| 53 | +4. **Cost Estimation**: Calculate usage costs with pricing data |
| 54 | + |
| 55 | +## Documentation |
| 56 | + |
| 57 | +See **SKILL.md** for: |
| 58 | +- Complete parameter reference |
| 59 | +- Azure Table Storage schema details |
| 60 | +- Authentication setup |
| 61 | +- Advanced filtering examples |
| 62 | +- Troubleshooting guide |
| 63 | +- Security best practices |
| 64 | + |
| 65 | +## Requirements |
| 66 | + |
| 67 | +- Node.js 14 or later |
| 68 | +- Azure Storage account with token usage data |
| 69 | +- Appropriate Azure permissions (Storage Table Data Reader or Contributor) |
0 commit comments