[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6F6B8JD144E2200CKSKJYDW":3,"skill-same:01M6F6B8JD144E2200CKSKJYDW":75},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":43,"linkOnly":44,"markdownContent":45,"markdownBody":46,"frontMatter":47,"refName":52,"commitSha":53,"skillDirectory":54,"forksCount":55,"repositoryHtmlUrl":56,"repositoryHomepageUrl":6,"ownerHtmlUrl":57,"ownerBlogUrl":58,"ownerDescription":59,"updatedAt":60,"install":61,"resources":74},"01M6F6B8JD144E2200CKSKJYDW","deepgram-security-basics",null,"Apply Deepgram security best practices for API key management and data protection.\nUse when securing Deepgram integrations, implementing key rotation,\nor auditing security configurations.\nTrigger with phrases like \"deepgram security\", \"deepgram API key security\",\n\"secure deepgram\", \"deepgram key rotation\", \"deepgram data protection\".","Dicklesworthstone\u002Fpi_agent_rust","Dicklesworthstone","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F35050222?v=4","01M6CG26AR942CSVMN1M5E3DSE","Jeff Emanuel","01M6CG26EPP71PSHW1VDS71121",1992,"MIT","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fdeepgram-pack\u002Fskills\u002Fdeepgram-security-basics\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42],"security","deepgram security basics","deepgram","basics","when","for","implementing","rotation","with","key management","trigger","io","protection","use","read","curl","integrations","Bash","api","data","data protection","security best practices","best practices","secure","2026-11-10 10:12:30",false,"---\nname: deepgram-security-basics\ndescription: |\n  Apply Deepgram security best practices for API key management and data protection.\n  Use when securing Deepgram integrations, implementing key rotation,\n  or auditing security configurations.\n  Trigger with phrases like \"deepgram security\", \"deepgram API key security\",\n  \"secure deepgram\", \"deepgram key rotation\", \"deepgram data protection\".\nallowed-tools: Read, Grep, Bash(curl:*)\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\n---\n\n# Deepgram Security Basics\n\n## Overview\nImplement security best practices for Deepgram API integration including key management, data protection, and access control.\n\n## Prerequisites\n- Deepgram Console access\n- Understanding of environment variables\n- Knowledge of secret management\n\n## Security Checklist\n\n- [ ] API keys stored in environment variables or secret manager\n- [ ] Different keys for development\u002Fstaging\u002Fproduction\n- [ ] Key rotation schedule established\n- [ ] Audit logging enabled\n- [ ] Network access restricted\n- [ ] Data handling compliant with regulations\n\n## Instructions\n\n### Step 1: Secure API Key Storage\nNever hardcode API keys in source code.\n\n### Step 2: Implement Key Rotation\nCreate a process for regular key rotation.\n\n### Step 3: Set Up Access Control\nConfigure project-level permissions.\n\n### Step 4: Enable Audit Logging\nTrack API usage and access patterns.\n\n## Examples\n\n### Environment Variable Configuration\n```bash\n# .env.example (commit this)\nDEEPGRAM_API_KEY=your-api-key-here\n\n# .env (NEVER commit this)\nDEEPGRAM_API_KEY=actual-secret-key\n\n# .gitignore\n.env\n.env.local\n.env.*.local\n```\n\n### Secret Manager Integration (AWS)\n```typescript\n\u002F\u002F lib\u002Fsecrets.ts\nimport { SecretsManager } from '@aws-sdk\u002Fclient-secrets-manager';\n\nconst client = new SecretsManager({ region: 'us-east-1' });\n\nlet cachedKey: string | null = null;\nlet cacheExpiry = 0;\n\nexport async function getDeepgramKey(): Promise\u003Cstring> {\n  \u002F\u002F Use cached key if not expired\n  if (cachedKey && Date.now() \u003C cacheExpiry) {\n    return cachedKey;\n  }\n\n  const response = await client.getSecretValue({\n    SecretId: 'deepgram\u002Fapi-key',\n  });\n\n  if (!response.SecretString) {\n    throw new Error('Deepgram API key not found in Secrets Manager');\n  }\n\n  const secret = JSON.parse(response.SecretString);\n  cachedKey = secret.DEEPGRAM_API_KEY;\n  cacheExpiry = Date.now() + 300000; \u002F\u002F 5 minute cache\n\n  return cachedKey!;\n}\n```\n\n### Secret Manager Integration (GCP)\n```typescript\n\u002F\u002F lib\u002Fsecrets-gcp.ts\nimport { SecretManagerServiceClient } from '@google-cloud\u002Fsecret-manager';\n\nconst client = new SecretManagerServiceClient();\n\nexport async function getDeepgramKey(): Promise\u003Cstring> {\n  const projectId = process.env.GCP_PROJECT_ID;\n  const secretName = `projects\u002F${projectId}\u002Fsecrets\u002Fdeepgram-api-key\u002Fversions\u002Flatest`;\n\n  const [version] = await client.accessSecretVersion({ name: secretName });\n  const payload = version.payload?.data?.toString();\n\n  if (!payload) {\n    throw new Error('Deepgram API key not found');\n  }\n\n  return payload;\n}\n```\n\n### Key Rotation Script\n```typescript\n\u002F\u002F scripts\u002Frotate-key.ts\nimport { createClient } from '@deepgram\u002Fsdk';\n\ninterface KeyRotationResult {\n  oldKeyId: string;\n  newKeyId: string;\n  rotatedAt: Date;\n}\n\nexport async function rotateDeepgramKey(\n  adminKey: string,\n  projectId: string\n): Promise\u003CKeyRotationResult> {\n  const client = createClient(adminKey);\n\n  \u002F\u002F 1. Create new key\n  const { result: newKey, error: createError } = await client.manage.createProjectKey(\n    projectId,\n    {\n      comment: `Rotated key - ${new Date().toISOString()}`,\n      scopes: ['usage:write', 'listen:*'],\n      expiration_date: new Date(Date.now() + 90 * 24 * 60 * 60 * 1000), \u002F\u002F 90 days\n    }\n  );\n\n  if (createError) throw new Error(`Failed to create key: ${createError.message}`);\n\n  \u002F\u002F 2. Test new key\n  const testClient = createClient(newKey.key);\n  const { error: testError } = await testClient.manage.getProjects();\n\n  if (testError) {\n    \u002F\u002F Rollback: delete new key\n    await client.manage.deleteProjectKey(projectId, newKey.key_id);\n    throw new Error('New key validation failed');\n  }\n\n  \u002F\u002F 3. Get old key ID (from current key metadata)\n  const { result: keys } = await client.manage.getProjectKeys(projectId);\n  const oldKey = keys?.api_keys.find(k =>\n    k.comment?.includes('Current production key')\n  );\n\n  \u002F\u002F 4. Update secret manager with new key\n  \u002F\u002F (Implementation depends on your secret manager)\n\n  \u002F\u002F 5. Delete old key after grace period\n  if (oldKey) {\n    console.log(`Old key ${oldKey.key_id} scheduled for deletion`);\n    \u002F\u002F Schedule deletion for later to allow propagation\n  }\n\n  return {\n    oldKeyId: oldKey?.key_id || 'unknown',\n    newKeyId: newKey.key_id,\n    rotatedAt: new Date(),\n  };\n}\n```\n\n### Scoped API Keys\n```typescript\n\u002F\u002F Create keys with minimal required permissions\nconst scopedKeys = {\n  \u002F\u002F Transcription-only key\n  transcription: {\n    scopes: ['listen:*'],\n    comment: 'Read-only transcription key',\n  },\n\n  \u002F\u002F Admin key (for key management only)\n  admin: {\n    scopes: ['manage:*'],\n    comment: 'Administrative access only',\n  },\n\n  \u002F\u002F Usage tracking key\n  usage: {\n    scopes: ['usage:read'],\n    comment: 'Usage monitoring only',\n  },\n};\n\nasync function createScopedKey(\n  adminKey: string,\n  projectId: string,\n  keyType: keyof typeof scopedKeys\n) {\n  const client = createClient(adminKey);\n  const config = scopedKeys[keyType];\n\n  const { result, error } = await client.manage.createProjectKey(\n    projectId,\n    config\n  );\n\n  if (error) throw error;\n  return result;\n}\n```\n\n### Request Sanitization\n```typescript\n\u002F\u002F lib\u002Fsanitize.ts\nexport function sanitizeAudioUrl(url: string): string {\n  const parsed = new URL(url);\n\n  \u002F\u002F Only allow HTTPS\n  if (parsed.protocol !== 'https:') {\n    throw new Error('Only HTTPS URLs are allowed');\n  }\n\n  \u002F\u002F Block internal\u002Flocal URLs\n  const blockedHosts = ['localhost', '127.0.0.1', '0.0.0.0', '::1'];\n  if (blockedHosts.includes(parsed.hostname)) {\n    throw new Error('Local URLs are not allowed');\n  }\n\n  \u002F\u002F Block private IP ranges\n  const privateRanges = [\n    \u002F^10\\.\u002F,\n    \u002F^172\\.(1[6-9]|2[0-9]|3[0-1])\\.\u002F,\n    \u002F^192\\.168\\.\u002F,\n  ];\n\n  if (privateRanges.some(range => range.test(parsed.hostname))) {\n    throw new Error('Private IP addresses are not allowed');\n  }\n\n  return url;\n}\n\nexport function sanitizeTranscriptResponse(response: unknown): unknown {\n  \u002F\u002F Remove any unexpected fields that might contain sensitive data\n  if (typeof response !== 'object' || response === null) {\n    return response;\n  }\n\n  const allowedFields = [\n    'results',\n    'metadata',\n    'channels',\n    'alternatives',\n    'transcript',\n    'confidence',\n    'words',\n    'start',\n    'end',\n  ];\n\n  const sanitized: Record\u003Cstring, unknown> = {};\n\n  for (const [key, value] of Object.entries(response)) {\n    if (allowedFields.includes(key)) {\n      sanitized[key] = value;\n    }\n  }\n\n  return sanitized;\n}\n```\n\n### Audit Logging\n```typescript\n\u002F\u002F lib\u002Faudit.ts\ninterface AuditEvent {\n  timestamp: Date;\n  action: string;\n  projectId?: string;\n  requestId?: string;\n  userId?: string;\n  ipAddress?: string;\n  success: boolean;\n  metadata?: Record\u003Cstring, unknown>;\n}\n\nexport class AuditLogger {\n  private events: AuditEvent[] = [];\n\n  log(event: Omit\u003CAuditEvent, 'timestamp'>) {\n    const fullEvent: AuditEvent = {\n      ...event,\n      timestamp: new Date(),\n    };\n\n    this.events.push(fullEvent);\n\n    \u002F\u002F In production, send to your logging service\n    console.log(JSON.stringify({\n      ...fullEvent,\n      timestamp: fullEvent.timestamp.toISOString(),\n    }));\n  }\n\n  async transcribe(\n    transcribeFn: () => Promise\u003Cunknown>,\n    context: { userId?: string; ipAddress?: string }\n  ) {\n    const startTime = Date.now();\n\n    try {\n      const result = await transcribeFn();\n\n      this.log({\n        action: 'TRANSCRIBE',\n        success: true,\n        userId: context.userId,\n        ipAddress: context.ipAddress,\n        metadata: {\n          durationMs: Date.now() - startTime,\n        },\n      });\n\n      return result;\n    } catch (error) {\n      this.log({\n        action: 'TRANSCRIBE',\n        success: false,\n        userId: context.userId,\n        ipAddress: context.ipAddress,\n        metadata: {\n          error: error instanceof Error ? error.message : 'Unknown error',\n          durationMs: Date.now() - startTime,\n        },\n      });\n\n      throw error;\n    }\n  }\n}\n```\n\n### Data Protection\n```typescript\n\u002F\u002F lib\u002Fdata-protection.ts\nimport crypto from 'crypto';\n\n\u002F\u002F Encrypt transcripts at rest\nexport function encryptTranscript(transcript: string, key: Buffer): string {\n  const iv = crypto.randomBytes(16);\n  const cipher = crypto.createCipheriv('aes-256-gcm', key, iv);\n\n  let encrypted = cipher.update(transcript, 'utf8', 'hex');\n  encrypted += cipher.final('hex');\n\n  const authTag = cipher.getAuthTag();\n\n  return JSON.stringify({\n    iv: iv.toString('hex'),\n    data: encrypted,\n    tag: authTag.toString('hex'),\n  });\n}\n\nexport function decryptTranscript(encrypted: string, key: Buffer): string {\n  const { iv, data, tag } = JSON.parse(encrypted);\n\n  const decipher = crypto.createDecipheriv(\n    'aes-256-gcm',\n    key,\n    Buffer.from(iv, 'hex')\n  );\n\n  decipher.setAuthTag(Buffer.from(tag, 'hex'));\n\n  let decrypted = decipher.update(data, 'hex', 'utf8');\n  decrypted += decipher.final('utf8');\n\n  return decrypted;\n}\n\n\u002F\u002F Redact sensitive information from transcripts\nexport function redactSensitiveData(transcript: string): string {\n  const patterns = [\n    \u002F\u002F Credit card numbers\n    { pattern: \u002F\\b\\d{4}[\\s-]?\\d{4}[\\s-]?\\d{4}[\\s-]?\\d{4}\\b\u002Fg, replacement: '[REDACTED-CC]' },\n    \u002F\u002F SSN\n    { pattern: \u002F\\b\\d{3}[\\s-]?\\d{2}[\\s-]?\\d{4}\\b\u002Fg, replacement: '[REDACTED-SSN]' },\n    \u002F\u002F Phone numbers\n    { pattern: \u002F\\b\\d{3}[\\s-]?\\d{3}[\\s-]?\\d{4}\\b\u002Fg, replacement: '[REDACTED-PHONE]' },\n    \u002F\u002F Email addresses\n    { pattern: \u002F\\b[\\w.-]+@[\\w.-]+\\.\\w+\\b\u002Fg, replacement: '[REDACTED-EMAIL]' },\n  ];\n\n  let redacted = transcript;\n  for (const { pattern, replacement } of patterns) {\n    redacted = redacted.replace(pattern, replacement);\n  }\n\n  return redacted;\n}\n```\n\n## Resources\n- [Deepgram Security Overview](https:\u002F\u002Fdeepgram.com\u002Fsecurity)\n- [API Key Management](https:\u002F\u002Fdevelopers.deepgram.com\u002Fdocs\u002Fapi-key-management)\n- [HIPAA Compliance](https:\u002F\u002Fdeepgram.com\u002Fhipaa)\n- [SOC 2 Compliance](https:\u002F\u002Fdeepgram.com\u002Fsoc2)\n\n## Next Steps\nProceed to `deepgram-prod-checklist` for production deployment checklist.\n","# Deepgram Security Basics\n\n## Overview\nImplement security best practices for Deepgram API integration including key management, data protection, and access control.\n\n## Prerequisites\n- Deepgram Console access\n- Understanding of environment variables\n- Knowledge of secret management\n\n## Security Checklist\n\n- [ ] API keys stored in environment variables or secret manager\n- [ ] Different keys for development\u002Fstaging\u002Fproduction\n- [ ] Key rotation schedule established\n- [ ] Audit logging enabled\n- [ ] Network access restricted\n- [ ] Data handling compliant with regulations\n\n## Instructions\n\n### Step 1: Secure API Key Storage\nNever hardcode API keys in source code.\n\n### Step 2: Implement Key Rotation\nCreate a process for regular key rotation.\n\n### Step 3: Set Up Access Control\nConfigure project-level permissions.\n\n### Step 4: Enable Audit Logging\nTrack API usage and access patterns.\n\n## Examples\n\n### Environment Variable Configuration\n```bash\n# .env.example (commit this)\nDEEPGRAM_API_KEY=your-api-key-here\n\n# .env (NEVER commit this)\nDEEPGRAM_API_KEY=actual-secret-key\n\n# .gitignore\n.env\n.env.local\n.env.*.local\n```\n\n### Secret Manager Integration (AWS)\n```typescript\n\u002F\u002F lib\u002Fsecrets.ts\nimport { SecretsManager } from '@aws-sdk\u002Fclient-secrets-manager';\n\nconst client = new SecretsManager({ region: 'us-east-1' });\n\nlet cachedKey: string | null = null;\nlet cacheExpiry = 0;\n\nexport async function getDeepgramKey(): Promise\u003Cstring> {\n  \u002F\u002F Use cached key if not expired\n  if (cachedKey && Date.now() \u003C cacheExpiry) {\n    return cachedKey;\n  }\n\n  const response = await client.getSecretValue({\n    SecretId: 'deepgram\u002Fapi-key',\n  });\n\n  if (!response.SecretString) {\n    throw new Error('Deepgram API key not found in Secrets Manager');\n  }\n\n  const secret = JSON.parse(response.SecretString);\n  cachedKey = secret.DEEPGRAM_API_KEY;\n  cacheExpiry = Date.now() + 300000; \u002F\u002F 5 minute cache\n\n  return cachedKey!;\n}\n```\n\n### Secret Manager Integration (GCP)\n```typescript\n\u002F\u002F lib\u002Fsecrets-gcp.ts\nimport { SecretManagerServiceClient } from '@google-cloud\u002Fsecret-manager';\n\nconst client = new SecretManagerServiceClient();\n\nexport async function getDeepgramKey(): Promise\u003Cstring> {\n  const projectId = process.env.GCP_PROJECT_ID;\n  const secretName = `projects\u002F${projectId}\u002Fsecrets\u002Fdeepgram-api-key\u002Fversions\u002Flatest`;\n\n  const [version] = await client.accessSecretVersion({ name: secretName });\n  const payload = version.payload?.data?.toString();\n\n  if (!payload) {\n    throw new Error('Deepgram API key not found');\n  }\n\n  return payload;\n}\n```\n\n### Key Rotation Script\n```typescript\n\u002F\u002F scripts\u002Frotate-key.ts\nimport { createClient } from '@deepgram\u002Fsdk';\n\ninterface KeyRotationResult {\n  oldKeyId: string;\n  newKeyId: string;\n  rotatedAt: Date;\n}\n\nexport async function rotateDeepgramKey(\n  adminKey: string,\n  projectId: string\n): Promise\u003CKeyRotationResult> {\n  const client = createClient(adminKey);\n\n  \u002F\u002F 1. Create new key\n  const { result: newKey, error: createError } = await client.manage.createProjectKey(\n    projectId,\n    {\n      comment: `Rotated key - ${new Date().toISOString()}`,\n      scopes: ['usage:write', 'listen:*'],\n      expiration_date: new Date(Date.now() + 90 * 24 * 60 * 60 * 1000), \u002F\u002F 90 days\n    }\n  );\n\n  if (createError) throw new Error(`Failed to create key: ${createError.message}`);\n\n  \u002F\u002F 2. Test new key\n  const testClient = createClient(newKey.key);\n  const { error: testError } = await testClient.manage.getProjects();\n\n  if (testError) {\n    \u002F\u002F Rollback: delete new key\n    await client.manage.deleteProjectKey(projectId, newKey.key_id);\n    throw new Error('New key validation failed');\n  }\n\n  \u002F\u002F 3. Get old key ID (from current key metadata)\n  const { result: keys } = await client.manage.getProjectKeys(projectId);\n  const oldKey = keys?.api_keys.find(k =>\n    k.comment?.includes('Current production key')\n  );\n\n  \u002F\u002F 4. Update secret manager with new key\n  \u002F\u002F (Implementation depends on your secret manager)\n\n  \u002F\u002F 5. Delete old key after grace period\n  if (oldKey) {\n    console.log(`Old key ${oldKey.key_id} scheduled for deletion`);\n    \u002F\u002F Schedule deletion for later to allow propagation\n  }\n\n  return {\n    oldKeyId: oldKey?.key_id || 'unknown',\n    newKeyId: newKey.key_id,\n    rotatedAt: new Date(),\n  };\n}\n```\n\n### Scoped API Keys\n```typescript\n\u002F\u002F Create keys with minimal required permissions\nconst scopedKeys = {\n  \u002F\u002F Transcription-only key\n  transcription: {\n    scopes: ['listen:*'],\n    comment: 'Read-only transcription key',\n  },\n\n  \u002F\u002F Admin key (for key management only)\n  admin: {\n    scopes: ['manage:*'],\n    comment: 'Administrative access only',\n  },\n\n  \u002F\u002F Usage tracking key\n  usage: {\n    scopes: ['usage:read'],\n    comment: 'Usage monitoring only',\n  },\n};\n\nasync function createScopedKey(\n  adminKey: string,\n  projectId: string,\n  keyType: keyof typeof scopedKeys\n) {\n  const client = createClient(adminKey);\n  const config = scopedKeys[keyType];\n\n  const { result, error } = await client.manage.createProjectKey(\n    projectId,\n    config\n  );\n\n  if (error) throw error;\n  return result;\n}\n```\n\n### Request Sanitization\n```typescript\n\u002F\u002F lib\u002Fsanitize.ts\nexport function sanitizeAudioUrl(url: string): string {\n  const parsed = new URL(url);\n\n  \u002F\u002F Only allow HTTPS\n  if (parsed.protocol !== 'https:') {\n    throw new Error('Only HTTPS URLs are allowed');\n  }\n\n  \u002F\u002F Block internal\u002Flocal URLs\n  const blockedHosts = ['localhost', '127.0.0.1', '0.0.0.0', '::1'];\n  if (blockedHosts.includes(parsed.hostname)) {\n    throw new Error('Local URLs are not allowed');\n  }\n\n  \u002F\u002F Block private IP ranges\n  const privateRanges = [\n    \u002F^10\\.\u002F,\n    \u002F^172\\.(1[6-9]|2[0-9]|3[0-1])\\.\u002F,\n    \u002F^192\\.168\\.\u002F,\n  ];\n\n  if (privateRanges.some(range => range.test(parsed.hostname))) {\n    throw new Error('Private IP addresses are not allowed');\n  }\n\n  return url;\n}\n\nexport function sanitizeTranscriptResponse(response: unknown): unknown {\n  \u002F\u002F Remove any unexpected fields that might contain sensitive data\n  if (typeof response !== 'object' || response === null) {\n    return response;\n  }\n\n  const allowedFields = [\n    'results',\n    'metadata',\n    'channels',\n    'alternatives',\n    'transcript',\n    'confidence',\n    'words',\n    'start',\n    'end',\n  ];\n\n  const sanitized: Record\u003Cstring, unknown> = {};\n\n  for (const [key, value] of Object.entries(response)) {\n    if (allowedFields.includes(key)) {\n      sanitized[key] = value;\n    }\n  }\n\n  return sanitized;\n}\n```\n\n### Audit Logging\n```typescript\n\u002F\u002F lib\u002Faudit.ts\ninterface AuditEvent {\n  timestamp: Date;\n  action: string;\n  projectId?: string;\n  requestId?: string;\n  userId?: string;\n  ipAddress?: string;\n  success: boolean;\n  metadata?: Record\u003Cstring, unknown>;\n}\n\nexport class AuditLogger {\n  private events: AuditEvent[] = [];\n\n  log(event: Omit\u003CAuditEvent, 'timestamp'>) {\n    const fullEvent: AuditEvent = {\n      ...event,\n      timestamp: new Date(),\n    };\n\n    this.events.push(fullEvent);\n\n    \u002F\u002F In production, send to your logging service\n    console.log(JSON.stringify({\n      ...fullEvent,\n      timestamp: fullEvent.timestamp.toISOString(),\n    }));\n  }\n\n  async transcribe(\n    transcribeFn: () => Promise\u003Cunknown>,\n    context: { userId?: string; ipAddress?: string }\n  ) {\n    const startTime = Date.now();\n\n    try {\n      const result = await transcribeFn();\n\n      this.log({\n        action: 'TRANSCRIBE',\n        success: true,\n        userId: context.userId,\n        ipAddress: context.ipAddress,\n        metadata: {\n          durationMs: Date.now() - startTime,\n        },\n      });\n\n      return result;\n    } catch (error) {\n      this.log({\n        action: 'TRANSCRIBE',\n        success: false,\n        userId: context.userId,\n        ipAddress: context.ipAddress,\n        metadata: {\n          error: error instanceof Error ? error.message : 'Unknown error',\n          durationMs: Date.now() - startTime,\n        },\n      });\n\n      throw error;\n    }\n  }\n}\n```\n\n### Data Protection\n```typescript\n\u002F\u002F lib\u002Fdata-protection.ts\nimport crypto from 'crypto';\n\n\u002F\u002F Encrypt transcripts at rest\nexport function encryptTranscript(transcript: string, key: Buffer): string {\n  const iv = crypto.randomBytes(16);\n  const cipher = crypto.createCipheriv('aes-256-gcm', key, iv);\n\n  let encrypted = cipher.update(transcript, 'utf8', 'hex');\n  encrypted += cipher.final('hex');\n\n  const authTag = cipher.getAuthTag();\n\n  return JSON.stringify({\n    iv: iv.toString('hex'),\n    data: encrypted,\n    tag: authTag.toString('hex'),\n  });\n}\n\nexport function decryptTranscript(encrypted: string, key: Buffer): string {\n  const { iv, data, tag } = JSON.parse(encrypted);\n\n  const decipher = crypto.createDecipheriv(\n    'aes-256-gcm',\n    key,\n    Buffer.from(iv, 'hex')\n  );\n\n  decipher.setAuthTag(Buffer.from(tag, 'hex'));\n\n  let decrypted = decipher.update(data, 'hex', 'utf8');\n  decrypted += decipher.final('utf8');\n\n  return decrypted;\n}\n\n\u002F\u002F Redact sensitive information from transcripts\nexport function redactSensitiveData(transcript: string): string {\n  const patterns = [\n    \u002F\u002F Credit card numbers\n    { pattern: \u002F\\b\\d{4}[\\s-]?\\d{4}[\\s-]?\\d{4}[\\s-]?\\d{4}\\b\u002Fg, replacement: '[REDACTED-CC]' },\n    \u002F\u002F SSN\n    { pattern: \u002F\\b\\d{3}[\\s-]?\\d{2}[\\s-]?\\d{4}\\b\u002Fg, replacement: '[REDACTED-SSN]' },\n    \u002F\u002F Phone numbers\n    { pattern: \u002F\\b\\d{3}[\\s-]?\\d{3}[\\s-]?\\d{4}\\b\u002Fg, replacement: '[REDACTED-PHONE]' },\n    \u002F\u002F Email addresses\n    { pattern: \u002F\\b[\\w.-]+@[\\w.-]+\\.\\w+\\b\u002Fg, replacement: '[REDACTED-EMAIL]' },\n  ];\n\n  let redacted = transcript;\n  for (const { pattern, replacement } of patterns) {\n    redacted = redacted.replace(pattern, replacement);\n  }\n\n  return redacted;\n}\n```\n\n## Resources\n- [Deepgram Security Overview](https:\u002F\u002Fdeepgram.com\u002Fsecurity)\n- [API Key Management](https:\u002F\u002Fdevelopers.deepgram.com\u002Fdocs\u002Fapi-key-management)\n- [HIPAA Compliance](https:\u002F\u002Fdeepgram.com\u002Fhipaa)\n- [SOC 2 Compliance](https:\u002F\u002Fdeepgram.com\u002Fsoc2)\n\n## Next Steps\nProceed to `deepgram-prod-checklist` for production deployment checklist.\n",{"name":5,"author":48,"license":15,"version":49,"description":50,"allowed-tools":51},"Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Apply Deepgram security best practices for API key management and data protection.\nUse when securing Deepgram integrations, implementing key rotation,\nor auditing security configurations.\nTrigger with phrases like \"deepgram security\", \"deepgram API key security\",\n\"secure deepgram\", \"deepgram key rotation\", \"deepgram data protection\".\n","Read, Grep, Bash(curl:*)","main","90b50ed0778745a80fd5bfb13b1843d45b9e82f7","tests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fdeepgram-pack\u002Fskills\u002Fdeepgram-security-basics",233,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust","https:\u002F\u002Fgithub.com\u002FDicklesworthstone","https:\u002F\u002Fwww.jeffreyemanuel.com\u002F","Building in NY","2026-11-15 01:54:15",{"source":8,"skillName":5,"commands":62,"prompt":72,"zipAvailable":73},[63,66,69],{"tool":64,"command":65},"npx","npx skills add Dicklesworthstone\u002Fpi_agent_rust --skill deepgram-security-basics",{"tool":67,"command":68},"bunx","bunx skills add Dicklesworthstone\u002Fpi_agent_rust --skill deepgram-security-basics",{"tool":70,"command":71},"pnpm","pnpm dlx skills add Dicklesworthstone\u002Fpi_agent_rust --skill deepgram-security-basics","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fdeepgram-pack\u002Fskills\u002Fdeepgram-security-basics\u002FSKILL.md",true,[],[76,104,135,154,179,202],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":80,"licenseFileUrl":81,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":103},"01M6FCR7G5A005P364Z6ZWCJDP","theme-factory","Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors\u002Ffonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fcreative-design\u002Ftheme-factory\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fcreative-design\u002Ftheme-factory\u002FSKILL.md",[],[85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,27,101,102],"theme factory","factory","theme","docs","toolkit","generate","artifacts","SET","fly","slides","landing","html","styling","artifact","pages","themes","you","fonts","2026-11-11 15:11:14",{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":80,"licenseFileUrl":108,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":43},"01M6FEGPPK0ZTKCCM0R3E3KS33","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Futilities\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Futilities\u002Fweb-artifacts-builder\u002FSKILL.md",[],[112,113,91,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,32,96,129,130,131,132,24,133,134],"web artifacts builder","web","artifacts builder","builder","frontend","css","components","react","component","routing","state management","state","shadcn","file","ui","Tools","Tailwind","single-file","simple","ui components","multi","jsx","suite",{"skillNo":136,"name":137,"nameZh":6,"description":138,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":80,"licenseFileUrl":139,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":43},"01M6FEE9VTK1W4GY21AKREJXRG","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fsecurity\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fsecurity\u002Fwebapp-testing\u002FSKILL.md",[],[143,144,145,116,146,147,113,148,89,149,126,150,151,152,153,27,24],"testing","webapp testing","webapp","screenshots","playwright","debugging","browser","logs","applications","behavior","local",{"skillNo":155,"name":156,"nameZh":6,"description":157,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":158,"sourceHtmlUrl":159,"categories":160,"keywords":161,"publishedAt":43},"01M6FE20F7ZTQBFWKF4MPJ2SBX","neuropixels-analysis","Neuropixels neural recording analysis. Load SpikeGLX\u002FOpenEphys data, preprocess, motion correction, Kilosort4 spike sorting, quality metrics, Allen\u002FIBL curation, AI-assisted visual analysis, for Neuropixels 1.0\u002F2.0 extracellular electrophysiology. Use when working with neural recordings, spike sorting, extracellular electrophysiology, or when the user mentions Neuropixels, SpikeGLX, Open Ephys, Kilosort, quality metrics, or unit curation.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fneuropixels-analysis\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fneuropixels-analysis\u002FSKILL.md",[],[162,163,164,165,38,166,167,168,32,169,170,171,172,173,174,175,27,176,177,178,24,23],"analysis","neuropixels analysis","spike","metrics","open","quality","user","recordings","Neural","motion","visual","quality metrics","unit","sorting","curation","recording","load",{"skillNo":180,"name":181,"nameZh":6,"description":182,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":80,"licenseFileUrl":183,"sourceHtmlUrl":184,"categories":185,"keywords":186,"publishedAt":43},"01M6FDP0PDK6F1GGX395C7625Z","skill-creator","Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fskill-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fskill-creator\u002FSKILL.md",[],[187,188,189,190,191,192,193,194,35,195,196,197,198,199,27,24,200,23,201],"skill creator","creator","workflows","create","update","capabilities","knowledge","tool","specialized","guide","new skill","existing skill","users","Existing","new",{"skillNo":203,"name":204,"nameZh":6,"description":205,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":206,"sourceHtmlUrl":207,"categories":208,"keywords":209,"publishedAt":43},"01M6FDM8Y7VK7NYG9SM7QPA3PW","notebooklm","Use this skill to query your Google NotebookLM notebooks directly from Claude Code for source-grounded, citation-backed answers from Gemini. Browser automation, library management, persistent auth. Drastically reduced hallucinations through document-only responses.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fnotebooklm\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fnotebooklm\u002FSKILL.md",[],[204,210,211,212,213,214,215,149,216,217,32,218,219,220,221,24,222],"google","browser automation","gemini","automation","auth","code","library","management","only","document","query","Citation","source"]