Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计提醒

analyze-github-action-logs分析 GitHub action logs

Agent Skill

用于围绕 GitHub 仓库、Issue、Pull Request、分支、提交和代码协作流程提供辅助能力。它适合让 Agent 查询项目状态、整理变更、辅助创建或检查协作事项,并把仓库中的信息转成可执行的下一步。使用时需要区分只读查询和写入操作;涉及创建 PR、修改 Issue、推送分支或访问私有仓库时,应确认 token 权限、目标仓库范围和用户授权。

总安装

921

周安装

38

GitHub Stars

58,775

下载量

301
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/withastro/astro --skill analyze-github-action-logs

简介

获取并分析 GitHub Actions 工作流的最近运行日志以优化流程。

  • 适用于 CI/CD 流程审查,帮助识别性能瓶颈和改进点。
  • 可指定工作流名称、仓库和运行数量进行针对性分析。
  • 返回包含性能指标和问题改进建议的结构化报告。analyze-github-action-logs 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 涉及私有仓库时需确认 token 权限和访问范围。

SKILL.md

Analyze GitHub Action Logs

Fetch and analyze recent GitHub Actions runs for a given workflow. Review agent/step performance, identify wasted effort and mistakes, and produce a report with actionable improvements.

Input

You need:

  • workflow (required) — The workflow file name or ID (e.g., issue-triage.yml, deploy.yml).
  • repo (optional) — The GitHub repository in OWNER/REPO format. Defaults to withastro/astro.
  • count (optional) — Number of recent completed runs to analyze. Defaults to 5.

Step 1: List Recent Runs

Fetch the most recent completed runs for the workflow. Filter by --status=completed:

gh run list --workflow=<workflow> -R <repo> --status=completed -L <count>

Present the list to orient yourself: run IDs, titles, status (success/failure), and duration. Pick the runs to analyze — prefer a mix of successes and failures if available, and prefer runs that exercised more steps (longer runs tend to go through more stages, while shorter runs may exit early).

Step 2: Fetch Logs

For each run you want to analyze, save the full log to a temp file:

gh run view <run_id> -R <repo> --log > /tmp/actions-run-<run_id>.log

Step 3: Identify Step/Skill Boundaries

Search each log file for markers that indicate where each step or skill starts and ends. The markers depend on the workflow — look for patterns like:

  • Flue skill markers: [flue] skill("..."): starting / completed
  • GitHub Actions step markers: Step name headers in the log output
  • Custom markers: Any START/END or similar delimiters the workflow uses
grep -n "skill(\|step\|START\|END\|starting\|completed" /tmp/actions-run-<run_id>.log | head -50

From this, determine which line ranges correspond to each step/skill. Also find any result markers:

grep -n "RESULT_START\|RESULT_END\|extractResult" /tmp/actions-run-<run_id>.log

Note: Some log files may contain binary/null bytes. Use grep -a if needed.

Step 4: Analyze Each Step (Use Subagents)

For each step/skill that ran, launch a subagent to analyze that section's log. This is critical to avoid polluting your context with thousands of log lines.

For each subagent, provide:

  1. The log file path and the line range for that step
  2. If skill instruction files exist for the workflow, tell the subagent to read them first for context
  3. The run title/context so the subagent understands what was being done
  4. The analysis criteria below

Analysis Criteria

Tell each subagent to evaluate:

  1. Correctness — Was the step's final result/verdict correct?
  2. Efficiency — How long did it take? What's a reasonable baseline? Where was time wasted?
  3. Mistakes — Wrong tool calls, failed commands retried without changes, unnecessary rebuilds, etc.
  4. Instruction compliance — If skill instructions exist, did the agent follow them? Where did it deviate?
  5. Scope creep — Did the agent do work that belongs in a different step?
  6. Suggestions — Specific, actionable changes that would prevent the issues found.

Tell each subagent to return a structured response with: Summary, Time Analysis, Issues Found (with estimated time wasted for each), and Suggestions for Improvement.

Step 5: Consolidate Report

After all subagents return, synthesize their findings into a single report. Structure it as:

Per-Run Summary Table

For each run analyzed, include a table:

Step/SkillTimeResultTime WastedTop Issue

Cross-Cutting Patterns

Identify issues that appeared across multiple runs or multiple steps. These are the highest-value improvements. Common patterns to look for:

  • TodoWrite abuse — Agent wasting time on task list management during automated runs
  • Server management failures — Port conflicts, failed process kills, stale log files
  • Tool misuse — Using curl instead of gh, jq not found, etc.
  • Scope creep — One step doing work that belongs in another
  • Unnecessary rebuilds — Building packages multiple times without changes
  • Test timeouts — Running slow E2E/Playwright tests that time out
  • Instruction violations — Agent doing something the instructions explicitly forbid
  • Redundant work — Re-reading files, re-running searches, re-installing dependencies

Prioritized Recommendations

Rank your improvement suggestions by estimated time savings across all runs. For each recommendation:

  1. What to change — Which file(s) to edit and what to add/modify
  2. Why — What pattern it addresses, with evidence from the runs
  3. Estimated impact — How much time it would save per run

Output

Present the full consolidated report. Do NOT edit any workflow or skill files — only report findings and recommendations. The user will decide which changes to apply.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.09%
按下载量换算115

Claude

26.1%
按下载量换算79

Cursor

17.7%
按下载量换算53

Gemini CLI

8.71%
按下载量换算26

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills