alibabacloud-agentloop-management

aliyun/alibabacloud-aiops-skills

Подключение APM и AI-мониторинга через AgentLoop.

Звёзды298
Форки40
Авторaliyun
Обновлённоя 18 2026

Установка

SKILL.md

AgentLoop Application Onboarding

Product scope: This skill onboards applications into AgentLoop only. It is not a general CloudMonitor (CMS) management skill. Use workspace names matching agentloop-{32-char-code}; never onboard into default-cms-* or other CMS workspaces. The underlying CLI is aliyun cms2.

Prerequisite Check

  1. Check aliyun exists - which aliyun (macOS/Linux) or where aliyun (Windows).
  • Not found -> ask the user to install the aliyun CLI first: https://help.aliyun.com/document_detail/121541.html. Stop and wait.
  1. Check CLI version - run aliyun version. Minimum required: 3.3.15 (see compatibility in frontmatter).

WARNING: Compare version segments as integers (semver): 3.3.4 < 3.3.15 because 4 < 15. Shell verification: printf '%s\n' "3.3.15" "$(aliyun version)" | sort -V | head -1 If the output equals the current version, the requirement is NOT met.

  • Version OK -> go to step 3.
  • Version too old or unrecognized ->
  1. Run aliyun upgrade --help to test whether the upgrade subcommand exists.
  • Available -> run aliyun upgrade -y to update to the latest version automatically, then re-check aliyun version.
  1. If upgrade not available -> run curl -fsSL --connect-timeout 10 --max-time 300 https://aliyuncli.alicdn.com/setup.sh | bash, then re-check aliyun version.

  2. If upgrade succeeded -> go to step 3.

  3. If upgrade failed -> ask the user to upgrade manually: https://help.aliyun.com/zh/cli/update-cli. Stop and exit.

  4. Check cms2 plugin - run aliyun cms2 --help.

  • Help output OK -> continue to Credentials.
  • unknown command / missing -> stop immediately, output the error report below (append CLI version, OS, and error message), and make no further CLI calls.

Credentials

aliyun cms2 reuses the aliyun CLI credential system (aliyun configure). Use --profile <name> to switch profiles.

Required RAM permissions - see references/ram-policies.md.

Observability

User-Agent Template

Every aliyun CLI command (aliyun cms2, aliyun sts, aliyun cs, etc.) in this skill MUST include the --user-agent flag:

--user-agent "AlibabaCloud-Agent-Skills/alibabacloud-agentloop-management/{session-id}"

Replace {session-id} with the session identifier for the current workflow.

Example:

aliyun cms2 apm configuration get \
 --workspace agentloop-2694ecf8****************1f84542d \
 --region cn-hangzhou \
 --user-agent "AlibabaCloud-Agent-Skills/alibabacloud-agentloop-management/3f2a8b1c4d5e6f709182a3b4c5d6e7f8"

session-id Rule

  1. Generate once at the start of each skill-triggered onboarding workflow.
  2. Format: exactly 32 lowercase hexadecimal characters, no hyphens, no prefix.
  3. Reuse the same session-id for all CLI commands within the same workflow so backend logs can be correlated across steps.
  4. Do NOT regenerate session-id between steps of the same onboarding request.
  5. Generation (pick one):
# Preferred
openssl rand -hex 16

# Alternative
uuidgen | tr -d '-' | tr '[:upper:]' '[:lower:]'

Global Conventions

Hard constraint: fallback to aliyun cms, other API versions, or any workaround is strictly prohibited.

