agentleFS
MazalucasMazalucas/El-DT-Lightweight-Army/.cursor/rules/40-devops.mdc

El-DT-Lightweight-Army / rules

Cursor rule4 starsChanged 55 days agoMITView on GitHub

Convenciones DevOps — CI/CD, IaC, deploy Firebase, DRY en pipelines

The file

We split this 40-devops.mdc into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    No documentar rollback ad hoc sin revisar procedimiento existente (skill devops/references/rollback-runbook.md)

    line 40

≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
40-devops.mdc
---
description: Convenciones DevOps — CI/CD, IaC, deploy Firebase, DRY en pipelines
globs: "**/.github/workflows/**, **/Dockerfile*, **/docker-compose*, **/terraform/**, **/firebase.json, **/cloudbuild*"
alwaysApply: false
---

# DevOps e infraestructura

Stack default del DT: ver regla `08-stack-web-default` · deploy Firebase. Reuse-first: `15-engineering-reuse` · `DOC-REF-006` · skill `devops`.

## Principios

- **IaC declarativo** — workflows, `firebase.json`, Terraform/Pulumi versionados
- **DRY en pipelines** — extender jobs/workflows existentes; matrices y reusable workflows antes de duplicar YAML
- **Secrets nunca en YAML** — Firebase Secrets, GitHub Secrets, secret managers del cloud
- **Un script canónico** — preferir `package.json` scripts invocados desde CI

## Convenciones CI/CD

- Reutilizar cache de dependencias (Node, etc.) ya configurada en el repo
- Stages: lint → test → build → deploy (omitir solo si el repo no tiene toolchain)
- Security checks en pipeline cuando existan (audit, SAST) — no inventar pipeline paralelo

## Deploy (Firebase default)

- Reutilizar `firebase.json` targets y `--only` existentes
- Predeploy hooks compartidos para lint/test/build
- Coordinar con **arquitecto** qué recursos se despliegan

## Estrategias de deploy

Elegir según contexto del repo (documentar en entrega):

- **Rolling** — default razonable para Hosting/Functions
- **Blue/green o canary** — solo si el repo ya tiene patrón o hay requisito explícito

## Rollback

- Enlazar runbooks en `docs/06_operations/` si existen
- No documentar rollback ad hoc sin revisar procedimiento existente (skill `devops/references/rollback-runbook.md`)

## Referencias

- Skill táctica: `.cursor/skills/devops/SKILL.md`
- Stack web: `docs/03_reference/web-stack-default.md` (`DOC-REF-005`)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.