stripe-projects
stripe projects
brazilian-fintech-compliance
Comprehensive Brazilian financial regulatory compliance guide. Use when implementing LGPD data protection, BCB regulations, PIX/Boleto standards, or financial security patterns for Brazilian market applications.
Full skill instructions
This skill provides comprehensive guidance for Brazilian financial regulatory compliance, covering LGPD data protection, BCB regulations, PIX/Boleto standards, and security patterns required for fintech applications in Brazil.
Use this skill when:
interface LGPDCompliance {
// Data subject rights implementation
userRights: {
access: boolean; // Right to access personal data
correction: boolean; // Right to correct inaccurate data
deletion: boolean; // Right to erasure ("right to be forgotten")
portability: boolean; // Right to data portability
information: boolean; // Right to information about data processing
objection: boolean; // Right to object to processing
};
// Legal bases for processing
legalBases: [
'consent', // Explicit consent
'contract', // Contract necessity
'legal_obligation', // Legal requirement
'vital_interests', // Protection of vital interests
'public_interest', // Public interest tasks
'legitimate_interests' // Legitimate interests
];
// Data protection measures
protectionMeasures: {
encryption: 'AES-256',
anonymization: 'automatic_after_retention',
access_control: 'role_based_with_audit',
breach_notification: '72_hours'
};
}
interface PIXStandards {
transactionLimits: {
instant: {
maximum: 1000, // R$ 1.000 per transaction
daily: 10000, // R$ 10.000 per day
monthly: 100000 // R$ 100.000 per month
};
scheduled: {
maximum: 50000, // R$ 50.000 per scheduled transaction
advanceScheduling: 60 // Maximum 60 days in advance
};
};
responseTimes: {
processing: '2_seconds_maximum',
confirmation: 'real_time',
settlement: 'end_of_day'
};
securityMeasures: {
multiFactorAuth: 'required_for_high_value',
transactionLimits: 'user_configurable',
fraudDetection: 'real_time_monitoring',
encryption: 'end_to_end'
};
}
interface BoletoStandards {
registration: {
bankCode: '3_digit_febraban_code',
currency: '980_for_real',
dueDateCalculation: 'business_days_only',
barcodeGeneration: 'modulo11_validation'
};
validation: {
barcode: '44_digits_with_verification',
lineCode: '47_digits_with_verification',
amountValidation: 'decimal_precision_2',
dueDate: 'minimum_2_business_days'
};
processing: {
registration: 'same_day_cutoff',
payment: 'real_time_confirmation',
settlement: 'd_1_business_day'
};
}
const securityImplementation = {
encryption: {
atRest: {
algorithm: 'AES-256-GCM',
keyManagement: 'hardware_security_module',
rotationPolicy: '90_days'
},
inTransit: {
protocol: 'TLS 1.3',
certificateValidation: 'strict',
perfectForwardSecrecy: true
}
},
authentication: {
methods: ['biometric', 'multi_factor', 'device_trust'],
sessionManagement: 'short_lived_with_refresh',
passwordPolicies: 'complex_with_regular_expiration'
},
authorization: {
principle: 'least_privilege_access',
rbac: 'role_based_with_context',
auditLogging: 'comprehensive_with_tamper_protection'
}
};
describe('LGPD Compliance Tests', () => {
test('user consent is properly recorded', async () => {
const consentData = {
userId: 'user-123',
purpose: 'payment_processing',
granted: true,
timestamp: new Date(),
ipAddress: '192.168.1.1'
};
const result = await recordConsent(consentData);
expect(result).toMatchObject({
consentId: expect.any(String),
recorded: true
});
// Verify audit log entry
const auditLog = await getConsentAuditLog(result.consentId);
expect(auditLog).toContain('Consent recorded for payment processing');
});
test('data anonymization after retention period', async () => {
const expiredData = await getExpiredUserData();
const anonymizedData = await anonymizeUserData(expiredData);
expect(anonymizedData.name).toBe('Usuário Anonimizado');
expect(anonymizedData.cpf).toBe('***.***.***-**');
expect(anonymizedData.email).toMatch(/^[a-z]{2}\*\*\*@.*$/);
});
});
describe('PIX Compliance Tests', () => {
test('PIX transaction within daily limits', async () => {
const userData = await getUserDailyTotals('user-123');
const newTransaction = { amount: 5000 }; // R$ 5.000
const dailyLimit = 10000; // R$ 10.000
const currentTotal = userData.dailyTotal;
expect(currentTotal + newTransaction.amount).toBeLessThanOrEqual(dailyLimit);
});
test('fraud detection triggers on suspicious patterns', async () => {
const suspiciousTransaction = {
amount: 999.99,
recipient: 'new_user',
timeOfDay: '02:30',
deviceLocation: 'unusual_location'
};
const fraudScore = await calculateFraudScore(suspiciousTransaction);
expect(fraudScore).toBeGreaterThan(0.7); // High risk threshold
});
});
For detailed implementation patterns and examples, see:
references/lgpd-implementation.md - Complete LGPD implementation guidereferences/pix-standards.md - PIX technical specificationsreferences/boleto-processing.md - Boleto implementation patternsexamples/compliance-tests.md - Compliance testing examplesscripts/compliance-validator.py - Automated compliance validationBuilt for Brazilian fintech compliance with enterprise-grade security and regulatory adherence. 🇧🇷🛡️
stripe projects
Harvest every `ponytail:` comment in the codebase into a debt ledger, so the deliberate shortcuts and deferrals ponytail leaves behind get tracked instead of rotting into "later means never". One-shot report, changes nothing.
okx dex market
okx agentic wallet
gmgn portfolio
okx dapp discovery
okx agent payments protocol
Stripe payment processing with checkout sessions, subscriptions, webhooks, and customer management.
Build comprehensive 3-5 year financial models with revenue projections, cost structures, cash flow analysis, and scenario planning for early-stage startups. Use this skill when creating financial projections, calculating burn rate or runway, modeling fundraising scenarios, or preparing investor-r...
Stock and cryptocurrency analysis with portfolio management and multi-dimensional scoring.
Real-time crypto derivatives positioning, whale tracking, liquidations, and institutional ETF flows across 37 specialized tools.
Master dbt (data build tool) for analytics engineering with model organization, testing, documentation, and incremental strategies. Use when building data transformations, creating data models, or implementing analytics engineering best practices.
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Stay Ahead with Finalle.ai: The Ultimate Financial News and Tools Platform
AI-powered Pine Script code generator for TradingView
Research stocks at the speed of thought.
Empower your investment strategies with AI signals, option flow data, and advanced chart patterns.
Danelfin review covering its AI stock and ETF scores, rankings, portfolio tools, current pricing, strengths, risks, and alternatives for investors.
A software for comprehensive market sentiment analysis.
'Stock Correlations' App by Freshly.ai: Reveal Stock Patterns and Trends