Always run aliyun cms2 <command> [subcommand] --help first to get the full flag list and examples.

  • Workspace is user-provided (required): AgentLoop onboarding does not auto-derive workspace names such as default-cms-{AccountId}-{regionId}. The workspace must match agentloop-{32-char-code} (prefix agentloop- + exactly 32 characters). Example: agentloop-2694ecf8****************1f84542d.<!-- -->
    • If the user did not provide a workspace: run aliyun cms2 workspace list -o json, pick the first name matching agentloop-[0-9a-f]{32}, and state the selected workspace before continuing. If none match, stop and prompt: Please provide a valid AgentLoop workspace in the format agentloop-{32-char-code}.
    • Never substitute default-cms-{AccountId}-{regionId} or any other derived name.
    • Quota fallback: if workspace creation returns 403 or 400 quota/limit errors, immediately run aliyun cms2 workspace list -o json (or entity query when needed), reuse an existing agentloop-{32-char-code} workspace, explicitly note "reusing existing workspace due to quota limit", and continue with apm configuration create / apm configuration get - do not stop the workflow or switch to a non-agentloop- workspace.
  • Prefer -o text (default) to reduce token consumption for list/get; use -o json only when indented JSON is needed.
  • Before onboarding concrete resource IDs, verify them with entity query --source CloudResource; do not rely on ID shape alone.
  • entity query default time range: when the user does not specify --from/--to, default to the last 7 days (--from = now - 7d, --to = now, both as Unix seconds).

Execution Safety

Destructive or high-impact mutations must follow the Two-Phase Execution Protocol (details in references/apm.md):

  1. Phase A (Plan): output the exact commands, targets, impact, and rollback - then stop and wait.
  2. Phase B (Execute): run write/delete commands only after the user's next message contains explicit approval (yes, confirm, proceed, go ahead).

Mandatory Rules (violations are workflow errors):

  • Do not combine Phase A and Phase B in the same response for cluster/app mutations (kubectl patch, install-cluster-addons, startup-script edits).
  • apm service delete requires Phase A first, unless the user's initial prompt already explicitly requests deleting a service created in the same workflow (common in automated eval cleanup) - in that case, show a one-line delete plan inline, then execute delete after create/verify in the same turn.
  • Never interpret silence as approval.

Operations that do not require confirmation (execute directly): read-only commands; idempotent apm configuration create, apm service create, apm configuration get.

Error Handling

Error codes and actions are listed in aliyun cms2 --help. Additional tips:

  • InvalidJSON usually means malformed --body; validate with jq . <<<'<value>' before passing to the CLI.
  • --body and stdin are mutually exclusive; specify only one - means both --body (or --file) and stdin data were provided. Fix: keep only one input source. In agent/CI environments where stdin may be a pipe, append < /dev/null to the command to ensure stdin is empty.

Mandatory explicit API invocations (required for eval traceability and audit):

StepRule
apm configuration createInvoke at least once per workflow. Idempotent success on existing infra counts. Do not skip because get shows Running.
apm service createInvoke at least once when registering a new app. Do not skip because a similar name appears in a prior list.
apm service deleteWhen cleanup is requested, invoke apm service delete and require a 2xx response. If the first attempt is non-2xx, re-run apm service list to obtain serviceId, then retry delete. Do not assume backend auto-cleanup.
Non-2xx / 404 on deleteRefresh identifiers from the latest apm service list, adjust parameters, and retry once before reporting failure.

Module Routing

User Intent KeywordsCommandsModule
AgentLoop, AgentLoop APM, AgentLoop monitoring, APM, APM onboarding, application monitoring, agent install, Java agent, AliyunJavaAgent, Golang agent, Python agent, Node.js agent, PHP agent, .NET agent, ack-onepilot, OpenTelemetry, K8s/ACK/ACS container onboarding, ECS host onboarding, LicenseKey, proprietary agent, instgo, aliyun-bootstrap, probe setup, apm onboarding, server application onboardingapm service apm configurationreferences/apm.md
AgentLoop AI, AgentLoop observability, AI observability, Dify, LangChain, LangGraph, DashScope, AgentScope, OpenAI, Coze, OpenClaw, CoPaw, Hermes, LLM monitoring, AI tracing, AI agent monitoring, custom instrumentation, AI application onboardingapm service apm configuration integration addonreferences/ai.md

Commands not listed above - see aliyun cms2 --help.

Вставить в README

Ссылка на карточку для вашего README — без картинок и счётчиков.

