onenote-debug-bundle

Featured

Generate comprehensive diagnostic bundles for OneNote Graph API issues with request tracing and token analysis. Use when debugging OneNote API failures, filing Microsoft support tickets, or analyzing permission issues. Trigger with "onenote debug", "onenote diagnostic", "onenote support ticket", "graph api troubleshoot onenote".

AI & Automation 2,926 stars 433 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# OneNote Debug Bundle ## Overview When OneNote API calls fail, you need the `request-id` response header (Microsoft support requires it), decoded JWT token claims (to verify granted scopes), the `x-ms-ags-diagnostic` header (internal Graph routing info), and the full error body — all correlated to a single request. This skill generates structured diagnostic bundles for self-diagnosis and Microsoft support ticket filing. ## Prerequisites - Node.js 18+ or Python 3.10+ - An existing OneNote integration with Graph API calls - `@microsoft/microsoft-graph-client` or `msgraph-sdk` installed - Access token available (for token inspection) ## Instructions ### TypeScript Diagnostic Middleware Intercept all Graph API calls and capture diagnostics automatically: ```typescript // src/debug/diagnostic-middleware.ts interface DiagnosticEntry { timestamp: string; method: string; url: string; status: number; requestId: string | null; agsDiagnostic: string | null; retryAfter: string | null; duration_ms: number; error: any | null; } const diagnosticLog: DiagnosticEntry[] = []; export function createDiagnosticMiddleware() { return { execute: async (context: any) => { const start = Date.now(); const { url, method } = context.request || { url: "unknown", method: "GET" }; try { await context.next(); const h = context.response?.headers; diagnosticLog.push({ timestamp: new Date().toISOString(), method, url, status: c...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category