agentleFS
MazalucasMazalucas/El-DT-Lightweight-Army/.agents/skills/deploy/SKILL.md

deploy

Skill4 starsChanged 58 days agoMITView on GitHub

[Trabajo] Desplegar la app del proyecto — primera ejecución autocompleta la config desde el repo; luego sigue vitals/config/deploy.yaml. Use when the user invokes /deploy or wants to publish to production/staging.

100 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use azure-kusto-graph, azure-kusto-irql and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    azure-kusto-graph

    Build and query Kusto graphs from natural language. Covers transient graphs (make-graph), persistent graph models/snapshots, pattern matching (graph-match), shortest paths, connected components, and graph-to-table export. Generates the edges-first thinking: define edges, define node lookups, union, make-graph. WHEN: make-graph, graph-match, graph-shortest-paths, graph-to-table, graph-mark-components, persistent graph, graph model, graph snapshot, build a graph from data, find paths between nodes, pattern matching in graph, connected components, transient graph, Kusto graph, KQL graph.

    Also in 3 projects that use this

  • MicrosoftSkill

    azure-kusto-irql

    Compose IRQL (Incident Response Query Language) queries for Kusto cybersecurity investigations. Translates natural language hunting questions into composable IRQL pipelines using Get_*, Extract_*, and Enrich_* functions. WHEN: IRQL query, security hunt, threat hunting KQL, incident response query, compose hunting pipeline, failed logins, phishing investigation, lateral movement, process execution, file creation events.

    Also in 3 projects that use this

  • pvnarpSkill

    incident

    Guides incident response and post-mortem analysis. Covers triage, mitigation, root cause analysis, and prevention. Use when responding to active incidents, writing post-mortems, or improving incident processes.

    Also in 7 projects that use this

  • ww-w-aiSkill

    starter

    Static web development guide for beginners. Covers HTML/CSS/JavaScript and Next.js App Router basics. Project initialization with "init starter". Triggers: static website, portfolio, landing page, HTML CSS, beginner, 정적 웹, 포트폴리오, 초보자, 静的サイト, 初心者, 静态网站, 初学者, sitio web estático, site statique, statische Website, sito web statico Do NOT use for: fullstack apps (use $dynamic), enterprise (use $enterprise).

    Also in 3 projects that use this

  • +8 more from microsoft

The file

Files
SKILL.md

deploy

Skill genérico: la primera vez descubre cómo se despliega este proyecto y materializa la config; las siguientes ejecuciones la siguen.

No confundir con: subagente devops (diseño de pipelines) · /github-save-small (release del template DT).

Pre-requisitos

  1. Sesión válida — vitals/ops/session.yaml con operator.id; si falta → /yo.
  2. Working tree razonablemente limpio en paths de deploy (build artifacts no commiteados).
  3. Secretos nunca en el repo — Firebase Secrets, Cloud Run env, etc. (regla 90-seguridad-secrets).

Modo de operación

Leer vitals/config/deploy.yaml (plantilla: vitals/config/deploy.yaml.example).

EstadoAcción
Archivo ausente o initialized: falseBootstrap (sección abajo) — no ejecutar deploy real hasta confirmación
initialized: trueEjecutar según deploy.yaml + references/project-deploy.md si existe

Bootstrap — primera ejecución de /deploy

Objetivo: que la IA complete la skill con lo que este repo ya tiene (o debería tener).

  1. Discover (solo lectura):
    • Docs: docs/DEPLOY.md, docs/**/deploy*.md, README sección deploy
    • Infra: firebase.json, .firebaserc, Dockerfile, cloudbuild.yaml, .github/workflows/*deploy*
    • Scripts: package.json (scripts.deploy*, scripts.build), monorepo en apps/*, frontend/, backend/
    • Stack default DT: vitals/data/engineering/web-stack.yaml · regla 08-stack-web-default
    • Referencia Firebase: skill devops → devops/references/firebase-deploy.md
  2. Inferir plataforma principal (firebase | cloud-run | vercel | docker | custom) y entornos (production, staging, …).
  3. Generar (pedir confirmación antes de escribir):
    • vitals/config/deploy.yaml — desde example, initialized: true tras OK del operador
    • .cursor/skills/deploy/references/project-deploy.md — usar plantilla references/project-deploy.template.md
  4. Contenido mínimo de project-deploy.md: prerequisitos CLI, orden de comandos, --only / targets, secrets, rollback en una línea, checklist post-deploy.
  5. Buenas prácticas (incluir en el doc generado):
    • Build local o CI antes de deploy; no --force en prod sin acuerdo
    • Predeploy hooks en firebase.json reutilizados, no scripts duplicados
    • Un workflow CI por entorno si ya existe — extender, no clonar
    • Verificar health/smoke tras deploy (URL, función ping, etc.)
    • Rollback: tag/commit anterior + redeploy (ver devops/references/rollback-runbook.md)
  6. Tras confirmación del operador → escribir archivos → incluir en el próximo commit (/guardar) vitals/config/deploy.yaml y references/project-deploy.md antes de deploy a producción → ofrecer ejecutar deploy del entorno indicado.

Regla: deploy reproducible = config versionada en Git; no desplegar a prod con bootstrap solo local.

Gate duro: cambios en remotes, borrado de recursos, firebase deploy a prod sin confirmación explícita.

Ejecutar deploy (config inicializada)

  1. Releer vitals/config/deploy.yaml y references/project-deploy.md.
  2. Confirmar entorno (production por defecto; preguntar si hay varios).
  3. Ejecutar en orden:
    • pre_deploy (lint, test, build)
    • comando(s) del entorno
    • post_deploy (smoke, invalidación CDN, etc.)
  4. Capturar salida; si falla → no declarar éxito; sugerir rollback según runbook.
  5. Versión: si el deploy incluye bump de versión de app, coordinar con /guardar (versión del proyecto, no del DT).

Entrega

  • Entorno desplegado + comando(s) ejecutados
  • URL o recurso resultante
  • Si fue bootstrap: paths escritos y qué falta (secrets, CI, DNS)
  • Puntos ciegos: drift entre doc y scripts, secrets faltantes, deploy manual no reproducible

Referencias

  • Checklist bootstrap: references/bootstrap-checklist.md
  • Plantilla doc proyecto: references/project-deploy.template.md
  • Example config: vitals/config/deploy.yaml.example

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.