jeremylongshore/claude-code-plugins-plus-skills
apollo-pack
plugins/saas-packs/apollo-pack/skills/apollo-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/apollo-pack/skills/apollo-debug-bundle/SKILL.md -a claude-code --skill apollo-debug-bundleInstallation paths:
.claude/skills/apollo-debug-bundle/# Apollo Debug Bundle
## Overview
Collect comprehensive debug information for Apollo.io API issues to expedite support resolution.
## Debug Collection Script
```typescript
// scripts/apollo-debug-bundle.ts
import { writeFileSync } from 'fs';
import axios from 'axios';
interface DebugBundle {
timestamp: string;
environment: Record<string, any>;
connectivity: Record<string, any>;
apiHealth: Record<string, any>;
recentRequests: Array<any>;
errors: Array<any>;
}
async function collectDebugBundle(): Promise<DebugBundle> {
const bundle: DebugBundle = {
timestamp: new Date().toISOString(),
environment: {},
connectivity: {},
apiHealth: {},
recentRequests: [],
errors: [],
};
// 1. Environment Info
bundle.environment = {
nodeVersion: process.version,
platform: process.platform,
arch: process.arch,
apiKeyPresent: !!process.env.APOLLO_API_KEY,
apiKeyLength: process.env.APOLLO_API_KEY?.length || 0,
apiKeyPrefix: process.env.APOLLO_API_KEY?.substring(0, 8) + '...',
};
// 2. Connectivity Check
try {
const start = Date.now();
await axios.get('https://api.apollo.io', { timeout: 5000 });
bundle.connectivity = {
reachable: true,
latencyMs: Date.now() - start,
};
} catch (error: any) {
bundle.connectivity = {
reachable: false,
error: error.message,
code: error.code,
};
}
// 3. API Health Check
try {
const response = await axios.get('https://api.apollo.io/v1/auth/health', {
params: { api_key: process.env.APOLLO_API_KEY },
timeout: 10000,
});
bundle.apiHealth = {
status: 'healthy',
responseCode: response.status,
responseTime: response.headers['x-response-time'],
};
} catch (error: any) {
bundle.apiHealth = {
status: 'unhealthy',
error: error.message,
responseCode: error.response?.status,
responseBody: sanitizeResponse(error.response?.data),
};
}
// 4. Test Basic