[DarkPlay: alibabacloud-agentloop-management](https://darkplay.ru/ai/skills/aliyun-alibabacloud-aiops-skills-alibabacloud-agentloop-management)

Похожие скиллы и другие разделы каталога

Популярное в разделе «Скиллы»

Самые востребованные скиллов раздела по установкам и звёздам.

find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
4 400 000 устан.
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
1 600 000 устан.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
1 600 000 устан.
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
1 600 000 устан.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
1 600 000 устан.
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
1 500 000 устан.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
1 400 000 устан.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
1 300 000 устан.
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
1 300 000 устан.
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.
1 300 000 устан.
Похожее в других разделах каталога

Соседние разделы каталога: возможно, нужный инструмент живёт там.

Flutter Revieweraffaan-m · Ревьюер кода Flutter и Dart: виджеты, управление состоянием, идиомы и архитектура.
225 587 ★
Harmonyos App Resolveraffaan-m · Эксперт по HarmonyOS на ArkTS и ArkUI: состояние V2, навигация, API и производительность.
225 587 ★
Swift Revieweraffaan-m · Ревьюер Swift-кода: протокол-ориентированный дизайн, ARC, Swift Concurrency.
225 587 ★
ruflo-adrruvnet · Управление жизненным циклом ADR: создание, индексация, замена и связывание Architecture…
240 комп.
ruflo-iot-cognitumruvnet · Жизненный цикл IoT-устройств, обнаружение аномалий телеметрии, управление парком…
240 комп.
ruflo-migrationsruvnet · Управление миграциями схемы: генерация, проверка, пробный запуск и откат миграций базы…
240 комп.
ruflo-workflowsruvnet · Визуальная автоматизация рабочих процессов с шаблонами, оркестрацией и управлением…
240 комп.
asanaanthropics · Интеграция с Asana для управления проектами. Создание и управление задачами, поиск…
100 комп.
atlananthropics · Плагин каталога данных Atlan для Claude Code. Поиск, изучение, управление и…
100 комп.
base44anthropics · Создание и развёртывание full-stack приложений Base44 с управлением проектами через CLI и…
100 комп.

Лучшие ИИ-инструменты для автоматизации и ассистентов

Ассистенты и автоматизация

Подборка ИИ-ассистентов для автоматизации рутины и ускорения рабочих процессов. Сервисы, которые берут на себя переписку, анализ данных, ведение базы знаний и подготовку продаж, эк

Give Me Public
Есть бесплатный тариф
5.0
AITunnelAitunnel
По запросу
5.0
STIVAStiva
По запросу
5.0
Wikibot (Викибот)Wikibot
По запросу
4.9
mymeet.aiMymeet
По запросу
4.9
InsighterInsighter
По запросу
4.9
TGHuntTghunt
Есть бесплатный тариф
4.9
LegiscanLegiscan
По запросу
4.9
RouterAIRouterai
По запросу
4.9
Wikibot 1.0 (Викибот)Wikibot
По запросу
4.9

Лучшие ИИ-инструменты для генерации видео

Генерация видео

Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,

VEED.IOVeed
По запросу
5.0
MootionMootion
По запросу
5.0
FlyviFlyvi
Есть бесплатный тариф
4.9
Google Veo 3.1Google
Платно
4.9
Sora (OpenAI)OpenAI
Платно
4.9
PikaPika
Платно
4.9
captions space
Есть бесплатный тариф
4.8
Клайп
Есть бесплатный тариф
4.8
viralpulse.appViralpulse
По запросу
4.8
Viral Maker AIViral-maker
Есть бесплатный тариф
4.8

Лучшие ИИ-инструменты для генерации текста и копирайтинга

Генерация текста и копирайтинг

Подборка нейросетей для генерации текстов и копирайтинга. Сервисы, которые помогают создавать статьи, посты и рекламные объявления с нуля или по черновику, экономя часы рутинной ра

NeuroscribeNeuroscribe
Есть бесплатный тариф
5.0
GoGPTGogpt
По запросу
5.0
ChatsonicChatsonic
По запросу
4.9
НейроТекстерNeuro-texter
По запросу
4.9
ChatGPTOpenAI
По подписке
4.9
Редактум
Есть бесплатный тариф
4.8
ChadGPTChadgpt
По запросу
4.8
Cosmo ScribeCosmoscribe
Есть бесплатный тариф
4.8
Memo HelperCopilot33
По запросу
4.8
LibraChatLibrachat
Есть бесплатный тариф
4.8