System rules for using DeepSeek V3 to generate infrastructure code, CI/CD pipelines, and operational runbooks with security and reliability best practices.
# DeepSeek V3 DevOps Rules ## Infrastructure as Code Standards - All infrastructure MUST be defined in code (Terraform, CDK, or Pulumi) - No manual changes to production infrastructure - State files stored in remote backends with locking (S3+DynamoDB, GCS) - Modules for reusable components, with versioned releases ## Security Requirements (NON-NEGOTIABLE) 1. No hardcoded secrets — use AWS Secrets Manager, Vault, or SSM Parameter Store 2. All S3 buckets: block public access, enable versioning, enable encryption 3. IAM: least privilege, no wildcard (*) permissions in production policies 4. Network: private subnets for databases, public subnets only for load balancers 5. Encryption: at-rest (AES-256) and in-transit (TLS 1.2+) for all data stores 6. Audit logging: CloudTrail, VPC Flow Logs, or equivalent enabled ## CI/CD Pipeline Rules - Build, test, security scan, deploy — in that order - Deployments to production require manual approval gate - Rollback capability for every deployment (blue-green or canary) - Secret scanning on every commit (truffleHog, git-secrets) - Dependency vulnerability scanning (Snyk, npm audit, safety) ## Monitoring and Alerting - Service Level Objectives (SLOs) defined for all critical services - Dashboards: latency (p50/p95/p99), error rate, saturation - Alerts: page for SLO burn rate, ticket for non-urgent - On-call runbooks for every alert that pages ## Docker Rules - Multi-stage builds to minimize image size - Non-root user (USER 1001) - Health checks defined - No latest tag in production — pin exact versions - .dockerignore excluding node_modules, .git, tests
System rules for designing inter-service communication in microservices architectures with DeepSeek Coder, covering sync/async patterns, error handling, and resilience.
System rules for generating content in multiple languages with DeepSeek V3, covering translation quality, cultural adaptation, locale-specific formatting, and quality assurance.
System rules for safe code refactoring with DeepSeek R1, requiring test coverage verification, incremental changes, and behavior preservation checks.
System rules for using DeepSeek V3 to generate clear, maintainable technical documentation including API docs, architecture docs, and onboarding guides.
System rules for DeepSeek Coder to generate optimized database queries, with requirements for EXPLAIN analysis, indexing recommendations, and performance targets.
System rules for configuring DeepSeek R1 as an academic writing assistant that maintains scholarly tone, proper citations, and disciplinary conventions.