| description | Shared guidance for editing, recompiling, and validating GitHub Agentic Workflow files. |
|---|
Agentic workflows are single markdown files at .github/workflows/<workflow-id>.md.
- YAML frontmatter between
---markers: triggers, permissions, tools, network, imports, safe outputs. - Markdown body: the agent prompt.
Run gh aw compile <workflow-id> after changing:
on:permissions:tools:network:imports:safe-outputs:mcp-servers:- engine, timeout, concurrency, or other YAML configuration
Body-only edits take effect on the next run without recompilation.
Edit the markdown body directly for:
- agent instructions
- task descriptions
- examples
- formatting guidance
- clarifications and guardrails
Body changes take effect on the next run.
Always run gh aw compile after any change (frontmatter or body) to keep .lock.yml metadata in sync.
gh aw compile <workflow-id>
gh aw compile <workflow-id> --strict
gh aw compile --purgeUse --strict for production-quality validation.
- Smallest change that satisfies the request.
- Preserve structure unless reorganization is the task.
- Never leave a workflow broken.
- Always run
gh aw compile <workflow-id>after any change (frontmatter or body) to keep.lock.ymlin sync. - If compile fails, fix all errors before stopping.
- After any change, review the generated
.lock.yml.
- Specific and imperative.
- Short examples over long tutorials.
- Reference dedicated instruction files instead of duplicating.
- Tell agents to use
noopwhen no visible action is needed.