Agent Skillsluxury-yacht/app › operations-workflows

operations-workflows

GitHub

提供日志、Shell执行、容器调试、端口转发及节点维护等运维工作流的开发指南,涵盖前后端入口与核心检查清单。

.agents/skills/operations-workflows/SKILL.md luxury-yacht/app

Trigger Scenarios

需要查看或处理系统日志 进行容器内Shell调试 执行端口转发操作 实施节点排水或维护

Install

npx skills add luxury-yacht/app --skill operations-workflows -g -y
More Options

Non-standard path

npx skills add https://github.com/luxury-yacht/app/tree/main/.agents/skills/operations-workflows -g -y

Use without installing

npx skills use luxury-yacht/app@operations-workflows

指定 Agent (Claude Code)

npx skills add luxury-yacht/app --skill operations-workflows -a claude-code -g -y

安装 repo 全部 skill

npx skills add luxury-yacht/app --all -g -y

预览 repo 内 skill

npx skills add luxury-yacht/app --list

SKILL.md

Frontmatter
{
    "name": "operations-workflows",
    "description": "Work on logs, shell exec, debug containers, port-forward, node drain\/maintenance, long-running operations, permissions, lifecycle, and cleanup tests"
}

Operations Workflows

Use this when touching logs, shell exec, debug containers, port-forward, node drain/maintenance, session lifecycle, operation cancellation, permission-gated actions, or related tests.

Core Contracts

Read:

  1. AGENTS.md
  2. backend/AGENTS.md
  3. frontend/AGENTS.md
  4. docs/workflows/logs/overview.md
  5. docs/workflows/shell-debug.md
  6. docs/architecture/permissions.md
  7. docs/architecture/multi-cluster.md
  8. docs/architecture/auth.md when cluster auth or recovery is involved
  9. docs/workflows/operation-lifecycle.md when touching live operation registry, cleanup, or status behavior

Backend Entry Points

  • backend/operations_coordinator.go
  • backend/runtime_operations.go
  • backend/refresh/containerlogsstream
  • backend/resources/pods/logs.go
  • backend/resources/nodes/logs.go
  • backend/app_log_service_commands.go
  • backend/shell_sessions.go
  • backend/resources/pods/debug.go
  • backend/portforward*.go
  • backend/nodemaintenance
  • backend/refresh/snapshot/node_maintenance.go
  • backend/refresh/snapshot/service.go
  • cluster lifecycle cleanup orchestrated by WorkspaceCoordinator and ApplicationLifecycle in backend/cluster_runtime_clients.go, backend/workspace_kubeconfigs.go, and backend/application_lifecycle.go

Frontend Entry Points

  • frontend/src/modules/object-panel/components/ObjectPanel/Logs
  • frontend/src/modules/object-panel/components/ObjectPanel/NodeLogs
  • frontend/src/modules/object-panel/components/ObjectPanel/Shell
  • frontend/src/modules/port-forward
  • frontend/src/core/refresh/orchestrator.ts
  • frontend/src/ui/status/SessionsStatus.tsx
  • frontend/src/ui/layout/ClusterTabs.tsx
  • frontend/src/shared/components/modals/DrainNodeModal.tsx
  • shared drain/maintenance components
  • settings or modals that configure these workflows

Checklist

  • Requests and events carry clusterId and full target identity.
  • Runtime operation entries that target Kubernetes objects carry clusterId, group, version, kind, and concrete namespace/name where applicable.
  • Permission checks and capability reasons are visible in the UI.
  • Streams, sessions, and long-running operations clean up on close, disconnect, cluster removal, auth failure, and app shutdown.
  • Cancellation/stop paths are idempotent.
  • Frontend cluster-tab close delegates to KubeconfigContext's unified selection transition; backend selection cleanup handles removed-cluster runtime operations instead of per-workflow cleanup in UI surfaces.
  • Shell backlog, port-forward details, and drain history remain owned by their workflow stores; the runtime registry only owns global presence and cleanup.
  • Sessions status renders shell sessions and port forwards only; active drains may appear in cluster-close warnings but not as Sessions panel detail rows.
  • object-maintenance keeps aggregate and node-specific scopes active concurrently so node drain indicators and an open drain modal do not reset each other.
  • object-maintenance remains uncached and singleflight-bypassed in the backend snapshot service because it represents live app-managed drain state.
  • Drain progress and history render in DrainNodeModal; keep the active or most recent drain attempt visible after a drain starts or completes.
  • Frontend state resets on cluster/namespace/object changes.
  • Logs preserve transport-specific behavior documented in the logs docs.
  • Tests cover lifecycle, permission-denied, and cleanup behavior.

Validation

Use focused checks while iterating:

mise exec -- go test ./backend ./backend/resources/pods ./backend/resources/nodes ./backend/nodemaintenance
mise exec -- go test ./backend/refresh/snapshot
mise exec -- npm run typecheck --prefix frontend
mise exec -- npm run test --prefix frontend -- Logs Shell port-forward drain orchestrator

Then follow the root final validation gate.

Version History

  • ee846a6 Current 2026-08-20 13:02

Same Skill Collection

.agents/skills/add-resource/SKILL.md
.agents/skills/app-review/SKILL.md
.agents/skills/app-shell/SKILL.md
.agents/skills/branch-review/SKILL.md
.agents/skills/browse-tables/SKILL.md
.agents/skills/cluster-auth-lifecycle/SKILL.md
.agents/skills/draft-release-notes/SKILL.md
.agents/skills/improve-backend/SKILL.md
.agents/skills/improve-frontend/SKILL.md
.agents/skills/make-impossible-states-impossible/SKILL.md
.agents/skills/new-story/SKILL.md
.agents/skills/object-map/SKILL.md
.agents/skills/object-panel/SKILL.md
.agents/skills/permissions-capabilities/SKILL.md
.agents/skills/refresh-subsystem/SKILL.md
.agents/skills/shared-resource-model/SKILL.md

Metadata

Files
0
Version
ee846a6
Hash
a3fc0f2e
Indexed
2026-08-20 13:02

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