Ideogram Data Handling

VerifiedSafe

Implement PII handling, data retention, and GDPR/CCPA compliance for Ideogram integrations. Includes detection, redaction, and automatic cleanup of sensitive data.

Sby Skills Guide Bot
SecurityIntermediate
3/11/2026
Claude CodeCodex
#gdpr#pii#data-privacy#compliance#data-retention

Recommended for

Automated summary

Provides TypeScript patterns to detect and redact personal data, set retention periods with scheduled cleanup, and implement data export and deletion (GDPR/CCPA) for an Ideogram integration.

Strengths

  • Ready-to-adapt functions that detect PII (email, phone, SSN, credit card) and mask it before it reaches logs.
  • A data classification table (PII, secrets, business, public) plus a retention table wired to a daily cron cleanup job.
  • Covers the two core GDPR/CCPA duties — subject access (DSAR) and erasure — including an audit record kept after deletion.

Limitations

  • Detection is regex-only, with no validation (Luhn, national phone formats) and no coverage for names, addresses, or indirect identifiers.
  • The code assumes getUserData/deleteUser methods on an Ideogram client that are not part of the documented public API, and the data-minimization snippet is truncated.
  • Ignores legal basis, consent, cross-border transfers, and processor agreements, so it is not a complete compliance program.
When to use it

Use it when you need to layer privacy controls (PII redaction, scheduled purging, subject export/deletion) onto an existing Ideogram integration.

When not to use it

Skip it if you need an out-of-the-box compliance solution or legal guidance; the skill only offers partial, generic code patterns.

Security analysis

Safe
Quality score80/100

The skill uses only Read, Write, and Edit tools and contains no executable commands or destructive operations. It provides code snippets for compliance but does not instruct the agent to run them, so there is no meaningful execution risk.

No concerns found

How this analysis is made

Examples

Redact PII in Ideogram logs
Add PII detection and redaction to our Ideogram request and response logging so emails, phone numbers and card numbers never end up in our logs.
Retention cleanup job
Write a scheduled job that deletes Ideogram API logs older than 30 days but keeps audit and compliance records for 7 years.
GDPR deletion flow
Implement a GDPR right-to-deletion flow for a user in our Ideogram integration: delete their data remotely, purge local caches, and write an audit record.

name: ideogram-data-handling description: | Implement Ideogram PII handling, data retention, and GDPR/CCPA compliance patterns. Use when handling sensitive data, implementing data redaction, configuring retention policies, or ensuring compliance with privacy regulations for Ideogram integrations. Trigger with phrases like "ideogram data", "ideogram PII", "ideogram GDPR", "ideogram data retention", "ideogram privacy", "ideogram CCPA". allowed-tools: Read, Write, Edit version: 1.0.0 license: MIT author: Jeremy Longshore jeremy@intentsolutions.io compatible-with: claude-code, codex, openclaw

Ideogram Data Handling

Overview

Handle sensitive data correctly when integrating with Ideogram.

Prerequisites

  • Understanding of GDPR/CCPA requirements
  • Ideogram SDK with data export capabilities
  • Database for audit logging
  • Scheduled job infrastructure for cleanup

Data Classification

| Category | Examples | Handling | |----------|----------|----------| | PII | Email, name, phone | Encrypt, minimize | | Sensitive | API keys, tokens | Never log, rotate | | Business | Usage metrics | Aggregate when possible | | Public | Product names | Standard handling |

PII Detection

