recompile-workflows
Skill148 starsChanged 2 months agoMITView on GitHub
Regenerate and post-process all agentic workflows. Use when gh-aw is updated, workflow .md files change, or when asked to recompile/regenerate workflows.
In this repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- awf-debug-toolsSkill
- awf-skillSkill
- debug-firewallSkill
- diagnose-awfSkill
- add-llm-providerSkill
- agentic-workflowsSkill
- debugging-workflowsSkill
- pr-finisherSkill
- awf-skillSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
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 regenerate all agentic workflow lock files and apply post-processing.
- Distinctive: line 19
Use whichever command is appropriate:
- Very specific: line 29
If any workflow fails to compile (e.g., strict mode violations like contents: write), fix the .md source file and re-run.
- Distinctive: line 57
After both steps, run git diff --stat to review all changed files.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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 compileIf 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.tsThis updates these lock files:
smoke-copilot.lock.ymlsmoke-claude.lock.ymlsmoke-chroot.lock.ymlbuild-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
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.

