observe-session
快速启动针对 CloudFormation/ECS 日志的只读调查会话,省去手工定位过程。
需要访问 AWS 凭据/配置,使用前需确认只读权限与账号正确。
一键建立 AWS 只读可观测调查会话,自动发现 profile、stack 与目标日志组。
一键在本地起一个 AWS 只读 observe box:自动识别 AWS profile/region、发现目标 CloudFormation stack 与实际被运行任务引用的 CloudWatch Logs,创建/更新只读 IAM role,注入短期 STS 会话并做读权限烟雾测试。用于从 observe box 调查已部署环境的日志与错误。特别之处在于把目标发现、角色创建和会话注入等繁琐步骤全自动化,但不代替日志分析本身。
▸ 展开 SKILL.md 英文原文
Sets up an AWS read-only observe box investigation session end-to-end: resolves the AWS profile/region, discovers the deployed target (CloudFormation stack + the live CloudWatch Logs log group actually referenced by the running ECS task definition, or the most recently active log group for non-ECS stacks), creates/updates the read-only IAM role via examples/observe/setup-role.sh, starts an obs-* box via scripts/dev.sh observe, injects a short-lived STS session via examples/observe/start-session.sh, and smoke-tests read access. Use when the user wants to investigate a deployed AWS environment's logs/errors from an observe box, or asks to set up AWS read-only log investigation (rules/box-personas.md US3). Hands off to examples/observe/runbook.md for the actual investigation — this skill only gets the box and credentials ready.
帮我安装这个 skill:https://raw.githubusercontent.com/kanka-jp/coding-agent-playbook-20260707/main/.claude/skills/observe-session/SKILL.mdcurl -fsSL "https://raw.githubusercontent.com/kanka-jp/coding-agent-playbook-20260707/main/.claude/skills/observe-session/SKILL.md"# observe-session `rules/box-personas.md` US3 (AWS 可観測性の read-only 調査) のセットアップを 1 コマンドで完結させる leaf skill。既存の `examples/observe/setup-role.sh` / `examples/observe/start-session.sh` / `scripts/dev.sh observe` を束ね、「どの AWS profile/account か」「どの stack/log group が調査対象か」の発見を自動化する。 実際の調査ロジック (ログ解析コマンド等) は持たない。box とセッションの準備が終わったら [../../../examples/observe/runbook.md](../../../examples/observe/runbook.md) に引き継ぐ。 ## 引数 `profile` / `region` / `log-group`(すべて省略可)。`log-group` を指定した場合、Step 3 (対象環境の発見) を skip して直接使う。 ## 前提 - host 側の `aws` コマンドは常に `--profile` / `--region` を明示する(ambient な default profile に依存しない) - `jq` が必要(`setup-role.sh` / `start-session.sh` 自体も要求する) - Windows では各コマンドの `.ps1` 版 (`setup