clay-advanced-troubleshooting
Deep-debug complex Clay enrichment failures, provider degradation, and data flow issues. Use when standard troubleshooting fails, investigating intermittent enrichment failures, or preparing detailed evidence for Clay support escalation. Trigger with phrases like "clay hard bug", "clay mystery error", "clay impossible to debug", "difficult clay issue", "clay deep debug".
Best use case
clay-advanced-troubleshooting is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Deep-debug complex Clay enrichment failures, provider degradation, and data flow issues. Use when standard troubleshooting fails, investigating intermittent enrichment failures, or preparing detailed evidence for Clay support escalation. Trigger with phrases like "clay hard bug", "clay mystery error", "clay impossible to debug", "difficult clay issue", "clay deep debug".
Teams using clay-advanced-troubleshooting should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/clay-advanced-troubleshooting/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How clay-advanced-troubleshooting Compares
| Feature / Agent | clay-advanced-troubleshooting | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Deep-debug complex Clay enrichment failures, provider degradation, and data flow issues. Use when standard troubleshooting fails, investigating intermittent enrichment failures, or preparing detailed evidence for Clay support escalation. Trigger with phrases like "clay hard bug", "clay mystery error", "clay impossible to debug", "difficult clay issue", "clay deep debug".
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
AI Agents for Coding
Browse AI agent skills for coding, debugging, testing, refactoring, code review, and developer workflows across Claude, Cursor, and Codex.
Best AI Skills for Claude
Explore the best AI skills for Claude and Claude Code across coding, research, workflow automation, documentation, and agent operations.
ChatGPT vs Claude for Agent Skills
Compare ChatGPT and Claude for AI agent skills across coding, writing, research, and reusable workflow execution.
SKILL.md Source
# Clay Advanced Troubleshooting
## Overview
Deep debugging techniques for complex Clay issues that resist standard troubleshooting. Covers provider-level isolation, waterfall diagnosis, HTTP API column debugging, Claygent failure analysis, and Clay support escalation with proper evidence.
## Prerequisites
- Access to Clay table with the failing enrichments
- curl and jq for API testing
- Understanding of Clay's enrichment architecture (providers, waterfall, columns)
- Browser developer tools for network inspection
## Instructions
### Step 1: Isolate the Failure Layer
```bash
#!/bin/bash
# clay-layer-test.sh — test each integration layer independently
set -euo pipefail
echo "=== Layer Isolation Test ==="
# Layer 1: Webhook delivery
echo "Layer 1: Webhook"
WEBHOOK_CODE=$(curl -s -o /dev/null -w "%{http_code}" \
-X POST "$CLAY_WEBHOOK_URL" \
-H "Content-Type: application/json" \
-d '{"_debug": true, "domain": "google.com"}')
echo " Webhook: $WEBHOOK_CODE"
# Layer 2: Enterprise API (if applicable)
if [ -n "${CLAY_API_KEY:-}" ]; then
echo "Layer 2: Enterprise API"
API_RESULT=$(curl -s -X POST "https://api.clay.com/v1/companies/enrich" \
-H "Authorization: Bearer $CLAY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"domain": "google.com"}')
echo " API response keys: $(echo "$API_RESULT" | jq 'keys')"
fi
# Layer 3: HTTP API callback endpoint
echo "Layer 3: Callback endpoint"
CALLBACK_CODE=$(curl -s -o /dev/null -w "%{http_code}" \
-X POST "${CLAY_CALLBACK_URL:-http://localhost:3000/api/clay/enriched}" \
-H "Content-Type: application/json" \
-d '{"_debug_test": true}')
echo " Callback: $CALLBACK_CODE"
echo ""
echo "First failing layer = root cause location"
```
### Step 2: Diagnose Enrichment Column Failures
In the Clay UI, click on red/error cells to see detailed error messages:
```yaml
# Common enrichment column error patterns and root causes:
errors:
"No data found":
meaning: "Provider has no data for this input"
check:
- Is the input domain valid? (not personal email domain)
- Is the input name spelled correctly?
- Is the provider connected? (Settings > Connections)
fix: "Add more waterfall providers for broader coverage"
"Rate limit exceeded":
meaning: "Provider API rate limit hit"
check:
- How many rows are processing simultaneously?
- Is the provider's rate limit known? (see provider docs)
fix: "Reduce table row count, add delay between batches"
"Invalid API key":
meaning: "Provider connection lost or key expired"
check:
- Go to Settings > Connections
- Click on the failing provider
- Test the connection
fix: "Reconnect with a valid API key"
"Timeout":
meaning: "Provider took too long to respond"
check:
- Is the provider's status page showing issues?
- Is the input data unusually complex?
fix: "Retry the column on failed rows (click cell > retry)"
"Column dependency not met":
meaning: "A column this enrichment depends on hasn't completed yet"
check:
- Check column order (left to right execution)
- Is the prerequisite column populated?
fix: "Reorder columns so dependencies run first"
```
### Step 3: Debug HTTP API Column Issues
```typescript
// debug/http-api-column.ts — replicate Clay's HTTP API column call locally
async function debugHTTPAPIColumn(
url: string,
method: string,
headers: Record<string, string>,
body: Record<string, string>,
sampleRow: Record<string, string>,
): Promise<void> {
// Replace {{column_name}} placeholders with sample data
let resolvedUrl = url;
let resolvedBody = JSON.stringify(body);
for (const [key, value] of Object.entries(sampleRow)) {
const placeholder = `{{${key}}}`;
resolvedUrl = resolvedUrl.replace(placeholder, value);
resolvedBody = resolvedBody.replace(new RegExp(placeholder.replace(/[{}]/g, '\\$&'), 'g'), value);
}
console.log('Resolved URL:', resolvedUrl);
console.log('Resolved body:', JSON.parse(resolvedBody));
const res = await fetch(resolvedUrl, {
method,
headers: { ...headers, 'Content-Type': 'application/json' },
body: method !== 'GET' ? resolvedBody : undefined,
});
console.log('Status:', res.status);
console.log('Response:', await res.text());
}
// Test with your actual column config and sample row data
await debugHTTPAPIColumn(
'https://api.hubapi.com/crm/v3/objects/contacts',
'POST',
{ 'Authorization': 'Bearer your-hubspot-key' },
{ email: '{{Work Email}}', firstname: '{{first_name}}' },
{ 'Work Email': 'test@example.com', 'first_name': 'Jane' },
);
```
### Step 4: Debug Claygent Failures
Common Claygent issues and diagnosis:
```yaml
claygent_debugging:
empty_results:
symptom: "Claygent returns empty or 'Could not find information'"
diagnosis:
- Test the prompt manually in Clay's Claygent builder (click cell > edit)
- Try the URL in a browser — is the website accessible?
- Check if the website blocks bots (CloudFlare challenge page)
fixes:
- Use Navigator mode for JavaScript-heavy sites
- Simplify the prompt to a single question
- Add fallback sources: "If not on the website, check LinkedIn/Crunchbase"
inconsistent_results:
symptom: "Same prompt returns different data each time"
diagnosis:
- Claygent uses web search which can vary
- Dynamic website content changes between requests
fixes:
- Make prompts more specific (exact page URL vs general domain)
- Add structured output format: "Return as JSON with keys: funding_amount, date, investors"
high_credit_cost:
symptom: "Claygent consuming too many credits"
diagnosis:
- Each Claygent call costs credits + 1 action
- Running on all rows including low-value ones
fixes:
- Add conditional run: "Only run if ICP Score >= 60"
- Cache results: don't re-run on already-researched companies
```
### Step 5: Build a Support Escalation Package
```markdown
## Clay Support Escalation
**Account:** [your email]
**Plan:** [Starter/Explorer/Pro/Enterprise]
**Date:** [YYYY-MM-DD]
### Issue Description
[One paragraph describing what's broken]
### Impact
- Rows affected: [count]
- Duration: [how long has this been happening]
- Credits impacted: [estimated wasted credits]
### Steps to Reproduce
1. [Step 1]
2. [Step 2]
3. [Expected result vs actual result]
### Evidence
- Table URL: [link to affected Clay table]
- Screenshot of error cells: [attached]
- Column configuration: [which enrichment, which provider]
- Sample input data that fails: [3-5 rows]
- Sample input data that works: [3-5 rows for comparison]
### What I've Already Tried
1. [Reconnected provider API key]
2. [Tested with different input data]
3. [Checked Clay status page — no incidents reported]
4. [Tested provider API independently — works fine]
### Environment
- Browser: [Chrome/Firefox/Safari + version]
- Plan tier: [with credit balance]
- Provider connections: [list connected providers]
Submit at: https://community.clay.com or support@clay.com
```
## Error Handling
| Issue | Cause | Solution |
|-------|-------|----------|
| Intermittent enrichment failures | Provider rate limiting | Reduce concurrent rows, add delay |
| All rows failing suddenly | Provider API key expired | Reconnect in Settings > Connections |
| Partial data returned | Provider has limited coverage | Add waterfall fallback provider |
| HTTP API column timeout | Target API slow | Increase timeout or process async |
| Claygent blocked by website | Bot protection | Use Navigator mode or different data source |
## Resources
- [Clay Community Support](https://community.clay.com)
- [Clay University](https://university.clay.com)
## Next Steps
For high-volume scaling, see `clay-load-scale`.Related Skills
windsurf-advanced-troubleshooting
Advanced Windsurf debugging for hard-to-diagnose IDE, Cascade, and indexing issues. Use when standard troubleshooting fails, Cascade produces consistently wrong output, or investigating deep configuration problems. Trigger with phrases like "windsurf deep debug", "windsurf mystery error", "windsurf impossible to fix", "cascade keeps failing", "windsurf advanced debug".
vercel-advanced-troubleshooting
Advanced debugging for hard-to-diagnose Vercel issues including cold starts, edge errors, and function tracing. Use when standard troubleshooting fails, investigating intermittent failures, or preparing evidence for Vercel support escalation. Trigger with phrases like "vercel hard bug", "vercel mystery error", "vercel intermittent failure", "difficult vercel issue", "vercel deep debug".
supabase-advanced-troubleshooting
Deep Supabase diagnostics: pg_stat_statements for slow queries, lock debugging with pg_locks, connection leak detection, RLS policy conflicts, Edge Function cold starts, and Realtime connection drop analysis. Use when standard troubleshooting fails, investigating performance regressions, debugging race conditions, or building evidence for Supabase support escalation. Trigger: "supabase deep debug", "supabase slow query", "supabase lock contention", "supabase connection leak", "supabase RLS conflict", "supabase cold start".
snowflake-advanced-troubleshooting
Apply advanced Snowflake debugging with query profiling, spill analysis, lock contention, and performance deep-dives using ACCOUNT_USAGE views. Use when standard troubleshooting fails, investigating slow queries, or diagnosing warehouse performance issues. Trigger with phrases like "snowflake hard bug", "snowflake slow query debug", "snowflake query profile", "snowflake spilling", "snowflake deep debug".
shopify-advanced-troubleshooting
Debug complex Shopify API issues using cost analysis, request tracing, webhook delivery inspection, and GraphQL introspection. Trigger with phrases like "shopify hard bug", "shopify mystery error", "shopify deep debug", "difficult shopify issue", "shopify intermittent failure".
sentry-advanced-troubleshooting
Advanced Sentry troubleshooting for complex SDK issues, silent event drops, source map failures, distributed tracing gaps, and SDK conflicts. Use when events silently disappear, source maps fail to resolve, traces break across service boundaries, or the SDK conflicts with other libraries like OpenTelemetry or winston. Trigger with phrases like "sentry events missing", "sentry source maps broken", "sentry debug", "sentry not capturing errors", "sentry tracing gaps", "sentry memory leak", "sentry sdk conflict".
salesforce-advanced-troubleshooting
Apply Salesforce advanced debugging with debug logs, SOQL query plans, and EventLogFile analysis. Use when standard troubleshooting fails, investigating SOQL performance issues, or analyzing Apex governor limit violations. Trigger with phrases like "salesforce hard bug", "salesforce debug log", "salesforce governor limit", "salesforce query plan", "salesforce deep debug", "SOQL slow".
retellai-advanced-troubleshooting
Retell AI advanced troubleshooting — AI voice agent and phone call automation. Use when working with Retell AI for voice agents, phone calls, or telephony. Trigger with phrases like "retell advanced troubleshooting", "retellai-advanced-troubleshooting", "voice agent".
replit-advanced-troubleshooting
Debug hard Replit issues: container lifecycle, Nix build failures, deployment crashes, and memory leaks. Use when standard troubleshooting fails, investigating intermittent failures, or diagnosing complex Replit platform behavior. Trigger with phrases like "replit hard bug", "replit mystery error", "replit impossible to debug", "replit intermittent", "replit deep debug".
perplexity-advanced-troubleshooting
Apply advanced debugging techniques for hard-to-diagnose Perplexity Sonar API issues. Use when standard troubleshooting fails, investigating inconsistent citations, or preparing evidence for support escalation. Trigger with phrases like "perplexity hard bug", "perplexity mystery error", "perplexity inconsistent results", "difficult perplexity issue", "perplexity deep debug".
notion-advanced-troubleshooting
Deep debugging for Notion API: response inspection, permission chain tracing, property type mismatches, pagination edge cases, and block nesting limits. Use when standard troubleshooting fails or investigating intermittent errors. Trigger with phrases like "notion deep debug", "notion permission trace", "notion property mismatch", "notion pagination bug", "notion nesting limit".
hubspot-advanced-troubleshooting
Debug complex HubSpot API issues with systematic isolation and evidence collection. Use when standard troubleshooting fails, investigating intermittent CRM errors, or preparing evidence bundles for HubSpot support escalation. Trigger with phrases like "hubspot hard bug", "hubspot mystery error", "hubspot intermittent failure", "hubspot deep debug", "hubspot support ticket".