[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6BTHRPVBTX8Y3EHQYP5464N":3,"skill-same:01M6BTHRPVBTX8Y3EHQYP5464N":88},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":52,"linkOnly":53,"markdownContent":54,"markdownBody":55,"frontMatter":56,"refName":59,"commitSha":60,"skillDirectory":61,"forksCount":62,"repositoryHtmlUrl":63,"repositoryHomepageUrl":17,"ownerHtmlUrl":64,"ownerBlogUrl":65,"ownerDescription":66,"updatedAt":67,"install":68,"resources":81},"01M6BTHRPVBTX8Y3EHQYP5464N","youtube-transcript","YouTube 视频字幕转录获取","Retrieve a YouTube video transcript with yt-dlp using human or automatic captions. Save timestamped text locally. Use when asked for a YouTube transcript, subtitles, captions, or spoken text from a YouTube link.","使用 yt-dlp 通过人工或自动字幕获取 YouTube 视频的转录文本，并在本地保存带时间戳的文本。当用户要求获取 YouTube 视频的转录稿、字幕、说明文字或来自 YouTube 链接的口述内容时使用。","ahmedelgabri\u002Fdotfiles","ahmedelgabri","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F63876?v=4","01M6BTGT61KWRDXN595X7Q8ZRY","Ahmed El Gabri","01M6BTGTAFSBR3A7ZFXK5QDHVZ",291,"Unlicense",null,"https:\u002F\u002Fgithub.com\u002Fahmedelgabri\u002Fdotfiles\u002Fblob\u002Fmain\u002Fconfig\u002Fagents\u002Fskills\u002Fyoutube-transcript\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRP9HTCQJVTBV9WC1A6N5B","多媒体素材检索与处理","SCENARIO","使用场景",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C55A3R2M9C8CAKG3W16HTA","内容创作者","PROFESSION","适用职业",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],"transcript","youtube transcript","youtube","when","for","video transcript","URL","with","output","link","id","human","yt-dlp","use","text","save","Captions","Video","dlp","file","subtitles","2026-11-10 10:12:30",false,"---\nname: new-monitoring-feature\ndescription: Add a new monitoring target \u002F layer to SkyWalking OAP. Orients you to the OAL \u002F MAL \u002F LAL \u002F SpanListener \u002F SegmentListener extension points, the UI template + submodule touchpoints, the docs set that must move together, and the cross-cutting traps that don't live in any one skill.\n---\n\n# Adding a New Monitoring Feature \u002F Layer\n\nSkyWalking monitoring for a new target (a new `Layer` — mobile OS, gateway, DB, language runtime, …) is composed from the same set of reusable extension points. This skill is the index: which extension point fits which signal, where its contract lives, which docs must be updated together, and which harness-wide traps the extension-specific docs don't cover.\n\nThere is one skill per narrow concern. This one is the wiring map.\n\n---\n\n## Working posture\n\n- **Default scope for a new monitoring feature is narrow.** For most new monitoring targets, traces are **re-used as-is** — you do not write or modify a trace analyzer. Metrics and log extensions via OTLP (MAL + LAL) are the common shape. OTLP \u002F Zipkin span-based metrics analysis (`SpanListener`) already exists and only needs a new implementation if your feature introduces genuinely new semantic-convention attributes to extract (e.g. `gen_ai.*`, `mcp.*` for the GenAI layer). Do **not** touch `CommonAnalysisListener` \u002F `RPCAnalysisListener` \u002F `SegmentAnalysisListener` unless the OAP core protocol gains a new `SpanLayer` enum value — details in §2.\n- **If you find yourself editing more than this skill suggests, stop and confirm.** Scope creep on trace analysis, span-layer mapping, receiver handlers, or protobuf\u002Fproto contracts is a strong signal the framing is wrong. Ask the developer before committing that direction.\n- **Verify every new feature locally before pushing to CI.** Compile + checkstyle + license-eye are minimums, but they only tell you the code builds — they do **not** tell you the new MAL rule compiles its closures at startup, the LAL layer:auto dispatch works, the OTLP payload shape matches the MAL labels, the UI template renders against real data, or the layer shows up in `swctl service ly \u003CLAYER>`. Run the new e2e case end-to-end locally against a live OAP (see [run-e2e skill](..\u002Frun-e2e\u002FSKILL.md)) and fire every verify step with `swctl` by hand at least once. Pushing to CI without a local green run wastes shared CI cycles and slow-loops review.\n\n---\n\n## 0. Register the `Layer` — the feature's entry point\n\nA `Layer` is how OAP slices services \u002F instances \u002F endpoints by data source. The UI, storage partitioning, menu navigation, and OAL aggregation all key off it.\n\n`Layer` is a registry-backed value type (no longer a closed enum). Built-in layers are declared as `public static final Layer` constants in `oap-server\u002Fserver-core\u002Fsrc\u002Fmain\u002Fjava\u002Forg\u002Fapache\u002Fskywalking\u002Foap\u002Fserver\u002Fcore\u002Fanalysis\u002FLayer.java`; external layers are registered through the `Layer.register(name, ordinal, normal)` API at boot. **Pick the registration path that matches the scope of your feature:**\n\n| Your feature ships as | Registration path |\n|---|---|\n| Part of the OAP distribution (in-tree, the common case for new SkyWalking-supported targets) | Add a `public static final Layer` constant to `Layer.java` with the next sequential ordinal in `0–49`. Examples: `IOS = register(\"IOS\", 47, true)`, `APISIX = register(\"APISIX\", 21, true)`, `VIRTUAL_DATABASE = register(\"VIRTUAL_DATABASE\", 14, false)` for inferred\u002Fnon-real services. |\n| An out-of-tree MAL or LAL rule file | Add a top-level `layerDefinitions:` block to the rule file. The DSL loader funnels each entry through `Layer.register` before compiling the rule. One file ships the layer + the rules that produce its telemetry. |\n| An out-of-tree plugin module (jar) | Implement `org.apache.skywalking.oap.server.core.analysis.LayerExtension` and register via `META-INF\u002Fservices\u002F`. Discovered by `LayerExtensionLoader` during `CoreModuleProvider.prepare()`. |\n| Operator-deployed config (no code, no DSL) | Add an entry to `oap-server\u002Fserver-starter\u002Fsrc\u002Fmain\u002Fresources\u002Flayer-extensions.yml` (or override on the OAP node's classpath). |\n\n**Ordinal conventions:** `0–49` is in active use by built-ins. `50–999` is reserved by convention for future built-in layers. External layers are recommended (not required) to start at `>= 1000` to avoid colliding with future built-ins on OAP upgrade. Collisions in either direction are detected at boot via the ordinal-uniqueness check, which fails OAP startup loudly.\n\n**Storage encoding is the ordinal int**, persisted in BanyanDB \u002F Elasticsearch \u002F JDBC. Every OAP node that reads or writes a given layer must agree on its `(name, ordinal)` mapping — deploy `layer-extensions.yml` and any `layerDefinitions:` rule files identically across all nodes. The registry is sealed at the start of `Core.notifyAfterCompleted()`; later registration attempts throw.\n\n**UI template folders are auto-discovered by file scan, not by `Layer.values()`.** `UITemplateInitializer` walks `ui-initialized-templates\u002F**\u002F*.json` recursively (depth 2) and trusts each template's own `configuration.layer` field. Drop a folder of dashboard JSONs on disk and the initializer picks them up on the next boot — folder name is purely organizational.\n\n**Component ID lookup in Java code**: IDs declared in `component-libraries.yml` are loaded at runtime into `ComponentLibraryCatalogService`'s `componentName2Id` map — they are **not** exposed as Java enum constants. To look up by name in listener code, inject the catalog service and resolve once at construction:\n```java\nIComponentLibraryCatalogService catalog = moduleManager.find(CoreModule.NAME)\n    .provider().getService(IComponentLibraryCatalogService.class);\nint myComponentId = catalog.getComponentId(\"My-Component-Name\");\n```\nCache as an `int` field; runtime comparisons are then plain `componentId == myComponentId`. **Trap:** there is a `ComponentsDefine` class under `skywalking-trace-receiver-plugin\u002Fsrc\u002Ftest\u002Fjava\u002F...\u002Fmock\u002FComponentsDefine.java` — it is a test-only mock holding five hand-picked constants (Tomcat, Dubbo, RocketMQ, MongoDB). Do not import or extend it from production code.\n\nEmit the layer from every source object your feature produces. Built-in layers have a static-field accessor; external layers are looked up by name through the registry:\n\n```java\n\u002F\u002F Built-in layer (constant)\nservice.setLayer(Layer.IOS);\n\n\u002F\u002F External layer (registered via yaml \u002F SPI \u002F layerDefinitions:)\nservice.setLayer(Layer.nameOf(\"IOT_FLEET\"));\n```\n\nDownstream (the core OAL, `service ly \u003CLAYER>` swctl query, topology filters, UI root dashboard's layer selector) all work off this single enum value.\n\n---\n\n## 1. Pick the right extension point\n\n| Signal you want to process | Extension point | Register via |\n|---|---|---|\n| **SkyWalking native trace segments** (from language agents) | `AnalysisListener` (TraceSegmentListener \u002F EntryAnalysisListener \u002F ExitAnalysisListener \u002F LocalAnalysisListener \u002F FirstAnalysisListener) + factory in `agent-analyzer` | `META-INF\u002Fservices\u002Forg.apache.skywalking.oap.server.analyzer.provider.trace.parser.listener.AnalysisListenerFactory` |\n| **OTLP \u002F Zipkin trace spans** (OTel SDKs, Istio, Envoy, iOS\u002FAndroid, …) | `SpanListener` in `core.trace` | `META-INF\u002Fservices\u002Forg.apache.skywalking.oap.server.core.trace.SpanListener` |\n| **OTel metrics** (Prometheus scrape, Envoy stats, Istio, …) | MAL rules — `otel-rules\u002F\u003Cnamespace>\u002F*.yaml` | Append the rule path to `enabledOtelMetricsRules` in `application.yml` |\n| **Logs** (OTLP, SkyWalking native, Fluent Bit, Envoy ALS) | LAL rules — `lal\u002F\u003Crule>.yaml` | Append to `SW_LOG_LAL_FILES` (env) or `lalFiles` (YAML) under `log-analyzer` |\n| **Pre-computed meter \u002F custom meter** (custom agent protocol, meter receiver) | MAL `meter-analyzer-config\u002F*.yaml` | Append to `meter-analyzer-config` entries |\n| **Aggregation from Source entities** (service, instance, endpoint, relation) | OAL rules — `oal\u002F*.oal` | Already loaded by `OAL grammar`; just add lines |\n\nAll five DSLs (OAL, MAL, LAL, Hierarchy + SpanListener SPI) compile via ANTLR4 + Javassist at startup. Source-of-truth details are in:\n- [`docs\u002Fen\u002Fconcepts-and-designs\u002Foal.md`](..\u002F..\u002F..\u002Fdocs\u002Fen\u002Fconcepts-and-designs\u002Foal.md)\n- [`docs\u002Fen\u002Fconcepts-and-designs\u002Fmal.md`](..\u002F..\u002F..\u002Fdocs\u002Fen\u002Fconcepts-and-designs\u002Fmal.md)\n- [`docs\u002Fen\u002Fconcepts-and-designs\u002Flal.md`](..\u002F..\u002F..\u002Fdocs\u002Fen\u002Fconcepts-and-designs\u002Flal.md)\n- [`docs\u002Fen\u002Fconcepts-and-designs\u002Fscope-definitions.md`](..\u002F..\u002F..\u002Fdocs\u002Fen\u002Fconcepts-and-designs\u002Fscope-definitions.md)\n- [`oap-server\u002Fanalyzer\u002Fmeter-analyzer\u002FCLAUDE.md`](..\u002F..\u002F..\u002Foap-server\u002Fanalyzer\u002Fmeter-analyzer\u002FCLAUDE.md) — MAL compiler internals\n- [`oap-server\u002Fanalyzer\u002Flog-analyzer\u002FCLAUDE.md`](..\u002F..\u002F..\u002Foap-server\u002Fanalyzer\u002Flog-analyzer\u002FCLAUDE.md) — LAL compiler internals\n\n---\n\n## 2. Trace ingestion — two parallel pipelines\n\nSkyWalking OAP ingests traces through two distinct entry points. Pick based on source.\n\n> **Before writing any trace extension — ask \"do I actually need one?\"**\n>\n> For **most new layers you do not touch trace analysis at all.** Segments (native or\n> OTLP) flow through the existing pipeline, `RPCAnalysisListener.parseExit` produces\n> the outbound `ServiceRelation` edges, the backend-side agent produces the inbound\n> metrics via its own `parseEntry`, and the new-layer Service \u002F Instance \u002F Endpoint\n> entities come from **MAL + LAL**, not from trace analysis. This is how browser\n> (`Layer.BROWSER`), iOS (`Layer.IOS`), mobile mini-programs\n> (`Layer.WECHAT_MINI_PROGRAM` \u002F `Layer.ALIPAY_MINI_PROGRAM`), and most\n> scraped-metric layers work.\n>\n> Extend trace analysis **only** when the feature genuinely needs per-span\n> interpretation that the existing pipeline cannot express:\n>\n> - **A new `SpanLayer`** — OAP core protobuf has a new `SpanLayer` enum value that\n>   callers of `identifyServiceLayer` \u002F `identifyRemoteServiceLayer` must dispatch on.\n>   That means touching `CommonAnalysisListener` \u002F `RPCAnalysisListener`.\n> - **A genuinely new signal class not covered by existing listeners** — e.g. the GenAI\n>   work added `GenAISpanListener` for LLM \u002F MCP instrumentation because OTLP spans\n>   carry semantic-convention attributes (`gen_ai.*`, `mcp.*`) that no prior listener\n>   extracted. That is rare.\n>\n> **Anti-pattern we've been bitten by:** using a componentId mapping in\n> `CommonAnalysisListener` to assign a client-side layer to exit-only segments. This\n> does not produce inbound metrics anyway (no entry spans → no\n> `service_cpm` \u002F `endpoint_cpm` from OAL), and it is orthogonal to the Service entity\n> layer (which MAL \u002F LAL sets). Mirror the browser pattern instead: ship `Layer` +\n> `component-libraries.yml` + MAL + LAL + dashboards, and leave the listener chain\n> alone.\n\n### 2.1 SkyWalking native segments — `AnalysisListener`\n\n**Source protocol**: `apm-protocol\u002Fapm-network\u002Fsrc\u002Fmain\u002Fproto\u002Flanguage-agent\u002FTracing.proto` (`TraceSegmentObject`).\n\n**Receiver**: `oap-server\u002Fserver-receiver-plugin\u002Fskywalking-trace-receiver-plugin`. After wire decoding, segments are handed to `SegmentParserServiceImpl` which fans out to registered `AnalysisListenerFactory` implementations.\n\n**Extension**: implement one or more of\n- `FirstAnalysisListener` — per-segment, before per-span phase\n- `EntryAnalysisListener` — per-entry-span\n- `ExitAnalysisListener` — per-exit-span\n- `LocalAnalysisListener` — per-local-span\n- `TraceSegmentListener` — whole-segment, after per-span phase\n\nRegister the **factory** in `META-INF\u002Fservices\u002Forg.apache.skywalking.oap.server.analyzer.provider.trace.parser.listener.AnalysisListenerFactory`. Existing examples: `RPCAnalysisListener`, `MultiScopesAnalysisListener`, `SegmentAnalysisListener` in `oap-server\u002Fanalyzer\u002Fagent-analyzer\u002Fsrc\u002Fmain\u002Fjava\u002F...\u002Ftrace\u002Fparser\u002Flistener\u002F`.\n\nUse when: the data arrives on the SW native wire (language agents — Java, Python, Go, Node.js, .NET, PHP, Lua, etc.).\n\n### 2.2 OTLP \u002F Zipkin spans — `SpanListener`\n\n**Source protocol**: OTLP proto (`opentelemetry\u002Fproto\u002Ftrace\u002Fv1\u002Ftrace.proto`) or Zipkin v2 JSON.\n\n**Receiver**: `oap-server\u002Fserver-receiver-plugin\u002Fotel-receiver-plugin\u002Fsrc\u002Fmain\u002Fjava\u002F...\u002Fotlp\u002FOpenTelemetryTraceHandler.java` (OTLP) and `oap-server\u002Fserver-receiver-plugin\u002Fzipkin-receiver-plugin\u002F...\u002FITZipkinTraceCollector` (Zipkin). After decoding, spans are iterated and passed to every registered `SpanListener` through `SpanListenerManager`.\n\n**Extension**: implement `org.apache.skywalking.oap.server.core.trace.SpanListener`:\n\n```java\npublic interface SpanListener {\n    String[] requiredModules();\n    void init(ModuleManager moduleManager);\n    SpanListenerResult onOTLPSpan(OTLPSpanReader span, String serviceName, Map\u003CString,String> resourceAttributes,\n                                  String scopeName, String scopeVersion);\n}\n```\n\nName the service by `serviceName`, not the resource's `service.name`: it is the service the span is analyzed and\nstored under, which `receiver-otel.otlpServiceGroupKeys` may have grouped (`shop::cart` for `service.name=cart`).\n\nRegister in `META-INF\u002Fservices\u002Forg.apache.skywalking.oap.server.core.trace.SpanListener`. Reference implementations:\n- `oap-server\u002Fanalyzer\u002Fios-analyzer\u002Fsrc\u002Fmain\u002Fjava\u002F...\u002FIOSHTTPSpanListener.java` — OTel Swift URLSession → OAL (Service \u002F ServiceInstance \u002F Endpoint)\n- `oap-server\u002Fanalyzer\u002Fios-analyzer\u002Fsrc\u002Fmain\u002Fjava\u002F...\u002FIOSMetricKitSpanListener.java` — OTel Swift MetricKit → MAL samples via `OpenTelemetryMetricRequestProcessor.toMeter`\n- `oap-server\u002Fanalyzer\u002Fgen-ai-analyzer\u002Fsrc\u002Fmain\u002Fjava\u002F...\u002FGenAISpanListener.java` — LLM \u002F MCP instrumentation\n\nReturn `SpanListenerResult.builder().shouldPersist(false).build()` to prevent a span being stored as a trace (useful for e.g. 24-hour aggregate spans that are not meaningful as traces).\n\n**When both native and OTLP should feed the same metric**, write your extension against the downstream scope (Service \u002F ServiceInstance \u002F Endpoint + OAL) and emit those entities from **both** a SegmentListener and a SpanListener. The OAL layer is protocol-agnostic.\n\n---\n\n## 3. Metrics — MAL \u002F OAL rules\n\n### 3.1 OAL (for entities already produced by core sources)\n\n`oap-server\u002Fserver-starter\u002Fsrc\u002Fmain\u002Fresources\u002Foal\u002Fcore.oal` already defines the standard `service_cpm`, `service_resp_time`, `service_sla`, `endpoint_cpm`, etc. — keyed off the `Service`, `ServiceInstance`, `Endpoint` source scopes. If your new layer emits those entities with the right `Layer`, you get the core metrics for free.\n\n**Who emits those entities matters.** `service_cpm` \u002F `service_resp_time` \u002F `service_sla` \u002F `endpoint_cpm` \u002F `endpoint_resp_time` come from `RPCAnalysisListener.parseEntry` → `callingIn.toService()` \u002F `toEndpoint()`. That only fires on **inbound entry spans**. Client-side \u002F edge layers (browser, iOS, mini-programs) only emit exit spans, so these OAL metrics do **not** populate under those layers — their Service entities are produced by MAL \u002F LAL, and their dashboards use MAL metrics (`meter_\u003Clayer>_*`) for load \u002F latency, not `service_cpm` \u002F `service_resp_time`. Don't wire dashboards to OAL-derived metrics that the layer never produces.\n\nAdditional OAL rules go in the same file. OAL grammar: `oap-server\u002Foal-grammar\u002Fsrc\u002Fmain\u002Fantlr4\u002FOALParser.g4`. Syntax and examples: [`docs\u002Fen\u002Fconcepts-and-designs\u002Foal.md`](..\u002F..\u002F..\u002Fdocs\u002Fen\u002Fconcepts-and-designs\u002Foal.md).\n\n### 3.2 MAL (for meter \u002F metric samples)\n\n**File location**: `oap-server\u002Fserver-starter\u002Fsrc\u002Fmain\u002Fresources\u002Fotel-rules\u002F\u003Cnamespace>\u002F*.yaml` (OTel scrape) or `meter-analyzer-config\u002F*.yaml` (SW native meter).\n\n**Registration** (MANDATORY): append the rule path to the default in `oap-server\u002Fserver-starter\u002Fsrc\u002Fmain\u002Fresources\u002Fapplication.yml`:\n```yaml\nreceiver-otel:\n  default:\n    enabledOtelMetricsRules: ${SW_OTEL_RECEIVER_ENABLED_OTEL_METRICS_RULES:\"...,\u003Cyour-namespace>\u002F*\"}\n```\nIf you skip this, the rule isn't loaded in the default starter and downstream `converters.forEach(...)` is a silent no-op — samples just disappear.\n\n**Also update** `test\u002Fe2e-v2\u002Fcases\u002Fstorage\u002Fexpected\u002Fconfig-dump.yml`. This e2e diffs `\u002Fdebugging\u002Fconfig\u002Fdump` output against a static file; every default-value change in `application.yml` must mirror here or the storage e2e fails.\n\n**Naming**: keep attribute scope in the metric name. If a metric reads from `foo.bar.foreground.exit_count`, call it `foo_foreground_exit_count`, not `foo_exit_count`. When two attributes (foreground vs background, ingress vs egress) share a theme, keep them as separate distinguishable metrics — don't flatten.\n\n### 3.3 Histogram pitfalls (both OAL and MAL)\n\n- **Per-bucket counts, not cumulative.** `histogram_percentile` accumulates internally. Feeding cumulative counts doubles the accumulator and shifts percentiles up. Each observation contributes `1` to exactly one `le` bucket.\n- **`le` label scale.** `SampleFamily.histogram()` rescales `le` by `defaultHistogramBucketUnit.toMillis(1)` (default `SECONDS` ⇒ ×1000). If your raw labels are already in ms, use `SampleFamilyBuilder.newBuilder(samples).defaultHistogramBucketUnit(TimeUnit.MILLISECONDS).build()`.\n- **Overflow bucket.** MAL parses `le=\"Infinity\"` as `Double.POSITIVE_INFINITY` → stored as `Long.MAX_VALUE`. If a percentile lands there, the UI renders ≈ 9.2 × 10¹⁸. Prefer a finite sentinel (e.g., 30 s for hang\u002Flaunch) so outliers remain visible without crashing the chart.\n- **`NamingControl`** — every `service` \u002F `serviceInstance` \u002F `endpoint` label that ends up as an entity key must go through `namingControl.formatServiceName()` \u002F `formatInstanceName()` \u002F `formatEndpointName()`. Raw resource attributes (long git-SHA build metadata, path-style endpoints) will otherwise exceed storage limits.\n\n---\n\n## 4. Logs — LAL\n\n**File location**: `oap-server\u002Fserver-starter\u002Fsrc\u002Fmain\u002Fresources\u002Flal\u002F\u003Cfeature>.yaml`.\n\n**Registration**: append to `SW_LOG_LAL_FILES` env var, or `log-analyzer.default.lalFiles` in `application.yml`.\n\n**Grammar**: `oap-server\u002Fanalyzer\u002Flog-analyzer\u002Fsrc\u002Fmain\u002Fantlr4\u002FLALParser.g4`. The compiler docs are thorough: [`oap-server\u002Fanalyzer\u002Flog-analyzer\u002FCLAUDE.md`](..\u002F..\u002F..\u002Foap-server\u002Fanalyzer\u002Flog-analyzer\u002FCLAUDE.md) — covers:\n- `filter { … }` block with `parsed.*`, `tag()`, `sourceAttribute()`, `log.*`, `def` locals, `extractor {}`, `metrics {}`, `sink {}`\n- `layer: auto` mode (script decides layer from source attrs)\n- `inputType` \u002F `outputType` SPI (`LALSourceTypeProvider`) to bind typed proto to `parsed.*`\n- Test harness at `oap-server\u002Fanalyzer\u002Flog-analyzer\u002Fsrc\u002Ftest\u002Fresources\u002Fscripts\u002Flal\u002Ftest-lal\u002Foap-cases\u002F` — ship YAML + `.data.yaml` pair; `LALScriptExecutionTest` picks them up automatically.\n\n**`layer: auto` gotcha**: the extractor's `layer \"X\"` assignment must propagate to `LogMetadata.layer` (not just the output builder) — `FilterSpec.doSink` reads metadata to decide drop\u002Froute. The current codegen (`LALBlockCodegen.generateFieldToOutput`) handles this correctly; if you extend codegen, preserve that invariant.\n\n---\n\n## 5. UI — templates, submodule, and menu\n\n### 5.1 Dashboard templates\n\nJSON files under `oap-server\u002Fserver-starter\u002Fsrc\u002Fmain\u002Fresources\u002Fui-initialized-templates\u002F\u003Cfeature>\u002F`. Conventional fileset:\n\n- `\u003Cfeature>-root.json` — `ServiceList` widget, layered service index.\n- `\u003Cfeature>-service.json` — per-service dashboard, usually a `Tab` with Overview \u002F Instance \u002F Endpoint \u002F Log sub-tabs.\n- `\u003Cfeature>-instance.json` — per-instance dashboard.\n- `\u003Cfeature>-endpoint.json` — per-endpoint dashboard.\n- Menu link in `oap-server\u002Fserver-starter\u002Fsrc\u002Fmain\u002Fresources\u002Fui-initialized-templates\u002Fmenu.yaml`.\n\n> **Collaborate with the developer on dashboard design.** Dashboard layout and metric selection are product decisions, not derivable from the MAL rules alone. Before authoring the JSON, check in with the developer on: which metric goes on which panel, which percentiles \u002F aggregations to show, what's on the root list vs. per-service vs. per-instance vs. per-endpoint pages, what stays in the Overview tab vs. a sub-tab, widget sizes \u002F ordering, and whether Trace \u002F Log tabs belong at all (depends on whether the feature emits traces and logs). Then **manually set up the feature against a live OAP** — emit a few real OTLP payloads, open each dashboard in the UI, confirm every widget renders non-empty, and walk the drill-down from root → service → instance → endpoint. Only after that eyes-on pass is the dashboard ready to ship.\n\nDetails that always bite:\n\n- **Tab chrome eats ~4 rows.** Set outer `Tab.h = content_max_y + 4` or you get an inner scrollbar on top of the page scrollbar.\n- **Widget heights consistent.** Use `h=15` per row for `Line` \u002F `Bar` widgets to match mesh \u002F general peer templates. Don't mix h=12 \u002F h=15 \u002F h=24 across a feature's dashboards.\n- **List widgets (ServiceList \u002F InstanceList \u002F EndpointList)** render two pieces per cell:\n  - `expressions` → the aggregated summary number (right side). Required. Wrap raw metrics in `avg(...)` \u002F `sum(...)`. Omitting it leaves the column empty.\n  - `subExpressions` → the sparkline trend (left side). Optional, falls back to `expressions` if absent.\n  - `metricConfig` pairs 1-to-1 with `expressions` (not `subExpressions`). Use for `label` (column header) and `unit`.\n  - Compound columns via MQE addition: `avg(metric_a + metric_b)` in `expressions`, `metric_a + metric_b` in `subExpressions`.\n  - Normal widgets with multiple expressions on one chart — always give a human label per expression in `metricConfig`, otherwise legend renders raw metric names.\n\n### 5.2 Hot-reload (edits to shipped templates take effect on restart)\n\n`UITemplateInitializer` normally uses `addIfNotExist` (keyed on JSON `id`), so on a plain restart your edits to shipped templates are ignored — the seeded copy in storage wins. For dev \u002F extension work, set the environment variable and restart:\n\n```bash\nSW_UI_TEMPLATE_FORCE_RELOAD=true\n# then restart OAP — shipped templates overwrite the seeded copies via addOrReplace.\n# Hard-refresh the browser (Cmd+Shift+R) because the booster UI caches config in memory.\n```\n\nThis is a dev \u002F extension knob only — read directly from the OS environment, not wired through `application.yml`. Unset or `false` preserves the default production behavior where operators' UI edits persist across restarts.\n\n### 5.3 New top-level menu group (e.g. \"Mobile\", \"Gateway\")\n\nNew **child entries** only need template JSON + `menu.yaml`. A new **top-level group** needs submodule work in `skywalking-ui` (git submodule at `skywalking-ui\u002F`):\n\n1. `skywalking-ui\u002Fsrc\u002Fassets\u002Ficons\u002F\u003Cname>.svg` — menu icon.\n2. `skywalking-ui\u002Fsrc\u002Flocales\u002Flang\u002Fmenus\u002F{en,es,zh}.ts` — i18n labels (`\u003Cname>`, `\u003Cname>_desc`, `\u003Cname>_\u003Cchild>`, `\u003Cname>_\u003Cchild>_desc`). Missing i18n falls back to raw keys on screen.\n3. Commit those upstream in `apache\u002Fskywalking-booster-ui`, bump the submodule pointer here.\n4. Rebuild with `-Pui,dist` (not `-Pbackend,dist`) and `make docker.ui`, otherwise the new assets aren't in the image. See [package skill](..\u002Fpackage\u002FSKILL.md).\n\n---\n\n## 6. Docs set — everything that moves together\n\n| File | What to add |\n|---|---|\n| `docs\u002Fen\u002Fsetup\u002Fbackend\u002F\u003Cfeature>-monitoring.md` | User-facing setup guide. Required SDK \u002F collector, required env vars, sample OTLP payload, metrics \u002F log tags list. |\n| `docs\u002Fmenu.yml` | Add the guide to the docs navigation tree. |\n| `docs\u002Fen\u002Fsecurity\u002FREADME.md` | **Client-side monitoring**: mobile \u002F browser \u002F mini-program endpoints accept data from the public internet without auth by default. Add a rate-limit + abuse-protection note. Agent-side monitoring over private VPC usually doesn't need this. |\n| `docs\u002Fen\u002Fchanges\u002Fchanges.md` | Per-release changelog. Add under `#### OAP Server` for features\u002Fbug-fixes, `#### UI` if the submodule bumps, `#### Documentation` if new guides. |\n| `docs\u002Fen\u002Fswip\u002FSWIP-\u003CN>.md` | Design doc for non-trivial features; keep reconciled with final code after review. |\n| `docs\u002Fen\u002Fswip\u002Freadme.md` | Move SWIP from \"Proposed\" to \"Accepted\" once merged. |\n\n---\n\n## 7. E2E test\n\nFolder: `test\u002Fe2e-v2\u002Fcases\u002F\u003Cfeature>\u002F`. See [run-e2e skill](..\u002Frun-e2e\u002FSKILL.md) for harness basics (setup \u002F trigger \u002F verify phases, template functions, expected-file authoring via `contains`).\n\nFeature-specific extras:\n\n1. **Docker-compose**: extend `..\u002F..\u002Fscript\u002Fdocker-compose\u002Fbase-compose.yml` oap + storage. Set `SW_OTEL_RECEIVER_ENABLED_HANDLERS`, `SW_LOG_LAL_FILES`, and any feature-specific env. Don't list default rules here — rely on `application.yml` so the config-dump test stays consistent.\n2. **Register in CI**: add an entry under the e2e matrix in `.github\u002Fworkflows\u002Fskywalking.yaml`.\n3. **OTLP data hygiene**:\n   - `spanId` is exactly 16 hex chars; `traceId` is exactly 32. Protobuf-JSON decodes them as base64; other lengths return HTTP 400.\n   - Setup-step curl loops must fail loudly: `curl -sS -f --retry 30 --retry-delay 5 --retry-connrefused --retry-all-errors --max-time 10 ...` + `set -e`. The pattern `for …; do curl && break || sleep 5; done` silently succeeds when every attempt connection-refused (the final `sleep` returns 0) because OAP takes ~50 s to start in CI.\n4. **Verify each case by hand before pushing** and use a published simulator image where the upstream SDK has one. See [`run-e2e` skill §6–§9](..\u002Frun-e2e\u002FSKILL.md) for verify-query triage, expected-file authoring, and the list of expected-file traps (YAML quoting on colons, nested `contains` fragility, `timeUnixNano: \"0\"`, setup-step curl loops that swallow failure).\n5. **Config dump**: when you modify any `application.yml` default (rule list, handler list, ...), also update `test\u002Fe2e-v2\u002Fcases\u002Fstorage\u002Fexpected\u002Fconfig-dump.yml`.\n\n---\n\n## 8. Pre-submit checklist\n\nRun in order; each has a dedicated skill:\n\n1. [`compile`](..\u002Fcompile\u002FSKILL.md) — `.\u002Fmvnw clean flatten:flatten install javadoc:javadoc -B -q -Pall -Dmaven.test.skip -Dcheckstyle.skip -Dgpg.skip`. Javadoc `[ERROR] ... error:` must be fixed; `[ERROR] ... warning:` is noise.\n2. Tests: `.\u002Fmvnw -pl oap-server\u002Fanalyzer\u002Flog-analyzer -am test -Dtest=LALScriptExecutionTest` for LAL changes, equivalent for MAL, OAL unit tests where the rule lives.\n3. [`license`](..\u002Flicense\u002FSKILL.md) — `license-eye header check` (Apache 2.0 headers). If the UI submodule bumped npm deps, also `license-eye dependency resolve --summary .\u002Fdist-material\u002Frelease-docs\u002FLICENSE.tpl` and commit the `LICENSE` diff.\n4. [`package`](..\u002Fpackage\u002FSKILL.md) — full `make docker` (or dist-rebuild + `make docker.oap` \u002F `make docker.ui`). Don't trust `docker.oap` alone to pick up code changes; the dist tarball is a file-level prereq.\n5. [`run-e2e`](..\u002Frun-e2e\u002FSKILL.md) — run the new case end-to-end locally before pushing.\n6. [`gh-pull-request`](..\u002Fgh-pull-request\u002FSKILL.md) — commit and open PR with the template, attach UI screenshots.\n\n---\n\n## 9. Cross-cutting traps collected from real extensions\n\n| Trap | Symptom | Fix |\n|---|---|---|\n| Layer folder named with hyphens | `ui-initialized-templates\u002Fmy-layer\u002F*.json` on disk but dashboard empty | Folder must be `Layer.name().toLowerCase()` (underscores). `wechat_mini_program\u002F`, not `wechat-mini-program\u002F` |\n| Extending `CommonAnalysisListener` for a client-side layer | Added componentId → layer mapping \"to get topology for free\"; then `service_cpm` etc. don't populate anyway | Client-side (exit-only) layers don't need trace-analysis changes. Ship `Layer` + `component-libraries.yml` + MAL + LAL. See §2 header for when extending trace analysis is actually justified |\n| Dashboards wired to OAL-derived metrics on a client-side layer | Charts stay empty — `service_cpm` \u002F `service_resp_time` \u002F `endpoint_cpm` never populate | Those come from inbound `parseEntry`, which mini-program \u002F browser \u002F iOS don't emit. Use MAL metrics (`meter_\u003Clayer>_*`) instead |\n| LAL `#` comment in DSL body | OAP boot fails with `extraneous input 'metrics'` at the `#` line | LAL grammar accepts `\u002F\u002F` and `\u002F* *\u002F` only. No `#` comments |\n| LAL bare def-var value access — `tag 'x': myvar` | OAP boot fails with `Cannot resolve expression '[myvar]'` | `LALValueCodegen` only treats def-vars as valid when there's a method chain (`myvar?.foo`). Inline `sourceAttribute(...)` or `tag(...)` in the three value-access sites instead of storing to a def, or add a no-op chain like `myvar.toString()`. Conditions (`if (myvar == ...)`) go through a different codegen path and DO handle bare def refs |\n| MAL rule file with multi-doc YAML (`---` separator) | `MALFilterExecutionTest` fails with `expected a single document`; OAP would also fail at startup via `Rules.loadRules` (calls `Yaml.loadAs`, single-doc) | Split into one file per top-level `expSuffix` \u002F `filter` \u002F `metricPrefix` combo. Reference each file by name in `application.yml` (`lalFiles`, `malFiles`, `enabledOtelMetricsRules`) |\n| Histogram bucket bounds in ms with default `.histogram()` call | Percentile values come out 1000× inflated (`P50 = 100000` for a 100 ms request) | MAL's default `defaultHistogramBucketUnit = SECONDS` multiplies `le` by 1000 when converting to stored ms. For SDKs that emit ms bounds directly (mini-program, most in-house JS SDKs), use `.histogram(\"le\", TimeUnit.MILLISECONDS)`. `TimeUnit` is registered in `MALCodegenHelper.ENUM_FQCN` so rule YAML can reference it |\n| `.rate()` \u002F `.increase()` on a DELTA counter \u002F histogram `_count` | Compute delta-of-delta — nonsense values | OTLP DELTA means each flush is already the per-flush count. MAL's per-minute aggregator sums directly to requests-per-minute. For CUMULATIVE (Prometheus default), use `.rate(\"PT1M\")` for per-sec or `.increase(\"PT1M\")` for per-min; they are **not** equivalent (differ by 60×) |\n| MAL bucket-family name with `_histogram` suffix | Rule compiles, metric stays empty | `PrometheusMetricConverter` emits the bucket family as `\u003Cmetric_name>` (no suffix), with `\u003Cmetric_name>_count` and `\u003Cmetric_name>_sum` as the companion families. Reference the bucket family by its bare name in the rule |\n| LAL `tag(\"key\") == null` check on a missing tag | Check never triggers — LAL's `tag()` returns empty string `\"\"` for absent tags, not `null`, so conditional abort is a no-op | Guard on both: `tag(\"key\") == null || tag(\"key\") == \"\"`. Same for `sourceAttribute(\"key\")` |\n| MAL rule file with `expSuffix: service(...)` mixing service-scoped and endpoint-scoped rules | Endpoint rules' metrics appear under the service entity (no endpoint_traffic rows created); `swctl endpoint ls` returns empty. `MetricConvert.formatExp:132` appends `(exp).expSuffix` to every rule, so `.endpoint(...)` in the rule's expression is followed by `.service(...)` and the service scope wins. | Follow the APISIX pattern — leave `expSuffix:` empty and explicitly chain `.service(...)` \u002F `.endpoint(...)` on each rule. If every rule in a file is same-scope (e.g. all instance-scoped in `*-instance.yaml`), `expSuffix` is still fine |\n\nE2E-side authoring traps (log-content YAML quoting, nested `contains` fragility, `timeUnixNano: \"0\"`, setup-step curl swallowing failure) live in the [`run-e2e` skill §9](..\u002Frun-e2e\u002FSKILL.md).\n| Missing layer-root template | Menu item lands on empty \"no dashboard\" view | `Layer.vue:41-44` requires a template with `isRoot: true`; ship a `\u003Clayer>-root.json` (precedent: `ios\u002Fios-root.json`) |\n| New layer not selectable in UI \u002F swctl | `service ly \u003CLAYER>` returns empty | Add the enum in `Layer.java` with a fresh id; see §0 |\n| Stale dist in image | `make docker.oap` succeeds but behavior is old | See [`package` skill](..\u002Fpackage\u002FSKILL.md); rebuild dist first, then image |\n| Shipped template edits don't render after restart | Edited JSON on disk, but OAP shows old copy | Set `SW_UI_TEMPLATE_FORCE_RELOAD=true` (environment variable, not `application.yml`) and restart; OAP writes `addOrReplace`. Unset in production so operator UI edits aren't clobbered. |\n| MAL service-scoped rule fragmented by instance | \"Overall app\" metric has N series per version | Keep `service_instance_id` out of service-scoped `.sum`\u002F`.avg`. Put instance-scoped metrics in a separate `\u003Cfeature>-instance.yaml` with `expSuffix: instance(...)` — see `otel-rules\u002Fios\u002F` pattern. |\n| Config dump drift | Storage e2e fails after `application.yml` edit | Mirror the change in `test\u002Fe2e-v2\u002Fcases\u002Fstorage\u002Fexpected\u002Fconfig-dump.yml` |\n| LAL `layer:auto` WARN drop | Every log silently dropped | Codegen must set `metadata.layer` alongside output builder's layer |\n| Histogram 1000× off | p50 = 2 000 000 ms | `defaultHistogramBucketUnit(MILLISECONDS)` on the `SampleFamily` |\n| Histogram shifted up | p50 = 5 000 on 500–2500 ms data | Emit per-bucket, not cumulative |\n| Empty list column | Dashboard instance table has no numbers | Add `expressions` (not just `subExpressions`) |\n| Double scroll | Inner tab scroll + page scroll | `Tab.h = content_max + 4` chrome buffer |\n| Raw metric name in legend | Multiple expressions on one widget | Add parallel `metricConfig[].label` entries |\n| `spanKind` mismatch | Span skipped silently | `OTLPSpanReaderImpl.spanKind()` returns enum `.name()` like `SPAN_KIND_CLIENT`, not `CLIENT` |\n| Negative latency | `*_sla` inflated | Clamp `rawLatency \u003C 0 ? 0 : (int) min(Integer.MAX_VALUE, rawLatency)` |\n| SLA too optimistic | Client-side DNS \u002F timeout \u002F connection-refused counted as success | Require a real response code for success: `status = code > 0 && code \u003C 400`. Do not treat missing (0) as success. |\n| Silent drop with no rules | `converters == null` NPE elsewhere | Init to empty list at declaration |\n| `+Inf` bucket surfaces as `9.2e18` | UI shows garbage when a sample lands in overflow | Use finite sentinel bucket (e.g. 30 s) |\n| OTel submodule bump misses UI image | New icons \u002F i18n not visible | Rebuild with `-Pui,dist` + `make docker.ui` |\n| LICENSE drift after submodule bump | CI `Dependency licenses` fails | `license-eye dependency resolve --summary .\u002Fdist-material\u002Frelease-docs\u002FLICENSE.tpl` and commit |\n| Setup-step curl loop swallows failure | e2e passes metrics but fails log verify | `curl -f --retry-connrefused --retry-all-errors` + `set -e` |\n| Verify case flag mismatch | CI fails early on `swctl` flag unknown to pinned commit | Fire every verify command locally first; bump `SW_CTL_COMMIT` if needed |\n\n---\n\n## 10. Reference extensions (read their code)\n\nBrowse these when you need a template to copy from. Grouped by the kind of data source, because the extension points differ significantly:\n\n### SW native trace (language agents) — the \"General\" layer and friends\n\n`Layer.GENERAL` is the default layer for services reporting via the SkyWalking native trace protocol (Java \u002F Python \u002F Go \u002F Node.js \u002F .NET \u002F PHP \u002F Lua \u002F Rust agents). It's the richest reference because the native pipeline is where the **full topology** lives:\n\n- **Service → service dependency** (topology): derived by `MultiScopesAnalysisListener` and `NetworkAddressAliasMappingListener` in `oap-server\u002Fanalyzer\u002Fagent-analyzer\u002Fsrc\u002Fmain\u002Fjava\u002F...\u002Ftrace\u002Fparser\u002Flistener\u002F`. Entry\u002Fexit spans produce `ServiceRelation`, `ServiceInstanceRelation` sources.\n- **Endpoint → endpoint dependency**: `RPCAnalysisListener` emits `EndpointRelation` sources from cross-process refs and exit spans. This is unique to the native protocol — OTLP spans don't preserve upstream entry-span metadata the same way, so OTLP-only layers generally lose endpoint-level topology.\n- OAL aggregation: `oap-server\u002Fserver-starter\u002Fsrc\u002Fmain\u002Fresources\u002Foal\u002Fcore.oal` — all `service_relation_*`, `service_instance_relation_*`, `endpoint_relation_*` metrics are already defined there; a new native-tracing layer just needs to produce the right sources with the right `Layer`.\n\nRead order: `AnalysisListenerFactory` SPI registration → `SegmentParserServiceImpl` fan-out → individual listeners → OAL rules.\n\n### Service-mesh (Istio \u002F Envoy ALS) — topology from proxy-side signals\n\nNo agent in the service; Envoy emits HTTP\u002FTCP access logs (ALS) and metrics. Service-to-service topology is reconstructed from ALS request\u002Fresponse pairs.\n\n- `oap-server\u002Fserver-receiver-plugin\u002Fenvoy-metrics-receiver-plugin\u002F` — ALS receiver + `EnvoyAccessLogBuilder` persistence (LAL output type).\n- `otel-rules\u002Fistio-*`, `otel-rules\u002Fenvoy\u002F*` — MAL rules for proxy-emitted OTel metrics.\n- `lal\u002Fenvoy-als.yaml` — LAL rule that extracts topology-generating fields from ALS.\n- Layer: `Layer.MESH`, plus `Layer.MESH_CP` (control plane) and `Layer.MESH_DP` (data plane) for split-plane topology.\n\nTopology parity with native traces: ALS gives you service-level relations; endpoint-level relations are approximate (proxy sees inbound + outbound, not the full call-chain that a native agent observes).\n\n### OTLP-only layers (OTel SDKs, iOS\u002FAndroid, AI gateway, …)\n\nOTLP spans feed a `SpanListener`. Topology is **partial by construction** — an OTel Swift SDK on a mobile device only knows about its own outbound requests; there's no upstream caller. So these layers typically produce only `Service` \u002F `ServiceInstance` \u002F `Endpoint` sources (no `*Relation`) and the Topology view shows isolated islands, by design.\n\n- **iOS** (`Layer.IOS`, OTLP traces + MetricKit + LAL diagnostics): `oap-server\u002Fanalyzer\u002Fios-analyzer\u002F` + `docs\u002Fen\u002Fswip\u002FSWIP-11.md`.\n- **Envoy AI Gateway** (`Layer.ENVOY_AI_GATEWAY`, LLM \u002F MCP, OTLP metrics + Zipkin sampled traces + LAL access-log sampling): `oap-server\u002Fanalyzer\u002Fgen-ai-analyzer\u002F`, `otel-rules\u002Fenvoy-ai-gateway\u002F*`, `lal\u002Fenvoy-ai-gateway.yaml`.\n\n### OTel-metrics-only layers (scraped exporters)\n\nNo spans, no logs — just MAL rules converting OTel metric scrapes.\n\n- **MySQL \u002F PostgreSQL**: `otel-rules\u002Fmysql\u002F*`, `otel-rules\u002Fpostgresql\u002F*`.\n- **Kubernetes**: `otel-rules\u002Fk8s\u002F*` — paired with `virtual-k8s-service` (`Layer.K8S_SERVICE`) sources for synthetic services.\n- **AWS**: `otel-rules\u002Faws-eks\u002F*`, `otel-rules\u002Faws-s3\u002F*`, `otel-rules\u002Faws-dynamodb\u002F*`.\n\n### SW native meter (custom protocol)\n\nNo OTel; the agent \u002F plugin sends pre-built meter samples on the SW `MeterProtocol`.\n\n- **Nginx Lua** (`Layer.NGINX`): `meter-analyzer-config\u002Fnginx-service.yaml`, with the Lua agent in `apache\u002Fskywalking-nginx-lua`.\n- **APISIX** (`Layer.APISIX`): `meter-analyzer-config\u002Fapisix-service.yaml` + LAL trace extraction.\n\n### Which to copy from\n\n| You're adding | Closest reference |\n|---|---|\n| Language agent (new JVM \u002F runtime) | The General \u002F Java layer flow; extend `AnalysisListener` SPI. |\n| Service mesh \u002F proxy | `mesh-*` + `envoy-*` rules; LAL on ALS. |\n| Mobile \u002F browser \u002F mini-program SDK (OTLP) | `ios-analyzer` (OTLP client-side). Expect no topology relations. |\n| Database \u002F middleware (metrics only) | `mysql`, `postgresql` — pure MAL rules. |\n| Cloud service (no agent, just metrics) | `aws-eks` \u002F `aws-s3`. |\n| Custom protocol \u002F home-grown telemetry | `apisix` \u002F `nginx` — SW native meter. |\n","# Adding a New Monitoring Feature \u002F Layer\n\nSkyWalking monitoring for a new target (a new `Layer` — mobile OS, gateway, DB, language runtime, …) is composed from the same set of reusable extension points. This skill is the index: which extension point fits which signal, where its contract lives, which docs must be updated together, and which harness-wide traps the extension-specific docs don't cover.\n\nThere is one skill per narrow concern. This one is the wiring map.\n\n---\n\n## Working posture\n\n- **Default scope for a new monitoring feature is narrow.** For most new monitoring targets, traces are **re-used as-is** — you do not write or modify a trace analyzer. Metrics and log extensions via OTLP (MAL + LAL) are the common shape. OTLP \u002F Zipkin span-based metrics analysis (`SpanListener`) already exists and only needs a new implementation if your feature introduces genuinely new semantic-convention attributes to extract (e.g. `gen_ai.*`, `mcp.*` for the GenAI layer). Do **not** touch `CommonAnalysisListener` \u002F `RPCAnalysisListener` \u002F `SegmentAnalysisListener` unless the OAP core protocol gains a new `SpanLayer` enum value — details in §2.\n- **If you find yourself editing more than this skill suggests, stop and confirm.** Scope creep on trace analysis, span-layer mapping, receiver handlers, or protobuf\u002Fproto contracts is a strong signal the framing is wrong. Ask the developer before committing that direction.\n- **Verify every new feature locally before pushing to CI.** Compile + checkstyle + license-eye are minimums, but they only tell you the code builds — they do **not** tell you the new MAL rule compiles its closures at startup, the LAL layer:auto dispatch works, the OTLP payload shape matches the MAL labels, the UI template renders against real data, or the layer shows up in `swctl service ly \u003CLAYER>`. Run the new e2e case end-to-end locally against a live OAP (see [run-e2e skill](..\u002Frun-e2e\u002FSKILL.md)) and fire every verify step with `swctl` by hand at least once. Pushing to CI without a local green run wastes shared CI cycles and slow-loops review.\n\n---\n\n## 0. Register the `Layer` — the feature's entry point\n\nA `Layer` is how OAP slices services \u002F instances \u002F endpoints by data source. The UI, storage partitioning, menu navigation, and OAL aggregation all key off it.\n\n`Layer` is a registry-backed value type (no longer a closed enum). Built-in layers are declared as `public static final Layer` constants in `oap-server\u002Fserver-core\u002Fsrc\u002Fmain\u002Fjava\u002Forg\u002Fapache\u002Fskywalking\u002Foap\u002Fserver\u002Fcore\u002Fanalysis\u002FLayer.java`; external layers are registered through the `Layer.register(name, ordinal, normal)` API at boot. **Pick the registration path that matches the scope of your feature:**\n\n| Your feature ships as | Registration path |\n|---|---|\n| Part of the OAP distribution (in-tree, the common case for new SkyWalking-supported targets) | Add a `public static final Layer` constant to `Layer.java` with the next sequential ordinal in `0–49`. Examples: `IOS = register(\"IOS\", 47, true)`, `APISIX = register(\"APISIX\", 21, true)`, `VIRTUAL_DATABASE = register(\"VIRTUAL_DATABASE\", 14, false)` for inferred\u002Fnon-real services. |\n| An out-of-tree MAL or LAL rule file | Add a top-level `layerDefinitions:` block to the rule file. The DSL loader funnels each entry through `Layer.register` before compiling the rule. One file ships the layer + the rules that produce its telemetry. |\n| An out-of-tree plugin module (jar) | Implement `org.apache.skywalking.oap.server.core.analysis.LayerExtension` and register via `META-INF\u002Fservices\u002F`. Discovered by `LayerExtensionLoader` during `CoreModuleProvider.prepare()`. |\n| Operator-deployed config (no code, no DSL) | Add an entry to `oap-server\u002Fserver-starter\u002Fsrc\u002Fmain\u002Fresources\u002Flayer-extensions.yml` (or override on the OAP node's classpath). |\n\n**Ordinal conventions:** `0–49` is in active use by built-ins. `50–999` is reserved by convention for future built-in layers. External layers are recommended (not required) to start at `>= 1000` to avoid colliding with future built-ins on OAP upgrade. Collisions in either direction are detected at boot via the ordinal-uniqueness check, which fails OAP startup loudly.\n\n**Storage encoding is the ordinal int**, persisted in BanyanDB \u002F Elasticsearch \u002F JDBC. Every OAP node that reads or writes a given layer must agree on its `(name, ordinal)` mapping — deploy `layer-extensions.yml` and any `layerDefinitions:` rule files identically across all nodes. The registry is sealed at the start of `Core.notifyAfterCompleted()`; later registration attempts throw.\n\n**UI template folders are auto-discovered by file scan, not by `Layer.values()`.** `UITemplateInitializer` walks `ui-initialized-templates\u002F**\u002F*.json` recursively (depth 2) and trusts each template's own `configuration.layer` field. Drop a folder of dashboard JSONs on disk and the initializer picks them up on the next boot — folder name is purely organizational.\n\n**Component ID lookup in Java code**: IDs declared in `component-libraries.yml` are loaded at runtime into `ComponentLibraryCatalogService`'s `componentName2Id` map — they are **not** exposed as Java enum constants. To look up by name in listener code, inject the catalog service and resolve once at construction:\n```java\nIComponentLibraryCatalogService catalog = moduleManager.find(CoreModule.NAME)\n    .provider().getService(IComponentLibraryCatalogService.class);\nint myComponentId = catalog.getComponentId(\"My-Component-Name\");\n```\nCache as an `int` field; runtime comparisons are then plain `componentId == myComponentId`. **Trap:** there is a `ComponentsDefine` class under `skywalking-trace-receiver-plugin\u002Fsrc\u002Ftest\u002Fjava\u002F...\u002Fmock\u002FComponentsDefine.java` — it is a test-only mock holding five hand-picked constants (Tomcat, Dubbo, RocketMQ, MongoDB). Do not import or extend it from production code.\n\nEmit the layer from every source object your feature produces. Built-in layers have a static-field accessor; external layers are looked up by name through the registry:\n\n```java\n\u002F\u002F Built-in layer (constant)\nservice.setLayer(Layer.IOS);\n\n\u002F\u002F External layer (registered via yaml \u002F SPI \u002F layerDefinitions:)\nservice.setLayer(Layer.nameOf(\"IOT_FLEET\"));\n```\n\nDownstream (the core OAL, `service ly \u003CLAYER>` swctl query, topology filters, UI root dashboard's layer selector) all work off this single enum value.\n\n---\n\n## 1. Pick the right extension point\n\n| Signal you want to process | Extension point | Register via |\n|---|---|---|\n| **SkyWalking native trace segments** (from language agents) | `AnalysisListener` (TraceSegmentListener \u002F EntryAnalysisListener \u002F ExitAnalysisListener \u002F LocalAnalysisListener \u002F FirstAnalysisListener) + factory in `agent-analyzer` | `META-INF\u002Fservices\u002Forg.apache.skywalking.oap.server.analyzer.provider.trace.parser.listener.AnalysisListenerFactory` |\n| **OTLP \u002F Zipkin trace spans** (OTel SDKs, Istio, Envoy, iOS\u002FAndroid, …) | `SpanListener` in `core.trace` | `META-INF\u002Fservices\u002Forg.apache.skywalking.oap.server.core.trace.SpanListener` |\n| **OTel metrics** (Prometheus scrape, Envoy stats, Istio, …) | MAL rules — `otel-rules\u002F\u003Cnamespace>\u002F*.yaml` | Append the rule path to `enabledOtelMetricsRules` in `application.yml` |\n| **Logs** (OTLP, SkyWalking native, Fluent Bit, Envoy ALS) | LAL rules — `lal\u002F\u003Crule>.yaml` | Append to `SW_LOG_LAL_FILES` (env) or `lalFiles` (YAML) under `log-analyzer` |\n| **Pre-computed meter \u002F custom meter** (custom agent protocol, meter receiver) | MAL `meter-analyzer-config\u002F*.yaml` | Append to `meter-analyzer-config` entries |\n| **Aggregation from Source entities** (service, instance, endpoint, relation) | OAL rules — `oal\u002F*.oal` | Already loaded by `OAL grammar`; just add lines |\n\nAll five DSLs (OAL, MAL, LAL, Hierarchy + SpanListener SPI) compile via ANTLR4 + Javassist at startup. Source-of-truth details are in:\n- [`docs\u002Fen\u002Fconcepts-and-designs\u002Foal.md`](..\u002F..\u002F..\u002Fdocs\u002Fen\u002Fconcepts-and-designs\u002Foal.md)\n- [`docs\u002Fen\u002Fconcepts-and-designs\u002Fmal.md`](..\u002F..\u002F..\u002Fdocs\u002Fen\u002Fconcepts-and-designs\u002Fmal.md)\n- [`docs\u002Fen\u002Fconcepts-and-designs\u002Flal.md`](..\u002F..\u002F..\u002Fdocs\u002Fen\u002Fconcepts-and-designs\u002Flal.md)\n- [`docs\u002Fen\u002Fconcepts-and-designs\u002Fscope-definitions.md`](..\u002F..\u002F..\u002Fdocs\u002Fen\u002Fconcepts-and-designs\u002Fscope-definitions.md)\n- [`oap-server\u002Fanalyzer\u002Fmeter-analyzer\u002FCLAUDE.md`](..\u002F..\u002F..\u002Foap-server\u002Fanalyzer\u002Fmeter-analyzer\u002FCLAUDE.md) — MAL compiler internals\n- [`oap-server\u002Fanalyzer\u002Flog-analyzer\u002FCLAUDE.md`](..\u002F..\u002F..\u002Foap-server\u002Fanalyzer\u002Flog-analyzer\u002FCLAUDE.md) — LAL compiler internals\n\n---\n\n## 2. Trace ingestion — two parallel pipelines\n\nSkyWalking OAP ingests traces through two distinct entry points. Pick based on source.\n\n> **Before writing any trace extension — ask \"do I actually need one?\"**\n>\n> For **most new layers you do not touch trace analysis at all.** Segments (native or\n> OTLP) flow through the existing pipeline, `RPCAnalysisListener.parseExit` produces\n> the outbound `ServiceRelation` edges, the backend-side agent produces the inbound\n> metrics via its own `parseEntry`, and the new-layer Service \u002F Instance \u002F Endpoint\n> entities come from **MAL + LAL**, not from trace analysis. This is how browser\n> (`Layer.BROWSER`), iOS (`Layer.IOS`), mobile mini-programs\n> (`Layer.WECHAT_MINI_PROGRAM` \u002F `Layer.ALIPAY_MINI_PROGRAM`), and most\n> scraped-metric layers work.\n>\n> Extend trace analysis **only** when the feature genuinely needs per-span\n> interpretation that the existing pipeline cannot express:\n>\n> - **A new `SpanLayer`** — OAP core protobuf has a new `SpanLayer` enum value that\n>   callers of `identifyServiceLayer` \u002F `identifyRemoteServiceLayer` must dispatch on.\n>   That means touching `CommonAnalysisListener` \u002F `RPCAnalysisListener`.\n> - **A genuinely new signal class not covered by existing listeners** — e.g. the GenAI\n>   work added `GenAISpanListener` for LLM \u002F MCP instrumentation because OTLP spans\n>   carry semantic-convention attributes (`gen_ai.*`, `mcp.*`) that no prior listener\n>   extracted. That is rare.\n>\n> **Anti-pattern we've been bitten by:** using a componentId mapping in\n> `CommonAnalysisListener` to assign a client-side layer to exit-only segments. This\n> does not produce inbound metrics anyway (no entry spans → no\n> `service_cpm` \u002F `endpoint_cpm` from OAL), and it is orthogonal to the Service entity\n> layer (which MAL \u002F LAL sets). Mirror the browser pattern instead: ship `Layer` +\n> `component-libraries.yml` + MAL + LAL + dashboards, and leave the listener chain\n> alone.\n\n### 2.1 SkyWalking native segments — `AnalysisListener`\n\n**Source protocol**: `apm-protocol\u002Fapm-network\u002Fsrc\u002Fmain\u002Fproto\u002Flanguage-agent\u002FTracing.proto` (`TraceSegmentObject`).\n\n**Receiver**: `oap-server\u002Fserver-receiver-plugin\u002Fskywalking-trace-receiver-plugin`. After wire decoding, segments are handed to `SegmentParserServiceImpl` which fans out to registered `AnalysisListenerFactory` implementations.\n\n**Extension**: implement one or more of\n- `FirstAnalysisListener` — per-segment, before per-span phase\n- `EntryAnalysisListener` — per-entry-span\n- `ExitAnalysisListener` — per-exit-span\n- `LocalAnalysisListener` — per-local-span\n- `TraceSegmentListener` — whole-segment, after per-span phase\n\nRegister the **factory** in `META-INF\u002Fservices\u002Forg.apache.skywalking.oap.server.analyzer.provider.trace.parser.listener.AnalysisListenerFactory`. Existing examples: `RPCAnalysisListener`, `MultiScopesAnalysisListener`, `SegmentAnalysisListener` in `oap-server\u002Fanalyzer\u002Fagent-analyzer\u002Fsrc\u002Fmain\u002Fjava\u002F...\u002Ftrace\u002Fparser\u002Flistener\u002F`.\n\nUse when: the data arrives on the SW native wire (language agents — Java, Python, Go, Node.js, .NET, PHP, Lua, etc.).\n\n### 2.2 OTLP \u002F Zipkin spans — `SpanListener`\n\n**Source protocol**: OTLP proto (`opentelemetry\u002Fproto\u002Ftrace\u002Fv1\u002Ftrace.proto`) or Zipkin v2 JSON.\n\n**Receiver**: `oap-server\u002Fserver-receiver-plugin\u002Fotel-receiver-plugin\u002Fsrc\u002Fmain\u002Fjava\u002F...\u002Fotlp\u002FOpenTelemetryTraceHandler.java` (OTLP) and `oap-server\u002Fserver-receiver-plugin\u002Fzipkin-receiver-plugin\u002F...\u002FITZipkinTraceCollector` (Zipkin). After decoding, spans are iterated and passed to every registered `SpanListener` through `SpanListenerManager`.\n\n**Extension**: implement `org.apache.skywalking.oap.server.core.trace.SpanListener`:\n\n```java\npublic interface SpanListener {\n    String[] requiredModules();\n    void init(ModuleManager moduleManager);\n    SpanListenerResult onOTLPSpan(OTLPSpanReader span, String serviceName, Map\u003CString,String> resourceAttributes,\n                                  String scopeName, String scopeVersion);\n}\n```\n\nName the service by `serviceName`, not the resource's `service.name`: it is the service the span is analyzed and\nstored under, which `receiver-otel.otlpServiceGroupKeys` may have grouped (`shop::cart` for `service.name=cart`).\n\nRegister in `META-INF\u002Fservices\u002Forg.apache.skywalking.oap.server.core.trace.SpanListener`. Reference implementations:\n- `oap-server\u002Fanalyzer\u002Fios-analyzer\u002Fsrc\u002Fmain\u002Fjava\u002F...\u002FIOSHTTPSpanListener.java` — OTel Swift URLSession → OAL (Service \u002F ServiceInstance \u002F Endpoint)\n- `oap-server\u002Fanalyzer\u002Fios-analyzer\u002Fsrc\u002Fmain\u002Fjava\u002F...\u002FIOSMetricKitSpanListener.java` — OTel Swift MetricKit → MAL samples via `OpenTelemetryMetricRequestProcessor.toMeter`\n- `oap-server\u002Fanalyzer\u002Fgen-ai-analyzer\u002Fsrc\u002Fmain\u002Fjava\u002F...\u002FGenAISpanListener.java` — LLM \u002F MCP instrumentation\n\nReturn `SpanListenerResult.builder().shouldPersist(false).build()` to prevent a span being stored as a trace (useful for e.g. 24-hour aggregate spans that are not meaningful as traces).\n\n**When both native and OTLP should feed the same metric**, write your extension against the downstream scope (Service \u002F ServiceInstance \u002F Endpoint + OAL) and emit those entities from **both** a SegmentListener and a SpanListener. The OAL layer is protocol-agnostic.\n\n---\n\n## 3. Metrics — MAL \u002F OAL rules\n\n### 3.1 OAL (for entities already produced by core sources)\n\n`oap-server\u002Fserver-starter\u002Fsrc\u002Fmain\u002Fresources\u002Foal\u002Fcore.oal` already defines the standard `service_cpm`, `service_resp_time`, `service_sla`, `endpoint_cpm`, etc. — keyed off the `Service`, `ServiceInstance`, `Endpoint` source scopes. If your new layer emits those entities with the right `Layer`, you get the core metrics for free.\n\n**Who emits those entities matters.** `service_cpm` \u002F `service_resp_time` \u002F `service_sla` \u002F `endpoint_cpm` \u002F `endpoint_resp_time` come from `RPCAnalysisListener.parseEntry` → `callingIn.toService()` \u002F `toEndpoint()`. That only fires on **inbound entry spans**. Client-side \u002F edge layers (browser, iOS, mini-programs) only emit exit spans, so these OAL metrics do **not** populate under those layers — their Service entities are produced by MAL \u002F LAL, and their dashboards use MAL metrics (`meter_\u003Clayer>_*`) for load \u002F latency, not `service_cpm` \u002F `service_resp_time`. Don't wire dashboards to OAL-derived metrics that the layer never produces.\n\nAdditional OAL rules go in the same file. OAL grammar: `oap-server\u002Foal-grammar\u002Fsrc\u002Fmain\u002Fantlr4\u002FOALParser.g4`. Syntax and examples: [`docs\u002Fen\u002Fconcepts-and-designs\u002Foal.md`](..\u002F..\u002F..\u002Fdocs\u002Fen\u002Fconcepts-and-designs\u002Foal.md).\n\n### 3.2 MAL (for meter \u002F metric samples)\n\n**File location**: `oap-server\u002Fserver-starter\u002Fsrc\u002Fmain\u002Fresources\u002Fotel-rules\u002F\u003Cnamespace>\u002F*.yaml` (OTel scrape) or `meter-analyzer-config\u002F*.yaml` (SW native meter).\n\n**Registration** (MANDATORY): append the rule path to the default in `oap-server\u002Fserver-starter\u002Fsrc\u002Fmain\u002Fresources\u002Fapplication.yml`:\n```yaml\nreceiver-otel:\n  default:\n    enabledOtelMetricsRules: ${SW_OTEL_RECEIVER_ENABLED_OTEL_METRICS_RULES:\"...,\u003Cyour-namespace>\u002F*\"}\n```\nIf you skip this, the rule isn't loaded in the default starter and downstream `converters.forEach(...)` is a silent no-op — samples just disappear.\n\n**Also update** `test\u002Fe2e-v2\u002Fcases\u002Fstorage\u002Fexpected\u002Fconfig-dump.yml`. This e2e diffs `\u002Fdebugging\u002Fconfig\u002Fdump` output against a static file; every default-value change in `application.yml` must mirror here or the storage e2e fails.\n\n**Naming**: keep attribute scope in the metric name. If a metric reads from `foo.bar.foreground.exit_count`, call it `foo_foreground_exit_count`, not `foo_exit_count`. When two attributes (foreground vs background, ingress vs egress) share a theme, keep them as separate distinguishable metrics — don't flatten.\n\n### 3.3 Histogram pitfalls (both OAL and MAL)\n\n- **Per-bucket counts, not cumulative.** `histogram_percentile` accumulates internally. Feeding cumulative counts doubles the accumulator and shifts percentiles up. Each observation contributes `1` to exactly one `le` bucket.\n- **`le` label scale.** `SampleFamily.histogram()` rescales `le` by `defaultHistogramBucketUnit.toMillis(1)` (default `SECONDS` ⇒ ×1000). If your raw labels are already in ms, use `SampleFamilyBuilder.newBuilder(samples).defaultHistogramBucketUnit(TimeUnit.MILLISECONDS).build()`.\n- **Overflow bucket.** MAL parses `le=\"Infinity\"` as `Double.POSITIVE_INFINITY` → stored as `Long.MAX_VALUE`. If a percentile lands there, the UI renders ≈ 9.2 × 10¹⁸. Prefer a finite sentinel (e.g., 30 s for hang\u002Flaunch) so outliers remain visible without crashing the chart.\n- **`NamingControl`** — every `service` \u002F `serviceInstance` \u002F `endpoint` label that ends up as an entity key must go through `namingControl.formatServiceName()` \u002F `formatInstanceName()` \u002F `formatEndpointName()`. Raw resource attributes (long git-SHA build metadata, path-style endpoints) will otherwise exceed storage limits.\n\n---\n\n## 4. Logs — LAL\n\n**File location**: `oap-server\u002Fserver-starter\u002Fsrc\u002Fmain\u002Fresources\u002Flal\u002F\u003Cfeature>.yaml`.\n\n**Registration**: append to `SW_LOG_LAL_FILES` env var, or `log-analyzer.default.lalFiles` in `application.yml`.\n\n**Grammar**: `oap-server\u002Fanalyzer\u002Flog-analyzer\u002Fsrc\u002Fmain\u002Fantlr4\u002FLALParser.g4`. The compiler docs are thorough: [`oap-server\u002Fanalyzer\u002Flog-analyzer\u002FCLAUDE.md`](..\u002F..\u002F..\u002Foap-server\u002Fanalyzer\u002Flog-analyzer\u002FCLAUDE.md) — covers:\n- `filter { … }` block with `parsed.*`, `tag()`, `sourceAttribute()`, `log.*`, `def` locals, `extractor {}`, `metrics {}`, `sink {}`\n- `layer: auto` mode (script decides layer from source attrs)\n- `inputType` \u002F `outputType` SPI (`LALSourceTypeProvider`) to bind typed proto to `parsed.*`\n- Test harness at `oap-server\u002Fanalyzer\u002Flog-analyzer\u002Fsrc\u002Ftest\u002Fresources\u002Fscripts\u002Flal\u002Ftest-lal\u002Foap-cases\u002F` — ship YAML + `.data.yaml` pair; `LALScriptExecutionTest` picks them up automatically.\n\n**`layer: auto` gotcha**: the extractor's `layer \"X\"` assignment must propagate to `LogMetadata.layer` (not just the output builder) — `FilterSpec.doSink` reads metadata to decide drop\u002Froute. The current codegen (`LALBlockCodegen.generateFieldToOutput`) handles this correctly; if you extend codegen, preserve that invariant.\n\n---\n\n## 5. UI — templates, submodule, and menu\n\n### 5.1 Dashboard templates\n\nJSON files under `oap-server\u002Fserver-starter\u002Fsrc\u002Fmain\u002Fresources\u002Fui-initialized-templates\u002F\u003Cfeature>\u002F`. Conventional fileset:\n\n- `\u003Cfeature>-root.json` — `ServiceList` widget, layered service index.\n- `\u003Cfeature>-service.json` — per-service dashboard, usually a `Tab` with Overview \u002F Instance \u002F Endpoint \u002F Log sub-tabs.\n- `\u003Cfeature>-instance.json` — per-instance dashboard.\n- `\u003Cfeature>-endpoint.json` — per-endpoint dashboard.\n- Menu link in `oap-server\u002Fserver-starter\u002Fsrc\u002Fmain\u002Fresources\u002Fui-initialized-templates\u002Fmenu.yaml`.\n\n> **Collaborate with the developer on dashboard design.** Dashboard layout and metric selection are product decisions, not derivable from the MAL rules alone. Before authoring the JSON, check in with the developer on: which metric goes on which panel, which percentiles \u002F aggregations to show, what's on the root list vs. per-service vs. per-instance vs. per-endpoint pages, what stays in the Overview tab vs. a sub-tab, widget sizes \u002F ordering, and whether Trace \u002F Log tabs belong at all (depends on whether the feature emits traces and logs). Then **manually set up the feature against a live OAP** — emit a few real OTLP payloads, open each dashboard in the UI, confirm every widget renders non-empty, and walk the drill-down from root → service → instance → endpoint. Only after that eyes-on pass is the dashboard ready to ship.\n\nDetails that always bite:\n\n- **Tab chrome eats ~4 rows.** Set outer `Tab.h = content_max_y + 4` or you get an inner scrollbar on top of the page scrollbar.\n- **Widget heights consistent.** Use `h=15` per row for `Line` \u002F `Bar` widgets to match mesh \u002F general peer templates. Don't mix h=12 \u002F h=15 \u002F h=24 across a feature's dashboards.\n- **List widgets (ServiceList \u002F InstanceList \u002F EndpointList)** render two pieces per cell:\n  - `expressions` → the aggregated summary number (right side). Required. Wrap raw metrics in `avg(...)` \u002F `sum(...)`. Omitting it leaves the column empty.\n  - `subExpressions` → the sparkline trend (left side). Optional, falls back to `expressions` if absent.\n  - `metricConfig` pairs 1-to-1 with `expressions` (not `subExpressions`). Use for `label` (column header) and `unit`.\n  - Compound columns via MQE addition: `avg(metric_a + metric_b)` in `expressions`, `metric_a + metric_b` in `subExpressions`.\n  - Normal widgets with multiple expressions on one chart — always give a human label per expression in `metricConfig`, otherwise legend renders raw metric names.\n\n### 5.2 Hot-reload (edits to shipped templates take effect on restart)\n\n`UITemplateInitializer` normally uses `addIfNotExist` (keyed on JSON `id`), so on a plain restart your edits to shipped templates are ignored — the seeded copy in storage wins. For dev \u002F extension work, set the environment variable and restart:\n\n```bash\nSW_UI_TEMPLATE_FORCE_RELOAD=true\n# then restart OAP — shipped templates overwrite the seeded copies via addOrReplace.\n# Hard-refresh the browser (Cmd+Shift+R) because the booster UI caches config in memory.\n```\n\nThis is a dev \u002F extension knob only — read directly from the OS environment, not wired through `application.yml`. Unset or `false` preserves the default production behavior where operators' UI edits persist across restarts.\n\n### 5.3 New top-level menu group (e.g. \"Mobile\", \"Gateway\")\n\nNew **child entries** only need template JSON + `menu.yaml`. A new **top-level group** needs submodule work in `skywalking-ui` (git submodule at `skywalking-ui\u002F`):\n\n1. `skywalking-ui\u002Fsrc\u002Fassets\u002Ficons\u002F\u003Cname>.svg` — menu icon.\n2. `skywalking-ui\u002Fsrc\u002Flocales\u002Flang\u002Fmenus\u002F{en,es,zh}.ts` — i18n labels (`\u003Cname>`, `\u003Cname>_desc`, `\u003Cname>_\u003Cchild>`, `\u003Cname>_\u003Cchild>_desc`). Missing i18n falls back to raw keys on screen.\n3. Commit those upstream in `apache\u002Fskywalking-booster-ui`, bump the submodule pointer here.\n4. Rebuild with `-Pui,dist` (not `-Pbackend,dist`) and `make docker.ui`, otherwise the new assets aren't in the image. See [package skill](..\u002Fpackage\u002FSKILL.md).\n\n---\n\n## 6. Docs set — everything that moves together\n\n| File | What to add |\n|---|---|\n| `docs\u002Fen\u002Fsetup\u002Fbackend\u002F\u003Cfeature>-monitoring.md` | User-facing setup guide. Required SDK \u002F collector, required env vars, sample OTLP payload, metrics \u002F log tags list. |\n| `docs\u002Fmenu.yml` | Add the guide to the docs navigation tree. |\n| `docs\u002Fen\u002Fsecurity\u002FREADME.md` | **Client-side monitoring**: mobile \u002F browser \u002F mini-program endpoints accept data from the public internet without auth by default. Add a rate-limit + abuse-protection note. Agent-side monitoring over private VPC usually doesn't need this. |\n| `docs\u002Fen\u002Fchanges\u002Fchanges.md` | Per-release changelog. Add under `#### OAP Server` for features\u002Fbug-fixes, `#### UI` if the submodule bumps, `#### Documentation` if new guides. |\n| `docs\u002Fen\u002Fswip\u002FSWIP-\u003CN>.md` | Design doc for non-trivial features; keep reconciled with final code after review. |\n| `docs\u002Fen\u002Fswip\u002Freadme.md` | Move SWIP from \"Proposed\" to \"Accepted\" once merged. |\n\n---\n\n## 7. E2E test\n\nFolder: `test\u002Fe2e-v2\u002Fcases\u002F\u003Cfeature>\u002F`. See [run-e2e skill](..\u002Frun-e2e\u002FSKILL.md) for harness basics (setup \u002F trigger \u002F verify phases, template functions, expected-file authoring via `contains`).\n\nFeature-specific extras:\n\n1. **Docker-compose**: extend `..\u002F..\u002Fscript\u002Fdocker-compose\u002Fbase-compose.yml` oap + storage. Set `SW_OTEL_RECEIVER_ENABLED_HANDLERS`, `SW_LOG_LAL_FILES`, and any feature-specific env. Don't list default rules here — rely on `application.yml` so the config-dump test stays consistent.\n2. **Register in CI**: add an entry under the e2e matrix in `.github\u002Fworkflows\u002Fskywalking.yaml`.\n3. **OTLP data hygiene**:\n   - `spanId` is exactly 16 hex chars; `traceId` is exactly 32. Protobuf-JSON decodes them as base64; other lengths return HTTP 400.\n   - Setup-step curl loops must fail loudly: `curl -sS -f --retry 30 --retry-delay 5 --retry-connrefused --retry-all-errors --max-time 10 ...` + `set -e`. The pattern `for …; do curl && break || sleep 5; done` silently succeeds when every attempt connection-refused (the final `sleep` returns 0) because OAP takes ~50 s to start in CI.\n4. **Verify each case by hand before pushing** and use a published simulator image where the upstream SDK has one. See [`run-e2e` skill §6–§9](..\u002Frun-e2e\u002FSKILL.md) for verify-query triage, expected-file authoring, and the list of expected-file traps (YAML quoting on colons, nested `contains` fragility, `timeUnixNano: \"0\"`, setup-step curl loops that swallow failure).\n5. **Config dump**: when you modify any `application.yml` default (rule list, handler list, ...), also update `test\u002Fe2e-v2\u002Fcases\u002Fstorage\u002Fexpected\u002Fconfig-dump.yml`.\n\n---\n\n## 8. Pre-submit checklist\n\nRun in order; each has a dedicated skill:\n\n1. [`compile`](..\u002Fcompile\u002FSKILL.md) — `.\u002Fmvnw clean flatten:flatten install javadoc:javadoc -B -q -Pall -Dmaven.test.skip -Dcheckstyle.skip -Dgpg.skip`. Javadoc `[ERROR] ... error:` must be fixed; `[ERROR] ... warning:` is noise.\n2. Tests: `.\u002Fmvnw -pl oap-server\u002Fanalyzer\u002Flog-analyzer -am test -Dtest=LALScriptExecutionTest` for LAL changes, equivalent for MAL, OAL unit tests where the rule lives.\n3. [`license`](..\u002Flicense\u002FSKILL.md) — `license-eye header check` (Apache 2.0 headers). If the UI submodule bumped npm deps, also `license-eye dependency resolve --summary .\u002Fdist-material\u002Frelease-docs\u002FLICENSE.tpl` and commit the `LICENSE` diff.\n4. [`package`](..\u002Fpackage\u002FSKILL.md) — full `make docker` (or dist-rebuild + `make docker.oap` \u002F `make docker.ui`). Don't trust `docker.oap` alone to pick up code changes; the dist tarball is a file-level prereq.\n5. [`run-e2e`](..\u002Frun-e2e\u002FSKILL.md) — run the new case end-to-end locally before pushing.\n6. [`gh-pull-request`](..\u002Fgh-pull-request\u002FSKILL.md) — commit and open PR with the template, attach UI screenshots.\n\n---\n\n## 9. Cross-cutting traps collected from real extensions\n\n| Trap | Symptom | Fix |\n|---|---|---|\n| Layer folder named with hyphens | `ui-initialized-templates\u002Fmy-layer\u002F*.json` on disk but dashboard empty | Folder must be `Layer.name().toLowerCase()` (underscores). `wechat_mini_program\u002F`, not `wechat-mini-program\u002F` |\n| Extending `CommonAnalysisListener` for a client-side layer | Added componentId → layer mapping \"to get topology for free\"; then `service_cpm` etc. don't populate anyway | Client-side (exit-only) layers don't need trace-analysis changes. Ship `Layer` + `component-libraries.yml` + MAL + LAL. See §2 header for when extending trace analysis is actually justified |\n| Dashboards wired to OAL-derived metrics on a client-side layer | Charts stay empty — `service_cpm` \u002F `service_resp_time` \u002F `endpoint_cpm` never populate | Those come from inbound `parseEntry`, which mini-program \u002F browser \u002F iOS don't emit. Use MAL metrics (`meter_\u003Clayer>_*`) instead |\n| LAL `#` comment in DSL body | OAP boot fails with `extraneous input 'metrics'` at the `#` line | LAL grammar accepts `\u002F\u002F` and `\u002F* *\u002F` only. No `#` comments |\n| LAL bare def-var value access — `tag 'x': myvar` | OAP boot fails with `Cannot resolve expression '[myvar]'` | `LALValueCodegen` only treats def-vars as valid when there's a method chain (`myvar?.foo`). Inline `sourceAttribute(...)` or `tag(...)` in the three value-access sites instead of storing to a def, or add a no-op chain like `myvar.toString()`. Conditions (`if (myvar == ...)`) go through a different codegen path and DO handle bare def refs |\n| MAL rule file with multi-doc YAML (`---` separator) | `MALFilterExecutionTest` fails with `expected a single document`; OAP would also fail at startup via `Rules.loadRules` (calls `Yaml.loadAs`, single-doc) | Split into one file per top-level `expSuffix` \u002F `filter` \u002F `metricPrefix` combo. Reference each file by name in `application.yml` (`lalFiles`, `malFiles`, `enabledOtelMetricsRules`) |\n| Histogram bucket bounds in ms with default `.histogram()` call | Percentile values come out 1000× inflated (`P50 = 100000` for a 100 ms request) | MAL's default `defaultHistogramBucketUnit = SECONDS` multiplies `le` by 1000 when converting to stored ms. For SDKs that emit ms bounds directly (mini-program, most in-house JS SDKs), use `.histogram(\"le\", TimeUnit.MILLISECONDS)`. `TimeUnit` is registered in `MALCodegenHelper.ENUM_FQCN` so rule YAML can reference it |\n| `.rate()` \u002F `.increase()` on a DELTA counter \u002F histogram `_count` | Compute delta-of-delta — nonsense values | OTLP DELTA means each flush is already the per-flush count. MAL's per-minute aggregator sums directly to requests-per-minute. For CUMULATIVE (Prometheus default), use `.rate(\"PT1M\")` for per-sec or `.increase(\"PT1M\")` for per-min; they are **not** equivalent (differ by 60×) |\n| MAL bucket-family name with `_histogram` suffix | Rule compiles, metric stays empty | `PrometheusMetricConverter` emits the bucket family as `\u003Cmetric_name>` (no suffix), with `\u003Cmetric_name>_count` and `\u003Cmetric_name>_sum` as the companion families. Reference the bucket family by its bare name in the rule |\n| LAL `tag(\"key\") == null` check on a missing tag | Check never triggers — LAL's `tag()` returns empty string `\"\"` for absent tags, not `null`, so conditional abort is a no-op | Guard on both: `tag(\"key\") == null || tag(\"key\") == \"\"`. Same for `sourceAttribute(\"key\")` |\n| MAL rule file with `expSuffix: service(...)` mixing service-scoped and endpoint-scoped rules | Endpoint rules' metrics appear under the service entity (no endpoint_traffic rows created); `swctl endpoint ls` returns empty. `MetricConvert.formatExp:132` appends `(exp).expSuffix` to every rule, so `.endpoint(...)` in the rule's expression is followed by `.service(...)` and the service scope wins. | Follow the APISIX pattern — leave `expSuffix:` empty and explicitly chain `.service(...)` \u002F `.endpoint(...)` on each rule. If every rule in a file is same-scope (e.g. all instance-scoped in `*-instance.yaml`), `expSuffix` is still fine |\n\nE2E-side authoring traps (log-content YAML quoting, nested `contains` fragility, `timeUnixNano: \"0\"`, setup-step curl swallowing failure) live in the [`run-e2e` skill §9](..\u002Frun-e2e\u002FSKILL.md).\n| Missing layer-root template | Menu item lands on empty \"no dashboard\" view | `Layer.vue:41-44` requires a template with `isRoot: true`; ship a `\u003Clayer>-root.json` (precedent: `ios\u002Fios-root.json`) |\n| New layer not selectable in UI \u002F swctl | `service ly \u003CLAYER>` returns empty | Add the enum in `Layer.java` with a fresh id; see §0 |\n| Stale dist in image | `make docker.oap` succeeds but behavior is old | See [`package` skill](..\u002Fpackage\u002FSKILL.md); rebuild dist first, then image |\n| Shipped template edits don't render after restart | Edited JSON on disk, but OAP shows old copy | Set `SW_UI_TEMPLATE_FORCE_RELOAD=true` (environment variable, not `application.yml`) and restart; OAP writes `addOrReplace`. Unset in production so operator UI edits aren't clobbered. |\n| MAL service-scoped rule fragmented by instance | \"Overall app\" metric has N series per version | Keep `service_instance_id` out of service-scoped `.sum`\u002F`.avg`. Put instance-scoped metrics in a separate `\u003Cfeature>-instance.yaml` with `expSuffix: instance(...)` — see `otel-rules\u002Fios\u002F` pattern. |\n| Config dump drift | Storage e2e fails after `application.yml` edit | Mirror the change in `test\u002Fe2e-v2\u002Fcases\u002Fstorage\u002Fexpected\u002Fconfig-dump.yml` |\n| LAL `layer:auto` WARN drop | Every log silently dropped | Codegen must set `metadata.layer` alongside output builder's layer |\n| Histogram 1000× off | p50 = 2 000 000 ms | `defaultHistogramBucketUnit(MILLISECONDS)` on the `SampleFamily` |\n| Histogram shifted up | p50 = 5 000 on 500–2500 ms data | Emit per-bucket, not cumulative |\n| Empty list column | Dashboard instance table has no numbers | Add `expressions` (not just `subExpressions`) |\n| Double scroll | Inner tab scroll + page scroll | `Tab.h = content_max + 4` chrome buffer |\n| Raw metric name in legend | Multiple expressions on one widget | Add parallel `metricConfig[].label` entries |\n| `spanKind` mismatch | Span skipped silently | `OTLPSpanReaderImpl.spanKind()` returns enum `.name()` like `SPAN_KIND_CLIENT`, not `CLIENT` |\n| Negative latency | `*_sla` inflated | Clamp `rawLatency \u003C 0 ? 0 : (int) min(Integer.MAX_VALUE, rawLatency)` |\n| SLA too optimistic | Client-side DNS \u002F timeout \u002F connection-refused counted as success | Require a real response code for success: `status = code > 0 && code \u003C 400`. Do not treat missing (0) as success. |\n| Silent drop with no rules | `converters == null` NPE elsewhere | Init to empty list at declaration |\n| `+Inf` bucket surfaces as `9.2e18` | UI shows garbage when a sample lands in overflow | Use finite sentinel bucket (e.g. 30 s) |\n| OTel submodule bump misses UI image | New icons \u002F i18n not visible | Rebuild with `-Pui,dist` + `make docker.ui` |\n| LICENSE drift after submodule bump | CI `Dependency licenses` fails | `license-eye dependency resolve --summary .\u002Fdist-material\u002Frelease-docs\u002FLICENSE.tpl` and commit |\n| Setup-step curl loop swallows failure | e2e passes metrics but fails log verify | `curl -f --retry-connrefused --retry-all-errors` + `set -e` |\n| Verify case flag mismatch | CI fails early on `swctl` flag unknown to pinned commit | Fire every verify command locally first; bump `SW_CTL_COMMIT` if needed |\n\n---\n\n## 10. Reference extensions (read their code)\n\nBrowse these when you need a template to copy from. Grouped by the kind of data source, because the extension points differ significantly:\n\n### SW native trace (language agents) — the \"General\" layer and friends\n\n`Layer.GENERAL` is the default layer for services reporting via the SkyWalking native trace protocol (Java \u002F Python \u002F Go \u002F Node.js \u002F .NET \u002F PHP \u002F Lua \u002F Rust agents). It's the richest reference because the native pipeline is where the **full topology** lives:\n\n- **Service → service dependency** (topology): derived by `MultiScopesAnalysisListener` and `NetworkAddressAliasMappingListener` in `oap-server\u002Fanalyzer\u002Fagent-analyzer\u002Fsrc\u002Fmain\u002Fjava\u002F...\u002Ftrace\u002Fparser\u002Flistener\u002F`. Entry\u002Fexit spans produce `ServiceRelation`, `ServiceInstanceRelation` sources.\n- **Endpoint → endpoint dependency**: `RPCAnalysisListener` emits `EndpointRelation` sources from cross-process refs and exit spans. This is unique to the native protocol — OTLP spans don't preserve upstream entry-span metadata the same way, so OTLP-only layers generally lose endpoint-level topology.\n- OAL aggregation: `oap-server\u002Fserver-starter\u002Fsrc\u002Fmain\u002Fresources\u002Foal\u002Fcore.oal` — all `service_relation_*`, `service_instance_relation_*`, `endpoint_relation_*` metrics are already defined there; a new native-tracing layer just needs to produce the right sources with the right `Layer`.\n\nRead order: `AnalysisListenerFactory` SPI registration → `SegmentParserServiceImpl` fan-out → individual listeners → OAL rules.\n\n### Service-mesh (Istio \u002F Envoy ALS) — topology from proxy-side signals\n\nNo agent in the service; Envoy emits HTTP\u002FTCP access logs (ALS) and metrics. Service-to-service topology is reconstructed from ALS request\u002Fresponse pairs.\n\n- `oap-server\u002Fserver-receiver-plugin\u002Fenvoy-metrics-receiver-plugin\u002F` — ALS receiver + `EnvoyAccessLogBuilder` persistence (LAL output type).\n- `otel-rules\u002Fistio-*`, `otel-rules\u002Fenvoy\u002F*` — MAL rules for proxy-emitted OTel metrics.\n- `lal\u002Fenvoy-als.yaml` — LAL rule that extracts topology-generating fields from ALS.\n- Layer: `Layer.MESH`, plus `Layer.MESH_CP` (control plane) and `Layer.MESH_DP` (data plane) for split-plane topology.\n\nTopology parity with native traces: ALS gives you service-level relations; endpoint-level relations are approximate (proxy sees inbound + outbound, not the full call-chain that a native agent observes).\n\n### OTLP-only layers (OTel SDKs, iOS\u002FAndroid, AI gateway, …)\n\nOTLP spans feed a `SpanListener`. Topology is **partial by construction** — an OTel Swift SDK on a mobile device only knows about its own outbound requests; there's no upstream caller. So these layers typically produce only `Service` \u002F `ServiceInstance` \u002F `Endpoint` sources (no `*Relation`) and the Topology view shows isolated islands, by design.\n\n- **iOS** (`Layer.IOS`, OTLP traces + MetricKit + LAL diagnostics): `oap-server\u002Fanalyzer\u002Fios-analyzer\u002F` + `docs\u002Fen\u002Fswip\u002FSWIP-11.md`.\n- **Envoy AI Gateway** (`Layer.ENVOY_AI_GATEWAY`, LLM \u002F MCP, OTLP metrics + Zipkin sampled traces + LAL access-log sampling): `oap-server\u002Fanalyzer\u002Fgen-ai-analyzer\u002F`, `otel-rules\u002Fenvoy-ai-gateway\u002F*`, `lal\u002Fenvoy-ai-gateway.yaml`.\n\n### OTel-metrics-only layers (scraped exporters)\n\nNo spans, no logs — just MAL rules converting OTel metric scrapes.\n\n- **MySQL \u002F PostgreSQL**: `otel-rules\u002Fmysql\u002F*`, `otel-rules\u002Fpostgresql\u002F*`.\n- **Kubernetes**: `otel-rules\u002Fk8s\u002F*` — paired with `virtual-k8s-service` (`Layer.K8S_SERVICE`) sources for synthetic services.\n- **AWS**: `otel-rules\u002Faws-eks\u002F*`, `otel-rules\u002Faws-s3\u002F*`, `otel-rules\u002Faws-dynamodb\u002F*`.\n\n### SW native meter (custom protocol)\n\nNo OTel; the agent \u002F plugin sends pre-built meter samples on the SW `MeterProtocol`.\n\n- **Nginx Lua** (`Layer.NGINX`): `meter-analyzer-config\u002Fnginx-service.yaml`, with the Lua agent in `apache\u002Fskywalking-nginx-lua`.\n- **APISIX** (`Layer.APISIX`): `meter-analyzer-config\u002Fapisix-service.yaml` + LAL trace extraction.\n\n### Which to copy from\n\n| You're adding | Closest reference |\n|---|---|\n| Language agent (new JVM \u002F runtime) | The General \u002F Java layer flow; extend `AnalysisListener` SPI. |\n| Service mesh \u002F proxy | `mesh-*` + `envoy-*` rules; LAL on ALS. |\n| Mobile \u002F browser \u002F mini-program SDK (OTLP) | `ios-analyzer` (OTLP client-side). Expect no topology relations. |\n| Database \u002F middleware (metrics only) | `mysql`, `postgresql` — pure MAL rules. |\n| Cloud service (no agent, just metrics) | `aws-eks` \u002F `aws-s3`. |\n| Custom protocol \u002F home-grown telemetry | `apisix` \u002F `nginx` — SW native meter. |\n",{"name":57,"description":58},"new-monitoring-feature","Add a new monitoring target \u002F layer to SkyWalking OAP. Orients you to the OAL \u002F MAL \u002F LAL \u002F SpanListener \u002F SegmentListener extension points, the UI template + submodule touchpoints, the docs set that must move together, and the cross-cutting traps that don't live in any one skill.","master","f4d38fdc21e5a929ef89556a1d7c337957523aa9","config\u002Fagents\u002Fskills\u002Fyoutube-transcript",19,"https:\u002F\u002Fgithub.com\u002Fahmedelgabri\u002Fdotfiles","https:\u002F\u002Fgithub.com\u002Fahmedelgabri","https:\u002F\u002Fgabri.me","…","2026-11-09 00:32:17",{"source":9,"skillName":57,"commands":69,"prompt":79,"zipAvailable":80},[70,73,76],{"tool":71,"command":72},"npx","npx skills add ahmedelgabri\u002Fdotfiles --skill new-monitoring-feature",{"tool":74,"command":75},"bunx","bunx skills add ahmedelgabri\u002Fdotfiles --skill new-monitoring-feature",{"tool":77,"command":78},"pnpm","pnpm dlx skills add ahmedelgabri\u002Fdotfiles --skill new-monitoring-feature","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fahmedelgabri\u002Fdotfiles\u002Fblob\u002Fmain\u002Fconfig\u002Fagents\u002Fskills\u002Fyoutube-transcript\u002FSKILL.md",true,[82],{"path":83,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":86,"sourceHtmlUrl":87},"scripts\u002Ftranscript.py","SCRIPT","脚本",11512,"https:\u002F\u002Fgithub.com\u002Fahmedelgabri\u002Fdotfiles\u002Fblob\u002Fmain\u002Fconfig\u002Fagents\u002Fskills\u002Fyoutube-transcript\u002Fscripts\u002Ftranscript.py",[89,120,139,164,185,210],{"skillNo":90,"name":91,"nameZh":92,"description":93,"descriptionZh":94,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":95,"categories":96,"keywords":103,"publishedAt":52},"01M6BTHV9M65YMX558C22H638A","pi-loop","Pi 周期性任务管理","Set up and manage recurring Pi tasks that run as background Pi processes. Use for recurring prompts, scheduled reports, or \u002Floop requests.","设置并管理作为后台 Pi 进程运行的周期性 Pi 任务。用于重复性提示、定时报告或 \u002Floop 请求。","https:\u002F\u002Fgithub.com\u002Fahmedelgabri\u002Fdotfiles\u002Fblob\u002Fmain\u002Fconfig\u002Fpi\u002Fagent\u002Fextensions\u002Floop\u002Fskills\u002Fpi-loop\u002FSKILL.md",[97,100],{"categoryNo":98,"categoryName":99,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BS5011KJDVSRXG1DC4P666","普通用户",{"categoryNo":101,"categoryName":102,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BSFHC0DJXKNN0QBZDDS4K9","定时任务与自动化编排",[104,105,106,107,108,35,109,110,111,112,113,114,115,44,116,117,118,119],"pi loop","loop","pi","background","prompts","scheduled","requests","processes","as","manage","reports","up","recurring","SET","run","tasks",{"skillNo":121,"name":122,"nameZh":123,"description":124,"descriptionZh":125,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":126,"categories":127,"keywords":134,"publishedAt":52},"01M6BTHPAGHJ9KK6MB8HDC97Q8","unslop","非代码文本去 AI 痕迹","Cut AI tells from any writing NOT code. Must always apply.","从任何非代码文字中去除 AI 痕迹。必须始终应用。","https:\u002F\u002Fgithub.com\u002Fahmedelgabri\u002Fdotfiles\u002Fblob\u002Fmain\u002Fconfig\u002Fagents\u002Fskills\u002Funslop\u002FSKILL.md",[128,131],{"categoryNo":129,"categoryName":130,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQ6TRAEZFJ43R95HPEBJYG","知识工作者",{"categoryNo":132,"categoryName":133,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8C1YEW2680C003GGBD6QCKB","回复风格与输出控制",[122,135,136,137,138],"code","writing","cut","apply",{"skillNo":140,"name":141,"nameZh":142,"description":143,"descriptionZh":144,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":145,"categories":146,"keywords":153,"publishedAt":52},"01M6BTHKTB6SB3JEY6667PXKYP","shannon","Neovim 代码标注与导航","Interact with Neovim via RPC to annotate code, navigate files, and do walkthroughs","通过 RPC 与 Neovim 交互，为代码添加标注、在文件间导航并进行代码走查讲解。","https:\u002F\u002Fgithub.com\u002Fahmedelgabri\u002Fdotfiles\u002Fblob\u002Fmain\u002Fconfig\u002Fagents\u002Fskills\u002Fshannon\u002FSKILL.md",[147,150],{"categoryNo":148,"categoryName":149,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":151,"categoryName":152,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BSTR9G4A4GZ0VB2DFN9490","开发环境与工具链管理",[141,154,155,38,156,135,157,158,159,160,161,162,163],"rpc","navigate","via","neovim","annotate","do","files","read","Bash","grep",{"skillNo":165,"name":166,"nameZh":167,"description":168,"descriptionZh":169,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":170,"categories":171,"keywords":174,"publishedAt":52},"01M6BTHHFSD5H7XR3ZRBSVFVPK","rex","Rex 终端会话管理","Use the rex CLI to manage Rex sessions, open tabs, arrange panes, run commands, inspect terminal output, and control connected Rex apps.","使用 rex CLI 管理 Rex 会话、打开标签页、排列窗格、运行命令、查看终端输出，并控制已连接的 Rex 应用。","https:\u002F\u002Fgithub.com\u002Fahmedelgabri\u002Fdotfiles\u002Fblob\u002Fmain\u002Fconfig\u002Fagents\u002Fskills\u002Frex\u002FSKILL.md",[172,173],{"categoryNo":148,"categoryName":149,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":151,"categoryName":152,"taxonomyType":23,"taxonomyTypeDesc":24},[166,175,176,177,178,179,180,113,44,181,182,118,39,183,184],"inspect","sessions","apps","control","commands","arrange","panes","open","terminal","cli",{"skillNo":186,"name":187,"nameZh":188,"description":189,"descriptionZh":190,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":191,"categories":192,"keywords":197,"publishedAt":52},"01M6BTHF5G2K3Q990PFD7BEMZ9","pr-review","GitHub PR 审查","Review a GitHub pull request, examining the summary, linked resources, and diff","审查 GitHub 拉取请求（PR），检查其摘要、关联资源和代码差异（diff）。","https:\u002F\u002Fgithub.com\u002Fahmedelgabri\u002Fdotfiles\u002Fblob\u002Fmain\u002Fconfig\u002Fagents\u002Fskills\u002Fpr-review\u002FSKILL.md",[193,194],{"categoryNo":148,"categoryName":149,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":195,"categoryName":196,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BR5V701HCN066VEP7H4812","代码仓库协作管理",[198,199,200,161,163,162,201,202,203,204,205,206,37,207,208,209],"pr","pr review","review","pull","pull request","github","webfetch","request","number","resources","summary","diff",{"skillNo":211,"name":212,"nameZh":213,"description":214,"descriptionZh":215,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":216,"categories":217,"keywords":220,"publishedAt":52},"01M6BTHC9YP08V0S9HXH78R9FT","pr-create","GitHub PR 草稿创建","Create a GitHub pull request as a draft, auto-generating title and body from commits","创建 GitHub 拉取请求（PR）草稿，根据提交记录自动生成标题和正文。","https:\u002F\u002Fgithub.com\u002Fahmedelgabri\u002Fdotfiles\u002Fblob\u002Fmain\u002Fconfig\u002Fagents\u002Fskills\u002Fpr-create\u002FSKILL.md",[218,219],{"categoryNo":148,"categoryName":149,"taxonomyType":28,"taxonomyTypeDesc":29},{"categoryNo":195,"categoryName":196,"taxonomyType":23,"taxonomyTypeDesc":24},[198,221,222,203,112,223,224,205,225,226,161,163,162,227,201,202],"pr create","create","body","title","draft","auto","commits"]