RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/Cursor rules/madebyaris/advance-minimax-m3-cursor-rules

Cursor rule

.cursor/rules/devops-infrastructure.mdc

DevOps and infrastructure: Docker, Kubernetes, Terraform, CI/CD. Load when editing Dockerfiles, compose, k8s manifests, Terraform, or workflow YAML — not for application code.

Cursor rules

Quality

79/100

Scores the file, not the repository.

Length

681 words

9 headings · 0 code blocks

Repository

124

— · pushed 49 days ago

Last changed

3 days ago

First indexed 3 days ago.
madebyaris/advance-minimax-m3-cursor-rules/.cursor/rules/devops-infrastructure.mdcRawGitHub
1---
2description: "DevOps and infrastructure: Docker, Kubernetes, Terraform, CI/CD. Load when editing Dockerfiles, compose, k8s manifests, Terraform, or workflow YAML — not for application code."
3globs: ["**/Dockerfile*", "**/*.tf", "**/docker-compose*.yml", "**/docker-compose*.yaml", "**/k8s/**", "**/.github/workflows/**", "**/.gitlab-ci.yml", "**/Jenkinsfile", "**/cloudbuild.yaml", "**/terraform/**", "**/helm/**"]
4alwaysApply: false
5---
6 
7# DevOps & Infrastructure Patterns
8 
9Mechanical reference for containerization, orchestration, IaC, and CI/CD. For general coding workflow (read-before-edit, minimal diff, verification labels), the always-on core **Code Discipline** and **App And Scaffold Discipline** sections are canonical.
10 
11Load this rule when touching infrastructure files matched by globs. For unfamiliar provider APIs or version-sensitive changes, verify against current official docs (or use the `deep-research` skill) — do not invent flags, resource names, or provider syntax.
12 
13---
14 
15## Before Changing Infrastructure
16 
171. Read existing Docker, compose, k8s, Terraform, Helm, and CI workflow files in this repo first.
182. Note pinned base images, provider versions, and environment naming — match them unless the task requires a deliberate upgrade.
193. Identify blast radius: prod deploy, secrets, stateful resources, and rollback path.
204. Prefer **plan / dry-run / validate** before **apply / deploy / push**.
21 
22---
23 
24## Validate Before Apply
25 
26| Tool | Smallest useful check |
27|------|------------------------|
28| Docker | `docker build -t test:local .` |
29| Compose | `docker compose config` |
30| Kubernetes | `kubectl apply --dry-run=client -f …` or `kubectl diff -f …` |
31| Terraform | `terraform fmt -check`, `terraform validate`, `terraform plan` |
32| Helm | `helm lint`, `helm template` (render locally) |
33| GitHub Actions | YAML syntax + action pin review; run workflow on a branch when safe |
34 
35Never recommend `terraform apply`, `kubectl apply`, or production deploy without a plan/dry-run step unless the user explicitly skips it.
36 
37---
38 
39## Decision Quick Reference
40 
41| Need | Prefer |
42|------|--------|
43| Local dev stack | Docker Compose when sufficient; k8s only when repo already uses it |
44| Secrets | Platform secret stores / CI secrets — never commit plaintext |
45| CI | Extend existing workflow patterns in `.github/workflows/` rather than inventing a parallel pipeline |
46| Image tags | Pin major.minor (or digest); avoid `:latest` in anything that ships |
47| Terraform state | Remote backend + locking when team/shared; do not hand-edit state |
48 
49---
50 
51## Common Traps
52 
53- **YAML tabs** — spaces only (2-space indent is standard).
54- **Unquoted YAML scalars** — quote version strings and booleans when they must stay strings (`"1.0"`, `"true"`).
55- **Secrets in repo** — no passwords, tokens, or keys in Dockerfile `ENV`, compose, or workflow YAML; use `${{ secrets.* }}`, K8s `secretKeyRef`, or TF variables from a vault.
56- **`:latest` base images** — pin `node:20-alpine`, `python:3.12-slim`, etc.; verify current tags against official registries.
57- **Blind apply** — skipping `plan` / dry-run on shared or production infra.
58- **Drift from repo conventions** — new services that ignore existing naming, networks, labels, or backend config.
59 
60---
61 
62## CI/CD Discipline
63 
64- Reuse job names, runner labels, cache keys, and artifact patterns already in the repo.
65- Pin third-party GitHub Actions to a commit SHA or semver tag — not `@main`.
66- Scope secrets to the minimum job that needs them.
67- For deploy workflows: require manual approval or environment gates when the repo already uses them; do not remove safety rails opportunistically.
68 
69---
70 
71## Security (infra-specific)
72 
73- Least-privilege IAM / service accounts; no admin credentials in CI logs.
74- Scan images when the repo already has Trivy/Snyk/similar — do not add heavy tooling unprompted.
75- Network policies / security groups: default deny between services unless the architecture requires otherwise.
76- Treat `.env`, kubeconfig, and TF state as sensitive — never paste contents into chat or commits.
77 
78---
79 
80## Verification After Changes
81 
82Match proof to the claim (see always-on status-verification rule):
83 
84| Change | Minimum proof |
85|--------|----------------|
86| Dockerfile / compose | `docker build` or `docker compose config` succeeds |
87| k8s manifest | dry-run or schema validation passes |
88| Terraform | `validate` + `plan` with expected diff |
89| CI workflow | YAML valid; optional dry-run on branch if user allows |
90 
91Label deploy/runtime behavior as `unverified` until exercised in the target environment.
92 
93---
94 
95## When NOT to Load This File
96 
97- Application logic, API handlers, or UI — use core **Code Discipline** instead.
98- Full cloud architecture from scratch — inspect the repo and ask on real forks (provider, region, existing VPC/cluster).
99 

