Token导航 LogoToken导航

Agent Skill · 前端设计

log-analysis(日志分析)

log-analysis 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

log-analysis 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 2,726。

总安装 1,963周安装 81GitHub Stars 11下载 642核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:log-analysis(日志分析)
来源仓库:https://github.com/akillness/oh-my-skills
仓库路径:skills/log-analysis
安装命令:
npx skills add https://github.com/akillness/oh-my-skills --skill log-analysis
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/akillness/oh-my-skills --skill log-analysis

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

用于只读日志排查,快速识别关键错误和故障传播路径。适合应用、API、容器、浏览器或 CI 等各类结构化日志的分析。使用时需聚焦重复签名和故障范围,而非全文转述。不涉及 Unity/Unreal 引擎日志或监控系统设计,这些属于其他专项领域。

log-analysis 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/log-analysis

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/akillness/oh-my-skills --skill log-analysis;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

log-analysis 怎么安装?

在终端执行 npx skills add https://github.com/akillness/oh-my-skills --skill log-analysis。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

log-analysis 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

log-analysis 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

log-analysis 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

log-analysis 用的人多吗?

公开数据是累计安装 1,963 次,近一周安装 81 次,下载 642 次,GitHub 11 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

log-analysis 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
log-analysis

日志分析 · 本页

1,96311操作浏览器未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Log Analysis

When to use this skill

  • The main job is read-only log triage, not code changes or monitoring design.
  • The user wants the first actionable blocker, not a paraphrase of every line.
  • The evidence is application, API, worker, proxy, container, pod, browser, CI, or JSON logs.
  • The user needs the repeated signature or blast radius summarized after the first failure is isolated.
  • The prompt is really "which lines matter / what is the real error / where does the cascade start?" even if the user never says "triage".

Do not use this skill as the main workflow when:

  • The logs are Unity / Unreal build, cook, package, editor, or player logs → use game-build-log-triage.
  • The real job is instrumentation, dashboards, alerting, ingestion, retention, or observability coverage → use monitoring-observability.
  • The likely blocker is already known and the user now needs reproduction, hypotheses, or fixes → use debugging.
  • The main job is repeated anomaly/rule hunting across logs or telemetry families rather than first-failure triage → use pattern-detection.

Core idea

log-analysis should act like a packet router, not a giant troubleshooting encyclopedia.

  1. Normalize the request into one primary log packet.
  2. Narrow the evidence slice before interpreting it.
  3. Isolate the earliest actionable failure.
  4. Group repeated fallout into a pattern / blast radius note.
  5. Route out as soon as the work becomes debugging, observability design, anomaly hunting, or engine-specialist triage.

Read these support docs before choosing the packet:

Instructions

Step 1: Normalize the request

Convert the prompt into this intake shape first:

log_analysis_packet:
  primary_packet: app-runtime | container-runtime | browser-plus-api | ci-cascade | structured-json | security-signal
  source_shape: app | proxy | worker | browser | ci | container | pod | json | mixed | unknown
  environment: local | ci | staging | production | browser | container | pod | unknown
  failure_goal: first-blocker | cascade-start | repeated-signature | blast-radius | suspicious-access | unknown
  anchor: timestamp | request-id | trace-id | job-build-id | browser-route | none | unknown
  route_after: stay-here | debugging | monitoring-observability | pattern-detection | game-build-log-triage

Choose one primary packet for the run. If two seem plausible, pick the cheaper packet that reduces uncertainty fastest.

Step 2: Choose the packet

PacketUse whenBest fitsTypical anchors
app-runtimeThe key evidence is app/API/worker/proxy text logscrashes, stack traces, request failures, queue poison messagesearliest fatal/error line, route, service, request ID
container-runtimeThe evidence comes from docker logs, kubectl logs, pod output, or deploy-window restartscontainer crashes, env/config mismatch, dependency connectivity, restart loopspod/container name, deploy window, host, request ID
browser-plus-apiBrowser console/network symptoms need server-side confirmation401/403/500 flows, failed fetch, CORS/auth mismatch, SSR/client divergenceroute, request ID, timestamp, browser/network trace
ci-cascadeCI output contains many secondary failures after one blockerinstall/import/test/build cascades, missing dependency/config, runner mismatchjob name, step name, stage, earliest stack trace/import error
structured-jsonThe logs are JSON or field-rich event recordsgrouped error families, request/trace correlation, worker/event triagelevel, service, request ID, trace ID, tenant, event name
security-signalAccess/error logs suggest suspicious probing or auth/permission anomaliesrepeated 401/403/404 probes, token misuse, rate-limit stormsIP/user/session, route family, status code, time window

Packet rules:

  • Prefer app-runtime for plain text stack traces and server logs.
  • Prefer container-runtime when restart timing, pod identity, or env/deploy context matters.
  • Prefer browser-plus-api when frontend symptoms are not sufficient on their own.
  • Prefer ci-cascade when the visible failure may be generic abort noise.
  • Prefer structured-json when fields make grouping and correlation cheaper than free-text scanning.
  • Prefer security-signal only when suspicious access/auth behavior is the main job; otherwise keep security-looking noise inside the packet that owns the first blocker.

Step 3: Narrow the slice before reading everything

Apply at least one narrowing move before interpreting the logs:

  • limit by time window
  • limit by request / trace / job / build / session / tenant identifier
  • separate fatal/actionable lines from retries and fallout
  • separate one noisy source from many affected sources
  • separate browser symptom lines from server-side blocker lines
  • in CI, locate the earliest failing step before summarizing the full transcript

