Community编程与开发github.com

niracler/skill

Claude Code skills collection | 我的 Claude Code 技能集

skill 是什么?

skill is a Claude Code agent skill that claude Code skills collection | 我的 Claude Code 技能集.

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add niracler/skill

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Cloud Efficiency CLI

Alibaba Cloud Cloud Efficiency (Yunxiao) DevOps command-line tool. Records non-obvious pitfalls and required field rules for the Cloud Efficiency API, helping you succeed on the first call.

Prerequisites

ToolTypeRequiredInstall
yunxiao MCPmcpNoConfigure in Claude Code MCP settings (preferred over CLI)
aliyun CLIcliNobrew install aliyun-cli then aliyun configure — see openapi.md for full setup
gitcliYesbrew install git or git-scm.com
jqcliNobrew install jq (for JSON parsing in CLI mode)

At least one of yunxiao MCP or aliyun CLI is required. MCP is preferred.

Do NOT proactively verify these tools on skill load. If a command fails due to a missing tool, directly guide the user through installation and configuration step by step.

When to Use

  • Create/Manage MRs: Create merge requests, update descriptions, and view lists on codeup.aliyun.com repositories
  • Task Management: Query/create/update task status, add comments
  • Release Management: Create tags via the Cloud Efficiency API

Tool Selection

ConditionRecommended Approach
MCP service connected (mcp__yunxiao__* tools available)Use MCP tools first (including MR operations)
No MCP serviceUse aliyun CLI
Operation not covered by MCP tools (update MR, edit comments, etc.)Use aliyun CLI

⚠️ aliyun devops ListRepositories has a known SYSTEM_UNAUTHORIZED_ERROR issue; prefer MCP tools to get repository IDs.

Common Operations Mapping

TaskMCP ToolCLI Alternative
Query repositorymcp__yunxiao__list_repositoriesaliyun devops ListRepositories (may produce permission errors)
Create MRmcp__yunxiao__create_change_requestaliyun devops CreateMergeRequest
View MRmcp__yunxiao__get_change_requestaliyun devops GetMergeRequest
Update MR—aliyun devops UpdateMergeRequest
Query taskmcp__yunxiao__search_workitemsaliyun devops ListWorkitems
Get task detailmcp__yunxiao__get_work_item—
Update task statusmcp__yunxiao__update_work_itemREST API (see openapi.md)
Query workflowmcp__yunxiao__get_work_item_workflowaliyun devops ListWorkItemWorkFlowStatus
Add commentmcp__yunxiao__create_work_item_commentREST API (see openapi.md)
Edit comment—aliyun devops UpdateWorkitemComment
Query field configmcp__yunxiao__get_work_item_type_field_configaliyun devops ListWorkItemAllFields
Create Tag—aliyun devops CreateTag

Top 5 Pitfalls

The most common traps — full rules in cheatsheet.md:

  1. Repository ID field is Id (capital I) — using .id in jq returns null
  2. Creating an MR must provide sourceProjectId, targetProjectId, createFrom: "WEB"
  3. Updating task status requires the REST API — aliyun devops POST /organization/.../workitems/updateWorkitemField
  4. updateWorkitemPropertyRequest must be an array [{...}], field names use fieldIdentifier/fieldValue
  5. Always query required fields before creating a task — different projects have different custom required fields

Detailed Guides

  • AI Assistant Must-Read: cheatsheet.md — 13 golden rules + complete error quick reference
  • API Full Reference: openapi.md — configuration guide, all API operation templates, complete MR/task/release workflows

相关技能