Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

alibabacloud-governance-evaluation-report阿里巴巴云治理评估报告

Agent Skill

alibabacloud-governance-evaluation-report 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,482

周安装

63

GitHub Stars

79

下载量

519
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:alibabacloud-governance-evaluation-report(阿里巴巴云治理评估报告)
来源仓库:https://github.com/aliyun/alibabacloud-aiops-skills
仓库路径:skills/alibabacloud-governance-evaluation-report
安装命令:
npx skills add https://github.com/aliyun/alibabacloud-aiops-skills --skill alibabacloud-governance-evaluation-report
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/aliyun/alibabacloud-aiops-skills --skill alibabacloud-governance-evaluation-report

简介

引导用户逐步识别云上治理风险,聚焦高优先级问题与整改路径。

  • 提供从概览到细粒度的递进式分析流程,覆盖安全、成本与合规维度。
  • 按严重程度与领域分类呈现风险项,支持导出可执行改进清单。
  • 依赖账号的只读权限获取数据,不涉及资源修改或配置变更。
  • 输出为参考建议,具体修复措施需结合业务实际落地验证。

SKILL.md

Alibaba Cloud Governance Center Evaluation Report

Guide users to discover governance risks, focus on critical issues, and take remediation actions through a progressive drill-down workflow.

Scenario Description

This skill is a problem-discovery and resolution guide — not a comprehensive audit report generator. It operates as a progressive disclosure funnel:

  1. Overview (quick diagnosis) — Score + pillar distribution + top critical risks → guide user to choose a direction
  2. Pillar analysis (focused drill-down) — All risks in a specific domain, controlled by severity → guide user to specific items
  3. Detail (deep dive) — Single check item with full remediation steps → guide user to related items or resources
  4. Resources (action) — Non-compliant resource listing for targeted remediation

Each layer focuses on the most important information and guides the user to the next level. Avoid information overload — keep output concise and actionable.

Architecture: Governance Center API → CLI (aliyun governance) → governance_query.py (merge + cache) → JSON output → Agent report

How It Works

Data Sources — Three APIs provide all data:

  1. list-evaluation-metadata — Check item definitions (name, description, pillar, level, remediation)
  2. list-evaluation-results — Actual results (status, risk, compliance rate, score)
  3. list-evaluation-metric-details — Non-compliant resource details for a specific check item

Processing — The script (governance_query.py) merges data sources and caches results for 1 hour. It provides 4 query modes: overview, pillar, detail, resources.

Output — Structured JSON for Agent to generate user-friendly reports. Reports are output directly in the conversation as formatted text, NOT written to files.


Prerequisites

Pre-check: Aliyun CLI >= 3.3.0 required Run aliyun version to verify. If not installed or version too low, see references/cli-installation-guide.md for installation instructions. Then [MUST] run aliyun configure set --auto-plugin-install true to enable automatic plugin installation.
aliyun version                                    # >= 3.3.0
aliyun configure set --auto-plugin-install true   # Enable auto plugin install
python3 --version                                 # Python 3.x

Authentication

Configure CLI authentication (OAuth recommended):

# OAuth mode (recommended)
aliyun configure --mode OAuth

## RAM Policy

Requires Governance Center read permissions. See [references/ram-policies.md](references/ram-policies.md) for full policy.

Minimum required permissions:
- `governance:ListEvaluationMetadata`
- `governance:ListEvaluationResults`

Or attach system policy: **AliyunGovernanceReadOnlyAccess**

## Parameter Confirmation

This skill has minimal user-specific parameters. The following may require confirmation:

| Parameter Name | Required/Optional | Description | Default Value |
|----------------|-------------------|-------------|---------------|
| `--profile` | Optional | Aliyun CLI profile name | Default profile |
| `-c, --category` | Required (pillar mode) | Pillar category name | N/A |
| `--id` | Required (detail/resources mode) | Check item metric ID | N/A |
| `--keyword` | Optional (detail mode) | Search keyword for check items | N/A |
| `--max-results` | Optional (resources mode) | Max results per page | 50 |

## Verification

Verify setup before use:

Test CLI connection

aliyun governance list-evaluation-results \ --user-agent AlibabaCloud-Agent-Skills \ --cli-query "Results.TotalScore"

