twinmind-prod-checklist
Complete production deployment checklist for TwinMind integrations. Use when preparing to deploy, auditing production readiness, or ensuring best practices are followed. Trigger with phrases like "twinmind production", "deploy twinmind", "twinmind go-live checklist", "twinmind production ready".
What this skill does
# TwinMind Production Checklist
## Overview
Comprehensive checklist for deploying TwinMind integrations to production.
## Prerequisites
- Development and staging environments tested
- API credentials for production
- Infrastructure provisioned
- Team roles assigned
## Production Readiness Checklist
### 1. Authentication & Security
```markdown
## Authentication
- [ ] Production API key generated (separate from dev/staging)
- [ ] API key stored in secrets manager (not env vars)
- [ ] API key rotation procedure documented
- [ ] Webhook secrets configured
- [ ] All OAuth tokens refreshed and valid
## Security
- [ ] HTTPS enforced on all endpoints
- [ ] Webhook signature verification enabled
- [ ] CORS configured correctly
- [ ] Rate limiting implemented
- [ ] Input validation on all endpoints
- [ ] SQL injection protection verified
- [ ] XSS protection enabled
- [ ] CSP headers configured
```
### 2. Data & Privacy
```markdown
## Data Protection
- [ ] Transcripts encrypted at rest (AES-256) # 256 bytes
- [ ] PII redaction enabled and tested
- [ ] Data retention policies configured
- [ ] Backup encryption verified
- [ ] Data residency requirements met
## Privacy Compliance
- [ ] GDPR compliance verified (if applicable)
- [ ] User consent flow implemented
- [ ] Data deletion API integrated
- [ ] Privacy policy updated
- [ ] Cookie consent banner (if applicable)
## Audit Trail
- [ ] Audit logging enabled for all operations
- [ ] Log retention configured
- [ ] Sensitive data excluded from logs
- [ ] Log access restricted
```
### 3. Infrastructure
```markdown
## Compute
- [ ] Auto-scaling configured
- [ ] Health checks enabled
- [ ] Graceful shutdown implemented
- [ ] Resource limits set (CPU, memory)
- [ ] Container security scanned
## Networking
- [ ] Load balancer configured
- [ ] TLS 1.3 enforced
- [ ] DNS records verified
- [ ] CDN configured (if applicable)
- [ ] Firewall rules reviewed
## Storage
- [ ] Database backups automated
- [ ] Storage encryption enabled
- [ ] Disaster recovery plan tested
- [ ] Data migration scripts ready
```
### 4. Monitoring & Observability
```markdown
## Metrics
- [ ] Prometheus/Datadog metrics configured
- [ ] Custom TwinMind metrics added:
- [ ] twinmind_transcriptions_total
- [ ] twinmind_transcription_duration_seconds
- [ ] twinmind_errors_total
- [ ] twinmind_api_latency_seconds
- [ ] Dashboards created
## Alerting
- [ ] Alert rules configured:
- [ ] Error rate > 5%
- [ ] P95 latency > 5s
- [ ] Rate limit warnings
- [ ] API availability
- [ ] On-call rotation set up
- [ ] Escalation policy defined
## Logging
- [ ] Structured logging implemented
- [ ] Log levels configured (INFO in prod)
- [ ] Log aggregation set up
- [ ] Log-based alerts configured
## Tracing
- [ ] Distributed tracing enabled
- [ ] Trace sampling configured
- [ ] Trace retention set
```
### 5. Error Handling
```markdown
## Error Recovery
- [ ] Retry logic with exponential backoff
- [ ] Circuit breaker pattern implemented
- [ ] Fallback behavior defined
- [ ] Dead letter queue for failed webhooks
- [ ] Error notification system
## Graceful Degradation
- [ ] Offline mode behavior defined
- [ ] Cached data fallback
- [ ] User-friendly error messages
- [ ] Status page integration
```
### 6. Performance
```markdown
## Optimization
- [ ] Response caching configured
- [ ] Database queries optimized
- [ ] Connection pooling enabled
- [ ] Async processing for heavy tasks
- [ ] CDN for static assets
## Load Testing
- [ ] Load tests performed
- [ ] Peak traffic simulated
- [ ] Breaking point identified
- [ ] Auto-scaling verified
- [ ] Performance baselines documented
```
### 7. Deployment
```markdown
## CI/CD
- [ ] Build pipeline configured
- [ ] Automated tests passing
- [ ] Security scanning integrated
- [ ] Deployment automation ready
- [ ] Rollback procedure tested
## Release Process
- [ ] Blue-green or canary deployment
- [ ] Feature flags configured
- [ ] Database migrations automated
- [ ] Smoke tests defined
- [ ] Release notes prepared
```
### 8. Documentation
```markdown
## Technical Docs
- [ ] API documentation current
- [ ] Architecture diagrams updated
- [ ] Runbook created
- [ ] Troubleshooting guide ready
## Operational Docs
- [ ] Incident response plan
- [ ] Escalation contacts
- [ ] Vendor contact info
- [ ] SLA documentation
```
## Pre-Launch Verification Script
```bash
#!/bin/bash
set -euo pipefail
# pre-launch-check.sh
echo "TwinMind Production Pre-Launch Check"
echo "====================================="
# Check environment
echo -n "Checking NODE_ENV... "
if [ "$NODE_ENV" = "production" ]; then
echo "OK (production)"
else
echo "WARNING: NODE_ENV=$NODE_ENV"
fi
# Check API key
echo -n "Checking API key... "
if [ -n "$TWINMIND_API_KEY" ]; then
PREFIX=${TWINMIND_API_KEY:0:10}
echo "OK ($PREFIX...)"
else
echo "FAIL: TWINMIND_API_KEY not set"
fi
# Test API connectivity
echo -n "Testing API connectivity... "
HEALTH=$(curl -s -o /dev/null -w "%{http_code}" \
-H "Authorization: Bearer $TWINMIND_API_KEY" \
https://api.twinmind.com/v1/health)
if [ "$HEALTH" = "200" ]; then # HTTP 200 OK
echo "OK"
else
echo "FAIL: HTTP $HEALTH"
fi
# Check webhook secret
echo -n "Checking webhook secret... "
if [ -n "$TWINMIND_WEBHOOK_SECRET" ]; then
echo "OK"
else
echo "WARNING: TWINMIND_WEBHOOK_SECRET not set"
fi
# Check encryption key
echo -n "Checking encryption key... "
if [ -n "$TWINMIND_ENCRYPTION_KEY" ]; then
KEY_LEN=${#TWINMIND_ENCRYPTION_KEY}
if [ "$KEY_LEN" -ge 64 ]; then
echo "OK (256-bit)" # 256 bytes
else
echo "WARNING: Key too short"
fi
else
echo "WARNING: TWINMIND_ENCRYPTION_KEY not set"
fi
# Check database
echo -n "Checking database... "
if [ -n "$DATABASE_URL" ]; then
echo "OK"
else
echo "FAIL: DATABASE_URL not set"
fi
echo ""
echo "Pre-launch check complete."
```
## Post-Launch Verification
```typescript
// scripts/post-launch-verify.ts
async function verifyProduction() {
const checks = [
{ name: 'API Health', fn: checkApiHealth },
{ name: 'Database', fn: checkDatabase },
{ name: 'Transcription', fn: testTranscription },
{ name: 'Webhook', fn: testWebhook },
{ name: 'Metrics', fn: checkMetrics },
];
console.log('Post-Launch Verification');
console.log('========================');
for (const check of checks) {
try {
await check.fn();
console.log(`[PASS] ${check.name}`);
} catch (error) {
console.log(`[FAIL] ${check.name}: ${error.message}`);
}
}
}
async function checkApiHealth() {
const response = await fetch('https://api.twinmind.com/v1/health', {
headers: { 'Authorization': `Bearer ${process.env.TWINMIND_API_KEY}` },
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
}
async function testTranscription() {
// Test with a known audio sample
const client = getTwinMindClient();
const result = await client.transcribe('https://example.com/test-audio.mp3');
if (!result.id) throw new Error('No transcript ID returned');
}
// Run verification
verifyProduction();
```
## Rollback Plan
```markdown
## Rollback Procedure
### Immediate Rollback (< 5 minutes)
1. Trigger deployment rollback via CI/CD
2. Verify previous version is running
3. Confirm health checks passing
### Database Rollback (if needed)
1. Stop application traffic
2. Run migration rollback script
3. Verify data integrity
4. Resume traffic
### Communication
1. Update status page
2. Notify affected users
3. Create incident report
### Post-Rollback
1. Identify root cause
2. Create fix
3. Test in staging
4. Schedule re-deployment
```
## Output
- Complete production checklist
- Pre-launch verification script
- Post-launch verification tests
- Rollback procedure
## Error Handling
| Issue | Impact | Mitigation |
|-------|--------|------------|
| API key invalid | Service down | Verify key in staging first |
| Missing metrics | Blind spots | Test dashboards pre-launch |
| No rollback plan | ExtRelated in Cloud & DevOps
appbuilder-action-scaffolder
IncludedCreate, implement, deploy, and debug Adobe Runtime actions with consistent layout, validation, and error handling. Use this skill whenever the user needs to add actions to an App Builder project, understand action structure (params, response format, web/raw actions), configure actions in the manifest, use App Builder SDKs (State, Files, Events, database), deploy and invoke actions via CLI, debug action issues, or implement patterns such as webhook receivers, custom event providers, journaling consumers, large payload redirects, action sequence pipelines, and Asset Compute workers. Also trigger when users mention serverless functions in Adobe context, action logging, IMS authentication for actions, or cron-style scheduled actions.
orchestrating-datacloud
IncludedSalesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows. Use this skill when the user needs a multi-step Data Cloud pipeline, cross-phase troubleshooting, or data space and data kit management. TRIGGER when: user needs a multi-step Data Cloud pipeline, asks to set up or troubleshoot Data Cloud across phases, manages data spaces or data kits, or wants a cross-phase sf data360 workflow. DO NOT TRIGGER when: work is isolated to a single phase (use the matching phase-specific skill), the task is STDM/session tracing/parquet telemetry (use observing-agentforce), standard CRM SOQL (use querying-soql), or Apex implementation (use generating-apex).
github-project-automation
IncludedAutomate GitHub repository setup with CI/CD workflows, issue templates, Dependabot, and CodeQL security scanning. Includes 12 production-tested workflows and prevents 18 errors: YAML syntax, action pinning, and configuration. Use when: setting up GitHub Actions CI/CD, creating issue/PR templates, enabling Dependabot or CodeQL scanning, deploying to Cloudflare Workers, implementing matrix testing, or troubleshooting YAML indentation, action version pinning, secrets syntax, runner versions, or CodeQL configuration. Keywords: github actions, github workflow, ci/cd, issue templates, pull request templates, dependabot, codeql, security scanning, yaml syntax, github automation, repository setup, workflow templates, github actions matrix, secrets management, branch protection, codeowners, github projects, continuous integration, continuous deployment, workflow syntax error, action version pinning, runner version, github context, yaml indentation error
sf-datacloud
IncludedSalesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows. TRIGGER when: user needs a multi-step Data Cloud pipeline, asks to set up or troubleshoot Data Cloud across phases, manages data spaces or data kits, or wants a cross-phase `sf data360` workflow. DO NOT TRIGGER when: work is isolated to a single phase (use the matching sf-datacloud-* skill), the task is STDM/session tracing/parquet telemetry (use sf-ai-agentforce-observability), standard CRM SOQL (use sf-soql), or Apex implementation (use sf-apex).
fabric-cli
IncludedUse this skill for Fabric.so CLI workflows with the `fabric` terminal command: diagnose/install/login, search or browse a Fabric library, save notes/links/files, create folders, ask the Fabric AI assistant, manage tasks/workspaces, generate shell completion, check subscription usage, produce JSON output, and use Fabric as persistent agent memory. Do not use for Microsoft Fabric/Azure/Power BI `fab`, Daniel Miessler's Fabric framework, Python Fabric SSH, Fabric.js, or textile/fashion fabric.
lark
IncludedLark/Feishu CLI skills: lark-cli operations for docs, markdown, sheets, base, calendar, im, mail, task, okr, drive, wiki, slides, whiteboard, apps, approval, attendance, contact, vc, minutes, event. Use when the user needs to operate Lark/Feishu resources via lark-cli, send messages, manage documents, spreadsheets, calendars, tasks, OKRs, deploy web pages, or any Feishu/Lark workspace operations.