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,944 stars 440 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
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category