gh-aw Workflow Diagnosis
github/gh-aw
Guides your agent through diagnosing failed GitHub Agentic Workflows by downloading run logs, auditing individual runs and reading the artifacts they leave behind.
Debug GitHub Actions workflows by downloading logs, analyzing summaries, and understanding how agentic workflows and the AWF firewall work together.
$ npx skills add github/gh-aw-firewall --skill debugging-workflows -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install github/gh-aw-firewall debugging-workflows --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/github/gh-aw-firewall.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/debugging-workflows .claude/skills/debugging-workflows && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "debugging-workflows" agent skill from https://github.com/github/gh-aw-firewall/tree/main/.github/skills/debugging-workflows into .claude/skills/debugging-workflows/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "debugging-workflows", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/github/gh-aw-firewall/tree/main/.github/skills/debugging-workflowsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add github/gh-aw-firewall --skill debugging-workflows -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install github/gh-aw-firewall debugging-workflows --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/github/gh-aw-firewall.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.github/skills/debugging-workflows .agents/skills/debugging-workflows && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "debugging-workflows" agent skill from https://github.com/github/gh-aw-firewall/tree/main/.github/skills/debugging-workflows into .agents/skills/debugging-workflows/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "debugging-workflows", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add github/gh-aw-firewall --skill debugging-workflows -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install github/gh-aw-firewall debugging-workflows --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/github/gh-aw-firewall.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.github/skills/debugging-workflows .cursor/skills/debugging-workflows && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "debugging-workflows" agent skill from https://github.com/github/gh-aw-firewall/tree/main/.github/skills/debugging-workflows into .cursor/skills/debugging-workflows/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "debugging-workflows", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/github/gh-aw-firewall.git --path .github/skills/debugging-workflows--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add github/gh-aw-firewall --skill debugging-workflows -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install github/gh-aw-firewall debugging-workflows --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/github/gh-aw-firewall.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.github/skills/debugging-workflows .gemini/skills/debugging-workflows && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "debugging-workflows" agent skill from https://github.com/github/gh-aw-firewall/tree/main/.github/skills/debugging-workflows into .gemini/skills/debugging-workflows/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "debugging-workflows", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install github/gh-aw-firewall debugging-workflowsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add github/gh-aw-firewall --skill debugging-workflows -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/github/gh-aw-firewall.git skills-src && mkdir -p .github/skills && cp -r skills-src/.github/skills/debugging-workflows .github/skills/debugging-workflows && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "debugging-workflows" agent skill from https://github.com/github/gh-aw-firewall/tree/main/.github/skills/debugging-workflows into .github/skills/debugging-workflows/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "debugging-workflows", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add github/gh-aw-firewall --skill debugging-workflows -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install github/gh-aw-firewall debugging-workflows --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/github/gh-aw-firewall.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.github/skills/debugging-workflows .opencode/skills/debugging-workflows && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "debugging-workflows" agent skill from https://github.com/github/gh-aw-firewall/tree/main/.github/skills/debugging-workflows into .opencode/skills/debugging-workflows/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "debugging-workflows", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
debugging-workflowsDebug GitHub Actions workflows by downloading logs, analyzing summaries, and understanding how agentic workflows and the AWF firewall work together.
Debugging Workflows is an agent skill from github/gh-aw-firewall, published by the product's own GitHub organization. Debug GitHub Actions workflows by downloading logs, analyzing summaries, and understanding how agentic workflows and the AWF firewall work together.
Its SKILL.md is about 2.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `download-workflow-logs.ts` and `download-workflow-summary.ts`).
It sits in Development, covering Debugging and CI/CD. It works with GitHub and GitHub Actions. The repository describes itself as: GitHub Agentic Workflows Firewall. The licence is MIT.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 681e932. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
Bash(gh:*)Bash(curl:*)Bash(npx:*)Bash(node:*)Bash(cat:*)Bash(ls:*)Bash(grep:*)Bash(jq:*)ReadFrom allowed-tools in the SKILL.md frontmatter.
Ships script files (TypeScript), which the agent can run.
Shell commands in SKILL.md call:
ghnpxdockerFrom the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
api.github.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Debugging Workflows loads about 2.7k tokens when it runs. Until then it costs about 42 tokens; SKILL.md has 586 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
sudo awf --allow-domains github.com 'curl https://api.github.com'sudo awf --allow-domains github.com --log-level debug 'your-command'sudo awf --allow-domains github.com --keep-containers 'your-command'sudo cat $(ls -t /tmp/squid-logs-*/access.log 2>/dev/null | head -1)sudo cat /tmp/squid-logs-*/access.logAutomated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from github/gh-aw-firewall at commit 681e932, republished under its MIT licence (© github). 586 words, ~2,728 tokens.
.claude/skills/debugging-workflows/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.Use this skill when you need to debug GitHub Actions workflows, download workflow logs or summaries, or understand how agentic workflows and the AWF firewall work together.
Use the download-workflow-logs.ts script to download logs from a workflow run:
# Download logs from the latest workflow run
npx tsx .github/skills/debugging-workflows/download-workflow-logs.ts
# Download logs from a specific run ID
npx tsx .github/skills/debugging-workflows/download-workflow-logs.ts --run-id 1234567890
# Download logs from a specific workflow
npx tsx .github/skills/debugging-workflows/download-workflow-logs.ts --workflow test-integration.yml
# Save logs to a specific directory
npx tsx .github/skills/debugging-workflows/download-workflow-logs.ts --output ./my-logsUse the download-workflow-summary.ts script to get a summary of workflow runs:
# Get summary of latest workflow runs
npx tsx .github/skills/debugging-workflows/download-workflow-summary.ts
# Get summary for a specific workflow run
npx tsx .github/skills/debugging-workflows/download-workflow-summary.ts --run-id 1234567890
# Get summary for a specific workflow file
npx tsx .github/skills/debugging-workflows/download-workflow-summary.ts --workflow test-integration.yml
# Get summary as JSON
npx tsx .github/skills/debugging-workflows/download-workflow-summary.ts --format jsonThe gh CLI is essential for debugging workflows. Here are the most useful commands:
# List recent workflow runs
gh run list --limit 10
# List runs for a specific workflow
gh run list --workflow test-integration.yml --limit 10
# List only failed runs
gh run list --status failure --limit 10
# List runs in JSON format for parsing
gh run list --json databaseId,name,status,conclusion,createdAt --limit 10# View a specific run
gh run view <run-id>
# View run with job details
gh run view <run-id> --verbose
# View run as JSON
gh run view <run-id> --json jobs,conclusion,status# Download all logs for a run
gh run download <run-id>
# Download specific artifact
gh run download <run-id> --name <artifact-name>
# Download to specific directory
gh run download <run-id> --dir ./logs# Watch a workflow run in real-time
gh run watch <run-id>
# Watch with exit code (useful for CI)
gh run watch <run-id> --exit-status# Re-run failed jobs only
gh run rerun <run-id> --failed
# Re-run all jobs
gh run rerun <run-id>Agentic workflows are GitHub Actions workflows that use AI agents (like GitHub Copilot or Claude) to perform tasks. They are defined using markdown + YAML frontmatter format in .github/workflows/*.md files and compiled to GitHub Actions YAML (.lock.yml files).
Workflow File Format: .github/workflows/<name>.md
.github/workflows/<name>.lock.ymlTriggers (on: field):
issues, pull_request, push, schedule/mention in issues/commentsworkflow_dispatch for manual triggersSafe Outputs: Controlled way for AI to create GitHub entities
create-issue: - Create GitHub issuescreate-pull-request: - Create PRs with git patchesadd-comment: - Add comments to issues/PRsadd-labels: - Add labels to issues/PRscreate-discussion: - Create GitHub discussionsTools Configuration (tools: field):
github: - GitHub API toolsagentic-workflows: - Workflow introspection toolsedit: - File editing toolsweb-fetch: / web-search: - Web access toolsbash: - Shell command tools# Compile all workflows
gh aw compile
# Compile a specific workflow
gh aw compile <workflow-name>
# Compile with strict security checks
gh aw compile --strict# View status of all agentic workflows
gh aw status
# Download and analyze logs from previous runs
gh aw logs <workflow-name> --json
# Audit a specific run for issues
gh aw audit <run-id> --jsonmissing_tools in audit outputsafe_outputs.jsonl artifactpermissions: block in frontmatternetwork: configuration for allowed domainsAWF (Agent Workflow Firewall) is a tool that provides L7 (HTTP/HTTPS) egress control for GitHub Copilot CLI and other agents. It restricts network access to a whitelist of approved domains using Squid proxy and Docker containers.
┌─────────────────────────────────────────┐
│ Host (GitHub Actions Runner / Local) │
│ │
│ ┌────────────────────────────────────┐ │
│ │ Firewall CLI (awf) │ │
│ │ - Parse arguments │ │
│ │ - Generate Squid config │ │
│ │ - Start Docker Compose │ │
│ └────────────────────────────────────┘ │
│ │ │
│ ▼ │
│ ┌──────────────────────────────────┐ │
│ │ Docker Compose │ │
│ │ ┌────────────────────────────┐ │ │
│ │ │ Squid Proxy Container │ │ │
│ │ │ - Domain ACL filtering │ │ │
│ │ │ - HTTP/HTTPS proxy │ │ │
│ │ └────────────────────────────┘ │ │
│ │ ▲ │ │
│ │ ┌────────┼───────────────────┐ │ │
│ │ │ Agent Container │ │ │
│ │ │ - Full filesystem access │ │ │
│ │ │ - iptables redirect │ │ │
│ │ │ - All traffic → Squid │ │ │
│ │ └────────────────────────────┘ │ │
│ └──────────────────────────────────┘ │
└─────────────────────────────────────────┘awf-squid - Squid proxy container (IP: 172.30.0.10)
awf-agent - Agent execution container (IP: 172.30.0.20)
/host mount# View Squid access log (shows traffic decisions)
docker exec awf-squid cat /var/log/squid/access.log
# Find blocked domains
docker exec awf-squid grep "TCP_DENIED" /var/log/squid/access.log | awk '{print $3}' | sort -u
# Count blocked by domain
docker exec awf-squid grep "TCP_DENIED" /var/log/squid/access.log | awk '{print $3}' | sort | uniq -c | sort -rn
# Real-time blocked traffic
docker exec awf-squid tail -f /var/log/squid/access.log | grep --line-buffered TCP_DENIEDTCP_TUNNEL:HIER_DIRECT = ALLOWED (HTTPS)TCP_MISS:HIER_DIRECT = ALLOWED (HTTP)TCP_DENIED:HIER_NONE = BLOCKED# Basic usage
sudo awf --allow-domains github.com 'curl https://api.github.com'
# With debug logging
sudo awf --allow-domains github.com --log-level debug 'your-command'
# Keep containers for inspection
sudo awf --allow-domains github.com --keep-containers 'your-command'With --keep-containers:
/tmp/awf-<timestamp>/squid-logs/access.log/tmp/awf-<timestamp>/agent-logs/Normal execution (after cleanup):
/tmp/squid-logs-<timestamp>/access.log/tmp/awf-agent-logs-<timestamp>/# Find preserved logs
ls -ldt /tmp/awf-* /tmp/squid-logs-* 2>/dev/null | head -5
# View preserved Squid logs
sudo cat $(ls -t /tmp/squid-logs-*/access.log 2>/dev/null | head -1)Identify the failing workflow run
gh run list --status failure --limit 5Get run details
gh run view <run-id> --verboseDownload logs
gh run download <run-id> --dir ./logs
# Or use the script:
npx tsx .github/skills/debugging-workflows/download-workflow-logs.ts --run-id <run-id>Analyze the failure
For agentic workflows, audit the run
gh aw audit <run-id> --jsonIf firewall-related, check Squid logs
# If containers are still running
docker exec awf-squid cat /var/log/squid/access.log
# Or check preserved logs
sudo cat /tmp/squid-logs-*/access.logError: Resource not accessible by integrationFix: Check permissions: in workflow frontmatter
curl: (56) Recv failure: Connection reset by peerFix: Add domain to --allow-domains or network: configuration
Error: The operation was canceled.Fix: Increase timeout-minutes in workflow configuration
Tool 'xyz' not foundFix: Add tool to tools: configuration in workflow frontmatter
If you are diagnosing a failure rather than exploring, enter through the
diagnose-awf skill and the canonical diagnosis registry in
docs/diagnostics/README.md. This skill is one of the
specialist references it routes to.
© github, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 2 other files in .github/skills/debugging-workflows of github/gh-aw-firewall.
Open the folder on GitHubat commit 681e932
Debugging Workflows next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Debugging Workflows this skillgithub/gh-aw-firewall | 148 | — | ~2.7k | Automated safety check: Notes | MIT | |
| gh-aw Workflow Diagnosisgithub/gh-aw | 5.3k | — | ~3.9k | Automated safety check: Pass | MIT | |
| Authoring CI WorkflowsPostHog/posthog-foss | 721 | — | ~11k | Automated safety check: Pass | MIT | |
| CI/CD Failure Troubleshootingruby-git/ruby-git | 1.8k | — | ~1.9k | Automated safety check: Pass | MIT | |
| GitHub Actions Failure Analysisykdojo/claude-code-tips | 10k | — | ~639 | Automated safety check: Pass | Custom licence | |
| Debugging CI FailuresPostHog/posthog-foss | 721 | — | ~5.7k | Automated safety check: Pass | MIT |
github/gh-aw
Guides your agent through diagnosing failed GitHub Agentic Workflows by downloading run logs, auditing individual runs and reading the artifacts they leave behind.
PostHog/posthog-foss
A skill your agent uses when adding or editing a GitHub Actions workflow, composite action, or reusable workflow under .github/ — new CI jobs, triggers, matrices, checkout/clone tuning, action…
ruby-git/ruby-git
Diagnoses and fixes failing GitHub Actions runs by identifying the failure, fetching only the relevant logs, finding the root cause and reproducing it locally.
ykdojo/claude-code-tips
Investigates a failed GitHub Actions run from its URL: pinpoints the real failure, checks the job's history for flakiness, and finds the breaking commit and any existing fix PR.
PostHog/posthog-foss
Debugs failing GitHub Actions CI runs for PostHog PRs, commits, and branches, and answers broad CI-health questions ("is CI red?", "is master green today?", "what's broken right now?").
backnotprop/plannotator
Reviews Renovate pull requests that bump GitHub Actions by checking pinned SHAs against upstream tags, scanning changelogs and confirming workflows stay compatible.
github/gh-aw-firewall
Practical Python scripts for debugging awf - parse logs, diagnose issues, inspect containers, test domains
github/gh-aw-firewall
Regenerate and post-process all agentic workflows. An agent skill from github/gh-aw-firewall.
github/gh-aw-firewall
Decide and implement how to support a new LLM provider or agent engine in AWF - either as a proxied provider (api-proxy adapter) or a direct-API engine (domain allowlist only), e.g.
github/gh-aw-firewall
Debug the AWF firewall by inspecting Docker containers (awf-squid, awf-agent), analyzing Squid access logs, checking iptables rules, and troubleshooting blocked domains or network issues.
github/gh-aw-firewall
Diagnose an AWF (Agentic Workflow Firewall) failure from an error, workflow run URL, or symptom.
Works with
Categories
Debug GitHub Actions workflows by downloading logs, analyzing summaries, and understanding how agentic workflows and the AWF firewall work together. Debugging Workflows is an agent skill from github/gh-aw-firewall, published by the product's own GitHub organization. Debug GitHub Actions workflows by downloading logs, analyzing summaries, and understanding how agentic workflows and the AWF firewall work together.
Debugging Workflows fits situations like: tasks that involve Debugging; tasks that involve CI/CD.
Run `npx skills add github/gh-aw-firewall --skill debugging-workflows -a claude-code`. Or copy the skill folder (.github/skills/debugging-workflows in github/gh-aw-firewall) into .claude/skills/debugging-workflows in your project. Claude Code loads it when a task matches its description.
Run `npx skills add github/gh-aw-firewall --skill debugging-workflows -a codex`. Or copy the skill folder (.github/skills/debugging-workflows in github/gh-aw-firewall) into .agents/skills/debugging-workflows in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add github/gh-aw-firewall --skill debugging-workflows -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/debugging-workflows, .gemini/skills/debugging-workflows, .github/skills/debugging-workflows and .opencode/skills/debugging-workflows in your project.
Going by SKILL.md and its folder, Debugging Workflows needs TypeScript for the scripts in its folder and the command-line tools its instructions call (gh, npx and docker). Our summary lists: Node.js; Docker. Its frontmatter pre-approves these tools: Bash(gh:*), Bash(curl:*), Bash(npx:*), Bash(node:*), Bash(cat:*), Bash(ls:*), Bash(grep:*), Bash(jq:*), Read.
SKILL.md names 1 domain. In commands or code: api.github.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (runs commands with sudo), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.
Debugging Workflows is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Debugging Workflows: gh-aw Workflow Diagnosis (github/gh-aw, 5.3k stars), Authoring CI Workflows (PostHog/posthog-foss, 721 stars), CI/CD Failure Troubleshooting (ruby-git/ruby-git, 1.8k stars) and GitHub Actions Failure Analysis (ykdojo/claude-code-tips, 10k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
github (a GitHub organization, an official publisher) maintains it in github/gh-aw-firewall, which has 148 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on October 7, 2026.
Source: github/gh-aw-firewall on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.