FF alibabacloud-elasticsearch-instance-diagnose
Alibaba Cloud Elasticsearch instance diagnosis skill. Use for cluster health checks, troubleshooting, and performance analysis on Elasticsearch instances. Triggers (English): Elasticsearch diagnosis, ES instance issues, slow search, write failures, cluster Red/Yellow, unassigned shards, node disconnected, load imbalance, thread pool 429, JVM/OOM/circuit breaker, disk watermark / read-only index, instance activating / change stuck, service avalanche / all shards failed. 触发词(中文): ES诊断、阿里云ES、Elasticsearch诊断、ES集群/实例故障排查、ES健康检查、集群红灯/变红/黄灯/变黄、集群异常、分片未分配、主分片未分配、节点掉线/离线、负载不均衡、搜索/查询变慢、慢查询、写入失败/变慢/拒绝、线程池打满、HTTP 429、内存过高、OOM、断路器、磁盘满/水位、索引只读、实例激活中/activating、变更卡住/未完成、雪崩、服务不可用、all shards failed。
As a process F 55/100 · Will not run — References files that are not bundled: references/sop-*.md
What is at stake
Medium-severity findings: the skill is probably honest, but read what alarmed the scanner.
Below is the worst case for this category. The finding here is medium: the guard saw a sign, not a proof.
The instructions or scripts send data out: environment variables, keys, file contents, chat history. You may never notice, because the agent performs the upload as "part of the task".
If the upload is not needed for the task, remove it: catalogs flag such skills and delist them. If it is needed, name the destination explicitly, say what leaves the machine, and give the user a switch.
Below is the worst case for this category. The finding here is medium: the guard saw a sign, not a proof.
The skill contains commands that delete files, rewrite disks or execute code fetched from the network. The agent may run them without asking if it believes the instructions require it.
Replace destructive commands with safe equivalents that ask for confirmation, scope them to one folder, and stop piping curl into a shell: pin a version and a checksum.
How to improve
- The SKILL.md body is over 5,000 tokens: move reference detail into references/ and load it when needed.
- The text references files that are not there: add them or drop the references.
- Your own cases (evals/evals.json, 4–6 real requests with expected answers): the full check would then run those instead of a model-drafted suite.
- A spec.yaml with trigger phrases and assertions — a behaviour contract for CI; `skilltest init` writes a template.
Guard findings · 21
✓ No critical or high findings
Medium and low: 21
-
medium Exfiltration
net-credential-usereferences/acceptance-criteria.md:167Credential used in a network call (verify the destination is the intended service)curl -sS -u "${ES_USERNAME:-elastic}:${ES_PASSWORD}" \ -
medium Exfiltration
net-credential-usereferences/acceptance-criteria.md:170Credential used in a network call (verify the destination is the intended service)curl -sS -u "${ES_USERNAME:-elastic}:${ES_PASSWORD}" -H "Content-Type: application/json" \ -
medium Exfiltration
net-credential-usereferences/acceptance-criteria.md:173Credential used in a network call (verify the destination is the intended service)curl -sS -u "${ES_USERNAME:-elastic}:${ES_PASSWORD}" \ -
medium Exfiltration
net-credential-usereferences/acceptance-criteria.md:180Credential used in a network call (verify the destination is the intended service)curl -sS -u "${ES_USERNAME:-elastic}:${ES_PASSWORD}" \ -
medium Dangerous commands
cmd-privilegereferences/cli-installation-guide.md:30Privilege escalation / world-writable permissionssudo mv aliyun /usr/local/bin/
-
medium Dangerous commands
cmd-privilegereferences/cli-installation-guide.md:45Privilege escalation / world-writable permissionssudo mv aliyun /usr/local/bin/
-
medium Dangerous commands
cmd-privilegereferences/cli-installation-guide.md:58Privilege escalation / world-writable permissionssudo mv aliyun /usr/local/bin/
-
medium Exfiltration
net-credential-usereferences/es-api-call-failures.md:80Credential used in a network call (verify the destination is the intended service)curl -sS --connect-timeout 10 --max-time 30 -u "${ES_USERNAME:-elastic}:${ES_PASSWORD}" "${BASE}/_cluster/health?pretty" -
medium Exfiltration
net-credential-usereferences/es-api-catalog.md:11Credential used in a network call (verify the destination is the intended service)curl -sS -u "${ES_USERNAME:-elastic}:${ES_PASSWORD}" \ -
medium Exfiltration
net-credential-usereferences/sop-service-avalanche.md:292Credential used in a network call (verify the destination is the intended service)curl -sS -u "${ES_USERNAME}:${ES_PASSWORD}" \ -
medium Exfiltration
net-credential-usereferences/sop-service-avalanche.md:294Credential used in a network call (verify the destination is the intended service)curl -sS -u "${ES_USERNAME}:${ES_PASSWORD}" \ -
medium Exfiltration
net-credential-usereferences/verification-method.md:142Credential used in a network call (verify the destination is the intended service)curl -sS -u "${ES_USERNAME:-elastic}:${ES_PASSWORD}" \ -
medium Exfiltration
net-credential-usereferences/verification-method.md:149Credential used in a network call (verify the destination is the intended service)curl -sS -u "${ES_USERNAME:-elastic}:${ES_PASSWORD}" \ -
medium Exfiltration
net-credential-usereferences/verification-method.md:154Credential used in a network call (verify the destination is the intended service)curl -sS -u "${ES_USERNAME:-elastic}:${ES_PASSWORD}" \ -
medium Exfiltration
net-credential-usereferences/verification-method.md:157Credential used in a network call (verify the destination is the intended service)curl -sS -u "${ES_USERNAME:-elastic}:${ES_PASSWORD}" \ -
medium Exfiltration
net-credential-usereferences/verification-method.md:194Credential used in a network call (verify the destination is the intended service)curl -sS -u "${ES_USERNAME:-elastic}:${ES_PASSWORD}" \ -
medium Exfiltration
net-credential-useSKILL.md:389Credential used in a network call (verify the destination is the intended service)curl -sS --connect-timeout 10 --max-time 30 -u "${ES_USERNAME:-elastic}:${ES_PASSWORD}" \ -
medium Exfiltration
net-credential-useSKILL.md:392Credential used in a network call (verify the destination is the intended service)curl -sS --connect-timeout 10 --max-time 30 -u "${ES_USERNAME:-elastic}:${ES_PASSWORD}" \ -
medium Exfiltration
net-credential-useSKILL.md:397Credential used in a network call (verify the destination is the intended service)curl -sS --connect-timeout 10 --max-time 30 -u "${ES_USERNAME:-elastic}:${ES_PASSWORD}" \ -
medium Exfiltration
net-credential-useSKILL.md:400Credential used in a network call (verify the destination is the intended service)curl -sS --connect-timeout 10 --max-time 30 -u "${ES_USERNAME:-elastic}:${ES_PASSWORD}" \ -
low Exfiltration
net-credential-useSKILL.md:62Credential used in a network call (verify the destination is the intended service) (quoted — discussed, not commanded)> - Shell expansion for `curl -u "$ES_USERNAME:$ES_PASSWORD"` (or equivalent) is **allowed** when vars are **pre-exported in the user’s local shell**; **NEVER** put the secret as a literal in chat, sc
quoted
Files scanned: 26. Evidence is masked. Grey chips explain why severity was lowered.
Against the Agent Skills spec
- warning
body-longSKILL.md body ≈ 9409 tokens (recommended < 5000); move details to references/ - warning
missing-refreference to a missing file: references/sop-*.md
Process rating: all ten parameters 55/100
- 0Tools and files. 1 referenced file(s) missing: references/sop-*.md
- 20When it triggers. No condition that starts the skill
- 30Running it twice. 6 mutating operations with no state check
- 40Result and completion. Does not say what the result is
- 40Execution cost. Instruction body is 9409 tokens: crowds the task out of the window
- 85Steps. 33 steps, 1 vague phrases
- 100Inputs and preconditions. Inputs and preconditions are listed
- 100Failures and branches. 19 branches, has a failure section
- 100Consistency. Name and required fields are in place
- 100Progress reporting. Reports progress
- medium Safety rules and hard prohibitions inside a skill: they belong in the system prompt, here they protect nothing
- low 10 top-level sections: this looks like several domains in one skill
Everything here is measured from the skill text rather than judged by a model, so the numbers are checkable. A parameter weighs more when it is a more common reason for the process to stall.
Quality signals
- +5Description has no quoted example phrases that should trigger the skill
- +4Description does not say when NOT to use the skill (false activations)
- +3Output format is not stated: the model decides each time
- -31 of 3 scripts are never mentioned in SKILL.md
- +1No license
- +2Single-language instructions
- +3Description length 693: enough signal without eating the budget
- +4Structure: 36 headings
- +3Step-by-step instructions: 33 items
- +4Has examples (12 code blocks)
- +4Reference files are cited in the instructions (20 of 21)
Quality base 70; lint remarks subtract, signals add up to 100. Result: 69.