/clay-pack:clay-enterprise-rbacfrom clay-pack
Configures Clay workspace roles (Admin, Member, Viewer), team access control, credit budget allocation, and API key isolation for enterprise plans.
Ships in clay-pack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Control access to Clay tables, enrichment credits, and integrations at the team level. Clay uses a workspace model where team members are assigned Admin, Member, or Viewer roles. This skill covers role assignment, credit budget allocation, API key isolation, and audit procedures.
Clay has three built-in roles with fixed permissions:
| Capability | Admin | Member | Viewer |
|---|---|---|---|
| Manage workspace members | Yes | No | No |
| Manage billing and credits | Yes | No | No |
| Create/delete tables | Yes | Yes | No |
| Run enrichments | Yes | Yes | No |
| Configure integrations | Yes | No | No |
| Export data | Yes | Yes | Yes |
| View all tables | Yes | Yes | Yes |
Recommended role assignments:
roles:
admin:
assign_to:
- Revenue Operations Lead
- GTM Engineering Lead
why: "Controls billing, integrations, and team access"
member:
assign_to:
- SDRs building prospect lists
- Growth engineers building pipelines
- Marketing ops running enrichment campaigns
why: "Can create tables and run enrichments but can't change billing or integrations"
viewer:
assign_to:
- Sales managers reviewing lead quality
- Executives checking pipeline metrics
- Finance reviewing credit usage
why: "Read-only access to enriched data and exports"
In Clay UI: Settings > Members > Invite
Best practices:
Create separate API keys for each downstream system to enable independent revocation:
api_keys:
crm-sync-prod:
purpose: "HubSpot CRM sync from Clay"
used_by: "HTTP API column in Outbound Leads table"
rotation: quarterly
outbound-instantly:
purpose: "Push qualified leads to Instantly.ai"
used_by: "HTTP API column for outreach"
rotation: quarterly
internal-dashboard:
purpose: "Pull enrichment metrics for internal dashboard"
used_by: "Cron job reading Clay table stats"
rotation: quarterly
ci-testing:
purpose: "Integration tests in CI pipeline"
used_by: "GitHub Actions workflow"
rotation: on-demand
Since Clay doesn't have per-user credit budgets natively, implement controls at the table level:
// src/clay/budget-controls.ts
interface TableBudget {
tableId: string;
tableName: string;
maxRows: number; // Prevent over-enrichment
autoEnrich: boolean; // Control automatic processing
owner: string; // Team member responsible
monthlyCreditsEstimate: number;
}
const TABLE_BUDGETS: TableBudget[] = [
{
tableId: 'outbound-leads',
tableName: 'Outbound Leads',
maxRows: 5000,
autoEnrich: true,
owner: '[email protected]',
monthlyCreditsEstimate: 3000,
},
{
tableId: 'event-attendees',
tableName: 'Event Attendees',
maxRows: 1000,
autoEnrich: false, // Manual trigger only
owner: '[email protected]',
monthlyCreditsEstimate: 600,
},
{
tableId: 'inbound-leads',
tableName: 'Inbound Leads',
maxRows: 2000,
autoEnrich: true,
owner: '[email protected]',
monthlyCreditsEstimate: 1200,
},
];
function auditBudgets(budgets: TableBudget[]): void {
const totalEstimate = budgets.reduce((sum, b) => sum + b.monthlyCreditsEstimate, 0);
console.log(`=== Clay Credit Budget Audit ===`);
for (const b of budgets) {
console.log(` ${b.tableName}: ${b.maxRows} rows, ~${b.monthlyCreditsEstimate} credits/mo (owner: ${b.owner})`);
}
console.log(` Total monthly estimate: ${totalEstimate} credits`);
}
## Clay Workspace Access Audit Checklist
- [ ] Review all workspace members — remove former employees
- [ ] Verify role assignments match current job functions
- [ ] Check API key usage — revoke unused keys
- [ ] Review table access — archive unused tables
- [ ] Audit credit usage by table — identify waste
- [ ] Verify provider API key connections are current
- [ ] Update API key rotation log
- [ ] Review and update table row limits
- [ ] Check webhook submission counts (approaching 50K?)
- [ ] Document any new tables or integrations added
| Issue | Cause | Solution |
|---|---|---|
403 on table creation | User is Viewer role | Upgrade to Member role |
| Credits exhausted mid-campaign | No budget cap on table | Set max_rows on table |
| Integration key rejected | Key was revoked | Generate new key, update integration config |
| Unauthorized data export | Viewer exported sensitive data | Review export audit log |
| Former employee still has access | No offboarding process | Immediate removal on departure |
For migration strategies, see clay-migration-deep-dive.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
clay, rbac, workspace-permissions, credit-budget, api-key-isolation
30 skills in this plugin
/clay-advanced-troubleshootingDeep-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".
/clay-architecture-variantsChoose and implement Clay integration architecture for different scales and use cases.
Use when designing new Clay integrations, comparing direct vs queue-based vs event-driven,
or planning architecture for Clay-powered data operations.
Trigger with phrases like "clay architecture", "clay blueprint",
"how to structure clay", "clay integration design", "clay event-driven".
/clay-ci-integrationConfigure CI/CD pipelines for Clay integrations with automated testing and validation.
Use when setting up automated tests for Clay webhook handlers, validating
enrichment data quality in CI, or integrating Clay checks into your build process.
Trigger with phrases like "clay CI", "clay GitHub Actions",
"clay automated tests", "CI clay", "test clay integration".
/clay-common-errorsDiagnose and fix the most common Clay errors and integration issues.
Use when encountering Clay errors, debugging failed enrichments,
or troubleshooting webhook delivery problems.
Trigger with phrases like "clay error", "fix clay", "clay not working",
"debug clay", "clay enrichment failed", "clay webhook error".
/clay-core-workflow-aBuild a complete lead enrichment pipeline using Clay tables, webhooks, and waterfall enrichment.
Use when building lead generation features, enriching prospect lists,
or creating automated data enrichment workflows.
Trigger with phrases like "clay lead enrichment", "clay main workflow",
"enrich contacts in clay", "clay prospect list", "clay enrichment pipeline".
/clay-core-workflow-bUse Claygent AI research and AI-powered personalization to generate outreach copy from enriched data.
Use when writing personalized email openers, running Claygent research prompts,
or configuring AI columns for campaign personalization at scale.
Trigger with phrases like "clay AI personalization", "claygent research",
"clay outreach copy", "clay secondary workflow", "clay AI column".
npx claudepluginhub flight505/skill-forge --plugin clay-packOther plugins' skills for the same job