Test script

python3 scripts/governance_query.py overview


See [references/verification-method.md](https://github.com/aliyun/alibabacloud-aiops-skills/blob/HEAD/skills/migrationom/governance/alibabacloud-governance-evaluation-report/references/verification-method.md) for detailed steps.

---

## Core Workflow

> **IMPORTANT: Parameter Confirmation** — Before executing any command or API call, ALL user-customizable parameters (e.g., `--profile`, `--category`, `--id`, `--keyword`, `--max-results`, etc.) MUST be confirmed with the user. Do NOT assume or use default values without explicit user approval.

> **IMPORTANT: Output Format** — Reports are format specifications for conversation output only. Always output report content directly in the chat message as formatted Markdown. Do NOT create or write report files (e.g., `.md`, `.txt`, `.html`). No file generation is needed.

Script location: [scripts/governance_query.py](https://github.com/aliyun/alibabacloud-aiops-skills/blob/HEAD/skills/migrationom/governance/alibabacloud-governance-evaluation-report/scripts/governance_query.py)

### Global Options

| Option | Description |
| --- | --- |
| `--refresh` | Force refresh cache (default: 1-hour TTL) |

---

### Mode 1: `overview` — Overall Maturity Report

**When to use**: User asks about overall account health, maturity score, or wants a summary.

python3 scripts/governance_query.py overview python3 scripts/governance_query.py overview -r Error # Only high-risk items python3 scripts/governance_query.py overview -r Error,Warning # High + medium risk python3 scripts/governance_query.py --refresh overview # Force fresh data


**Options**:

| Option | Description |
| --- | --- |
| `-r, --risk` | Filter RiskyItems by risk level (comma-separated: `Error`, `Warning`, `Suggestion`). PillarSummary and RiskDistribution are always complete. |

**Output JSON fields**:

- `TotalScore` — Overall maturity score (0.0-1.0)
- `PillarSummary` — Per-pillar statistics (checked/risky counts, always unfiltered)
- `RiskDistribution` — Count by risk level (always unfiltered)
- `RiskyItems` — Items with risk, filtered by `--risk` if specified, sorted by severity
- `RiskFilter` — Applied risk filter values (only present when `--risk` is used)

**Report format**: Read [references/report-format-overview.md](https://github.com/aliyun/alibabacloud-aiops-skills/blob/HEAD/skills/migrationom/governance/alibabacloud-governance-evaluation-report/references/report-format-overview.md) for the exact output format.

---

### Mode 2: `pillar` — Pillar-Specific Report

**When to use**: User asks about a specific domain (security, reliability, cost, etc.).

python3 scripts/governance_query.py pillar -c <Category> [options]


**Options**:

| Option | Description |
| --- | --- |
| `-c, --category` | **Required**. Pillar name (see below) |
| `--risky` | Only show items with risk (exclude compliant) |
| `-l, --level` | Filter by recommendation level (comma-separated) |
| `-r, --risk` | Filter by actual risk level (comma-separated) |

**Category values**:

- `Security` — 安全
- `Reliability` — 稳定
- `CostOptimization` — 成本
- `OperationalExcellence` — 效率
- `Performance` — 性能

**Level values**: `Critical`, `High`, `Medium`, `Suggestion`

**Risk values**: `Error`, `Warning`, `Suggestion`, `None`

**Examples**:

安全支柱所有风险项

python3 scripts/governance_query.py pillar -c Security --risky

仅严重和高优先级的错误/警告

python3 scripts/governance_query.py pillar -c Security -l Critical,High -r Error,Warning --risky


**Output JSON fields**:

- `Category`, `CategoryCN` — Pillar name
- `MatchedCount` — Number of matched items
- `Items` — List of check items with status

**Report format**: Read [references/report-format-pillar.md](https://github.com/aliyun/alibabacloud-aiops-skills/blob/HEAD/skills/migrationom/governance/alibabacloud-governance-evaluation-report/references/report-format-pillar.md) for the exact output format.

---

### Mode 3: `detail` — Check Item Detail

**When to use**: User asks about a specific check item or how to fix an issue.

python3 scripts/governance_query.py detail --id <metric-id> python3 scripts/governance_query.py detail --keyword <search-term>


**Options**:

| Option | Description |
| --- | --- |
| `--id` | Check item ID (e.g., `apbxftkv5c`) |
| `--keyword` | Search by name/description (if multiple matches, shows list) |

**Examples**:

按 ID 查询

python3 scripts/governance_query.py detail --id apbxftkv5c

按关键字搜索

python3 scripts/governance_query.py detail --keyword "MFA"


**Output JSON fields**:

- Basic info: `Id`, `DisplayName`, `Description`, `Category`
- Status: `Status`, `Risk`, `Compliance`, `NonCompliant`
- `Remediation` — Fix steps (Manual/Analysis/QuickFix)

**Report format**: Read [references/report-format-detail.md](https://github.com/aliyun/alibabacloud-aiops-skills/blob/HEAD/skills/migrationom/governance/alibabacloud-governance-evaluation-report/references/report-format-detail.md) for the exact output format. The detail format also covers the resources listing when needed.

---

### Mode 4: `resources` — Non-Compliant Resources

**When to use**: User wants to see which specific resources failed a check item.

python3 scripts/governance_query.py resources --id <metric-id>


**Options**:

| Option | Description |
| --- | --- |
| `--id` | **Required**. Check item ID |
| `--max-results` | Max results per page (default: 50) |

**Examples**:

查询未启用 MFA 的 RAM 用户列表

python3 scripts/governance_query.py resources --id apbxftkv5c

查询开放高危端口的安全组

python3 scripts/governance_query.py resources --id a9g6pv7r5b


**Output JSON fields**:

- `MetricId` — Check item ID
- `TotalCount` — Number of non-compliant resources
- `Resources[]` — List of resources:
  - `ResourceId`, `ResourceName`, `ResourceType`
  - `RegionId`, `ResourceOwnerId`
  - `Classification` — Risk classification
  - `Properties` — Resource-specific attributes

---

## Mode Selection Guide

| User says... | Use mode | Command | Report format |
| --- | --- | --- | --- |
| "查查我的账号安全吗" / "成熟度得分" / "分析下治理检测结果" | `overview` | `overview` | [overview](https://github.com/aliyun/alibabacloud-aiops-skills/blob/HEAD/skills/migrationom/governance/alibabacloud-governance-evaluation-report/references/report-format-overview.md) |
| "有哪些高风险项" / "看下所有高风险" | `overview` | `overview -r Error` | [overview](https://github.com/aliyun/alibabacloud-aiops-skills/blob/HEAD/skills/migrationom/governance/alibabacloud-governance-evaluation-report/references/report-format-overview.md) |
| "中风险以上的问题" | `overview` | `overview -r Error,Warning` | [overview](https://github.com/aliyun/alibabacloud-aiops-skills/blob/HEAD/skills/migrationom/governance/alibabacloud-governance-evaluation-report/references/report-format-overview.md) |
| "安全方面有哪些问题" / "XX支柱的风险" | `pillar` | `pillar -c Security --risky` | [pillar](https://github.com/aliyun/alibabacloud-aiops-skills/blob/HEAD/skills/migrationom/governance/alibabacloud-governance-evaluation-report/references/report-format-pillar.md) |
| "网络安全相关的检测项" / "数据库风险" | `pillar` + keyword filter | `pillar -c Security --risky` then filter by keyword | [pillar](https://github.com/aliyun/alibabacloud-aiops-skills/blob/HEAD/skills/migrationom/governance/alibabacloud-governance-evaluation-report/references/report-format-pillar.md) |
| "高优先级的问题" | `pillar` | `pillar -c Security -l Critical,High --risky` | [pillar](https://github.com/aliyun/alibabacloud-aiops-skills/blob/HEAD/skills/migrationom/governance/alibabacloud-governance-evaluation-report/references/report-format-pillar.md) |
| "MFA怎么修" / "XX检测项详情" | `detail` | `detail --keyword "MFA"` | [detail](https://github.com/aliyun/alibabacloud-aiops-skills/blob/HEAD/skills/migrationom/governance/alibabacloud-governance-evaluation-report/references/report-format-detail.md) |
| "哪些用户没开MFA" / "不合规资源有哪些" | `detail` + `resources` | `detail --id xxx` then `resources --id xxx` | [detail](https://github.com/aliyun/alibabacloud-aiops-skills/blob/HEAD/skills/migrationom/governance/alibabacloud-governance-evaluation-report/references/report-format-detail.md) |

**Default**: If user doesn't specify pillar or check item, use `overview`.

**Report format selection**: After determining the query mode, read the corresponding report format reference file before generating output. Only read the format file that matches the user's intent — do not read all format files at once.

## Field Reference

| Field | Values | Note |
| --- | --- | --- |
| `Risk` | `Error`(高风险) > `Warning`(中风险) > `Suggestion`(低风险) > `None`(合规) | Actual detected risk |
| `RecommendationLevel` | `Critical` > `High` > `Medium` > `Suggestion` | Recommended priority |
| `Status` | `Finished` / `NotApplicable` / `Failed` | Check execution status |
| `Compliance` | 0.0 - 1.0 | 1.0 = fully compliant |

## Cache & Cleanup

Only metadata (check item definitions) is cached locally — results are always fetched in real-time.

- Cache location: `~/.governance_cache/metadata.json`
- TTL: 24 hours (metadata rarely changes)
- `list-evaluation-results` and `list-evaluation-metric-details` are **never cached**

Force refresh metadata cache

python3 scripts/governance_query.py --refresh overview

Clear cache manually

rm -rf ~/.governance_cache/


## Best Practices

1. **Focus, don't dump** — Each report layer should highlight what matters most, not list everything. Read the corresponding report format reference for quantity control rules
2. **Follow the funnel** — Start with `overview`, guide user to `pillar`, then to `detail`. Don't skip layers unless user explicitly asks for a specific item
3. **Use `--risky` filter for pillar mode** — Reduces noise by hiding compliant items when investigating issues
4. **Prioritize by Risk + Level** — Focus on `Error` risk with `Critical`/`High` recommendation level first
5. **Follow remediation guidance** — Use `detail` mode to get actionable fix steps before modifying resources
6. **Always guide next steps** — Every report must end with follow-up guidance based on actual data, helping users continue exploring
7. **Cache management** — Only metadata is cached (24h TTL); results are always real-time. Use `--refresh` to force metadata refresh

## References

| File | Content |
| --- | --- |
| [report-format-overview.md](https://github.com/aliyun/alibabacloud-aiops-skills/blob/HEAD/skills/migrationom/governance/alibabacloud-governance-evaluation-report/references/report-format-overview.md) | Report format: overall governance overview |
| [report-format-pillar.md](https://github.com/aliyun/alibabacloud-aiops-skills/blob/HEAD/skills/migrationom/governance/alibabacloud-governance-evaluation-report/references/report-format-pillar.md) | Report format: pillar / keyword aggregated analysis |
| [report-format-detail.md](https://github.com/aliyun/alibabacloud-aiops-skills/blob/HEAD/skills/migrationom/governance/alibabacloud-governance-evaluation-report/references/report-format-detail.md) | Report format: single check item detail + resources |
| [related-apis.md](https://github.com/aliyun/alibabacloud-aiops-skills/blob/HEAD/skills/migrationom/governance/alibabacloud-governance-evaluation-report/references/related-apis.md) | CLI commands and API details |
| [ram-policies.md](https://github.com/aliyun/alibabacloud-aiops-skills/blob/HEAD/skills/migrationom/governance/alibabacloud-governance-evaluation-report/references/ram-policies.md) | Required permissions |
| [verification-method.md](https://github.com/aliyun/alibabacloud-aiops-skills/blob/HEAD/skills/migrationom/governance/alibabacloud-governance-evaluation-report/references/verification-method.md) | Verification steps |
| [cli-installation-guide.md](https://github.com/aliyun/alibabacloud-aiops-skills/blob/HEAD/skills/migrationom/governance/alibabacloud-governance-evaluation-report/references/cli-installation-guide.md) | CLI installation |

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.49%
按下载量换算195

Claude

29.35%
按下载量换算152

Cursor

20.1%
按下载量换算104

Gemini CLI

10.3%
按下载量换算53

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills