Alibabacloud Rds Postgresql Inspection
Batch health inspection for Alibaba Cloud RDS PostgreSQL instances. Supports single, multiple, or all-instance global scan with configurable time window…
от sdk-team658 установок в других каталогах
Установить Alibabacloud Rds Postgresql Inspection в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Alibaba Cloud RDS PostgreSQL Instance Inspection Skill
This skill performs batch health inspections of Alibaba Cloud RDS PostgreSQL instances. It supports three modes — single instance, multiple instances, and global batch — with a configurable time window (default 7 days, up to 30 days), and produces standardized HTML inspection reports.
⚡ TL;DR — Run ONE command, do NOT improvise
The ONLY correct way to fulfil any inspection request is to execute
scripts/inspect.py. The agent MUST NOT fabricate a markdown summary, MUST NOT chainaliyun rds describe-*calls in the conversation, and MUST NOT write any*.md/*_health_report.mdfile as the deliverable. The script writes the required HTML files (instances/<id>.htmlper instance, plussummary.htmlin global mode) by itself.
# Global / batch / 全部 / 所有 / 全局 (the failed eval scenario):
SKILL_SESSION_ID={session-id} python3 scripts/inspect.py --all --days 7
# Single or multiple instances:
SKILL_SESSION_ID={session-id} python3 scripts/inspect.py -i pgm-xxx[,pgm-yyy] --days 7
Deliverables produced by the script (the eval asserts on these exact paths):
outputs/instances/<DBInstanceId>.html— one per instance, 5 sections.outputs/summary.html— only in--allmode, 8 chapters, with health-score ranking sorted ascending and clickable links to eachinstances/<id>.html.- ❌ NEVER write
rds_postgresql_health_report.md,health_summary.json,instances.csvor any.md/.json/.csvfile intooutputs/as the report.
Usage
You do not need to run any command manually. Simply describe the request in natural language.
Example Prompts
Example 1: Single instance
Inspect RDS PostgreSQL instance pgm-bp1xxxxxx
Example 2: Multiple instances with a custom time window
Inspect pgm-bp1xxx and pgm-bp1yyy for the past 14 days
Example 3: Global inspection
Run a health inspection on all RDS PostgreSQL instances and produce a summary report
Example 4: Limit by region
Inspect all RDS PostgreSQL instances in cn-hangzhou and cn-shanghai
What the AI Does Automatically
- Recognizes the user intent (single / multiple / global) and extracts the time-window parameters.
- Calls
rds describe-regionsto obtain the list of available regions (filters outClosedDown). - Concurrently scans every region for RDS PostgreSQL instances (region ID is carried automatically — the user does not need to specify it).
- Concurrently retrieves attributes, monitoring, alerts, and slow logs for each target instance.
- Emits one HTML report per instance plus a summary HTML report, including a health-score ranking and optimization suggestions.
[MUST] Execution Mode — Always Run the Script, Never Hand-craft CLI
This skill is a one-shot script-driven tool. The agent MUST execute scripts/inspect.py end-to-end and MUST NOT improvise a sequence of aliyun CLI calls in place of the script. The script is the only place that correctly implements Phase 1 (DescribeRegions) → Phase 2 (cross-region DescribeDBInstances) → Phase 3-7 collection + rendering.
Intent → Command mapping (MUST follow exactly)
| User intent (any of the trigger keywords) | MUST run | MUST NOT do |
|---|---|---|
全部 / 所有 / 全局 / 批量 / --all / "all instances" / "global inspection" / "every RDS PostgreSQL" |
SKILL_SESSION_ID={session-id} python3 scripts/inspect.py --all [--days N] |
❌ Calling aliyun rds describe-db-instances directly without iterating regions; ❌ relying on the default profile region only; ❌ skipping describe-regions |
One or more instance IDs (pgm-xxx / pgm-yyy) |
SKILL_SESSION_ID={session-id} python3 scripts/inspect.py -i pgm-xxx[,pgm-yyy] [--days N] |
❌ Asking the user for the region; ❌ hard-coding cn-hangzhou |
| Specific regions (e.g. "inspect all in cn-hangzhou and cn-shanghai") | SKILL_SESSION_ID={session-id} python3 scripts/inspect.py --all --regions cn-hangzhou,cn-shanghai |
❌ Skipping --regions and manually iterating regions with CLI |
[MUST] Hard rules — apply to ALL modes (single / multiple / global)
These rules are NOT only for global mode. The single-instance and multi-instance modes have failed evals for the exact same root cause: the agent stitched a chain of aliyun CLI calls in the conversation, hit a timeout, and produced an empty outputs/ directory with no HTML report. Treat the rules below as universal:
- MUST execute
python3 scripts/inspect.pyexactly once with the appropriate flags. Do NOT replace it with a sequence ofaliyun rds describe-*/aliyun cms describe-*calls in the conversation. The script is the only path that produces the required HTML report (5 chapters per instance + summary). - MUST pass
--allfor全部/所有/全局/批量/ all / global / every. Without--allthe script will refuse to enter global scan mode. - MUST pass
-i <id1>[,<id2>...]for specific instance IDs. The
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Alibabacloud Rds Postgresql Inspection?
Batch health inspection for Alibaba Cloud RDS PostgreSQL instances. Supports single, multiple, or all-instance global scan with configurable time window (default 7 days, max 30). Outputs one HTML report per instance plus a summary HTML. Dimensions include instance basics, resource utilization (CPU/memory/disk/IOPS/connections), CloudMonitor alert history, slow log TOP 20, long transactions, table bloat, QPS/TPS, replication delay. Cluster instances auto-detected with per-node metrics. Triggers on RDS inspection, RDS health check, RDS PostgreSQL inspection, Alibaba Cloud RDS inspection, batch or global multi-instance inspection, slow log analysis, space analysis, PostgreSQL inspection, long transaction, table bloat, replication delay. Chinese triggers: "巡检 RDS PostgreSQL"、"RDS PostgreSQL 巡检"、"RDS 健康巡检"、"RDS 健康检查"、"阿里云 RDS 巡检"、"批量巡检"、"全局巡检"、"所有实例巡检"、"实例巡检"、"慢日志分析"、"长事务"、"表膨胀"、"复制延迟"、"健康评分"、"汇总报告"。
Как установить скилл Alibabacloud Rds Postgresql Inspection?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Alibabacloud Rds Postgresql Inspection запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…