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

Trigger Scenarios

启用或停止生产维护模式 验证维护模式是否生效 准备维护窗口

Install

npx skills add latitude-dev/latitude-llm --skill managing-maintenance-windows -g -y
More Options

Non-standard path

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

Use without installing

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.

Version History

  • 2479822 Current 2026-08-20 10:36

Same Skill Collection

.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

Metadata

Files
0
Version
2479822
Hash
ff584d5b
Indexed
2026-08-20 10:36

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-25 13:01
浙ICP备14020137号-1 $방문자$