Commands it names

  • docker build -t test:local .
  • docker compose config
  • kubectl apply --dry-run=client -f …
  • kubectl diff -f …
  • terraform fmt -check
  • terraform validate
  • terraform plan
  • helm lint
  • helm template
  • terraform apply
  • kubectl apply
  • node:20-alpine
  • python:3.12-slim
  • docker build

Sections

  • DevOps & Infrastructure Patterns
  • Before Changing Infrastructure
  • Validate Before Apply
  • Decision Quick Reference
  • Common Traps
  • CI/CD Discipline
  • Security (infra-specific)
  • Verification After Changes
  • When NOT to Load This File

What it covers

code-stylesecuritydeploymentdo-not

Stack — with the evidence

python

(0.80)

Glob targeting

  • **/Dockerfile*
  • **/*.tf
  • **/docker-compose*.yml
  • **/docker-compose*.yaml
  • **/k8s/**
  • **/.github/workflows/**
  • **/.gitlab-ci.yml
  • **/Jenkinsfile
  • **/cloudbuild.yaml
  • **/terraform/**
  • **/helm/**

Format

Cursor rules

The most expressive format here. Many small .mdc files, each with frontmatter declaring when it should load, so a rule about migrations only enters context when a migration is open. Costs the most to maintain and only one editor reads it.

What the corpus says about it

Repository

Owner
madebyaris
Language
—
License
—
Archived
no

All configs in this repo

Also in madebyaris/advance-minimax-m3-cursor-rules

Diff this repo’s formats

One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?

The other instruction files in this repository
RepositoryFormatStackCoversScoreChanged
madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/3d-graphics.mdc · 124Cursor rulespythonlint-formatstyle62/1003 days ago
madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/agent-teams.mdc · 124Cursor rulespythonsetupstylegitapi+373/1003 days ago
madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/cursor-agent-orchestration.mdc · 124Cursor rulespythonstyledo-notagent-behaviour73/1003 days ago
madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/cursor-mcp-optimization.mdc · 124Cursor rulespythonstyledo-notagent-behaviour65/1003 days ago
madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/cursor-tools-mastery.mdc · 124Cursor rulespythonstylemonorepoagent-behaviour58/1003 days ago
madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/design-systems.mdc · 124Cursor rulespythonlint-formatstyleuido-not77/1003 days ago
madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/fable5-reasoning.mdc · 124Cursor rulespythonstyle58/1003 days ago
madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/language-agnostic-patterns.mdc · 124Cursor rulespythonteststylearchtesting-strategy+558/1003 days ago
madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/minimax-m3-core.mdc · 124Cursor rulespythonbuildtestlint-formatstyle+475/1003 days ago
madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/minimax-m3-self-evolution.mdc · 124Cursor rulespythonstyledo-notagent-behaviour65/1003 days ago
madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/minimax-m3-status-verification.mdc · 124Cursor rulespythonstyletypestesting-strategyapi+165/1003 days ago
madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/minimax-m3-verification.mdc · 124Cursor rulespythonbuildtestlint-formatstyle+389/1003 days ago
madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/minimax-mcp-tools.mdc · 124Cursor rulespythonstyleagent-behaviour54/1003 days ago
madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/mobile-cross-platform.mdc · 124Cursor rulespythonsetupperformancedeployment68/1003 days ago
madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/skill-authoring.mdc · 124Cursor rulespythonstylesecurityapi58/1003 days ago
madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/clarify-first-prompting.mdc · 124Cursor rulespythonstyledo-not61/1003 days ago
madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/fable5-coding-craft.mdc · 124Cursor rulespythonteststylearchtesting-strategy+158/1003 days ago
madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/model-compatibility.mdc · 124Cursor rulespythonstyledeploymentagent-behaviour66/1003 days ago
madebyaris/advance-minimax-m3-cursor-rules.cursor/rules/tool-discovery.mdc · 124Cursor rulespythonstyletypesdatabaseagent-behaviour58/1003 days ago
Diff against .cursor/rules/3d-graphics.mdc Diff against .cursor/rules/agent-teams.mdc Diff against .cursor/rules/cursor-agent-orchestration.mdc Diff against .cursor/rules/cursor-mcp-optimization.mdc Diff against .cursor/rules/cursor-tools-mastery.mdc Diff against .cursor/rules/design-systems.mdc Diff against .cursor/rules/fable5-reasoning.mdc Diff against .cursor/rules/language-agnostic-patterns.mdc Diff against .cursor/rules/minimax-m3-core.mdc Diff against .cursor/rules/minimax-m3-self-evolution.mdc Diff against .cursor/rules/minimax-m3-status-verification.mdc Diff against .cursor/rules/minimax-m3-verification.mdc Diff against .cursor/rules/minimax-mcp-tools.mdc Diff against .cursor/rules/mobile-cross-platform.mdc Diff against .cursor/rules/skill-authoring.mdc Diff against .cursor/rules/clarify-first-prompting.mdc Diff against .cursor/rules/fable5-coding-craft.mdc Diff against .cursor/rules/model-compatibility.mdc Diff against .cursor/rules/tool-discovery.mdc

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45Cursor rulestypescriptpytest+15testlint-formatstylearch+5100/1003 days ago
langflow-ai/langflow.cursor/rules/docs_development.mdc · 153kCursor rulespythonnode+16setupbuildtestlint-format+797/1003 days ago
TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45Cursor rulestypescriptpytest+15teststyletesting-strategysecurity+397/1003 days ago
nerds-odd-e/doughnut.cursor/rules/cli.mdc · 49Cursor rulestypescriptcypress+14setupbuildteststyle+496/1003 days ago
iloveitaly/llm-ide-rules.cursor/rules/general.mdc · 13Cursor rulespythonpytest+2teststyledo-notagent-behaviour+192/1003 days ago
danielvm-git/bigpowers.cursor/rules/guard-git.mdc · 119Cursor rulesshellnode+8stylearchgitsecurity+289/1003 days ago
nerds-odd-e/doughnut.cursor/rules/frontend-testing.mdc · 49Cursor rulestypescriptcypress+14buildteststyletesting-strategy+289/1003 days ago
danielvm-git/bigpowers.cursor/rules/organize-workspace.mdc · 119Cursor rulesshellnode+8buildstylegitdeployment+289/1003 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack