debugging-workflows
Skill148 starsChanged 2 months agoMITView on GitHub
Debug GitHub Actions workflows by downloading logs, analyzing summaries, and understanding how agentic workflows and the AWF firewall work together.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- CrowdStrike/foundry-skillstheir own version, first seen Oct 1, 2026
- github/gh-awtheir own version, first seen May 27, 2026
- mbruhler/claude-orchestrationtheir own version, first seen Nov 7, 2025
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- github/gh-aw★ 5.3ksame name
- mbruhler/claude-orchestration★ 220same name
- CrowdStrike/foundry-skills★ 30same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- awf-debug-toolsSkill
- awf-skillSkill
- debug-firewallSkill
- diagnose-awfSkill
- recompile-workflowsSkill
- add-llm-providerSkill
- agentic-workflowsSkill
- pr-finisherSkill
- awf-skillSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. 0 are common, 5 are distinctive, and 9 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
Use this skill when you need to debug GitHub Actions workflows, download workflow logs or summaries, or understand how agentic workflows …
- Very specific: line 15
Use the download-workflow-logs.ts script to download logs from a workflow run:
- Very specific: line 33
Use the download-workflow-summary.ts script to get a summary of workflow runs:
- Very specific: line 175
Missing Tool Calls: Check missing_tools in audit output
- Very specific: line 177
Permission Issues: Verify permissions: block in frontmatter
- Very specific: line 178
Network Blocked: Check network: configuration for allowed domains
- Distinctive: line 232
All HTTP/HTTPS traffic → iptables DNAT → Squid proxy
- Distinctive: line 312
Check job logs for error messages
- Distinctive: line 313
Look for timeout issues
- Distinctive: line 314
Check for permission errors
- Very specific: line 337
Fix: Check permissions: in workflow frontmatter
- Very specific: line 343
Fix: Add domain to --allow-domains or network: configuration
- Very specific: line 355
Fix: Add tool to tools: configuration in workflow frontmatter
- Very specific: line 367
If you are diagnosing a failure rather than exploring, enter through the diagnose-awf skill and the canonical diagnosis registry in …
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Debugging Workflows Skill
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.
Quick Start
Download Workflow Logs
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-logsDownload Workflow Summary
Use 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 jsonGitHub CLI Commands
The gh CLI is essential for debugging workflows. Here are the most useful commands:
List Workflow Runs
# 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 10View Workflow Run Details
# 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,statusDownload Run Logs
# 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 ./logsWatch a Running Workflow
# 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-statusRe-run Failed Jobs
# Re-run failed jobs only
gh run rerun <run-id> --failed
# Re-run all jobs
gh run rerun <run-id>Understanding Agentic Workflows
What are Agentic Workflows?
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).
Key Components
- Workflow File Format:
.github/workflows/<name>.md- YAML frontmatter for configuration
- Markdown body for AI instructions
- Compiles to
.github/workflows/<name>.lock.yml
- Triggers (
on:field):- Standard GitHub events:
issues,pull_request,push,schedule - Command triggers:
/mentionin issues/comments workflow_dispatchfor manual triggers
- Standard GitHub events:
- Safe 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 discussions
- Tools Configuration (
tools:field):github:- GitHub API toolsagentic-workflows:- Workflow introspection toolsedit:- File editing toolsweb-fetch:/web-search:- Web access toolsbash:- Shell command tools
Compiling Workflows
# Compile all workflows
gh aw compile
# Compile a specific workflow
gh aw compile <workflow-name>
# Compile with strict security checks
gh aw compile --strictDebugging Agentic Workflows
# 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> --jsonCommon Issues
- Missing Tool Calls: Check
missing_toolsin audit output - Safe Output Failures: Review
safe_outputs.jsonlartifact - Permission Issues: Verify
permissions:block in frontmatter - Network Blocked: Check
network:configuration for allowed domains
Understanding the AWF Firewall
What is AWF?
AWF (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.
Architecture Overview
┌─────────────────────────────────────────┐
│ 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 │ │ │
│ │ └────────────────────────────┘ │ │
│ └──────────────────────────────────┘ │
└─────────────────────────────────────────┘Key Containers
awf-squid- Squid proxy container (IP: 172.30.0.10)- Filters HTTP/HTTPS traffic based on domain allowlist
- Logs all traffic decisions
awf-agent- Agent execution container (IP: 172.30.0.20)- Runs the actual command/agent
- Has iptables rules to redirect traffic to Squid
- Full filesystem access via
/hostmount
Traffic Flow
- Command runs in agent container
- All HTTP/HTTPS traffic → iptables DNAT → Squid proxy
- Squid checks domain against allowlist
- Allowed → forward to destination
- Blocked → return 403 Forbidden
Squid Log Analysis
# 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_DENIEDSquid Decision Codes
TCP_TUNNEL:HIER_DIRECT= ALLOWED (HTTPS)TCP_MISS:HIER_DIRECT= ALLOWED (HTTP)TCP_DENIED:HIER_NONE= BLOCKED
Running Commands Through Firewall
# 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'Preserved Logs Locations
With --keep-containers:
- Squid:
/tmp/awf-<timestamp>/squid-logs/access.log - Agent:
/tmp/awf-<timestamp>/agent-logs/
Normal execution (after cleanup):
- Squid:
/tmp/squid-logs-<timestamp>/access.log - Agent:
/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)Debugging Workflow Failures
Step-by-Step Process
- Identify the failing workflow run
gh run list --status failure --limit 5 - Get run details
gh run view <run-id> --verbose - Download 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
- Check job logs for error messages
- Look for timeout issues
- Check for permission errors
- Review network-related errors
- For agentic workflows, audit the run
gh aw audit <run-id> --json - If 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.log
Common Failure Patterns
Permission Denied
Error: Resource not accessible by integrationFix: Check permissions: in workflow frontmatter
Domain Blocked
curl: (56) Recv failure: Connection reset by peerFix: Add domain to --allow-domains or network: configuration
Timeout
Error: The operation was canceled.Fix: Increase timeout-minutes in workflow configuration
Missing Tool
Tool 'xyz' not foundFix: Add tool to tools: configuration in workflow frontmatter
Related Documentation
- Architecture - System architecture details
- Troubleshooting - Common issues and solutions
- GitHub Actions Integration - CI/CD setup
- Logging Documentation - Comprehensive logging guide
- Debug Firewall Skill - Firewall-specific debugging
Start here for diagnosis
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.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

