[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6AD9DV31R7XRJ0QZR1MYQPS":3,"skill-same:01M6AD9DV31R7XRJ0QZR1MYQPS":94},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":52,"linkOnly":53,"markdownContent":54,"markdownBody":55,"frontMatter":56,"refName":58,"commitSha":59,"skillDirectory":60,"forksCount":61,"repositoryHtmlUrl":62,"repositoryHomepageUrl":63,"ownerHtmlUrl":64,"ownerBlogUrl":65,"ownerDescription":66,"updatedAt":67,"install":68,"resources":81},"01M6AD9DV31R7XRJ0QZR1MYQPS","awf-skill","AWF 网络隔离与域名白名单","Use the AWF (Agentic Workflow Firewall) to run commands with network isolation and domain whitelisting. Provides L7 HTTP\u002FHTTPS egress control for AI agents.","使用 AWF（Agentic Workflow Firewall，智能体工作流防火墙）运行带网络隔离和域名白名单的命令。为 AI 智能体提供 L7 层 HTTP\u002FHTTPS 出站流量控制。","github\u002Fgh-aw-firewall","github","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F9919?v=4","01M6AC83DS133TPXFSP1DHNCC6","GitHub","01M6AD985Y1G0AQ64JV7KPQWZ4",160,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw-firewall\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fawf-skill\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BR4MYFKGCC4WCWVJ50KJ2C","安全工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C664K3JQN4CNXKYKQEDRQK","云平台安全加固","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],"awf skill","firewall","for","sudo","with","false","isolation","commands","domain","use","read","Bash","agentic","network","https","run","http","workflow","agentic workflow","docker","ai agents","2026-11-10 10:12:30",false,"---\nname: awf-skill\ndescription: Use the AWF (Agentic Workflow Firewall) to run commands with network isolation and domain whitelisting. Provides L7 HTTP\u002FHTTPS egress control for AI agents.\nallowed-tools: Bash(sudo:*), Bash(awf:*), Bash(docker:*), Read\nuser-invocable: false\n---\n\n# AWF (Agentic Workflow Firewall) Usage Skill\n\nUse this skill when you need to run commands with network isolation, restrict network access to approved domains, or execute AI agents in a sandboxed environment with controlled network access.\n\n## What is AWF?\n\nAWF is a network firewall for agentic workflows that provides:\n\n- **L7 Domain Whitelisting**: Control HTTP\u002FHTTPS traffic at the application layer\n- **Host-Level Enforcement**: Uses iptables DOCKER-USER chain to enforce firewall on ALL containers\n- **Chroot Mode**: Optional transparent access to host binaries (Python, Node.js, Go) while maintaining network isolation\n\n## When to Use AWF\n\nUse AWF when:\n- Running AI agents (Copilot CLI, Claude, etc.) that need network access but should be restricted\n- Testing code that makes network requests in a controlled environment\n- Enforcing network security policies for automated workflows\n- Running untrusted commands with limited network access\n- Testing Playwright or other tools against localhost services\n\n## Quick Start\n\n### Basic Command\n\n```bash\n# Run a command with only github.com allowed\nsudo awf --allow-domains github.com -- curl https:\u002F\u002Fapi.github.com\n```\n\nThe `--` separator divides firewall options from the command to run.\n\n### Test Domain Blocking\n\n```bash\n# This should FAIL (example.com not allowed)\nsudo awf --allow-domains github.com -- curl -f --max-time 10 https:\u002F\u002Fexample.com\n```\n\n### Enable Debug Logging\n\n```bash\nsudo awf --allow-domains github.com --log-level debug -- curl https:\u002F\u002Fapi.github.com\n```\n\n## Installation\n\n### Install Script (Recommended)\n\n```bash\ngh auth status\nexport GH_TOKEN=\"$(gh auth token)\"\nsudo --preserve-env=GH_TOKEN bash .\u002Finstall.sh\nunset GH_TOKEN\nsudo awf --version\n```\n\nObtain and review `install.sh` through an independently authenticated channel\nbefore running it. Do not pipe an unauthenticated download into `sudo bash`.\n\n### Build from Source\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw-firewall.git awf\ncd awf\nnpm install\nnpm run build\nnpm link\n```\n\n## CLI Options Reference\n\n```\nsudo awf [options] -- \u003Ccommand>\n\nDomain Options:\n  --allow-domains \u003Cdomains>       Comma-separated allowed domains\n  --allow-domains-file \u003Cpath>     File with allowed domains (one per line)\n  --block-domains \u003Cdomains>       Comma-separated blocked domains (takes precedence)\n  --block-domains-file \u003Cpath>     File with blocked domains\n\nNetwork Options:\n  --dns-servers \u003Cservers>         DNS servers (default: 8.8.8.8,8.8.4.4)\n  --enable-host-access            Enable access to host via host.docker.internal\n  --allow-host-ports \u003Cports>      Ports to allow with host access (e.g., 3000,8080)\n\nContainer Options:\n  --tty                           Allocate TTY for interactive tools\n  --env KEY=VALUE                 Pass environment variable (repeatable)\n  --env-all                       Pass all host environment variables\n  --mount \u003Chost:container[:mode]> Volume mount (repeatable)\n  --container-workdir \u003Cdir>       Working directory inside container\n  --agent-image \u003Cvalue>           Agent image preset (default, act) or custom\n\nAdvanced Options:\n  --ssl-bump                      Enable HTTPS content inspection\n  --allow-urls \u003Curls>             URL patterns for SSL Bump (requires --ssl-bump)\n\nDebugging Options:\n  --log-level \u003Clevel>             Log level: debug, info, warn, error\n  --keep-containers               Keep containers after command exits\n  --proxy-logs-dir \u003Cpath>         Directory to save Squid logs to\n```\n\n## Domain Whitelisting Patterns\n\n### Subdomain Matching (Automatic)\n\n```bash\n# github.com also allows api.github.com, raw.github.com, etc.\nsudo awf --allow-domains github.com -- curl https:\u002F\u002Fapi.github.com\n```\n\n### Wildcard Patterns\n\n```bash\n# Match any subdomain\n--allow-domains '*.github.com'\n\n# Match prefix patterns\n--allow-domains 'api-*.example.com'\n\n# Combine multiple patterns\n--allow-domains 'github.com,*.googleapis.com,api-*.example.com'\n```\n\n### Protocol-Specific\n\n```bash\n# HTTPS only\n--allow-domains 'https:\u002F\u002Fsecure.example.com'\n\n# HTTP only\n--allow-domains 'http:\u002F\u002Flegacy.example.com'\n```\n\n### Domain Blocklist\n\n```bash\n# Allow domain but block specific subdomain\nsudo awf \\\n  --allow-domains example.com \\\n  --block-domains internal.example.com \\\n  -- curl https:\u002F\u002Fapi.example.com  # Works\n```\n\n## Common Workflows\n\n### 1. Run GitHub Copilot CLI\n\n```bash\nsudo awf \\\n  --allow-domains github.com,api.github.com,githubusercontent.com,anthropic.com \\\n  -- copilot --prompt \"List my repositories\"\n```\n\n### 2. Run with MCP Servers\n\n```bash\nsudo awf \\\n  --allow-domains github.com,arxiv.org,mcp.tavily.com \\\n  --log-level debug \\\n  -- copilot --mcp arxiv,tavily --prompt \"Search arxiv for recent AI papers\"\n```\n\n### 3. Playwright Testing with Localhost\n\n```bash\n# The localhost keyword auto-configures host access and dev ports\nsudo awf \\\n  --allow-domains localhost,playwright.dev \\\n  -- npx playwright test\n```\n\n### 4. Pass Environment Variables\n\n```bash\n# Pass specific variables\nsudo awf --allow-domains github.com \\\n  -e GITHUB_TOKEN=\"$GITHUB_TOKEN\" \\\n  -e NODE_ENV=production \\\n  -- npm test\n\n# Pass all host environment variables\nsudo awf --allow-domains github.com --env-all -- npm test\n```\n\n### 5. Mount Custom Volumes\n\n```bash\nsudo awf --allow-domains github.com \\\n  -v \u002Fpath\u002Fto\u002Fdata:\u002Fdata:ro \\\n  -- cat \u002Fdata\u002Fconfig.json\n```\n\n### 6. Use Host Binaries (Chroot Mode is Always On)\n\n```bash\n# Access host Python, Node, Go, etc. (chroot mode is the default)\nsudo awf --allow-domains api.github.com \\\n  -- python3 -c \"import requests; print(requests.get('https:\u002F\u002Fapi.github.com').status_code)\"\n```\n\n### 7. SSL Bump for URL Path Filtering\n\n```bash\nsudo awf \\\n  --allow-domains github.com \\\n  --ssl-bump \\\n  --allow-urls \"https:\u002F\u002Fgithub.com\u002Fmyorg\u002F*\" \\\n  -- curl https:\u002F\u002Fgithub.com\u002Fmyorg\u002Fsome-repo\n```\n\n### 8. GitHub Actions Integration\n\n```yaml\n- name: Setup awf\n  uses: github\u002Fgh-aw-firewall@\u003Creviewed-commit-SHA>\n\n- name: Run with firewall\n  run: |\n    sudo -E awf --allow-domains github.com -- 'cd $GITHUB_WORKSPACE && npm test'\n```\n\n## Log Analysis Commands\n\n### View Logs\n\n```bash\n# Pretty format (default)\nawf logs\n\n# Follow in real-time\nawf logs -f\n\n# JSON format for scripting\nawf logs --format json\n\n# List available log sources\nawf logs --list\n```\n\n### Get Statistics\n\n```bash\n# Terminal output\nawf logs stats\n\n# JSON for scripting\nawf logs stats --format json\n\n# Markdown for GitHub Actions\nawf logs summary >> $GITHUB_STEP_SUMMARY\n```\n\n### Find Blocked Requests\n\n```bash\n# Using awf logs\nawf logs --format json | jq 'select(.isAllowed == false)'\n\n# Direct Squid log query\nsudo grep \"TCP_DENIED\" \u002Ftmp\u002Fsquid-logs-*\u002Faccess.log\n```\n\n## Debugging Tips\n\n### Keep Containers for Inspection\n\n```bash\nsudo awf --allow-domains github.com --keep-containers -- failing-command\n\n# Inspect containers\ndocker logs awf-squid\ndocker logs awf-agent\n\n# View Squid config\ndocker exec awf-squid cat \u002Fetc\u002Fsquid\u002Fsquid.conf\n\n# Manual cleanup when done\ndocker rm -f awf-squid awf-agent\n```\n\n### Check Which Domains Were Blocked\n\n```bash\n# After command completes\nsudo cat \u002Ftmp\u002Fsquid-logs-*\u002Faccess.log | grep TCP_DENIED\n\n# Or use the logs command\nawf logs --format json | jq 'select(.isAllowed == false) | .domain'\n```\n\n### Debug Container Network\n\n```bash\n# Check iptables rules\ndocker exec awf-agent iptables -t nat -L OUTPUT -n -v\n\n# Check DNS\ndocker exec awf-agent cat \u002Fetc\u002Fresolv.conf\n\n# Test connectivity to Squid\ndocker exec awf-agent nc -zv 172.30.0.10 3128\n```\n\n## Squid Decision Codes\n\nWhen analyzing logs, these codes indicate the traffic decision:\n\n| Code | Meaning |\n|------|---------|\n| `TCP_TUNNEL:HIER_DIRECT` | ALLOWED (HTTPS tunnel) |\n| `TCP_MISS:HIER_DIRECT` | ALLOWED (HTTP request) |\n| `TCP_DENIED:HIER_NONE` | BLOCKED (domain not in allowlist) |\n\n## Agent Image Options\n\n### Presets (Pre-built, Fast)\n\n```bash\n# Default - minimal ubuntu:22.04 (~200MB)\nsudo awf --agent-image default --allow-domains github.com -- command\n\n# Act - GitHub Actions parity (~2GB)\nsudo awf --agent-image act --allow-domains github.com -- command\n```\n\n### Custom Base Images (Requires --build-local)\n\n```bash\nsudo awf \\\n  --build-local \\\n  --agent-image ghcr.io\u002Fcatthehacker\u002Fubuntu:runner-22.04 \\\n  --allow-domains github.com \\\n  -- command\n```\n\n## Common Issues and Fixes\n\n### \"Cannot connect to Docker daemon\"\n\n```bash\nsudo systemctl start docker\n```\n\n### \"Port 3128 already in use\"\n\n```bash\ndocker stop $(docker ps -q --filter \"expose=3128\")\n```\n\n### Domain Not Working\n\n1. Check if subdomain is needed: `api.example.com` vs `example.com`\n2. Enable debug logging: `--log-level debug`\n3. Check Squid logs: `awf logs --format json`\n\n### Command Fails with Exit Code 28 (Timeout)\n\nThe domain is being blocked. Check:\n1. Is domain in `--allow-domains`?\n2. Is subdomain required?\n3. View blocked domains: `awf logs --format json | jq 'select(.isAllowed == false)'`\n\n## Limitations\n\n- **No IPv6**: Only IPv4 traffic is supported\n- **No HTTP\u002F3**: Container curl doesn't support HTTP\u002F3\n- **No internationalized domains**: Use punycode (e.g., `xn--bcher-kva.ch`)\n- **HTTP to HTTPS redirects**: May fail; use HTTPS directly\n- **IP-based access**: Direct IP access is blocked (no domain)\n\n## Best Practices\n\n1. **Start with minimal domains**: Only add what's needed\n2. **Use wildcards carefully**: `*.example.com` is safer than `*`\n3. **Enable debug logging**: When troubleshooting add `--log-level debug`\n4. **Review logs**: Check what was blocked with `awf logs stats`\n5. **Use blocklists**: For fine-grained control when allowing broad domains\n6. **Quote shell commands**: Use `'command $VAR'` to preserve container expansion\n\n## Related Skills\n\n- `debug-firewall` - Manual Docker debugging commands for AWF\n- `awf-debug-tools` - Python scripts for log parsing and diagnostics\n","# AWF (Agentic Workflow Firewall) Usage Skill\n\nUse this skill when you need to run commands with network isolation, restrict network access to approved domains, or execute AI agents in a sandboxed environment with controlled network access.\n\n## What is AWF?\n\nAWF is a network firewall for agentic workflows that provides:\n\n- **L7 Domain Whitelisting**: Control HTTP\u002FHTTPS traffic at the application layer\n- **Host-Level Enforcement**: Uses iptables DOCKER-USER chain to enforce firewall on ALL containers\n- **Chroot Mode**: Optional transparent access to host binaries (Python, Node.js, Go) while maintaining network isolation\n\n## When to Use AWF\n\nUse AWF when:\n- Running AI agents (Copilot CLI, Claude, etc.) that need network access but should be restricted\n- Testing code that makes network requests in a controlled environment\n- Enforcing network security policies for automated workflows\n- Running untrusted commands with limited network access\n- Testing Playwright or other tools against localhost services\n\n## Quick Start\n\n### Basic Command\n\n```bash\n# Run a command with only github.com allowed\nsudo awf --allow-domains github.com -- curl https:\u002F\u002Fapi.github.com\n```\n\nThe `--` separator divides firewall options from the command to run.\n\n### Test Domain Blocking\n\n```bash\n# This should FAIL (example.com not allowed)\nsudo awf --allow-domains github.com -- curl -f --max-time 10 https:\u002F\u002Fexample.com\n```\n\n### Enable Debug Logging\n\n```bash\nsudo awf --allow-domains github.com --log-level debug -- curl https:\u002F\u002Fapi.github.com\n```\n\n## Installation\n\n### Install Script (Recommended)\n\n```bash\ngh auth status\nexport GH_TOKEN=\"$(gh auth token)\"\nsudo --preserve-env=GH_TOKEN bash .\u002Finstall.sh\nunset GH_TOKEN\nsudo awf --version\n```\n\nObtain and review `install.sh` through an independently authenticated channel\nbefore running it. Do not pipe an unauthenticated download into `sudo bash`.\n\n### Build from Source\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw-firewall.git awf\ncd awf\nnpm install\nnpm run build\nnpm link\n```\n\n## CLI Options Reference\n\n```\nsudo awf [options] -- \u003Ccommand>\n\nDomain Options:\n  --allow-domains \u003Cdomains>       Comma-separated allowed domains\n  --allow-domains-file \u003Cpath>     File with allowed domains (one per line)\n  --block-domains \u003Cdomains>       Comma-separated blocked domains (takes precedence)\n  --block-domains-file \u003Cpath>     File with blocked domains\n\nNetwork Options:\n  --dns-servers \u003Cservers>         DNS servers (default: 8.8.8.8,8.8.4.4)\n  --enable-host-access            Enable access to host via host.docker.internal\n  --allow-host-ports \u003Cports>      Ports to allow with host access (e.g., 3000,8080)\n\nContainer Options:\n  --tty                           Allocate TTY for interactive tools\n  --env KEY=VALUE                 Pass environment variable (repeatable)\n  --env-all                       Pass all host environment variables\n  --mount \u003Chost:container[:mode]> Volume mount (repeatable)\n  --container-workdir \u003Cdir>       Working directory inside container\n  --agent-image \u003Cvalue>           Agent image preset (default, act) or custom\n\nAdvanced Options:\n  --ssl-bump                      Enable HTTPS content inspection\n  --allow-urls \u003Curls>             URL patterns for SSL Bump (requires --ssl-bump)\n\nDebugging Options:\n  --log-level \u003Clevel>             Log level: debug, info, warn, error\n  --keep-containers               Keep containers after command exits\n  --proxy-logs-dir \u003Cpath>         Directory to save Squid logs to\n```\n\n## Domain Whitelisting Patterns\n\n### Subdomain Matching (Automatic)\n\n```bash\n# github.com also allows api.github.com, raw.github.com, etc.\nsudo awf --allow-domains github.com -- curl https:\u002F\u002Fapi.github.com\n```\n\n### Wildcard Patterns\n\n```bash\n# Match any subdomain\n--allow-domains '*.github.com'\n\n# Match prefix patterns\n--allow-domains 'api-*.example.com'\n\n# Combine multiple patterns\n--allow-domains 'github.com,*.googleapis.com,api-*.example.com'\n```\n\n### Protocol-Specific\n\n```bash\n# HTTPS only\n--allow-domains 'https:\u002F\u002Fsecure.example.com'\n\n# HTTP only\n--allow-domains 'http:\u002F\u002Flegacy.example.com'\n```\n\n### Domain Blocklist\n\n```bash\n# Allow domain but block specific subdomain\nsudo awf \\\n  --allow-domains example.com \\\n  --block-domains internal.example.com \\\n  -- curl https:\u002F\u002Fapi.example.com  # Works\n```\n\n## Common Workflows\n\n### 1. Run GitHub Copilot CLI\n\n```bash\nsudo awf \\\n  --allow-domains github.com,api.github.com,githubusercontent.com,anthropic.com \\\n  -- copilot --prompt \"List my repositories\"\n```\n\n### 2. Run with MCP Servers\n\n```bash\nsudo awf \\\n  --allow-domains github.com,arxiv.org,mcp.tavily.com \\\n  --log-level debug \\\n  -- copilot --mcp arxiv,tavily --prompt \"Search arxiv for recent AI papers\"\n```\n\n### 3. Playwright Testing with Localhost\n\n```bash\n# The localhost keyword auto-configures host access and dev ports\nsudo awf \\\n  --allow-domains localhost,playwright.dev \\\n  -- npx playwright test\n```\n\n### 4. Pass Environment Variables\n\n```bash\n# Pass specific variables\nsudo awf --allow-domains github.com \\\n  -e GITHUB_TOKEN=\"$GITHUB_TOKEN\" \\\n  -e NODE_ENV=production \\\n  -- npm test\n\n# Pass all host environment variables\nsudo awf --allow-domains github.com --env-all -- npm test\n```\n\n### 5. Mount Custom Volumes\n\n```bash\nsudo awf --allow-domains github.com \\\n  -v \u002Fpath\u002Fto\u002Fdata:\u002Fdata:ro \\\n  -- cat \u002Fdata\u002Fconfig.json\n```\n\n### 6. Use Host Binaries (Chroot Mode is Always On)\n\n```bash\n# Access host Python, Node, Go, etc. (chroot mode is the default)\nsudo awf --allow-domains api.github.com \\\n  -- python3 -c \"import requests; print(requests.get('https:\u002F\u002Fapi.github.com').status_code)\"\n```\n\n### 7. SSL Bump for URL Path Filtering\n\n```bash\nsudo awf \\\n  --allow-domains github.com \\\n  --ssl-bump \\\n  --allow-urls \"https:\u002F\u002Fgithub.com\u002Fmyorg\u002F*\" \\\n  -- curl https:\u002F\u002Fgithub.com\u002Fmyorg\u002Fsome-repo\n```\n\n### 8. GitHub Actions Integration\n\n```yaml\n- name: Setup awf\n  uses: github\u002Fgh-aw-firewall@\u003Creviewed-commit-SHA>\n\n- name: Run with firewall\n  run: |\n    sudo -E awf --allow-domains github.com -- 'cd $GITHUB_WORKSPACE && npm test'\n```\n\n## Log Analysis Commands\n\n### View Logs\n\n```bash\n# Pretty format (default)\nawf logs\n\n# Follow in real-time\nawf logs -f\n\n# JSON format for scripting\nawf logs --format json\n\n# List available log sources\nawf logs --list\n```\n\n### Get Statistics\n\n```bash\n# Terminal output\nawf logs stats\n\n# JSON for scripting\nawf logs stats --format json\n\n# Markdown for GitHub Actions\nawf logs summary >> $GITHUB_STEP_SUMMARY\n```\n\n### Find Blocked Requests\n\n```bash\n# Using awf logs\nawf logs --format json | jq 'select(.isAllowed == false)'\n\n# Direct Squid log query\nsudo grep \"TCP_DENIED\" \u002Ftmp\u002Fsquid-logs-*\u002Faccess.log\n```\n\n## Debugging Tips\n\n### Keep Containers for Inspection\n\n```bash\nsudo awf --allow-domains github.com --keep-containers -- failing-command\n\n# Inspect containers\ndocker logs awf-squid\ndocker logs awf-agent\n\n# View Squid config\ndocker exec awf-squid cat \u002Fetc\u002Fsquid\u002Fsquid.conf\n\n# Manual cleanup when done\ndocker rm -f awf-squid awf-agent\n```\n\n### Check Which Domains Were Blocked\n\n```bash\n# After command completes\nsudo cat \u002Ftmp\u002Fsquid-logs-*\u002Faccess.log | grep TCP_DENIED\n\n# Or use the logs command\nawf logs --format json | jq 'select(.isAllowed == false) | .domain'\n```\n\n### Debug Container Network\n\n```bash\n# Check iptables rules\ndocker exec awf-agent iptables -t nat -L OUTPUT -n -v\n\n# Check DNS\ndocker exec awf-agent cat \u002Fetc\u002Fresolv.conf\n\n# Test connectivity to Squid\ndocker exec awf-agent nc -zv 172.30.0.10 3128\n```\n\n## Squid Decision Codes\n\nWhen analyzing logs, these codes indicate the traffic decision:\n\n| Code | Meaning |\n|------|---------|\n| `TCP_TUNNEL:HIER_DIRECT` | ALLOWED (HTTPS tunnel) |\n| `TCP_MISS:HIER_DIRECT` | ALLOWED (HTTP request) |\n| `TCP_DENIED:HIER_NONE` | BLOCKED (domain not in allowlist) |\n\n## Agent Image Options\n\n### Presets (Pre-built, Fast)\n\n```bash\n# Default - minimal ubuntu:22.04 (~200MB)\nsudo awf --agent-image default --allow-domains github.com -- command\n\n# Act - GitHub Actions parity (~2GB)\nsudo awf --agent-image act --allow-domains github.com -- command\n```\n\n### Custom Base Images (Requires --build-local)\n\n```bash\nsudo awf \\\n  --build-local \\\n  --agent-image ghcr.io\u002Fcatthehacker\u002Fubuntu:runner-22.04 \\\n  --allow-domains github.com \\\n  -- command\n```\n\n## Common Issues and Fixes\n\n### \"Cannot connect to Docker daemon\"\n\n```bash\nsudo systemctl start docker\n```\n\n### \"Port 3128 already in use\"\n\n```bash\ndocker stop $(docker ps -q --filter \"expose=3128\")\n```\n\n### Domain Not Working\n\n1. Check if subdomain is needed: `api.example.com` vs `example.com`\n2. Enable debug logging: `--log-level debug`\n3. Check Squid logs: `awf logs --format json`\n\n### Command Fails with Exit Code 28 (Timeout)\n\nThe domain is being blocked. Check:\n1. Is domain in `--allow-domains`?\n2. Is subdomain required?\n3. View blocked domains: `awf logs --format json | jq 'select(.isAllowed == false)'`\n\n## Limitations\n\n- **No IPv6**: Only IPv4 traffic is supported\n- **No HTTP\u002F3**: Container curl doesn't support HTTP\u002F3\n- **No internationalized domains**: Use punycode (e.g., `xn--bcher-kva.ch`)\n- **HTTP to HTTPS redirects**: May fail; use HTTPS directly\n- **IP-based access**: Direct IP access is blocked (no domain)\n\n## Best Practices\n\n1. **Start with minimal domains**: Only add what's needed\n2. **Use wildcards carefully**: `*.example.com` is safer than `*`\n3. **Enable debug logging**: When troubleshooting add `--log-level debug`\n4. **Review logs**: Check what was blocked with `awf logs stats`\n5. **Use blocklists**: For fine-grained control when allowing broad domains\n6. **Quote shell commands**: Use `'command $VAR'` to preserve container expansion\n\n## Related Skills\n\n- `debug-firewall` - Manual Docker debugging commands for AWF\n- `awf-debug-tools` - Python scripts for log parsing and diagnostics\n",{"name":5,"description":7,"allowed-tools":57,"user-invocable":53},"Bash(sudo:*), Bash(awf:*), Bash(docker:*), Read","main","564491e648e022be04aa96b73c1681f13f7544f8",".claude\u002Fskills\u002Fawf-skill",83,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw-firewall","https:\u002F\u002Fgithub.github.com\u002Fgh-aw-firewall\u002F","https:\u002F\u002Fgithub.com\u002Fgithub","https:\u002F\u002Fgithub.com\u002Fabout","How people build software.","2026-11-15 06:13:56",{"source":9,"skillName":5,"commands":69,"prompt":79,"zipAvailable":80},[70,73,76],{"tool":71,"command":72},"npx","npx skills add github\u002Fgh-aw-firewall --skill awf-skill",{"tool":74,"command":75},"bunx","bunx skills add github\u002Fgh-aw-firewall --skill awf-skill",{"tool":77,"command":78},"pnpm","pnpm dlx skills add github\u002Fgh-aw-firewall --skill awf-skill","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw-firewall\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fawf-skill\u002FSKILL.md",true,[82,88],{"path":83,"resourceType":84,"resourceTypeDesc":85,"sizeBytes":86,"sourceHtmlUrl":87},"install.sh","SCRIPT","脚本",1796,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw-firewall\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fawf-skill\u002Finstall.sh",{"path":89,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":92,"sourceHtmlUrl":93},"README.md","REFERENCE","参考文档",3055,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw-firewall\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fawf-skill\u002FREADME.md",[95,107,132,166,194,218],{"skillNo":96,"name":5,"nameZh":97,"description":7,"descriptionZh":98,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":99,"sourceHtmlUrl":100,"categories":101,"keywords":106,"publishedAt":52},"01M6ADA1AXWT8GAAAZ2MJV1YF1","AWF 智能体网络隔离与出口控制","使用 AWF（Agentic Workflow Firewall，智能体工作流防火墙）在网络隔离与域名白名单机制下运行命令。为 AI 智能体提供 L7 层 HTTP\u002FHTTPS 出口（egress）控制。","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw-firewall\u002Fblob\u002Fmain\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw-firewall\u002Fblob\u002Fmain\u002Fskill.md",[102,103],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":104,"categoryName":105,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BS500GKZYSCKH93NWY5MDS","云合规与数据边界管理",[31,49,50,47,48,43,51,46,45,32,41,34,37,39,33,40,36,42,38,44,35],{"skillNo":108,"name":109,"nameZh":110,"description":111,"descriptionZh":112,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":113,"categories":114,"keywords":121,"publishedAt":52},"01M6AD9ZKQJBHWBVNQEERBCT0V","sandbox-filesystem-access","AWF 沙箱文件系统访问配置","Configure or diagnose file and directory access, mounts, and host ACLs for AWF sandboxes.","为 AWF 沙箱配置文件与目录访问权限、挂载（mounts）及主机 ACL，或对这些内容进行诊断排查。","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw-firewall\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fsandbox-filesystem-access\u002FSKILL.md",[115,118],{"categoryNo":116,"categoryName":117,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD4WETX0HM3SM9QKQ15B","SRE 工程师",{"categoryNo":119,"categoryName":120,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSTR9G4A4GZ0VB2DFN9490","开发环境与工具链管理",[122,123,124,125,126,127,128,33,129,130,131],"sandbox","sandbox filesystem access","filesystem","access","diagnose","file","directory","sandboxes","host","configure",{"skillNo":133,"name":134,"nameZh":135,"description":136,"descriptionZh":137,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":138,"categories":139,"keywords":146,"publishedAt":52},"01M6AD9XDE32KBEV4V8SXVXQ0D","pr-finisher","PR 合并就绪准备","Prepare an open pull request for merge from a GitHub Copilot cloud agent. Drives Reviews, local validation, and Mergeable to a ready state. Does not merge, and cannot trigger CI.","为来自 GitHub Copilot 云端智能体的待合并 Pull Request 做好合并准备。推动代码审查（Reviews）、本地验证（local validation）以及 Mergeable（可合并）状态达到就绪。不执行合并操作，也无法触发 CI。","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw-firewall\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fpr-finisher\u002FSKILL.md",[140,143],{"categoryNo":141,"categoryName":142,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":144,"categoryName":145,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BR5V701HCN066VEP7H4812","代码仓库协作管理",[147,148,149,150,151,10,152,153,154,155,156,157,158,159,160,161,33,162,163,164,165],"pr finisher","pr","pull","state","github copilot","pull request","merge","ci","validation","copilot","open pull request","cloud","prepare","ready","reviews","trigger","local","open","request",{"skillNo":167,"name":168,"nameZh":169,"description":170,"descriptionZh":171,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":172,"categories":173,"keywords":178,"publishedAt":52},"01M6AD9TTKQEWT03YCAPEK28HK","debugging-workflows","GitHub Actions 工作流调试","Debug GitHub Actions workflows by downloading logs, analyzing summaries, and understanding how agentic workflows and the AWF firewall work together.","通过下载日志、分析摘要，并理解智能体工作流（agentic workflows）与 AWF 防火墙如何协同工作，来调试 GitHub Actions 工作流。","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw-firewall\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fdebugging-workflows\u002FSKILL.md",[174,175],{"categoryNo":116,"categoryName":117,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":176,"categoryName":177,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRSRYQ3M8N5063NNQPF2B1","调试与故障排查",[179,180,181,10,182,183,184,185,43,186,187,32,42,188,189,41,190,191,192,71,193],"debugging workflows","debugging","workflows","actions","github actions","agentic workflows","debug","logs","ls","work","how","node","analyzing","gh","cat",{"skillNo":195,"name":196,"nameZh":197,"description":198,"descriptionZh":199,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":200,"categories":201,"keywords":208,"publishedAt":52},"01M6AD9S2GXF6T58BMN1X7PRHM","agentic-workflows","智能体工作流请求路由","Route gh-aw design, creation, diagnosis, patching, active debugging, upgrades, and local SDLC issue requests to the right strategies.","将 gh-aw 的设计、创建、诊断、修补、主动调试、升级以及本地 SDLC 问题请求路由到相应的策略。","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw-firewall\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fagentic-workflows\u002FSKILL.md",[202,205],{"categoryNo":203,"categoryName":204,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师",{"categoryNo":206,"categoryName":207,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSAA4FBTWZP6X98STEHG99","智能体开发",[184,181,43,209,180,210,211,212,213,214,215,192,216,217],"design","route","strategies","requests","creation","active","diagnosis","upgrade","patching",{"skillNo":219,"name":220,"nameZh":221,"description":222,"descriptionZh":223,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":224,"categories":225,"keywords":228,"publishedAt":52},"01M6AD9Q293GYDF752HBPYX0VF","add-llm-provider","新增 LLM 提供商支持","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. Cursor, Aider, or any tool that calls its own endpoint.","决定并实现如何在 AWF 中支持新的 LLM 提供商或智能体引擎 —— 既可作为代理式提供商（api-proxy 适配器），也可作为直连 API 引擎（仅限域名白名单），例如 Cursor、Aider 或任何调用自身端点的工具。","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw-firewall\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fadd-llm-provider\u002FSKILL.md",[226,227],{"categoryNo":203,"categoryName":204,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":206,"categoryName":207,"taxonomyType":28,"taxonomyTypeDesc":29},[229,230,231,232,233,234,235,39,236,237,238,239,240,241,242,243,244,245,246,189],"add llm provider","provider","add","proxy","support","implement","as","decide","tool","aider","calls","how to","only","new","adapter","either","api","engine"]