/agentic-ai-skills:cloud-instance-opsfrom agentic-ai-skills
Diagnoses cloud instance access and performs SSH/CLI operations on Linux servers (AWS EC2, Aliyun ECS). Handles bastion, password/key SSH, file transfer, service checks, log inspection, and access blockers like MFA, SSO, IP allowlists.
Ships in agentic-ai-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Use this skill to manage cloud servers and instances like a careful human operator within the current authorization boundary. Prefer SSH and official cloud CLIs. Do not try to bypass MFA, SSO, approval workflows, captchas, IP allowlists, bastions, or least-privilege controls.
This skill is optimized for a shared core workflow that can be reused in Codex, OpenClaw, and Claude Code. Codex-specific UI metadata lives in agents/openai.yaml; the operational logic stays in this SKILL.md plus the bundled references and scripts.
ProxyJump, or a bastion.Normalize each request into these five inputs before acting:
Treat deploy, single-run, serve, accept, and cloud-op as explicit-action modes. Do not enter them from a vague “帮我看看机器” style request without confirming intent from the user prompt or environment.
If an input is missing, infer it from the environment first. Ask the user only for the minimum missing detail.
Run a lightweight local check before attempting privileged or remote work.
Typical commands:
python3 scripts/preflight.py --cloud generic --action inspect --host 10.0.0.8 --check-port
python3 scripts/preflight.py --cloud aws --action instance-check --profile prod --region ap-southeast-1
python3 scripts/preflight.py --cloud aliyun --action cloud-op --profile default --region cn-hangzhou
Preflight should verify only what is safe to verify locally:
blocked, denied, or needs_userUse the narrowest command that answers the request.
Useful wrappers:
python3 scripts/ssh_probe.py --host 10.0.0.8 --user ec2-user --identity-file ~/.ssh/prod.pem
python3 scripts/remote_port_owner.py --port 8080
If the environment requires human involvement, stop and return a structured handoff instead of guessing.
Common stop conditions:
Return a stable contract for both success and blocked cases so the result can be reused in later handoff, approval, or postmortem steps.
Minimum success shape:
{
"status": "ok",
"action": "inspect",
"target": "10.0.0.8",
"evidence": {
"network": {"10.0.0.8:22": "open"}
},
"next_step": "Proceed with the requested read-only inspection."
}
When blocked, return a concrete next step instead of guessing.
Expected shape:
{
"status": "blocked",
"reason": "Target port 22 is unreachable from the current machine.",
"next_step": "Connect through the approved bastion or ask for the current IP to be allowlisted.",
"evidence": {
"network": {"10.0.0.8:22": "closed"}
}
}
Allowed status values:
okblockeddeniedneeds_userunsupportedUse this workflow whenever the task is “部署模型 / 起 API / 做题面验收 / 输出文件检查” instead of plain server ops.
Always verify the underlying model or command once before wrapping it in an API. Do not start with service orchestration unless the user explicitly asks for service-first diagnosis.
curl or request shape from the task promptDo not claim “deployed successfully” until all applicable checks pass:
Use the bundled scripts when helpful:
curl -fsS http://127.0.0.1:8080/docs
python3 scripts/artifact_check.py --path /data/exam/output.wav --kind audio
python3 scripts/deployment_final_check.py --url http://127.0.0.1:8080/health --repeat 2
In exam, benchmark, and shared-machine environments, assume the host may already have leftovers.
Before reusing a port, GPU, or task directory:
Never assume “service started” means “new service is handling requests”. Always verify the response path.
Prefer one environment per task (venv or conda). If isolation is impossible:
Password SSH is common in exam or public-IP environments. Use it carefully:
prompt-password) for the current taskthread_id + user@host:port so later commands in the same thread do not re-prompt for the passwordexport a password variable, run a tiny visibility check first; if the current tool process still cannot read it, do not ask the user to repeat the export—switch to secure prompt input or a temp file insteadexpect or a similar wrapper is still required, keep the wrapper as small as possible and keep logs password-freeRecommended visibility check before relying on an env var:
if [ -n "$CLOUD_INSTANCE_PASSWORD" ]; then echo set; else echo missing; fi
Recommended helper usage:
python3 scripts/password_ssh.py --host 10.0.0.8 --user root --port 22 --prompt-password --ensure-session
python3 scripts/password_ssh.py --host 10.0.0.8 --user root --port 22 --remote-command "hostname && whoami"
python3 scripts/password_ssh.py --host 10.0.0.8 --user root --port 22 --close-session
Fallback modes:
--password-file or --password-env--prompt-password and --ensure-session--no-reuse-session--session-namespace is explicitly providedWhen the task was interrupted, never restart blindly. First check:
If artifacts and downloads are already present, prefer resume. If state is ambiguous or contaminated, clean and restart only the affected slice.
For longer remote tasks, prefer a predictable work layout such as:
01_single_run.py02_api.py03_start.sh04_selftest.sh*.log*.pidKeep logs, PID files, and outputs in one task directory so interrupted runs are easy to inspect.
Treat these as confirmation-required even if technically possible:
Load only the reference relevant to the current task:
references/generic-linux.mdreferences/aws.mdreferences/aliyun.mdreferences/restricted-access.mdreferences/install-and-examples.mdreferences/model-deployment.mdreferences/shared-runtime-hygiene.mdreferences/interrupted-run-recovery.mdscripts/preflight.py: local preflight checks and initial status classificationscripts/ssh_probe.py: non-destructive SSH connectivity/auth probe with optional bastionscripts/password_ssh.py: password-based SSH helper with secure prompt input, optional thread-scoped session reuse, and safer defaults for host key checkingscripts/normalize_result.py: normalize command outcomes into the shared status contractscripts/remote_port_owner.py: inspect which local process is listening on a portscripts/artifact_check.py: verify output artifacts exist and look reasonablescripts/deployment_final_check.py: verify health/example endpoints and optional artifacts with repeat checksagents/openai.yaml (opens in a new tab)references/aliyun.md (opens in a new tab)references/aws.md (opens in a new tab)references/generic-linux.md (opens in a new tab)references/install-and-examples.md (opens in a new tab)references/interrupted-run-recovery.md (opens in a new tab)references/model-deployment.md (opens in a new tab)references/restricted-access.md (opens in a new tab)references/shared-runtime-hygiene.md (opens in a new tab)scripts/artifact_check.py (opens in a new tab)scripts/deployment_final_check.py (opens in a new tab)scripts/normalize_result.py (opens in a new tab)scripts/password_ssh.py (opens in a new tab)scripts/preflight.py (opens in a new tab)scripts/remote_port_owner.py (opens in a new tab)scripts/ssh_probe.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
cloud-ops, ssh, aws-ec2, aliyun-ecs, bastion, troubleshooting
npx claudepluginhub agenticaiplan/agenticaiskills --plugin agentic-ai-skills54 skills in this plugin
/agent-boundary-design用于设计业务智能体的职责边界、人工确认点和拒绝执行范围。适合质量拦截、工单流转、审批辅助等业务 Agent 的开发阶段,用来明确什么可自主执行、什么必须人工确认、什么必须拒绝执行。/ai-event-plannerAI技术活动策划助手,用于生成活动主题、嘉宾画像、议程安排和宣传文案。适用于大模型运营部门策划AI技术相关交流活动,包括主题演讲、圆桌讨论、Demo展示等环节。当用户需要:1)根据AI技术领域和具体技术名称策划活动方案;2)生成活动主题、嘉宾画像和议程;3)输出邀请函和社群预热文案;4)生成完整的活动策划Markdown文档时使用此skill。/ai-hardware-ecosystem-monitor监控 AI 相关多硬件生态新闻、产业动态与风险信号。用于 GPU、NPU、ASIC、服务器、存储、网络、液冷、电源、光模块、晶圆、先进封装、HBM、ODM/OEM、云厂商、数据中心和大模型厂商相关任务,包括:(1) 跟踪 AI 硬件上下游、算力基础设施和模型厂商新闻,(2) 识别产能、交付、价格、路线图、合作伙伴、部署、兼容与政策等核心议题,(3) 挖掘媒体、分析师、工程师、渠道商、企业客户和关键机构,(4) 监控大模型厂商、云厂商与硬件供应商之间的竞合关系,(5) 生成监测计划、生态情报报告、预警清单和行动建议。触发词包括:AI硬件生态、算力生态监控、AI产业链新闻、GPU产业链、HBM动态、服务器生态、模型厂商动态、云厂商采购、AI基础设施情报、AI供应链预警。Other plugins' skills for the same job