
qianwenai-operate
诊断由 qianwenai-deploy 部署到阿里云国内站(aliyun.com)的应用为何不可用或明显变慢,并在用户 明确确认后执行安全恢复并验证结果。读取项目目录下的 .qianwenai-deploy 状态文件识别 ECS(及可选 RDS MySQL)资源,先做最小只读诊断,再一次只提议一个恢复动作(启动 ECS、重启应用服务、重载 Nginx),每个动作都先经过说明影响的确认。 使用场景:用户说应用打不开 / 返回 502 / 连不上数据库,或要求重启并确认应用恢复。 不使用场景:没有 .qianwenai-deploy 状态文件;目标是阿里云国际站(用 qwencloud-operate); 用户只想要状态/成本概览(用 qianwenai-observe)。
- Installs
- 917
- Last 24h
- +27
- Trending rank
- #4618
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/qianwen-ai/qianwenai-deploy --skill qianwenai-operate- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads qianwenai-operate automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
千问 AI 运维
对由 qianwenai-deploy 部署在阿里云国内站的应用做故障诊断与确认式恢复。诊断只读、无需确认;任何
改变云资源或应用运行状态的动作都必须经过明确确认。
交互流程
识别应用和资源
→ 最小诊断(只读)
→ 给出原因、证据、建议动作
→ 展示影响并请求确认
→ 执行一个恢复动作
→ 验证应用、ECS、RDS
→ 返回结果和审计信息
→ 提议经 qianwenai-observe 重新评分(恢复前 → 恢复后)
交互形态
- 只读信息(诊断、原因、证据、验证结果):纯文本,每条判断后附一行证据(指标、状态、RequestId)。
- 改状态动作(启停 ECS、重启应用、重载 Nginx 等任何写调用):先用 AskUserQuestion,提问答清 做什么 · 影响(停机/不可逆) · 怎么验证,确认前不执行;一次只提议一个恢复动作。
- 主动纪律:恢复后如结果正常则安静收尾;仅在仍有风险或未恢复时主动给下一步,让用户选。
范围
| 范围内 | 范围外 |
|---|---|
由 qianwenai-deploy 部署的应用(存在状态文件) | 无 .qianwenai-deploy 状态文件的应用 |
| 单 ECS,或 ECS + RDS MySQL 8.0 | 其他拓扑 / 自建服务器 |
| 诊断 + 确认式恢复(启动 ECS、重启应用、重载 Nginx) | 数据破坏性操作、扩缩容、配置重构 |
| 定位到应用层报错(哪一层坏了、报了什么错) | 源码审查、找 bug/漏洞、判断哪行代码写错、改代码 |
| 阿里云国内站 | 国际站 → 用 qwencloud-operate |
代码问题不在能力范围内
本 skill 处理基础设施与运行时故障,不做源码审查、缺陷定位或代码修改。诊断可定位到「应用层报错、报了 什么错」,帮用户缩小范围,但不判断具体哪行代码有问题,也不改代码。
涉及代码时,明确告知用户:修改代码属于本 skill 能力之外,需由用户自行决定并执行,相应后果由用户 自行承担。不要在恢复动作里夹带任何代码改动。
前置条件
Aliyun CLI:
aliyun version(需 3.x)。所有命令用驼峰原生形态直连 OpenAPI, 不依赖插件。凭证仅用aliyun configure list查看状态。绝不读取、回显、打印或索要 AK/SK/Token。 无有效配置集 → 停止并请用户在本会话之外配置凭证。见references/cli_installation_guide.md。
怎么做
- 识别应用 — 从
.qianwenai-deploy识别应用。见 workflow。 - 诊断(只读,无需确认)— 找出坏在哪一层、可能的原因、证据,以及该怎么处理。见 diagnose。
- 一次只恢复一件事,且先确认。 选中与诊断匹配的动作,向用户展示影响并取得同意,再执行且仅执行
那一件事:
- 启动已停止的服务器 → recover-ecs
- 重启卡死的服务器 → recover-reboot
- 重启应用服务 → recover-app
nginx -t通过后重载 Nginx → recover-nginx- EIP 解绑后重新绑定 → recover-eip
- 放行安全组 80 / 443 入方向 → recover-securitygroup
- 数据库相关问题 → recover-rds
- 根分区将满 / 清理后仍不足需扩容 → recover-disk
- 验证应用是否恢复,再记录做了什么。见 workflow。
保证恢复安全的几条规则
- 诊断只读;恢复只用一小组已知安全的命令。
- 任何会改变状态的动作都先与用户确认,取消则不改变任何东西。
- 一次一个动作,验证后再决定下一步——绝不把多个恢复步骤合在一起。
- 恢复动作可安全重复。
- 遇到超时、权限错误或状态意外变化时,在下一次改动前停下。
- 审计记录和对话里绝不出现密码、Token 或完整连接串。
任何改动前,确认信息要告诉用户:操作哪个资源、执行什么动作、是否会短暂中断应用、是否改变版本、是否 产生新费用,以及你将如何验证(失败了怎么办)。
所需权限
见 references/ram_policies.md。只读:ecs:DescribeInstances、ecs:DescribeInvocations、
ecs:DescribeSecurityGroupAttribute、ecs:DescribeDisks、vpc:DescribeEipAddresses、
RDS describe/performance/慢日志。写(恢复):ecs:StartInstance、ecs:RebootInstance、
ecs:AuthorizeSecurityGroup、ecs:ResizeDisk、vpc:AssociateEipAddress、
ecs:RunCommand(仅白名单恢复命令)。
更多细节
分步指南已在上面「怎么做」中链接。另有两份配置参考:
- CLI 配置 — 安装与凭证检查。
- CLI 踩坑速查 — 参数形态、时间格式、响应解析易错点。
- RAM 权限 — 本 skill 所需的权限。
FAQ
What does the qianwenai-operate skill do?
诊断由 qianwenai-deploy 部署到阿里云国内站(aliyun.com)的应用为何不可用或明显变慢,并在用户 明确确认后执行安全恢复并验证结果。读取项目目录下的 .qianwenai-deploy 状态文件识别 ECS(及可选 RDS MySQL)资源,先做最小只读诊断,再一次只提议一个恢复动作(启动 ECS、重启应用服务、重载 Nginx),每个动作都先经过说明影响的确认。 使用场景:用户说应用打不开 / 返回 502 / 连不上数据库,或要求重启并确认应用恢复。 不使用场景:没有 .qianwenai-deploy 状态文件;目标是阿里云国际站(用 qwencloud-operate); 用户只想要状态/成本概览(用 qianwenai-observe)。
How do I install qianwenai-operate?
Run npx skills add https://github.com/qianwen-ai/qianwenai-deploy --skill qianwenai-operate in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/qianwenai-operate/ (personal) or .claude/skills/qianwenai-operate/ (project).
Which AI agents can use qianwenai-operate?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is qianwenai-operate safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains qianwenai-operate?
It is published by qianwen-ai in qianwen-ai/qianwenai-deploy. It has 917 recorded installs.
More from qianwen-ai/qianwenai-deploy
qianwenai-deploy
qianwen-ai/qianwenai-deploy
将本地项目或 Git 仓库一键部署、发布和更新至云端,并生成可访问的线上服务。 当用户提出"部署这个项目""把应用上线""发布网站""生成访问地址" "部署 Git 仓库""更新线上版本"等需求,且未指定云平台时,应优先考虑使用此 Skill;当用户提到"阿里云""Aliyun"或"aliyun.com"时,应优先使用。 本 Skill 部署至阿里云国内站(aliyun.com),支持全栈部署、ROS 资源编排、 云资源自动创建、部署前询价确认、服务探活、部署状态记录和热更新。 如果用户明确指定 Alibaba Cloud 国际站(alibabacloud.com)或其他云平台, 则不要使用此 Skill。
qianwenai-observe
qianwen-ai/qianwenai-deploy
用自然语言汇报由 qianwenai-deploy 部署到阿里云国内站(aliyun.com)的应用的健康、性能、 资源状态和实际费用,无需进入控制台。读取项目目录下的 .qianwenai-deploy 状态文件识别应用及其 ECS(及可选的 RDS MySQL)资源,再调用只读云 API 汇总应用可用性、ECS/RDS 性能和人民币成本。 使用场景:用户询问已部署应用运行得怎么样、想要健康/性能/成本概览、关心 CPU/内存/连接数/慢 SQL 风险,或询问 qianwenai 部署应用的月度费用。 不使用场景:没有 .qianwenai-deploy 状态文件;目标是阿里云国际站(用 qwencloud-observe); 用户想变更或恢复资源(用 qianwenai-operate)。
Popular devops & cloud skills
microsoft-foundry
microsoft/azure-skills
Build, deploy, evaluate, optimize, fine-tune, and manage Microsoft Foundry agents, models, and resources end to end. USE FOR: foundry, azd ai agent, azd provision/deploy, hosted agent scaffold/develop/run/deploy/troubleshoot, prompt agent create, managed harness agent create, GitHub Copilot harness agent, create agent, update agent, add tool to agent, invoke agent, agent insights, evaluate agent, batch eval, continuous eval, continuous monitoring, agent CI/CD, optimize prompt, improve prompt, optimize agent instructions, Agent Optimizer scaffold, dataset curation from traces, deploy model, model fine-tuning (SFT/DPO/RFT), Foundry project, RBAC, role assignment, permissions, quota, capacity, region, deployment failure, AI Services, create Foundry resource, knowledge index, customize deployment, onboard, availability, training-data, grader, distillation, large file upload. DO NOT USE FOR: Azure Functions, App Service, general Azure deploy (use azure-deploy), general Azure prep (use azure
azure-diagnostics
microsoft/azure-skills
Debug Azure production issues on Azure using AppLens, Azure Monitor, resource health, and safe triage. WHEN: debug production issues, troubleshoot app service, app service high CPU, app service deployment failure, troubleshoot container apps, container app 503 or target port mismatch, troubleshoot functions, function telemetry missing or stopped after a config/connection-string change, troubleshoot AKS, VM RDP, Linux SSH, VM black screen, can't connect to VM, reset VM password, NSG or firewall blocking, kubectl cannot connect, kube-system/CoreDNS failures, pod pending, crashloop, node not ready, upgrade failures, analyze logs, KQL, insights, image pull failures, cold start issues, health probe failures, resource health, root cause of errors, troubleshoot event hubs, troubleshoot service bus, messaging SDK error, AMQP connection failure, message lock lost, lock renewal during long-running processing, service bus dead letter.
azure-prepare
microsoft/azure-skills
Prepare azd-based Azure projects for deployment: generates azure.yaml, infrastructure (Bicep/Terraform), and Dockerfiles for the Azure Developer CLI (azd) workflow. USE ONLY when the user explicitly wants to use azd as the deployment tool, or the project already has an azure.yaml file. DO NOT USE FOR: non-azd deployments, Python App Service code-only deploys (use python-appservice-deploy), or cross-cloud migration (use azure-cloud-migrate). WHEN: prepare app for azd, create azure.yaml, set up azd infrastructure, modernize app for Azure with azd, deploy with azd, function app, timer trigger, service bus trigger, event-driven function, managed identity, generate Bicep, generate Terraform, create and deploy to Azure.
azure-ai
microsoft/azure-skills
Use for Azure AI: Search, Speech, OpenAI, Document Intelligence. Helps with search, vector/hybrid search, speech-to-text, text-to-speech, transcription, OCR. WHEN: AI Search, query search, vector search, hybrid search, semantic search, speech-to-text, text-to-speech, transcribe, OCR, convert text to speech.
azure-deploy
microsoft/azure-skills
Execute Azure deployments for ALREADY-PREPARED applications that have existing .azure/deployment-plan.md and infrastructure files. DO NOT use this skill when the user asks to CREATE a new application — use azure-prepare instead. This skill runs azd up, azd deploy, terraform apply, and az deployment commands with built-in error recovery. Requires .azure/deployment-plan.md from azure-prepare and validated status from azure-validate. WHEN: "run azd up", "run azd deploy", "execute deployment", "push to production", "push to cloud", "go live", "ship it", "bicep deploy", "terraform apply", "publish to Azure", "launch on Azure". DO NOT USE WHEN: "create and deploy", "build and deploy", "create a new app", "set up infrastructure", "create and deploy to Azure using Terraform" — use azure-prepare for these.
azure-validate
microsoft/azure-skills
Pre-deployment validation for Azure readiness. Run deep checks on configuration, infrastructure (Bicep or Terraform), RBAC role assignments, managed identity permissions, and prerequisites before deploying. WHEN: validate my app, check deployment readiness, run preflight checks, verify configuration, check if ready to deploy, validate azure.yaml, validate Bicep, test before deploying, troubleshoot deployment errors, validate Azure Functions, validate function app, validate serverless deployment, verify RBAC roles, check role assignments, review managed identity permissions, what-if analysis, validate Container Apps deployment.