Agent Skillslatitude-dev/latitude-llm › managing-maintenance-windows

managing-maintenance-windows

GitHub

用于管理 Latitude 生产环境维护窗口,通过 Pulumi 配置控制 ALB 级别的重定向开关,支持启用、禁用及验证所有公开服务至状态页的流程。

.agents/skills/managing-maintenance-windows/SKILL.md latitude-dev/latitude-llm

触发场景

用户请求启动或停止维护模式 用户请求切换维护状态 用户请求验证维护窗口生效情况

安装

npx skills add latitude-dev/latitude-llm --skill managing-maintenance-windows -g -y
更多选项

非标准路径

npx skills add https://github.com/latitude-dev/latitude-llm/tree/development/.agents/skills/managing-maintenance-windows -g -y

不安装直接使用

npx skills use latitude-dev/latitude-llm@managing-maintenance-windows

指定 Agent (Claude Code)

npx skills add latitude-dev/latitude-llm --skill managing-maintenance-windows -a claude-code -g -y

安装 repo 全部 skill

npx skills add latitude-dev/latitude-llm --all -g -y

预览 repo 内 skill

npx skills add latitude-dev/latitude-llm --list

SKILL.md

Frontmatter
{
    "name": "managing-maintenance-windows",
    "description": "Enables or disables Latitude production maintenance mode by redirecting all publicly exposed production services to the Better Stack status page. Use when asked to start, stop, toggle, verify, or prepare a maintenance window."
}

Managing maintenance windows

Use this skill when a user asks to enable, disable, verify, or prepare Latitude's production maintenance window.

What maintenance mode does

  • Maintenance mode is an ALB-level switch in infra/lib/alb.ts.
  • When enabled, all public production service hostnames redirect to https://status.latitude.so/: console.latitude.so, api.latitude.so, ingest.latitude.so, and bull-board.latitude.so.
  • The switch is controlled by the Pulumi production config key enableWebMaintenanceRedirect.
  • Do not implement this in apps/web: if a service is unhealthy, app-level redirects may not run.

Enable maintenance mode

From infra/:

pulumi config set enableWebMaintenanceRedirect true --stack production
pulumi preview --stack production
pulumi up --stack production

Then verify from outside the VPC:

curl -I https://console.latitude.so/
curl -I https://api.latitude.so/health
curl -I https://ingest.latitude.so/health
curl -I https://bull-board.latitude.so/

Expected result: all requests return an HTTP redirect with Location: https://status.latitude.so/.

Disable maintenance mode

From infra/:

pulumi config rm enableWebMaintenanceRedirect --stack production
pulumi preview --stack production
pulumi up --stack production

Then verify:

curl -I https://console.latitude.so/
curl -I https://api.latitude.so/health
curl -I https://ingest.latitude.so/health
curl -I https://bull-board.latitude.so/

Expected result: none of the requests redirects to https://status.latitude.so/. Services may return normal responses or auth redirects depending on the requested path.

Safety checklist

Before enabling:

  1. Confirm the user wants all publicly exposed production services redirected.
  2. Confirm https://status.latitude.so/ is live and has the relevant Better Stack maintenance or incident notice.
  3. Run pulumi preview --stack production and check that the ALB HTTPS listener default action and all public host rules change from forwarding to redirecting.
  4. Apply only after the user has approved the production change, unless they already explicitly asked to execute it.

Before disabling:

  1. Confirm the maintenance window is complete or the user explicitly asked to restore service.
  2. Run pulumi preview --stack production and check that the ALB HTTPS listener default action and all public host rules change from redirecting back to forwarding.
  3. Verify every public hostname after pulumi up.

Notes for agents

  • Use eval "$(mise env)" if local shell commands cannot find node, pnpm, or Pulumi-related tooling.
  • Do not change the hardcoded redirect target to an incident-specific URL. The reusable target is the status page root, https://status.latitude.so/.
  • If Pulumi credentials or stack access are unavailable, report the exact command the operator should run and do not fake success.

版本历史

  • 2479822 当前 2026-08-20 10:36

同 Skill 集合

.agents/skills/agentation-watch-mode/SKILL.md
.agents/skills/analyze-problem/SKILL.md
.agents/skills/api-endpoints/SKILL.md
.agents/skills/architecture-boundaries/SKILL.md
.agents/skills/artifact-designer/SKILL.md
.agents/skills/async-jobs-and-events/SKILL.md
.agents/skills/authentication/SKILL.md
.agents/skills/backoffice/SKILL.md
.agents/skills/better-auth-best-practices/SKILL.md
.agents/skills/code-style/SKILL.md
.agents/skills/database-clickhouse/SKILL.md
.agents/skills/database-postgres/SKILL.md
.agents/skills/docs/SKILL.md
.agents/skills/effect-and-errors/SKILL.md
.agents/skills/env-configuration/SKILL.md
.agents/skills/explain-diff-html/SKILL.md
.agents/skills/fix-datadog-issues/SKILL.md
.agents/skills/gh-issue/SKILL.md
.agents/skills/humanizer/SKILL.md
.agents/skills/mintlify-preview/SKILL.md
.agents/skills/notifications/SKILL.md
.agents/skills/production-release/SKILL.md
.agents/skills/review-pr-comments/SKILL.md
.agents/skills/testing/SKILL.md
.agents/skills/toolchain-commands/SKILL.md
.agents/skills/web-frontend/SKILL.md
.agents/skills/ci-watchdog/SKILL.md
.agents/skills/create-pr/SKILL.md
.agents/skills/temporal-developer/SKILL.md

元信息

文件数
0
版本
a1a723e
Hash
ff584d5b
收录时间
2026-08-20 10:36

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-16 22:02
浙ICP备14020137号-1