environment-setup-guide
Guide developers through setting up development environments with proper tools, dependencies, and configurations
mistral-prod-checklist
Execute Mistral AI production deployment checklist and rollback procedures. Use when deploying Mistral AI integrations to production, preparing for launch, or implementing go-live procedures. Trigger with phrases like "mistral production", "deploy mistral", "mistral go-live", "mistral launch chec...
Full skill instructions
Complete checklist for deploying Mistral AI integrations to production.
Secrets & Configuration
Verify API Key:
# Test production key
curl -H "Authorization: Bearer ${MISTRAL_API_KEY_PROD}" \
https://api.mistral.ai/v1/models | jq '.data[].id'
Code Review
npm test)grep -r "MISTRAL_API_KEY" src/)Run Verification:
# Full test suite
npm test
# Type checking
npm run typecheck
# Check for hardcoded secrets
grep -r "sk-" src/ --include="*.ts" --include="*.js"
# Lint
npm run lint
Health Checks
// /health endpoint
app.get('/health', async (req, res) => {
const mistralHealth = await checkMistralHealth();
res.status(mistralHealth.healthy ? 200 : 503).json({
status: mistralHealth.healthy ? 'healthy' : 'degraded',
services: {
mistral: mistralHealth,
},
timestamp: new Date().toISOString(),
});
});
async function checkMistralHealth() {
const start = Date.now();
try {
await client.models.list();
return { healthy: true, latencyMs: Date.now() - start };
} catch (error) {
return { healthy: false, latencyMs: Date.now() - start, error: 'API unreachable' };
}
}
Monitoring & Alerting
Circuit Breaker
class MistralCircuitBreaker {
private failures = 0;
private lastFailure?: Date;
private isOpen = false;
private readonly failureThreshold = 5;
private readonly resetTimeout = 60000; // 1 minute
async call<T>(fn: () => Promise<T>, fallback?: () => T): Promise<T> {
// Check if circuit is open
if (this.isOpen) {
if (Date.now() - (this.lastFailure?.getTime() || 0) > this.resetTimeout) {
this.isOpen = false;
this.failures = 0;
} else {
if (fallback) return fallback();
throw new Error('Mistral service temporarily unavailable');
}
}
try {
const result = await fn();
this.failures = 0;
return result;
} catch (error: any) {
this.failures++;
this.lastFailure = new Date();
if (this.failures >= this.failureThreshold) {
this.isOpen = true;
console.error('Mistral circuit breaker opened');
}
if (fallback && this.isOpen) return fallback();
throw error;
}
}
}
# Pre-flight checks
echo "=== Pre-flight Checks ==="
# 1. Check Mistral status
echo -n "Mistral API: "
curl -s -o /dev/null -w "%{http_code}" \
-H "Authorization: Bearer ${MISTRAL_API_KEY_PROD}" \
https://api.mistral.ai/v1/models
echo ""
# 2. Check staging health
echo -n "Staging health: "
curl -sf https://staging.yourapp.com/health | jq -r '.status'
# 3. Verify tests pass
npm test
# Gradual rollout
echo "=== Starting Gradual Rollout ==="
# Deploy to canary (10% traffic)
kubectl set image deployment/mistral-app app=image:new --record
kubectl rollout pause deployment/mistral-app
# Monitor for 10 minutes
echo "Monitoring canary for 10 minutes..."
sleep 600
# Check error rates
kubectl logs -l app=mistral-app --since=10m | grep -c "error" || echo "0 errors"
# If healthy, continue to 50%
kubectl rollout resume deployment/mistral-app
kubectl rollout pause deployment/mistral-app
sleep 300
# Complete rollout to 100%
kubectl rollout resume deployment/mistral-app
kubectl rollout status deployment/mistral-app
# Verify deployment
echo "=== Post-Deployment Verification ==="
# Health check
curl -sf https://yourapp.com/health | jq
# Test chat endpoint
curl -X POST https://yourapp.com/api/chat \
-H "Content-Type: application/json" \
-d '{"messages": [{"role": "user", "content": "Hello"}]}' | jq
# Check logs for errors
kubectl logs -l app=mistral-app --since=5m | grep -i error
| Alert | Condition | Severity |
|---|---|---|
| API Down | 5xx errors > 10/min | P1 - Critical |
| High Latency | p99 > 5000ms for 5min | P2 - High |
| Rate Limited | 429 errors > 5/min | P2 - High |
| Auth Failures | 401 errors > 0 | P1 - Critical |
| Circuit Open | Circuit breaker triggered | P2 - High |
# Immediate rollback
echo "=== Emergency Rollback ==="
# 1. Rollback deployment
kubectl rollout undo deployment/mistral-app
# 2. Verify rollback
kubectl rollout status deployment/mistral-app
# 3. Check health
curl -sf https://yourapp.com/health | jq
# 4. Notify team
# Send alert to Slack/PagerDuty
For version upgrades, see mistral-upgrade-migration.
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