withastro/astro

analyze-github-action-logs

Analyze recent GitHub Actions workflow runs to identify patterns, mistakes, and improvements.

소스 보기

사용 방법

  1. 설치 명령을 복사하고 자신의 에이전트 환경에 설치하기 전에 소스 패키지를 확인하세요.
  2. 필요한 도구, 인증 정보, 지원 환경은 원본 문서에서 확인하세요.
  3. 입력과 원하는 산출물을 설명하고 출처와 결과를 대조하세요.
npx skills add https://github.com/withastro/astro --skill analyze-github-action-logs

시작 전 확인

  • 설치에는 모델 구독, API 한도, 파일 접근 권한이 포함되지 않습니다.
  • 별점 수와 설치 수는 활동 지표이며 독립적인 품질·보안 검증이 아닙니다.
원본 Skill 문서

원본 저장소의 제목, 예시, 코드, 표, 링크, 이미지를 유지해 표시합니다.

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:

bash
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:

bash
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
bash
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:

bash
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.

같은 저장소의 Skills

더 많은 Skills

모든 Skills
withastro
커뮤니티

astro-adversary-blue

Independently implement and validate an alternative solution for an Astro pull request. Use only for Factory's adversary blue team.

설치 수
4
GitHub Stars
6.3만
업데이트
10월 23일
withastro
커뮤니티

astro-adversary-purple

Qualify and compare red and blue solutions for an Astro pull request using Astro-specific merge and tie-break criteria. Use only for Factory's adversary purple team.

설치 수
4
GitHub Stars
6.3만
업데이트
10월 23일
withastro
커뮤니티

astro-code-review

Perform a static, read-only code review of an Astro pull request or of a local branch, commit range, diff, patch, or working tree being prepared as a pull request. Determine whether the change satisfies its stated business requirements and is good enough to merge, using the PR description, linked requirement issues and roadmap items, and PR or issue discussions when available. Use this skill only for PR review or self-review, not issue triage or bug investigation. It reports only merge-relevant

설치 수
4
GitHub Stars
6.3만
업데이트
10월 23일
withastro
커뮤니티

astro-developer

Comprehensive guide for developing in the Astro monorepo. Covers architecture, debugging, testing, and critical constraints. Use when working on features, fixes, tests, or understanding the codebase structure.

설치 수
4
GitHub Stars
6.3만
업데이트
10월 23일