Alibaba Cloud Agent Skills Search & Discovery
This skill helps users search, discover, and install Alibaba Cloud official Agent Skills through the agentexplorer CLI plugin.
Scenario Description
This skill enables users to:
- 1. Search Skills — Find Alibaba Cloud Agent Skills by keyword, category, or both
- Browse Categories — Explore available skill categories and subcategories
- View Skill Details — Get detailed information about specific skills
- Install Skills — Guide users through skill installation process
Architecture: Alibaba Cloud CLI + agentexplorer Plugin → Skills Repository
Use Cases
- - "Find a skill for managing ECS instances"
- "What Alibaba Cloud skills are available for databases?"
- "阿里云有哪些 OSS 相关的 skill?"
- "Browse all available alicloud skills"
- "Install a skill for RDS management"
Installation
Pre-check: Aliyun CLI >= 3.3.1 required
Run aliyun version to verify >= 3.3.1. 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.
Install agentexplorer Plugin
CODEBLOCK0
Authentication
Pre-check: Alibaba Cloud Credentials Required
Security Rules:
- - NEVER read, echo, or print AK/SK values (e.g.,
echo $ALIBABA_CLOUD_ACCESS_KEY_ID is FORBIDDEN) - NEVER ask the user to input AK/SK directly in the conversation or command line
- NEVER use
aliyun configure set with literal credential values - ONLY use
aliyun configure list to check credential status
> aliyun configure list --user-agent AlibabaCloud-Agent-Skills
>
Check the output for a valid profile (AK, STS, or OAuth identity).
If no valid profile exists, STOP here.
- 1. Obtain credentials from Alibaba Cloud Console
- Configure credentials outside of this session (via
aliyun configure in terminal or environment variables in shell profile) - Return and re-run after
aliyun configure list shows a valid profile
RAM Policy
This skill uses read-only APIs from the AgentExplorer service. Required permissions: agentexplorer:ListCategories, agentexplorer:SearchSkills, agentexplorer:GetSkillContent. For the full RAM policy JSON, see references/ram-policies.md.
[MUST] Permission Failure Handling: When any command or API call fails due to permission errors at any point during execution, follow this process:
- 1. Read
references/ram-policies.md to get the full list of permissions required by this SKILL - Use
ram-permission-diagnose skill to guide the user through requesting the necessary permissions - Pause and wait until the user confirms that the required permissions have been granted
For detailed permission information, see references/ram-policies.md.
Parameter Confirmation
IMPORTANT: Parameter Confirmation — Before executing any command or API call,
ALL user-customizable parameters (e.g., keyword, category-code, skill-name, max-results, etc.)
MUST be confirmed with the user. Do NOT assume or use default values without explicit user approval.
| Parameter Name | Required/Optional | Description | Default Value |
|---|
| INLINECODE13 | Optional | Search keyword (product name, feature name, or description) | None |
| INLINECODE14 |
Optional | Category code for filtering (e.g., "computing", "computing.ecs") | None |
|
max-results | Optional | Maximum number of results per page (1-100) | 20 |
|
next-token | Optional | Pagination token from previous response | None |
|
skip | Optional | Number of items to skip | 0 |
|
skill-name | Required (for get-skill-content) | Unique skill identifier | None |
Core Workflow
Workflow 1: Search Skills by Keyword
Scenario: User wants to find skills related to a specific product or feature.
CODEBLOCK2
Workflow 2: Browse Skills by Category
Scenario: User wants to explore skills in a specific category.
CODEBLOCK3
Workflow 3: Get Skill Details
Scenario: User wants to see detailed information about a specific skill.
CODEBLOCK4
Workflow 4: Install a Skill
Scenario: User wants to install a discovered skill.
CODEBLOCK5
Workflow 5: Combined Search (Keyword + Category)
Scenario: User wants to narrow down search results using both keyword and category.
CODEBLOCK6
Workflow 6: Paginated Search
Scenario: User wants to browse through multiple pages of search results.
CODEBLOCK7
Success Verification
After each operation, verify success by checking:
- 1. List Categories: Response contains categoryCode and categoryName fields
- Search Skills: Response contains skills array with valid skill objects
- Get Skill Content: Response contains complete skill markdown content
- Install Skill: Skill appears in Claude Code skills list
For detailed verification steps, see references/verification-method.md.
Search Strategies & Best Practices
1. Keyword Selection
- - Use product codes:
ecs, rds, oss, slb, vpc (English abbreviations work best) - Chinese names: Also supported, e.g., "云服务器", "数据库", "对象存储"
- Feature terms: "backup", "monitoring", "batch operation", "deployment"
- Generic terms: When unsure, use broader terms like "compute", "storage", "network"
2. Category Filtering
- - Browse first: Use
list-categories to understand available categories - Top-level categories:
computing, database, storage, networking, security, etc. - Subcategories: Use dot notation like
computing.ecs, INLINECODE31 - Multiple categories: Separate with commas: INLINECODE32
3. Result Optimization
- - Start broad: Begin with keyword-only search, then add category filters
- Adjust page size: Use
--max-results based on display needs (20-50 typical) - Check install counts: Popular skills usually have higher install counts
- Read descriptions: Match skill description to your specific use case
4. When No Results Found
CODEBLOCK8
5. Display Results to Users
When presenting search results, format as table:
CODEBLOCK9
Include:
- - skillName: For installation and detailed queries
- displayName: User-friendly name
- description: Brief overview
- categoryName + subCategoryName: Classification
- installCount: Popularity indicator
Cleanup
This skill does not create any resources. No cleanup is required.
Best Practices
- 1. Always verify credentials first — Use
aliyun configure list before any search operation - Confirm parameters with user — Never assume keyword or category without asking
- Start with broad searches — Narrow down with filters if too many results
- Show category structure — Help users understand available categories before filtering
- Display results clearly — Use tables to make skill comparison easy
- Provide skill names — Always show
skillName field for installation - Handle pagination — Offer to load more results if
nextToken is present - Check install counts — Guide users toward popular, well-tested skills
- Show full details — Use
get-skill-content before installation recommendation - Test after install — Verify skill is available after installation
Common Use Cases & Examples
Example 1: Find ECS Management Skills
CODEBLOCK10
Example 2: Browse Database Skills
CODEBLOCK11
Example 3: Search with Chinese Keyword
CODEBLOCK12
Example 4: Narrow Down Search
CODEBLOCK13
Reference Documentation
Complete CLI command reference |
|
references/verification-method.md | Success verification steps for each workflow |
|
references/cli-installation-guide.md | Alibaba Cloud CLI installation guide |
|
references/acceptance-criteria.md | Testing acceptance criteria and patterns |
|
references/category-examples.md | Common category codes and examples |
Troubleshooting
Error: "failed to load configuration"
Cause: Alibaba Cloud CLI not configured with credentials.
Solution: Follow authentication section above to configure credentials.
Error: "Plugin not found"
Cause: agentexplorer plugin not installed.
Solution: Run INLINECODE38
No Results Returned
Cause: Search criteria too specific or incorrect category code.
Solutions:
- 1. Try broader keywords
- Remove category filter
- Use
list-categories to verify category codes - Try English product codes instead of Chinese names
Pagination Issues
Cause: Incorrect nextToken or skip value.
Solution: Use exact nextToken value from previous response, don't modify it.
Notes
- - Read-only operations: This skill only performs queries, no resources are created
- No credentials required for browsing: Some operations may work without full credentials
- Multi-language support: Keywords support both English and Chinese
- Regular updates: Skills catalog is regularly updated with new skills
- Community skills: Some skills may be community-contributed, check descriptions carefully
阿里云 Agent 技能搜索与发现
本技能帮助用户通过 agentexplorer CLI 插件搜索、发现和安装阿里云官方 Agent 技能。
场景描述
本技能使用户能够:
- 1. 搜索技能 — 通过关键词、分类或两者结合查找阿里云 Agent 技能
- 浏览分类 — 探索可用的技能分类和子分类
- 查看技能详情 — 获取特定技能的详细信息
- 安装技能 — 引导用户完成技能安装过程
架构:阿里云 CLI + agentexplorer 插件 → 技能仓库
使用场景
- - 查找管理 ECS 实例的技能
- 有哪些适用于数据库的阿里云技能?
- 阿里云有哪些 OSS 相关的 skill?
- 浏览所有可用的阿里云技能
- 安装 RDS 管理技能
安装
前置检查:需要 Aliyun CLI >= 3.3.1
运行 aliyun version 验证版本 >= 3.3.1。如果未安装或版本过低,
请参阅 references/cli-installation-guide.md 获取安装说明。
然后[必须]运行 aliyun configure set --auto-plugin-install true 启用自动插件安装。
安装 agentexplorer 插件
bash
安装 agentexplorer 插件
aliyun plugin install --names agentexplorer
验证安装
aliyun agentexplorer --help --user-agent AlibabaCloud-Agent-Skills
认证
前置检查:需要阿里云凭证
安全规则:
- - 绝不读取、回显或打印 AK/SK 值(例如,echo $ALIBABACLOUDACCESSKEYID 是禁止的)
- 绝不要求用户在对话或命令行中直接输入 AK/SK
- 绝不使用带有字面凭证值的 aliyun configure set
- 仅使用 aliyun configure list 检查凭证状态
bash
aliyun configure list --user-agent AlibabaCloud-Agent-Skills
检查输出中是否存在有效的配置文件(AK、STS 或 OAuth 身份)。
如果没有有效的配置文件,请在此处停止。
- 1. 从阿里云控制台获取凭证
- 在此会话之外配置凭证(通过终端中的 aliyun configure 或 shell 配置文件中的环境变量)
- 当 aliyun configure list 显示有效配置文件后返回并重新运行
RAM 策略
本技能使用 AgentExplorer 服务的只读 API。所需权限:agentexplorer:ListCategories、agentexplorer:SearchSkills、agentexplorer:GetSkillContent。完整的 RAM 策略 JSON 请参阅 references/ram-policies.md。
[必须] 权限失败处理: 当任何命令或 API 调用在执行过程中因权限错误而失败时,请遵循以下流程:
- 1. 读取 references/ram-policies.md 获取本技能所需的完整权限列表
- 使用 ram-permission-diagnose 技能引导用户请求必要的权限
- 暂停并等待,直到用户确认已授予所需权限
有关详细的权限信息,请参阅 references/ram-policies.md。
参数确认
重要:参数确认 — 在执行任何命令或 API 调用之前,
所有用户可自定义的参数(例如,keyword、category-code、skill-name、max-results 等)
必须与用户确认。未经用户明确批准,不得假设或使用默认值。
| 参数名称 | 必需/可选 | 描述 | 默认值 |
|---|
| keyword | 可选 | 搜索关键词(产品名称、功能名称或描述) | 无 |
| category-code |
可选 | 用于筛选的分类代码(例如,computing、computing.ecs) | 无 |
| max-results | 可选 | 每页最大结果数(1-100) | 20 |
| next-token | 可选 | 来自上一个响应的分页令牌 | 无 |
| skip | 可选 | 要跳过的项目数 | 0 |
| skill-name | 必需(用于 get-skill-content) | 唯一技能标识符 | 无 |
核心工作流
工作流 1:按关键词搜索技能
场景:用户想要查找与特定产品或功能相关的技能。
bash
步骤 1:与用户确认搜索关键词
示例:ECS、database backup、OSS、monitoring
步骤 2:执行搜索命令
aliyun agentexplorer search-skills \
--keyword <用户确认的关键词> \
--max-results 20 \
--user-agent AlibabaCloud-Agent-Skills
步骤 3:解析并向用户显示结果
显示:skillName、displayName、description、categoryName、installCount、likeCount
工作流 2:按分类浏览技能
场景:用户想要探索特定分类中的技能。
bash
步骤 1:列出所有可用分类
aliyun agentexplorer list-categories \
--user-agent AlibabaCloud-Agent-Skills
步骤 2:与用户确认分类选择
示例:computing、database、computing.ecs
步骤 3:在选定分类中搜索技能
aliyun agentexplorer search-skills \
--category-code <用户确认的分类> \
--max-results 20 \
--user-agent AlibabaCloud-Agent-Skills
步骤 4:向用户显示结果
工作流 3:获取技能详情
场景:用户想要查看特定技能的详细信息。
bash
步骤 1:与用户确认技能名称
(通常从之前的搜索结果中获得)
步骤 2:检索技能内容
aliyun agentexplorer get-skill-content \
--skill-name <用户确认的技能名称> \
--user-agent AlibabaCloud-Agent-Skills
步骤 3:显示技能详情,包括:
- 完整描述
- 使用说明
- 前提条件
- 示例
工作流 4:安装技能
场景:用户想要安装已发现的技能。
bash
步骤 1:与用户确认技能名称
步骤 2:执行安装命令
npx skills add aliyun/alibabacloud-aiops-skills \
--skill <用户确认的技能名称>
步骤 3:验证安装成功
检查技能是否出现在可用技能列表中
工作流 5:组合搜索(关键词 + 分类)
场景:用户想要使用关键词和分类来缩小搜索结果范围。
bash
步骤 1:与用户确认关键词和分类
步骤 2:执行组合搜索
aliyun agentexplorer search-skills \
--keyword <用户确认的关键词> \
--category-code <用户确认的分类> \
--max-results 20 \
--user-agent AlibabaCloud-Agent-Skills
步骤 3:显示筛选后的结果
工作流 6:分页搜索
场景:用户想要浏览多页搜索结果。
bash
步骤 1:执行初始搜索
aliyun agentexplorer search-skills \
--keyword <关键词> \
--max-results 20 \
--user-agent AlibabaCloud-Agent-Skills
步骤 2:从响应中提取 nextToken
步骤 3:如果用户请求更多结果,获取下一页
aliyun agentexplorer search-skills \
--keyword <关键词> \
--max-results 20 \
--next-token <来自上一个响应的 next-token> \
--user-agent AlibabaCloud-Agent-Skills
成功验证
每次操作后,通过检查以下内容验证成功:
- 1. 列出分类:响应包含 categoryCode 和 categoryName 字段
- 搜索技能:响应包含带有有效技能对象的 skills 数组
- 获取技能内容:响应包含完整的技能 Markdown 内容
- 安装技能:技能出现在 Claude Code 技能列表中
有关详细的验证步骤,请参阅 references/verification-method.md。
搜索策略与最佳实践
1. 关键词选择
- - 使用产品代码:ecs、rds、oss、slb、vpc(英文