技能详情(站内镜像,无评论)
作者:Daniel Lummis @daniellummis
许可证:MIT-0
MIT-0 ·免费使用、修改和重新分发。无需归因。
版本:v1.0.0
统计:⭐ 0 · 156 · 0 current installs · 0 all-time installs
⭐ 0
安装量(当前) 0
🛡 VirusTotal :良性 · OpenClaw :良性
Package:daniellummis/github-actions-queue-latency-audit
安全扫描(ClawHub)
- VirusTotal :良性
- OpenClaw :良性
OpenClaw 评估
The skill is internally consistent with its stated purpose: it parses local GitHub Actions run JSON files to compute queue wait metrics and does not request unrelated credentials or perform network exfiltration.
目的
Name/description match the included script and fixtures. Required binaries (bash, python3) are appropriate for a shell wrapper that runs an embedded Python parser. No unrelated credentials, config paths, or strange binaries are requested.
说明范围
SKILL.md shows examples using the 'gh' CLI to export run JSON, but the skill does not declare 'gh' as a required binary — this is a minor mismatch (the use of 'gh' is optional/example-only). The runtime instructions and script operate only on local JSON files (glob), apply user-provided regex filters, and emit text/JSON; they do not read unrelated system files or transmit data to external endpoints.
安装机制
Instruction-only skill with no install spec and a single script file; nothing is downloaded or written during installation.
证书
No required environment variables or credentials. The script reads only the provided RUN_GLOB and other optional input environment variables; it does not access secret-named env vars or external service keys.
持久
The skill does not request permanent presence (always:false) and does not modify other skills or system-wide agent settings. It runs as a local script on invocation.
综合结论
This skill parses local GitHub Actions run JSON files and produces human-readable or JSON reports — it does not require or exfiltrate credentials. Note: the README examples suggest using the 'gh' CLI to create the JSON exports; install/authenticate gh if you wish to follow those examples. Before running, ensure the artifacts/github-actions/*.json files (or whatever RUN_GLOB you set) are trusted — the script will read and print fields like repo…
安装(复制给龙虾 AI)
将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。
请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「GitHub Actions Queue Latency Audit」。简介:Audit GitHub Actions queue wait hotspots from run/job JSON so CI bottlenecks ar…。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/daniellummis/github-actions-queue-latency-audit/SKILL.md
(来源:yingzhi8.cn 技能库)
SKILL.md
---
name: github-actions-queue-latency-audit
description: Audit GitHub Actions queue wait hotspots from run/job JSON so CI bottlenecks are visible before they stall merges.
version: 1.0.0
metadata: {"openclaw":{"requires":{"bins":["bash","python3"]}}}
---
# GitHub Actions Queue Latency Audit
Use this skill to quantify where workflows are waiting in queue before jobs start.
## What this skill does
- Reads one or more GitHub Actions run JSON exports (from `gh run view --json ...`)
- Computes per-job queue wait (`startedAt - createdAt`) and runtime duration (`completedAt - startedAt`)
- Groups repeated jobs by repository + workflow + job name
- Ranks hotspots by worst queue wait and average queue wait
- Flags warning/critical queue waits with configurable thresholds
- Emits output as human-readable text or machine-readable JSON
## Inputs
Optional:
- `RUN_GLOB` (default: `artifacts/github-actions/*.json`)
- `TOP_N` (default: `20`)
- `OUTPUT_FORMAT` (`text` or `json`, default: `text`)
- `QUEUE_WARN_SECONDS` (default: `120`)
- `QUEUE_CRITICAL_SECONDS` (default: `300`)
- `FAIL_ON_CRITICAL` (`0` or `1`, default: `0`) — exit non-zero when any job instance hits/exceeds critical queue wait
- `WORKFLOW_MATCH` (regex, optional)
- `WORKFLOW_EXCLUDE` (regex, optional)
- `JOB_MATCH` (regex, optional)
- `JOB_EXCLUDE` (regex, optional)
- `REPO_MATCH` (regex, optional)
- `REPO_EXCLUDE` (regex, optional)
## Collect run JSON
```bash
gh run view <run-id> --json databaseId,workflowName,headBranch,headSha,url,repository,jobs
> artifacts/github-actions/run-<run-id>.json
```
## Run
Text report:
```bash
RUN_GLOB='artifacts/github-actions/*.json'
TOP_N=15
QUEUE_WARN_SECONDS=180
QUEUE_CRITICAL_SECONDS=420
bash skills/github-actions-queue-latency-audit/scripts/queue-latency-audit.sh
```
JSON output for dashboards:
```bash
RUN_GLOB='artifacts/github-actions/*.json'
OUTPUT_FORMAT=json
FAIL_ON_CRITICAL=1
bash skills/github-actions-queue-latency-audit/scripts/queue-latency-audit.sh
```
Filter to one repo/workflow family:
```bash
RUN_GLOB='artifacts/github-actions/*.json'
REPO_MATCH='^flowcreatebot/'
WORKFLOW_MATCH='(CI|Build|Test)'
bash skills/github-actions-queue-latency-audit/scripts/queue-latency-audit.sh
```
Run with bundled fixtures:
```bash
RUN_GLOB='skills/github-actions-queue-latency-audit/fixtures/*.json'
bash skills/github-actions-queue-latency-audit/scripts/queue-latency-audit.sh
```
## Output contract
- Exit `0` in reporting mode (default)
- Exit `1` if `FAIL_ON_CRITICAL=1` and at least one job instance has queue wait `>= QUEUE_CRITICAL_SECONDS`
- In `text` mode: prints summary + top queue hotspots
- In `json` mode: prints summary + grouped hotspot records + raw offending instances