用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/GuanceCloud/ai-skills --skill monitor命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Plan, audit, implement, repair, and validate Real User Monitoring across Web, MiniApp, Android, iOS/tvOS, macOS, HarmonyOS, React Native, Flutter, UniApp, C++, and Unity repositories. Use for browser/mobile RUM access, Public DataWay or DataKit delivery, Session Replay, RUM-to-APM tracing, or an existing RUM integration review—even when the user supplies only an Application ID and receiver variables.
Instrument repositories in every language with an official OpenTelemetry implementation: C++, C#/.NET, Erlang/Elixir, Go, Java, JavaScript/TypeScript, Kotlin, PHP, Python, Ruby, Rust, and Swift. Use when a user asks to add or deepen traces, correlated logs, metrics, context propagation, OTLP/HTTP export, or an auditable observability-instrumentation inventory across a repository or monorepo.
Generate, repair, or review Guance Dashboard JSON from real metrics CSV files, tag metadata, and resource-catalog or custom-object CSV/JSON data.
基于 SOC 职业分类
正在显示 SKILL.md
| name | monitor |
| author | liurui |
| description | Generate Guance monitor JSON from CSV metric files for any component. |
Generate Guance monitor configuration files from component CSV metrics.
csv/{{component}}*.csv or csv/{{component}}.csv; stop if missing.output/monitor/{{component}}/{{component}}.json.checkers[].jsonScript.targets[].dql and checkers[].extend.querylist[].query.q.checkers[].jsonScript.targets[].dql.checkers[].extend.querylist[].query.q.dqlcheck -q '<DQL>' or dqlcheck --file.targets[].dql and extend.querylist[].query.q semantically identical.extend.querylist[].query.filters.last for pre-aggregated watermarks, status values, and count snapshots; do not default everything to avg../bin/dqlcheck -q 'M::`mysql`:(max(`Threads_connected`) AS `Result`) BY `host`'
./bin/dqlcheck -q 'M::`redis`:(avg(`used_memory_percent`) AS `Result`) BY `host`'
Do not deliver monitor JSON with unvalidated final DQL.
Before selecting thresholds, verify the metric's actual value domain and behavior:
0..1 or 0..100. A documented percent unit alone does not prove the stored scale. Use decimal thresholds such as 0.70 and 0.85 for 0..1 data, and 70 and 85 only for 0..100 data.0..1 ratio unscaled, do not append a percent sign in the message. Either display the raw ratio or convert the query result, thresholds, and message unit together to 0..100.*_incr, increase, or delta. Do not use a cumulative length, historical total, or current log length as a proxy for newly occurring events.| Metric type | Condition | Level | Duration |
|---|---|---|---|
| Utilization >= 80% | critical | critical | 5m |
| Utilization >= 60% | warning | warning | 5m |
| Availability < 100% | critical | critical | 5m |
| Latency >= 1000ms | warning | warning | 5m |
| Error rate >= 1% | critical | critical | 5m |
fatal, critical, error, and warning.warning + error or error + critical; do not jump directly from warning to critical.and clause to exclude higher ranges.>= 85, >= 75, < 20, or <= 5. The monitor must be understandable from one primary comparator per level.targets[].dql is the execution query, and extend.querylist[].query.q is the editor query. They must stay consistent.extend.querylist[].query.fieldFunc must match the function used in DQL.extend.querylist[].query.filters.extend.querylist[].query.groupBy must match the DQL BY fields so the UI and alert semantics agree.checkerOpt.rules and any mirrored rule structures must use one primary threshold operator per severity level; do not emit extra and-style range guards for the same level.and condition block shown in Guance continuous-trigger configuration.0..1 or 0..100 value domain and that the message unit matches the DQL result.