[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6H5JBTE6NVPYY4APCRQMSQM":3,"skill-same:01M6H5JBTE6NVPYY4APCRQMSQM":69},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":48,"commitSha":49,"skillDirectory":50,"forksCount":51,"repositoryHtmlUrl":52,"repositoryHomepageUrl":6,"ownerHtmlUrl":53,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":54,"install":55,"resources":68},"01M6H5JBTE6NVPYY4APCRQMSQM","clay-policy-guardrails",null,"Implement Clay lint rules, policy enforcement, and automated guardrails.\nUse when setting up code quality rules for Clay integrations, implementing\npre-commit hooks, or configuring CI policy checks for Clay best practices.\nTrigger with phrases like \"clay policy\", \"clay lint\",\n\"clay guardrails\", \"clay best practices check\", \"clay eslint\".","micsapp\u002Fmicstec-skills","micsapp","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F82411001?v=4","01M6GWCFQ6D3PV8EHNY62NN5VW","01M6GWCFVE1PA5HG0DKC7AMFJ3",4,"MIT","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fclaude-code\u002Fplugins-plus-skills\u002Fplugins\u002Fsaas-packs\u002Fclay-pack\u002Fskills\u002Fclay-policy-guardrails\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"policy","clay","Guardrails","clay policy guardrails","lint rules","openclaw","implementing","io","enforcement","hooks","up","edit","write","read","integrations","Bash","ci","code","code quality","commit","2026-11-10 10:12:30",false,"---\nname: clay-policy-guardrails\ndescription: |\n  Implement Clay lint rules, policy enforcement, and automated guardrails.\n  Use when setting up code quality rules for Clay integrations, implementing\n  pre-commit hooks, or configuring CI policy checks for Clay best practices.\n  Trigger with phrases like \"clay policy\", \"clay lint\",\n  \"clay guardrails\", \"clay best practices check\", \"clay eslint\".\nallowed-tools: Read, Write, Edit, Bash(npx:*)\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\ncompatible-with: claude-code, codex, openclaw\n---\n# Clay Policy Guardrails\n\n## Overview\nPolicy enforcement and guardrails for Clay data enrichment pipelines. Clay processes personal and business data at scale, requiring strict controls around data handling, credit spending, and compliance with data privacy regulations.\n\n## Prerequisites\n- Clay API access with admin permissions\n- Understanding of data privacy regulations (GDPR, CCPA)\n- Credit monitoring infrastructure\n\n## Instructions\n\n### Step 1: Enforce Credit Spending Limits\n\nPrevent runaway enrichment costs with per-user and per-table spending caps.\n\n```python\nclass CreditPolicy:\n    LIMITS = {\n        \"per_table_max\": 10000,  # 10000: 10 seconds in ms\n        \"per_user_daily\": 5000,  # 5000: 5 seconds in ms\n        \"per_enrichment_column\": 2000,  # 2000: 2 seconds in ms\n        \"alert_threshold_pct\": 80\n    }\n\n    def check_table_budget(self, table_id: str, rows_to_process: int, credits_per_row: int):\n        estimated = rows_to_process * credits_per_row\n        used = self.get_table_usage(table_id)\n        if used + estimated > self.LIMITS[\"per_table_max\"]:\n            raise PolicyViolation(\n                f\"Table {table_id} would exceed credit limit: \"\n                f\"{used} used + {estimated} requested > {self.LIMITS['per_table_max']}\"\n            )\n        if (used + estimated) \u002F self.LIMITS[\"per_table_max\"] > self.LIMITS[\"alert_threshold_pct\"] \u002F 100:\n            self.alert(f\"Table {table_id} at {((used + estimated) \u002F self.LIMITS['per_table_max']) * 100:.0f}% of budget\")\n```\n\n### Step 2: Data Privacy Compliance Filters\n\nBlock enrichment of personal data fields that violate privacy policies.\n\n```python\nBLOCKED_ENRICHMENT_FIELDS = [\n    \"ssn\", \"social_security\", \"date_of_birth\", \"dob\",\n    \"home_address\", \"personal_phone\", \"personal_email\",\n    \"medical_history\", \"financial_records\"\n]\n\ndef validate_enrichment_request(columns_to_enrich: list[str]) -> list[str]:\n    violations = []\n    for col in columns_to_enrich:\n        col_lower = col.lower().replace(\" \", \"_\")\n        if any(blocked in col_lower for blocked in BLOCKED_ENRICHMENT_FIELDS):\n            violations.append(f\"Blocked field: {col} (privacy policy)\")\n    if violations:\n        raise PolicyViolation(f\"Data privacy violations: {violations}\")\n    return columns_to_enrich\n```\n\n### Step 3: Row-Level Data Validation Before Enrichment\n\nPre-validate input data to prevent wasting credits on invalid rows.\n\n```python\nimport re\n\ndef validate_rows_for_enrichment(rows: list[dict], enrichment_type: str) -> tuple[list, list]:\n    valid, rejected = [], []\n    for row in rows:\n        if enrichment_type == \"email_enrichment\":\n            email = row.get(\"email\", \"\")\n            if not re.match(r'^[^@]+@[^@]+\\.[^@]+$', email):\n                rejected.append({\"row\": row, \"reason\": \"invalid email format\"})\n                continue\n        elif enrichment_type == \"company_enrichment\":\n            domain = row.get(\"domain\", \"\")\n            if not domain or len(domain) \u003C 4:\n                rejected.append({\"row\": row, \"reason\": \"missing or invalid domain\"})\n                continue\n        valid.append(row)\n    return valid, rejected\n```\n\n### Step 4: Export and Retention Policies\n\nControl how enriched data can be exported and how long it is retained.\n\n```python\nclass DataRetentionPolicy:\n    RETENTION_DAYS = {\n        \"enrichment_results\": 90,\n        \"raw_input_data\": 30,\n        \"export_logs\": 365  # 365 days = 1 year\n    }\n\n    def enforce_retention(self, table_id: str):\n        for data_type, max_days in self.RETENTION_DAYS.items():\n            cutoff = datetime.now() - timedelta(days=max_days)\n            deleted = self.delete_older_than(table_id, data_type, cutoff)\n            if deleted > 0:\n                self.log_retention_action(table_id, data_type, deleted)\n\n    def validate_export(self, table_id: str, export_format: str, destination: str):\n        allowed_formats = [\"csv\", \"json\"]\n        if export_format not in allowed_formats:\n            raise PolicyViolation(f\"Export format {export_format} not allowed\")\n        if \"personal\" in self.get_table_tags(table_id):\n            raise PolicyViolation(\"Tables tagged 'personal' cannot be exported\")\n```\n\n## Error Handling\n| Issue | Cause | Solution |\n|-------|-------|----------|\n| Credit overrun | No spending limits | Implement per-table and per-user caps |\n| Privacy violation | Enriching PII fields | Block sensitive field enrichment |\n| Wasted credits | Invalid input rows | Pre-validate before enrichment |\n| Data retention breach | No cleanup policy | Automate retention enforcement |\n\n## Examples\n\n### Policy Check Before Enrichment\n```python\npolicy = CreditPolicy()\nvalid_rows, rejected = validate_rows_for_enrichment(rows, \"email_enrichment\")\npolicy.check_table_budget(table_id, len(valid_rows), credits_per_row=2)\n# Proceed only after all checks pass\n```\n\n## Resources\n- [Clay Security](https:\u002F\u002Fdocs.clay.com\u002Fsecurity)\n- [GDPR Compliance](https:\u002F\u002Fgdpr.eu)\n\n## Output\n\n- Configuration files or code changes applied to the project\n- Validation report confirming correct implementation\n- Summary of changes made and their rationale","# Clay Policy Guardrails\n\n## Overview\nPolicy enforcement and guardrails for Clay data enrichment pipelines. Clay processes personal and business data at scale, requiring strict controls around data handling, credit spending, and compliance with data privacy regulations.\n\n## Prerequisites\n- Clay API access with admin permissions\n- Understanding of data privacy regulations (GDPR, CCPA)\n- Credit monitoring infrastructure\n\n## Instructions\n\n### Step 1: Enforce Credit Spending Limits\n\nPrevent runaway enrichment costs with per-user and per-table spending caps.\n\n```python\nclass CreditPolicy:\n    LIMITS = {\n        \"per_table_max\": 10000,  # 10000: 10 seconds in ms\n        \"per_user_daily\": 5000,  # 5000: 5 seconds in ms\n        \"per_enrichment_column\": 2000,  # 2000: 2 seconds in ms\n        \"alert_threshold_pct\": 80\n    }\n\n    def check_table_budget(self, table_id: str, rows_to_process: int, credits_per_row: int):\n        estimated = rows_to_process * credits_per_row\n        used = self.get_table_usage(table_id)\n        if used + estimated > self.LIMITS[\"per_table_max\"]:\n            raise PolicyViolation(\n                f\"Table {table_id} would exceed credit limit: \"\n                f\"{used} used + {estimated} requested > {self.LIMITS['per_table_max']}\"\n            )\n        if (used + estimated) \u002F self.LIMITS[\"per_table_max\"] > self.LIMITS[\"alert_threshold_pct\"] \u002F 100:\n            self.alert(f\"Table {table_id} at {((used + estimated) \u002F self.LIMITS['per_table_max']) * 100:.0f}% of budget\")\n```\n\n### Step 2: Data Privacy Compliance Filters\n\nBlock enrichment of personal data fields that violate privacy policies.\n\n```python\nBLOCKED_ENRICHMENT_FIELDS = [\n    \"ssn\", \"social_security\", \"date_of_birth\", \"dob\",\n    \"home_address\", \"personal_phone\", \"personal_email\",\n    \"medical_history\", \"financial_records\"\n]\n\ndef validate_enrichment_request(columns_to_enrich: list[str]) -> list[str]:\n    violations = []\n    for col in columns_to_enrich:\n        col_lower = col.lower().replace(\" \", \"_\")\n        if any(blocked in col_lower for blocked in BLOCKED_ENRICHMENT_FIELDS):\n            violations.append(f\"Blocked field: {col} (privacy policy)\")\n    if violations:\n        raise PolicyViolation(f\"Data privacy violations: {violations}\")\n    return columns_to_enrich\n```\n\n### Step 3: Row-Level Data Validation Before Enrichment\n\nPre-validate input data to prevent wasting credits on invalid rows.\n\n```python\nimport re\n\ndef validate_rows_for_enrichment(rows: list[dict], enrichment_type: str) -> tuple[list, list]:\n    valid, rejected = [], []\n    for row in rows:\n        if enrichment_type == \"email_enrichment\":\n            email = row.get(\"email\", \"\")\n            if not re.match(r'^[^@]+@[^@]+\\.[^@]+$', email):\n                rejected.append({\"row\": row, \"reason\": \"invalid email format\"})\n                continue\n        elif enrichment_type == \"company_enrichment\":\n            domain = row.get(\"domain\", \"\")\n            if not domain or len(domain) \u003C 4:\n                rejected.append({\"row\": row, \"reason\": \"missing or invalid domain\"})\n                continue\n        valid.append(row)\n    return valid, rejected\n```\n\n### Step 4: Export and Retention Policies\n\nControl how enriched data can be exported and how long it is retained.\n\n```python\nclass DataRetentionPolicy:\n    RETENTION_DAYS = {\n        \"enrichment_results\": 90,\n        \"raw_input_data\": 30,\n        \"export_logs\": 365  # 365 days = 1 year\n    }\n\n    def enforce_retention(self, table_id: str):\n        for data_type, max_days in self.RETENTION_DAYS.items():\n            cutoff = datetime.now() - timedelta(days=max_days)\n            deleted = self.delete_older_than(table_id, data_type, cutoff)\n            if deleted > 0:\n                self.log_retention_action(table_id, data_type, deleted)\n\n    def validate_export(self, table_id: str, export_format: str, destination: str):\n        allowed_formats = [\"csv\", \"json\"]\n        if export_format not in allowed_formats:\n            raise PolicyViolation(f\"Export format {export_format} not allowed\")\n        if \"personal\" in self.get_table_tags(table_id):\n            raise PolicyViolation(\"Tables tagged 'personal' cannot be exported\")\n```\n\n## Error Handling\n| Issue | Cause | Solution |\n|-------|-------|----------|\n| Credit overrun | No spending limits | Implement per-table and per-user caps |\n| Privacy violation | Enriching PII fields | Block sensitive field enrichment |\n| Wasted credits | Invalid input rows | Pre-validate before enrichment |\n| Data retention breach | No cleanup policy | Automate retention enforcement |\n\n## Examples\n\n### Policy Check Before Enrichment\n```python\npolicy = CreditPolicy()\nvalid_rows, rejected = validate_rows_for_enrichment(rows, \"email_enrichment\")\npolicy.check_table_budget(table_id, len(valid_rows), credits_per_row=2)\n# Proceed only after all checks pass\n```\n\n## Resources\n- [Clay Security](https:\u002F\u002Fdocs.clay.com\u002Fsecurity)\n- [GDPR Compliance](https:\u002F\u002Fgdpr.eu)\n\n## Output\n\n- Configuration files or code changes applied to the project\n- Validation report confirming correct implementation\n- Summary of changes made and their rationale",{"name":5,"author":43,"license":14,"version":44,"description":45,"allowed-tools":46,"compatible-with":47},"Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Implement Clay lint rules, policy enforcement, and automated guardrails.\nUse when setting up code quality rules for Clay integrations, implementing\npre-commit hooks, or configuring CI policy checks for Clay best practices.\nTrigger with phrases like \"clay policy\", \"clay lint\",\n\"clay guardrails\", \"clay best practices check\", \"clay eslint\".\n","Read, Write, Edit, Bash(npx:*)","claude-code, codex, openclaw","master","3f5d983eb4ef375b749adcd6b07ec03bd82ae8a8","claude-code\u002Fplugins-plus-skills\u002Fplugins\u002Fsaas-packs\u002Fclay-pack\u002Fskills\u002Fclay-policy-guardrails",0,"https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills","https:\u002F\u002Fgithub.com\u002Fmicsapp","2026-03-20 11:24:18",{"source":8,"skillName":5,"commands":56,"prompt":66,"zipAvailable":67},[57,60,63],{"tool":58,"command":59},"npx","npx skills add micsapp\u002Fmicstec-skills --skill clay-policy-guardrails",{"tool":61,"command":62},"bunx","bunx skills add micsapp\u002Fmicstec-skills --skill clay-policy-guardrails",{"tool":64,"command":65},"pnpm","pnpm dlx skills add micsapp\u002Fmicstec-skills --skill clay-policy-guardrails","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fclaude-code\u002Fplugins-plus-skills\u002Fplugins\u002Fsaas-packs\u002Fclay-pack\u002Fskills\u002Fclay-policy-guardrails\u002FSKILL.md",true,[],[70,107,134,154,174,198],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":86,"publishedAt":38},"01M6HBTJ02FXBFG9NYEHHYAP52","azure-apim-architecture","Analyzes and explains Azure API Management architecture decisions for enterprise API marketplace implementations using VNet Internal mode, Front Door, hybrid authentication, and multi-environment strategies. Use when discussing APIM component selection, network topology, cost optimization, or comparing alternatives like workspaces vs instances, VNet Internal vs External mode, or Front Door vs Application Gateway.","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fcopilot-cli\u002Fcopilot-agent-skills\u002F.github\u002Fskills\u002Fazure-apim-architecture\u002FSKILL.md",[76,81],{"categoryNo":77,"categoryName":78,"taxonomyType":79,"taxonomyTypeDesc":80},"01JBSEEDCAT000000000000010","后端与接口","SCENARIO","使用场景",{"categoryNo":82,"categoryName":83,"taxonomyType":84,"taxonomyTypeDesc":85},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106],"architecture","azure","azure apim architecture","component","authentication","gateway","topology","Optimization","network","api","team","environment","multi-environment","workspaces","instances","selection","strategies","azure api management","mode","for",{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":121,"publishedAt":38},"01M6HBT7J4H082JEEA670B3EQ9","apiops-deployment","Guides deployment of Azure API Management infrastructure using Infrastructure as Code (Bicep\u002FTerraform), CI\u002FCD pipelines (GitHub Actions\u002FAzure DevOps), and APIOps workflows. Use when deploying APIM, creating pipelines, or implementing dev→test→prod promotion strategies.","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fcopilot-cli\u002Fcopilot-agent-skills\u002F.github\u002Fskills\u002Fapiops-deployment\u002FSKILL.md",[113,114,117,120],{"categoryNo":77,"categoryName":78,"taxonomyType":79,"taxonomyTypeDesc":80},{"categoryNo":115,"categoryName":116,"taxonomyType":79,"taxonomyTypeDesc":80},"01JBSEEDCAT000000000000011","运维与部署",{"categoryNo":118,"categoryName":119,"taxonomyType":79,"taxonomyTypeDesc":80},"01JBSEEDCAT000000000000023","Skill与智能体开发",{"categoryNo":82,"categoryName":83,"taxonomyType":84,"taxonomyTypeDesc":85},[122,123,124,125,88,126,35,127,128,34,129,130,96,97,103,131,132,104,133,24],"deployment","apiops deployment","workflows","azure devops","infrastructure","infrastructure as code","actions","github actions","github-actions","as","guides","CI\u002FCD",{"skillNo":135,"name":136,"nameZh":6,"description":137,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":138,"categories":139,"keywords":141,"publishedAt":38},"01M6HBT2HEA23THNE9E00GYQBE","apim-policy-authoring","Creates production-ready Azure API Management policy XML for authentication (OAuth 2.0, JWT validation, subscription keys), rate limiting, CORS configuration, error handling, and API transformations. Use when implementing API security, access control, or request\u002Fresponse processing logic.","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fcopilot-cli\u002Fcopilot-agent-skills\u002F.github\u002Fskills\u002Fapim-policy-authoring\u002FSKILL.md",[140],{"categoryNo":77,"categoryName":78,"taxonomyType":79,"taxonomyTypeDesc":80},[18,142,143,144,88,91,96,97,145,146,147,148,149,150,151,104,152,153,24,106],"authoring","apim policy authoring","security","access","use","ready","api security","Access Control","error","processing","cors configuration","production-ready",{"skillNo":155,"name":156,"nameZh":6,"description":157,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":158,"categories":159,"keywords":162,"publishedAt":38},"01M6HBSY65SB29J9WE9KYD0K6T","api-security-review","Reviews Azure API Management configurations for security vulnerabilities, OWASP API Security Top 10 compliance, VNet Internal mode validation, Private Link verification, and Azure Security Benchmark alignment. Use when performing security audits, pre-deployment validation, or compliance reviews.","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fcopilot-cli\u002Fcopilot-agent-skills\u002F.github\u002Fskills\u002Fapi-security-review\u002FSKILL.md",[160,161],{"categoryNo":77,"categoryName":78,"taxonomyType":79,"taxonomyTypeDesc":80},{"categoryNo":82,"categoryName":83,"taxonomyType":84,"taxonomyTypeDesc":85},[163,144,164,96,148,165,88,122,166,167,168,169,97,170,104,171,172,173,105,106],"review","security review","api security review","benchmark","verification","owasp","owasp-api","alignment","azure security","reviews","top",{"skillNo":175,"name":176,"nameZh":6,"description":177,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":178,"categories":179,"keywords":180,"publishedAt":38},"01M6HBSRW4PDFE6K4F8JYPZQ05","jira-cli","Interact with Jira from the command line to create, list, view, edit, and transition issues, manage sprints and epics, and perform common Jira workflows. Use when the user asks about Jira tasks, tickets, issues, sprints, or needs to manage project work items.","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fcopilot-cli\u002Fawesome-copilot-agents\u002Fskills\u002Fjira-cli\u002FSKILL.md",[],[181,182,183,124,184,185,186,187,96,188,189,190,29,191,192,193,194,195,196,197],"cli","jira","jira cli","init","tasks","create","issues","common","work","command","list","view","project","project work","token","line","sprints",{"skillNo":199,"name":200,"nameZh":6,"description":201,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":202,"categories":203,"keywords":204,"publishedAt":38},"01M6HBSNS3JHMW603G47TWE31H","calculator","Performs arbitrary-precision arithmetic calculations including addition, subtraction, multiplication, division, and exponents. Use when the user asks to calculate, compute, or evaluate math expressions, or when precise decimal arithmetic is needed to avoid floating-point errors.","https:\u002F\u002Fgithub.com\u002Fmicsapp\u002Fmicstec-skills\u002Fblob\u002Fmaster\u002Fcopilot-cli\u002Fawesome-copilot-agents\u002Fskills\u002Fcalculator\u002FSKILL.md",[],[200,205,206,207,208,209,210,146,211,212],"npm","js","calculate","node","math","user","compute","errors"]