Implement Retell AI lint rules, policy enforcement, and automated guardrails. Use when setting up code quality rules for Retell AI integrations, implementing pre-commit hooks, or configuring CI policy checks for Retell AI best practices. Trigger with phrases like "retellai policy", "retellai lint", "retellai guardrails", "retellai best practices check", "retellai eslint".
View on GitHubjeremylongshore/claude-code-plugins-plus-skills
retellai-pack
plugins/saas-packs/retellai-pack/skills/retellai-policy-guardrails/SKILL.md
February 1, 2026
Select agents to install to:
npx add-skill https://github.com/jeremylongshore/claude-code-plugins-plus-skills/blob/main/plugins/saas-packs/retellai-pack/skills/retellai-policy-guardrails/SKILL.md -a claude-code --skill retellai-policy-guardrailsInstallation paths:
.claude/skills/retellai-policy-guardrails/# Retell AI Policy & Guardrails
## Overview
Automated policy enforcement and guardrails for Retell AI integrations.
## Prerequisites
- ESLint configured in project
- Pre-commit hooks infrastructure
- CI/CD pipeline with policy checks
- TypeScript for type enforcement
## ESLint Rules
### Custom Retell AI Plugin
```javascript
// eslint-plugin-retellai/rules/no-hardcoded-keys.js
module.exports = {
meta: {
type: 'problem',
docs: {
description: 'Disallow hardcoded Retell AI API keys',
},
fixable: 'code',
},
create(context) {
return {
Literal(node) {
if (typeof node.value === 'string') {
if (node.value.match(/^sk_(live|test)_[a-zA-Z0-9]{24,}/)) {
context.report({
node,
message: 'Hardcoded Retell AI API key detected',
});
}
}
},
};
},
};
```
### ESLint Configuration
```javascript
// .eslintrc.js
module.exports = {
plugins: ['retellai'],
rules: {
'retellai/no-hardcoded-keys': 'error',
'retellai/require-error-handling': 'warn',
'retellai/use-typed-client': 'warn',
},
};
```
## Pre-Commit Hooks
```yaml
# .pre-commit-config.yaml
repos:
- repo: local
hooks:
- id: retellai-secrets-check
name: Check for Retell AI secrets
entry: bash -c 'git diff --cached --name-only | xargs grep -l "sk_live_" && exit 1 || exit 0'
language: system
pass_filenames: false
- id: retellai-config-validate
name: Validate Retell AI configuration
entry: node scripts/validate-retellai-config.js
language: node
files: '\.retellai\.json$'
```
## TypeScript Strict Patterns
```typescript
// Enforce typed configuration
interface Retell AIStrictConfig {
apiKey: string; // Required
environment: 'development' | 'staging' | 'production'; // Enum
timeout: number; // Required number, not optional
retries: number;
}
// Disallow any in Retell AI code
// @ts-expect-e