const PII_PATTERNS = [
  { type: 'email', regex: /[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g },
  { type: 'phone', regex: /\b\d{3}[-.]?\d{3}[-.]?\d{4}\b/g },
  { type: 'ssn', regex: /\b\d{3}-\d{2}-\d{4}\b/g },
  { type: 'credit_card', regex: /\b\d{4}[- ]?\d{4}[- ]?\d{4}[- ]?\d{4}\b/g },
];

function detectPII(text: string): { type: string; match: string }[] {
  const findings: { type: string; match: string }[] = [];

  for (const pattern of PII_PATTERNS) {
    const matches = text.matchAll(pattern.regex);
    for (const match of matches) {
      findings.push({ type: pattern.type, match: match[0] });
    }
  }

  return findings;
}

Data Redaction

function redactPII(data: Record<string, any>): Record<string, any> {
  const sensitiveFields = ['email', 'phone', 'ssn', 'password', 'apiKey'];
  const redacted = { ...data };

  for (const field of sensitiveFields) {
    if (redacted[field]) {
      redacted[field] = '[REDACTED]';
    }
  }

  return redacted;
}

// Use in logging
console.log('Ideogram request:', redactPII(requestData));

Data Retention Policy

Retention Periods

| Data Type | Retention | Reason | |-----------|-----------|--------| | API logs | 30 days | Debugging | | Error logs | 90 days | Root cause analysis | | Audit logs | 7 years | Compliance | | PII | Until deletion request | GDPR/CCPA |

Automatic Cleanup

async function cleanupIdeogramData(retentionDays: number): Promise<void> {
  const cutoff = new Date();
  cutoff.setDate(cutoff.getDate() - retentionDays);

  await db.ideogramLogs.deleteMany({
    createdAt: { $lt: cutoff },
    type: { $nin: ['audit', 'compliance'] },
  });
}

// Schedule daily cleanup
cron.schedule('0 3 * * *', () => cleanupIdeogramData(30));

GDPR/CCPA Compliance

Data Subject Access Request (DSAR)

async function exportUserData(userId: string): Promise<DataExport> {
  const ideogramData = await ideogramClient.getUserData(userId);

  return {
    source: 'Ideogram',
    exportedAt: new Date().toISOString(),
    data: {
      profile: ideogramData.profile,
      activities: ideogramData.activities,
      // Include all user-related data
    },
  };
}

Right to Deletion

async function deleteUserData(userId: string): Promise<DeletionResult> {
  // 1. Delete from Ideogram
  await ideogramClient.deleteUser(userId);

  // 2. Delete local copies
  await db.ideogramUserCache.deleteMany({ userId });

  // 3. Audit log (required to keep)
  await auditLog.record({
    action: 'GDPR_DELETION',
    userId,
    service: 'ideogram',
    timestamp: new Date(),
  });

  return { success: true, deletedAt: new Date() };
}

Data Minimization

// Only request needed fields
const user = await ideogramClient.getUser(userId, {
  fields: ['id', 'name'], // Not email, phone, address
});

// Don't store unnecessary data
const cacheData = {
  id: user.id,
  name: user.name,
  // Omit sensitive fields
};

Instructions

Step 1: Classify Data

Categorize all Ideogram data by sensitivity level.

Step 2: Implement PII Detection

Add regex patterns to detect sensitive data in logs.

Step 3: Configure Redaction

Apply redaction to sensitive fields before logging.

Step 4: Set Up Retention

Configure automatic cleanup with appropriate retention periods.

Output

  • Data classification documented
  • PII detection implemented
  • Redaction in logging active
  • Retention policy enforced

Error Handling

| Issue | Cause | Solution | |-------|-------|----------| | PII in logs | Missing redaction | Wrap logging with redact | | Deletion failed | Data locked | Check dependencies | | Export incomplete | Timeout | Increase batch size | | Audit gap | Missing entries | Review log pipeline |

Examples

Quick PII Scan

const findings = detectPII(JSON.stringify(userData));
if (findings.length > 0) {
  console.warn(`PII detected: ${findings.map(f => f.type).join(', ')}`);
}

Redact Before Logging

const safeData = redactPII(apiResponse);
logger.info('Ideogram response:', safeData);

GDPR Data Export

const userExport = await exportUserData('user-123');
await sendToUser(userExport);

Resources

Next Steps

For enterprise access control, see ideogram-enterprise-rbac.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/ideogram-data-handling-mmlj2p81/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/ideogram-data-handling-mmlj2p81' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/ideogram-data-handling-mmlj2p81/download' --output '.skill-downloads/ideogram-data-handling-mmlj2p81/SKILL.md.part' && mv '.skill-downloads/ideogram-data-handling-mmlj2p81/SKILL.md.part' '.skill-downloads/ideogram-data-handling-mmlj2p81/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

Tools declared by the author (check availability in your agent): Read, Write, Edit

Original excerpt: Prerequisites
  • Understanding of GDPR/CCPA requirements
  • Ideogram SDK with data export capabilities
  • Database for audit logging
  • Scheduled job infrastructure for cleanup

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/ideogram-data-handling-mmlj2p81/SKILL.md' && test -s '.skill-downloads/ideogram-data-handling-mmlj2p81/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/ideogram-data-handling' && cp -R '.skill-downloads/ideogram-data-handling-mmlj2p81' '.claude/skills/ideogram-data-handling'

Codex
test -f '.skill-downloads/ideogram-data-handling-mmlj2p81/SKILL.md' && test -s '.skill-downloads/ideogram-data-handling-mmlj2p81/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/ideogram-data-handling' && cp -R '.skill-downloads/ideogram-data-handling-mmlj2p81' '.agents/skills/ideogram-data-handling'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/ideogram-data-handling-mmlj2p81'

openskills read 'ideogram-data-handling-mmlj2p81'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/ideogram-data-handling-mmlj2p81/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills