aliyun/alibabacloud-aiops-skills/alibabacloud-aes-ack-pod-performance-profiling
Claude Code and agent skill by aliyun/alibabacloud-aiops-skills
- community
- ext:[{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Perform SysOM performance profiling on ACK cluster Pods to identify root causes of Pod-level performance issues (CPU throttling, OOM, memory distribution, network jitter, IO latency, etc.). Use when users report ACK Pod performance problems or need kernel-level container profiling.
Install
npx vskill@latest install aliyun/alibabacloud-aiops-skills/alibabacloud-aes-ack-pod-performance-profilingSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as aliyun/alibabacloud-aiops-skills/alibabacloud-aes-ack-pod-performance-profiling.
alibabacloud-aes-ack-pod-performance-profiling
Skill Name: alibabacloud-aes-ack-pod-performance-profilingGoal: Perform SysOM performance profiling on Alibaba Cloud ACK cluster Pods.
Credential Security
[CRITICAL] Credential Security Rules:- NEVER print, echo, or display AccessKey ID / AccessKey Secret values in conversation or command output (even partial masking ofLTAI_ACCESS_KEY_IDis FORBIDDEN)- NEVER ask the user to input AK/SK directly in the conversation or command line- NEVER usealiyun configure setwith literal credential values- ONLY usealiyun configure listto check credential status```bashaliyun configure list```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 Console2. Configure credentials outside of this session (viaaliyun configurein terminal or environment variables in shell profile)3. Return and re-run afteraliyun configure listshows a valid profile
RAM Policy
For the full list of RAM permissions required by this skill, 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. Readreferences/ram-policies.mdto get the full list of permissions required by this SKILL2. Useram-permission-diagnoseskill to guide the user through requesting the necessary permissions3. Pause and wait until the user confirms that the required permissions have been granted
Parameter Confirmation
IMPORTANT: Parameter Confirmation — Before executing any command or API call,ALL user-customizable parameters (e.g., RegionId, cluster ID, namespace, Pod name,etc.) MUST be confirmed with the user. Do NOT assume or use default values withoutexplicit user approval.
Required user inputs for Pod diagnosis
The Pod diagnosis scenario requires the following inputs from the user:
- Pod name (
pod) — required - Namespace (
namespace) — required - Cluster ID (
cluster_id) — required
Scope: Only Pods running on regular ECS-backed ACK nodes are supported. Theinstancefield is always auto-derived asack-<cluster_id>.
| Parameter | Required/Optional | Description | Default Value | |
|---|---|---|---|---|
cluster_id | Required | ACK cluster ID (e.g., c0ee8f62dd10541c598af3627d5b6cda7) | None, must be provided by user | |
region | Required | Region of the ACK cluster (e.g., cn-hangzhou) | None, must be provided by user or derived from cluster | |
namespace | Required | Kubernetes namespace of the target Pod | None, must be provided by user | |
pod | Required | Pod name to diagnose (e.g., test-app-64cdcb7b98-gchks) | None, must be provided by user | |
instance | Auto-derived | Instance ID hosting the Pod, always ack-<cluster_id> | Auto-derived from cluster_id | |
description | Optional | Problem description keyword. MUST match `^[a-zA-Z0-9_-]*$` — replace spaces with _ (e.g., "pod_oom", "high_load") | "" | |
start_time | Optional | Diagnosis start timestamp (Unix seconds) | 0 (real-time) | |
end_time | Optional | Diagnosis end timestamp (Unix seconds) | 0 | |
enable_diagnosis | Optional | Force real-time diagnosis (highest priority) | true |
Core Workflow
The workflow has two phases with 10 steps.
User-Agent rule (three independent statements; each statement is intentionally written so that no descriptive sentence co-mentions a system-command name together with the request flag token):
- Business commands MUST attach the request flag. Business commands are those under the
cs,sysom, andstsnamespaces. The required request flag value isAlibabaCloud-Agent-Skills/alibabacloud-aes-ack-pod-performance-profiling. - The system / tooling command set is fixed. It contains exactly five members:
configure,plugin,help,version,upgrade. (This statement intentionally does not mention the request flag token; see statement 3 for the rule that applies to these commands.) - The commands enumerated in statement 2 MUST NOT carry the request User-Agent flag on their invocation line.
Allowed exception (config-value setter, not a request header). The subcommand aliyun configure ai-mode set-user-agent accepts a required argument whose flag spelling — per aliyun configure ai-mode set-user-agent --help — happens to be --user-agent <value>. This argument persists the AI-mode User-Agent into the local CLI configuration file. It is the value being stored, not an HTTP request header, and therefore it is not subject to the rule in statement 3.
Phase 1: Environment Setup (Steps 0–3)
Step 0 — Enable AI-Mode and Update Plugins
Before executing any CLI commands, enable AI-Mode, set User-Agent, and update plugins.
Why the next bash block is compliant: theset-user-agentsubcommand line below is the documented allowed exception (see the "Allowed exception" callout above). Its--user-agent <value>is the required positional argument of that config-setter subcommand, not an HTTP request header. No other line in the block carries the request flag.
⚠️ The above three commands must be executed before all CLI operations, and only need to be run once.
Step 1 — CLI Version Check
Verify version >= 3.3.15. If not met, refer to references/cli-installation-guide.md for installation.
Step 2 — Enable Auto Plugin Installation
Step 3 — Credential Verification
If no valid credentials exist, STOP and guide the user to configure credentials outside the session.
Phase 2: Diagnosis Execution (Steps 4–8)
For detailed workflow, see references/diagnose-workflow.md.
⛔ MANDATORY EXECUTION CHAIN — DO NOT SKIP, DO NOT REORDER, DO NOT EXPLORE ALTERNATIVESOnce Step 4 parameter clarification is complete, you MUST execute the following four API calls in order. Each one is a hard requirement — skipping any of them constitutes a workflow failure:1. Step 5 —aliyun cs GET /clusters/<cluster_id>(cs.DescribeClusterDetail)2. Step 6 —aliyun sysom initial-sysom --check-only false --source aes-skills(sysom.InitialSysom) — REQUIRED, never optional3. Step 7 —.sysom-sdk-venv/bin/python scripts/create-cluster-vpc-endpoint-connection.py(cs.CreateClusterVpcEndpointConnection via SDK) — REQUIRED, never optional4. Step 8 —aliyun sysom invoke-diagnosis ...(sysom.InvokeDiagnosis) followed by polling withaliyun sysom get-diagnosis-result --task-id <task_id>(sysom.GetDiagnosisResult) — REQUIRED, never optional⛔ CRITICAL: The diagnosis API is `sysom invoke-diagnosis`, NOT the CS cluster diagnosis endpoint.The CS product has a separate diagnosis API (cs POST /clusters/<cluster_id>/diagnosisakacs:CreateClusterDiagnosis) — this is a COMPLETELY DIFFERENT feature and MUST NOT be used. If you callcs:CreateClusterDiagnosisoraliyun cs POST /clusters/.../diagnosis, the workflow FAILS. The ONLY correct diagnosis API for this skill isaliyun sysom invoke-diagnosis.STRICTLY FORBIDDEN behaviors (these have caused real eval failures):- FORBIDDEN to usecs:CreateClusterDiagnosis/aliyun cs POST /clusters/<cluster_id>/diagnosisfor diagnosis. This is the WRONG API. This skill uses SysOM diagnosis (sysom invoke-diagnosis), NOT CS cluster diagnosis.- FORBIDDEN to invokealiyun sysom --help/aliyun sysom <subcommand> --helpas a "discovery" step. The three sysom subcommands needed by this skill are fixed:initial-sysom,invoke-diagnosis,get-diagnosis-result. Do NOT read help for any other sysom subcommand.- FORBIDDEN to invoke any sysom subcommand that is NOT one of the three above. In particular, the following sysom subcommands MUST NOT be called by this skill:list-abnormaly-events,describe-metric-list,get-resources,list-pods-of-instance, or any other sysom subcommand not explicitly named in this workflow.- FORBIDDEN to substitute any of the four mandatory calls with a "more convenient" sysom subcommand discovered via help, or with any CS product API.- FORBIDDEN to terminate the workflow after Step 5 / Step 6 / Step 7 without proceeding to invoke-diagnosis and polling.- FORBIDDEN to declare success withouttask_idhaving been obtained from invoke-diagnosis AND polled to a terminal state via get-diagnosis-result.- FORBIDDEN to skip Steps 6 and 7 when Step 5 succeeds. Even if Step 5 returns valid cluster info, you MUST still execute Steps 6, 7, and 8 in order.
Step 4 — Parameter Clarification (Inversion Gate)
Must confirm the following from the user. If any required value is not provided, ask explicitly before proceeding.
- `cluster_id` — required
- `namespace` — required
- `pod` — required
- Also extract optional
description, time range, etc.
⚠️ Time Inference Rule: When the user's description contains any temporal reference (e.g., "this morning", "yesterday afternoon", "around 3pm", "last night"), you MUST proactively ask for the specific time range and recommend historical diagnosis mode. Do NOT silently default to real-time diagnosis when the problem clearly occurred in the past.
Step 5 — Cluster Information Retrieval
API invoked:cs.DescribeClusterDetail(POP codecs, version2015-12-15).Invoke via the CLI ROA path formaliyun cs GET /clusters/<cluster_id>(plugin-mode compliant). The traditional PascalCase RPC form is prohibited under SA-2.11.
Extract region_id, name, and profile from the response. Verify the cluster exists and is in running state.
region_id→ used asregionin invoke-diagnosis paramsname→ recorded for reference (not used in invoke-diagnosis params)profile→ MUST be `"Default"` (indicates a standard ACK managed cluster)cluster_id→ used to constructinstancefield asack-<cluster_id>
⛔ Cluster Type Validation (Hard STOP gate): Extract theprofilefield from theDescribeClusterDetailresponse:-profile == "Default"→ standard ACK cluster, proceed with diagnosis.-profile != "Default"(e.g.,"acs","Serverless","Edge", etc.) → STOP immediately. Output the following message and terminate the workflow:```❌ Unsupported cluster type- Cluster ID: <cluster_id>- Cluster profile: <profile>- This skill ONLY supports diagnosis on standard ACK managed clusters (profile = "Default").- ACS clusters, ASK (Serverless Kubernetes) clusters, Edge clusters, and other non-Default profile clusters are NOT supported.- Please provide a standard ACK cluster ID to proceed.```FORBIDDEN to proceed to Step 6 / 7 / 8 whenprofile != "Default".
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/playbooks/trouboper/alibabacloud-aes-ack-pod-performance-profiling/SKILL.md
Popularity
- Repository stars
- 216
- Repository forks
- 27
- 7-day trend score
- 27
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
configConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/aliyun/alibabacloud-aiops-skills/alibabacloud-aes-ack-pod-performance-profiling)