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,266 stars 315 forks Updated today 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
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

onenote-common-errors

Decode and fix every common OneNote Graph API error with root cause analysis. Use when debugging 400, 403, 404, 429, 500, 502, or 507 errors from OneNote API. Trigger with "onenote error", "onenote 403", "onenote debug", "graph api error onenote".

2,266 Updated today
jeremylongshore
AI & Automation Featured

evernote-debug-bundle

Debug Evernote API issues with diagnostic tools and techniques. Use when troubleshooting API calls, inspecting requests/responses, or diagnosing integration problems. Trigger with phrases like "debug evernote", "evernote diagnostic", "troubleshoot evernote", "evernote logs", "inspect evernote".

2,266 Updated today
jeremylongshore
AI & Automation Featured

notion-debug-bundle

Collect Notion API diagnostic info for troubleshooting and support tickets. Use when encountering persistent API issues, token/auth failures, page access problems, or preparing diagnostic bundles for Notion support. Trigger with phrases like "notion debug", "notion diagnostic", "notion support bundle", "collect notion logs", "notion troubleshoot".

2,266 Updated today
jeremylongshore
AI & Automation Featured

onenote-performance-tuning

Optimize OneNote Graph API performance for large notebooks, image handling, and batch operations. Use when dealing with slow API responses, large notebooks, image uploads, or HTTP 507 errors. Trigger with "onenote performance", "onenote slow", "onenote large notebook", "onenote image upload".

2,266 Updated today
jeremylongshore
AI & Automation Featured

onenote-cost-tuning

Optimize costs and API usage for OneNote Graph API integrations with caching and batching strategies. Use when reducing API call volume, planning capacity, or evaluating OneNote integration costs. Trigger with "onenote costs", "onenote api usage", "onenote optimization", "graph api billing onenote".

2,266 Updated today
jeremylongshore