clay-policy-guardrails

Featured

Implement credit spending limits, data privacy enforcement, and input validation guardrails for Clay pipelines. Use when enforcing spending caps, blocking PII enrichment, or adding pre-enrichment validation rules. Trigger with phrases like "clay policy", "clay guardrails", "clay spending limit", "clay data privacy rules", "clay validation", "clay controls".

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

# Clay Policy Guardrails ## Overview Policy enforcement and guardrails for Clay data enrichment pipelines. Clay processes personal and business data at scale, requiring strict controls around credit spending, data privacy compliance, input validation, and export restrictions. ## Prerequisites - Clay integration in production or pre-production - Understanding of GDPR/CCPA requirements - Credit budget defined by management - Data classification policy for your organization ## Instructions ### Step 1: Credit Spending Guardrails ```typescript // src/clay/policies/credit-policy.ts interface CreditPolicy { dailyLimit: number; perTableLimit: number; perBatchLimit: number; alertThresholdPct: number; hardStopEnabled: boolean; } const CREDIT_POLICIES: Record<string, CreditPolicy> = { conservative: { dailyLimit: 200, perTableLimit: 500, perBatchLimit: 100, alertThresholdPct: 70, hardStopEnabled: true, }, standard: { dailyLimit: 500, perTableLimit: 2000, perBatchLimit: 500, alertThresholdPct: 80, hardStopEnabled: true, }, aggressive: { dailyLimit: 2000, perTableLimit: 10000, perBatchLimit: 2000, alertThresholdPct: 90, hardStopEnabled: false, // Alert only, don't stop }, }; class CreditPolicyEnforcer { private dailyUsed = 0; private tableUsage = new Map<string, number>(); constructor(private policy: CreditPolicy) {} checkBatch(tableId: string, rowCount: number, creditsPerRow: number): { ...

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

clay-data-handling

Implement GDPR/CCPA-compliant data handling for Clay enrichment pipelines. Use when handling PII from enrichments, implementing data retention policies, or ensuring regulatory compliance for Clay-enriched lead data. Trigger with phrases like "clay data", "clay PII", "clay GDPR", "clay data retention", "clay privacy", "clay CCPA", "clay compliance".

2,266 Updated today
jeremylongshore
AI & Automation Featured

clay-observability

Monitor Clay enrichment pipeline health, credit consumption, and data quality metrics. Use when setting up dashboards for Clay operations, configuring alerts for credit burn, or tracking enrichment success rates. Trigger with phrases like "clay monitoring", "clay metrics", "clay observability", "monitor clay", "clay alerts", "clay dashboard", "clay credit tracking".

2,266 Updated today
jeremylongshore
AI & Automation Featured

clay-reliability-patterns

Build fault-tolerant Clay integrations with circuit breakers, dead letter queues, and graceful degradation. Use when building production Clay pipelines that need resilience, implementing retry strategies, or adding fault tolerance to enrichment workflows. Trigger with phrases like "clay reliability", "clay circuit breaker", "clay resilience", "clay fallback", "clay fault tolerance", "clay dead letter queue".

2,266 Updated today
jeremylongshore
AI & Automation Featured

clay-rate-limits

Handle Clay rate limits, webhook throttling, and credit pacing strategies. Use when hitting 429 errors, managing webhook submission rates, or optimizing throughput within Clay's plan limits. Trigger with phrases like "clay rate limit", "clay throttling", "clay 429", "clay slow", "clay records per hour".

2,266 Updated today
jeremylongshore
AI & Automation Featured

clay-load-scale

Scale Clay enrichment pipelines for high-volume processing (10K-100K+ leads/month). Use when planning capacity for large enrichment runs, optimizing batch processing, or designing high-volume Clay architectures. Trigger with phrases like "clay scale", "clay high volume", "clay large batch", "clay capacity planning", "clay 100k leads", "clay bulk enrichment".

2,266 Updated today
jeremylongshore