Useful heuristics by packet:

  • app-runtime → exception / fatal / failed / timeout / refusal first
  • container-runtime → restart window + dependency/connectivity/env mismatch first
  • browser-plus-api → backend auth/config/runtime evidence before generic client symptoms
  • ci-cascade → earliest import/config/build/test failure before abort/footer lines
  • structured-json → group by message family, exception class, request ID, or service before reading raw rows
  • security-signal → distinguish broad probing from one broken client before escalating

Step 4: Isolate the first actionable failure

Use this order:

  1. Hard stop — crash, panic, uncaught exception, process exit, build failure
  2. Dependency / environment blocker — missing config, secret, DNS, file, service, auth, or connection
  3. Request / runtime failure — 500, timeout, rejected promise, queue poison message, parser failure
  4. Fallout — retries, secondary warnings, repeated health-check failures, broad abort text

Do not report 20 repeated downstream lines as 20 different causes.

Step 5: Correlate and classify

If the evidence spans more than one source, correlate instead of concatenating.

Primary classification buckets:

  • missing-config-or-secret
  • dependency-or-connection
  • auth-or-permission
  • request-or-runtime-error
  • data-shape-or-validation
  • resource-or-capacity
  • browser-network-mismatch
  • ci-build-test-failure
  • security-or-suspicious-pattern
  • unknown-needs-more-context

Correlation anchors to prefer:

  • timestamp window
  • request / trace / correlation ID
  • job/build ID or CI step
  • service / worker / pod / container name
  • route, browser action, or API endpoint
  • user / tenant / session identifier when safe to mention

Step 6: Return a triage brief

Default response shape:

# Log Triage

## Source
- Packet: app-runtime | container-runtime | browser-plus-api | ci-cascade | structured-json | security-signal
- Environment: local | CI | staging | production | browser | container | pod
- Confidence: high | medium | low

## First actionable failure
- Line or excerpt: `...`
- Why it matters: ...
- Why later lines look secondary: ...

## Pattern / blast radius
- Repeated signature: ...
- Scope: one request | repeated requests | one worker | one deploy window | one environment | broad

## Classification
- Primary bucket: ...
- Secondary bucket: ...

## Likely root cause
- 1-3 sentence explanation grounded in the evidence

## Next read-only checks
1. ...
2. ...
3. ...

## Route-out
- stay in `log-analysis` | `debugging` | `monitoring-observability` | `pattern-detection` | `game-build-log-triage`

Step 7: Route out aggressively

Switch when the next job is no longer first-failure log triage:

  • Reproduction, hypotheses, code/config fixes → debugging
  • Dashboards, alerts, ingestion, telemetry coverage, retention → monitoring-observability
  • Repeated signature hunting across many windows or datasets → pattern-detection
  • Unity / Unreal build/editor/package logs → game-build-log-triage

If the excerpt is too short or starts mid-cascade:

  1. mark confidence low
  2. ask for the earliest error cluster or 20-80 lines around the first blocker
  3. ask for one anchor only if needed: time window, request ID, job/build, pod/container, or browser route
  4. do not pretend certainty from a truncated excerpt

Examples

Example 1: Container dependency failure

Prompt:

kubectl logs shows Error: connect ECONNREFUSED redis:6379 and then dozens of job retry failed lines.

Good response shape:

  • choose container-runtime
  • identify the Redis connection failure as the first actionable blocker
  • group later retry lines as fallout
  • route next to debugging or monitoring-observability only after the blocker is isolated

Example 2: Browser + API mismatch

Prompt:

Browser console says Failed to fetch, the network tab shows 401 on /api/session, and the server log says JWT audience invalid.

Good response shape:

  • choose browser-plus-api
  • identify backend auth validation as the actionable blocker
  • treat browser failure as a symptom, not the cause
  • route next to debugging once the config/code suspect is clear

Example 3: CI cascade

Prompt:

CI ends with test suite aborted, but earlier there is ModuleNotFoundError: No module named 'dotenv'.

Good response shape:

  • choose ci-cascade
  • isolate the earliest import failure
  • treat the abort/footer text as fallout
  • route next to debugging after the failing dependency path is known

Example 4: Automation/webhook JSON logs

Prompt:

These JSON webhook logs show repeated status=429 retries after one invalid API key response. What actually matters?

Good response shape:

  • choose structured-json or security-signal depending on whether auth abuse or one bad credential is the primary job
  • isolate the first credential/auth failure
  • summarize retry volume separately
  • route repeated pattern hunting to pattern-detection only if the user wants broader anomaly work

Best practices

  1. Choose the smallest packet that can answer the question.
  2. Lead with the earliest blocker, not the loudest line.
  3. Group repeated fallout into one signature or blast-radius summary.
  4. Correlate browser/network/app evidence instead of summarizing each source independently.
  5. Keep all suggested checks read-only inside this skill.
  6. Treat engine-specific logs as a hard specialist boundary.
  7. Route out as soon as the work becomes debugging, observability design, or anomaly hunting.

References

  • references/intake-packets-and-route-outs.md
  • references/triage-playbook.md
  • references/source-boundaries.md

平台分布

Codex

34.06%
按下载量换算219

Claude

31.47%
按下载量换算202

Cursor

19.47%
按下载量换算125

Gemini CLI

10.21%
按下载量换算66

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills