environment-setup-guide
Guide developers through setting up development environments with proper tools, dependencies, and configurations
gamma-data-handling
Handle data privacy, retention, and compliance for Gamma integrations. Use when implementing GDPR compliance, data retention policies, or managing user data within Gamma workflows. Trigger with phrases like "gamma data", "gamma privacy", "gamma GDPR", "gamma data retention", "gamma compliance".
Full skill instructions
Implement proper data handling, privacy controls, and compliance for Gamma integrations.
| Type | Classification | Retention | Handling |
|---|---|---|---|
| Presentation content | User data | User-controlled | Encrypted at rest |
| AI-generated text | Derived data | With source | Standard |
| User prompts | PII potential | 30 days | Anonymize logs |
| Export files | User data | 24 hours cache | Auto-delete |
| Analytics | Operational | 90 days | Aggregate only |
// models/consent.ts
interface UserConsent {
userId: string;
gammaDataProcessing: boolean;
aiAnalysis: boolean;
analytics: boolean;
consentDate: Date;
consentVersion: string;
}
async function checkConsent(userId: string, purpose: string): Promise<boolean> {
const consent = await db.consents.findUnique({
where: { userId },
});
if (!consent) {
throw new ConsentRequiredError('User consent not obtained');
}
switch (purpose) {
case 'presentation_creation':
return consent.gammaDataProcessing;
case 'ai_generation':
return consent.gammaDataProcessing && consent.aiAnalysis;
case 'analytics':
return consent.analytics;
default:
return false;
}
}
// Usage before Gamma operations
async function createPresentation(userId: string, data: object) {
if (!await checkConsent(userId, 'presentation_creation')) {
throw new Error('Consent required for presentation creation');
}
return gamma.presentations.create(data);
}
// lib/pii-handler.ts
interface PIIField {
field: string;
type: 'email' | 'name' | 'phone' | 'address' | 'custom';
action: 'mask' | 'hash' | 'encrypt' | 'remove';
}
const piiFields: PIIField[] = [
{ field: 'email', type: 'email', action: 'mask' },
{ field: 'name', type: 'name', action: 'hash' },
{ field: 'phone', type: 'phone', action: 'mask' },
];
function sanitizeForLogging(data: object): object {
const sanitized = { ...data };
for (const pii of piiFields) {
if (sanitized[pii.field]) {
switch (pii.action) {
case 'mask':
sanitized[pii.field] = maskValue(sanitized[pii.field]);
break;
case 'hash':
sanitized[pii.field] = hashValue(sanitized[pii.field]);
break;
case 'remove':
delete sanitized[pii.field];
break;
}
}
}
return sanitized;
}
function maskValue(value: string): string {
if (value.includes('@')) {
// Email masking
const [local, domain] = value.split('@');
return `${local[0]}***@${domain}`;
}
// Generic masking
return value.substring(0, 2) + '***' + value.substring(value.length - 2);
}
// services/data-retention.ts
interface RetentionPolicy {
dataType: string;
retentionDays: number;
action: 'delete' | 'archive' | 'anonymize';
}
const policies: RetentionPolicy[] = [
{ dataType: 'presentation_exports', retentionDays: 1, action: 'delete' },
{ dataType: 'user_prompts', retentionDays: 30, action: 'anonymize' },
{ dataType: 'api_logs', retentionDays: 90, action: 'archive' },
{ dataType: 'presentations', retentionDays: 365, action: 'delete' },
];
async function enforceRetentionPolicies() {
for (const policy of policies) {
const cutoffDate = new Date();
cutoffDate.setDate(cutoffDate.getDate() - policy.retentionDays);
switch (policy.action) {
case 'delete':
await deleteExpiredData(policy.dataType, cutoffDate);
break;
case 'archive':
await archiveExpiredData(policy.dataType, cutoffDate);
break;
case 'anonymize':
await anonymizeExpiredData(policy.dataType, cutoffDate);
break;
}
console.log(`Retention enforced for ${policy.dataType}`);
}
}
// Run daily
scheduleJob('0 2 * * *', enforceRetentionPolicies);
// services/gdpr.ts
interface DataSubjectRequest {
userId: string;
type: 'access' | 'erasure' | 'portability' | 'rectification';
requestDate: Date;
status: 'pending' | 'processing' | 'completed';
}
async function handleAccessRequest(userId: string) {
// Gather all user data
const userData = {
account: await db.users.findUnique({ where: { id: userId } }),
presentations: await db.presentations.findMany({ where: { userId } }),
exports: await db.exports.findMany({ where: { userId } }),
consents: await db.consents.findMany({ where: { userId } }),
activityLogs: await db.activityLogs.findMany({
where: { userId },
take: 1000,
}),
};
// Include Gamma-stored data
const gammaPresentations = await gamma.presentations.list({
filter: { externalUserId: userId },
});
return {
...userData,
gammaData: gammaPresentations,
exportedAt: new Date().toISOString(),
};
}
async function handleErasureRequest(userId: string) {
// Delete from our database
await db.presentations.deleteMany({ where: { userId } });
await db.exports.deleteMany({ where: { userId } });
await db.activityLogs.deleteMany({ where: { userId } });
// Request deletion from Gamma
const gammaPresentations = await gamma.presentations.list({
filter: { externalUserId: userId },
});
for (const p of gammaPresentations) {
await gamma.presentations.delete(p.id);
}
// Anonymize remaining data
await db.users.update({
where: { id: userId },
data: {
email: `deleted_${Date.now()}@anonymized.local`,
name: 'Deleted User',
deletedAt: new Date(),
},
});
return { success: true, deletedCount: gammaPresentations.length + 1 };
}
// lib/audit.ts
interface AuditEntry {
timestamp: Date;
userId: string;
action: string;
resource: string;
resourceId: string;
details: object;
ipAddress: string;
}
async function logAuditEvent(entry: Omit<AuditEntry, 'timestamp'>) {
await db.auditLog.create({
data: {
...entry,
timestamp: new Date(),
},
});
}
// Usage
await logAuditEvent({
userId: user.id,
action: 'PRESENTATION_CREATED',
resource: 'presentation',
resourceId: presentation.id,
details: { title: presentation.title },
ipAddress: req.ip,
});
Proceed to gamma-enterprise-rbac for access control.
Guide developers through setting up development environments with proper tools, dependencies, and configurations
Implement Exa lint rules, policy enforcement, and automated guardrails. Use when setting up code quality rules for Exa integrations, implementing pre-commit hooks, or configuring CI policy checks for Exa best practices. Trigger with phrases like "exa policy", "exa lint", "exa guardrails", "exa be...
Configure CI/CD pipelines for Documenso integrations. Use when setting up automated testing, deployment pipelines, or continuous integration for Documenso projects. Trigger with phrases like "documenso CI", "documenso GitHub Actions", "documenso pipeline", "documenso automated testing".
Build check model availability and implement fallback chains. Use when building resilient systems or handling model outages. Trigger with phrases like 'openrouter availability', 'openrouter fallback', 'openrouter model down', 'openrouter health check'.
Configure Langfuse enterprise organization management and access control. Use when implementing team access controls, configuring organization settings, or setting up role-based permissions for Langfuse projects. Trigger with phrases like "langfuse RBAC", "langfuse teams", "langfuse organization"...
Execute compliance and security auditing for Cursor usage. Triggers on "cursor compliance", "cursor audit", "cursor security review", "cursor soc2", "cursor gdpr". Use when analyzing or auditing cursor compliance audit. Trigger with phrases like "cursor compliance audit", "cursor audit", "cursor".
Configure Apollo.io CI/CD integration. Use when setting up automated testing, continuous integration, or deployment pipelines for Apollo integrations. Trigger with phrases like "apollo ci", "apollo github actions", "apollo pipeline", "apollo ci/cd", "apollo automated tests".
Create robust Python automation with full logging and safety checks. Use when tasks need complex data processing, authenticated API work, conditional file operations, or error handling beyond simple shell commands.
Configure PostHog across development, staging, and production environments. Use when setting up multi-environment deployments, configuring per-environment secrets, or implementing environment-specific PostHog configurations. Trigger with phrases like "posthog environments", "posthog staging", "po...
Expert in designing and building autonomous AI agents. Masters tool use, memory systems, planning strategies, and multi-agent orchestration. Use when: build agent, AI agent, autonomous agent, tool use, function calling.
Validate insecure deserialization checker operations. Auto-activating skill for Security Fundamentals. Triggers on: insecure deserialization checker, insecure deserialization checker Part of the Security Fundamentals skill category. Use when working with insecure deserialization checker functiona...
Manage path traversal finder operations. Auto-activating skill for Security Fundamentals. Triggers on: path traversal finder, path traversal finder Part of the Security Fundamentals skill category. Use when working with path traversal finder functionality. Trigger with phrases like "path traversa...
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience