AGENT SKILL

智能体工作流重新编译

recompile-workflows

重新生成并对所有智能体工作流进行后处理。当 gh-aw 更新、工作流 .md 文件发生变化,或被要求重新编译/重新生成工作流时使用。

使用场景智能体开发
License 许可
MIT
最近更新
2026-11-15
Stars
★ 160
Forks
83

01 前言 Front Matter

name
recompile-workflows
description
Regenerate and post-process all agentic workflows. Use when gh-aw is updated, workflow .md files change, or when asked to recompile/regenerate workflows.
allowed-tools
Bash(gh:*), Bash(npx:*), Read, Glob, Edit

02 资源文件 500

03 SKILL.md 正文

Recompile Agentic Workflows

Use this skill when you need to regenerate all agentic workflow lock files and apply post-processing.

IMPORTANT: Post-processing is required after EVERY lock file change

Any time .lock.yml files are regenerated — whether via gh aw compile, gh aw upgrade, or any other gh-aw command — you MUST run the post-processing script afterward. This is not optional.

Steps

1. Compile or upgrade workflows

Use whichever command is appropriate:

# Full upgrade (updates agents, actions, codemods, then compiles)
gh aw upgrade

# Just recompile (when only .md workflow files changed)
gh aw compile

If any workflow fails to compile (e.g., strict mode violations like contents: write), fix the .md source file and re-run.

2. Run post-processing script (ALWAYS)

This step MUST run every time lock files are regenerated, regardless of how they were generated.

The post-processing script replaces the "Install awf binary" step in smoke and build-test workflows with local build+install steps, so CI tests the repo's own code instead of a released binary.

npx ts-node scripts/ci/postprocess-smoke-workflows.ts

This updates these lock files:

  • smoke-copilot.lock.yml
  • smoke-claude.lock.yml
  • smoke-chroot.lock.yml
  • build-test.lock.yml

Common Issues

Strict mode violations

Newer gh-aw versions enforce strict mode which disallows write permissions like contents: write, issues: write, etc. Workflows should use safe-outputs for write operations and only request read permissions.

Discussion category warnings

Warnings about "General" vs "general" discussion category casing are non-blocking.

Verification

After both steps, run git diff --stat to review all changed files. Expect changes in:

  • .github/agents/ - Updated agent files
  • .github/aw/actions-lock.json - Updated action pins
  • .github/workflows/*.lock.yml - Regenerated lock files
  • .github/workflows/*.md - If codemods applied fixes

04 同仓库更多 Skills

github
github/gh-aw-firewall

AWF 网络隔离与域名白名单

awf-skill

使用 AWF(Agentic Workflow Firewall,智能体工作流防火墙)运行带网络隔离和域名白名单的命令。为 AI 智能体提供 L7 层 HTTP/HTTPS 出站流量控制。

安全工程师云平台安全加固
★ 160
github
github/gh-aw-firewall

AWF 智能体网络隔离与出口控制

awf-skill

使用 AWF(Agentic Workflow Firewall,智能体工作流防火墙)在网络隔离与域名白名单机制下运行命令。为 AI 智能体提供 L7 层 HTTP/HTTPS 出口(egress)控制。

安全工程师云合规与数据边界管理
★ 160
github
github/gh-aw-firewall

AWF 沙箱文件系统访问配置

sandbox-filesystem-access

为 AWF 沙箱配置文件与目录访问权限、挂载(mounts)及主机 ACL,或对这些内容进行诊断排查。

SRE 工程师开发环境与工具链管理
★ 160
github
github/gh-aw-firewall

PR 合并就绪准备

pr-finisher

为来自 GitHub Copilot 云端智能体的待合并 Pull Request 做好合并准备。推动代码审查(Reviews)、本地验证(local validation)以及 Mergeable(可合并)状态达到就绪。不执行合并操作,也无法触发 CI。

软件开发工程师代码仓库协作管理
★ 160
github
github/gh-aw-firewall

GitHub Actions 工作流调试

debugging-workflows

通过下载日志、分析摘要,并理解智能体工作流(agentic workflows)与 AWF 防火墙如何协同工作,来调试 GitHub Actions 工作流。

SRE 工程师调试与故障排查
★ 160
github
github/gh-aw-firewall

智能体工作流请求路由

agentic-workflows

将 gh-aw 的设计、创建、诊断、修补、主动调试、升级以及本地 SDLC 问题请求路由到相应的策略。

AI 工程师智能体开发
★ 160