jeremylongshore/claude-code-plugins-plus-skills
gamma-pack
plugins/saas-packs/gamma-pack/skills/gamma-debug-bundle/SKILL.md
January 22, 2026
Select agents to install to:
npx add-skill https://github.com/jeremylongshore/claude-code-plugins-plus-skills/blob/main/plugins/saas-packs/gamma-pack/skills/gamma-debug-bundle/SKILL.md -a claude-code --skill gamma-debug-bundleInstallation paths:
.claude/skills/gamma-debug-bundle/# Gamma Debug Bundle
## Overview
Comprehensive debugging toolkit for systematic troubleshooting of Gamma integration issues.
## Prerequisites
- Active Gamma integration with issues
- Node.js 18+ for debug tools
- Access to application logs
## Instructions
### Step 1: Create Debug Client
```typescript
// debug/gamma-debug.ts
import { GammaClient } from '@gamma/sdk';
interface DebugLog {
timestamp: string;
method: string;
path: string;
requestBody?: object;
responseBody?: object;
duration: number;
status: number;
error?: string;
}
const logs: DebugLog[] = [];
export function createDebugClient() {
const gamma = new GammaClient({
apiKey: process.env.GAMMA_API_KEY,
interceptors: {
request: (config) => {
config._startTime = Date.now();
config._id = crypto.randomUUID();
console.log(`[${config._id}] -> ${config.method} ${config.path}`);
return config;
},
response: (response, config) => {
const duration = Date.now() - config._startTime;
console.log(`[${config._id}] <- ${response.status} (${duration}ms)`);
logs.push({
timestamp: new Date().toISOString(),
method: config.method,
path: config.path,
requestBody: config.body,
responseBody: response.data,
duration,
status: response.status,
});
return response;
},
error: (error, config) => {
const duration = Date.now() - config._startTime;
console.error(`[${config._id}] !! ${error.message} (${duration}ms)`);
logs.push({
timestamp: new Date().toISOString(),
method: config.method,
path: config.path,
requestBody: config.body,
duration,
status: error.status || 0,
error: error.message,
});
throw error;
},
},
});
return { gamma, getLogs: () => [...logs], clearLogs: () => logs.length = 0 };
}
```
### Step 2: Di