This guide covers the standard path from choosing a template to running it in your repository. All gh aw commands work on macOS, Linux, and Windows.
You have two normal ways to get the templates:
git clone https://github.com/OneRose328/awesome-agentic-workflows.git
cd awesome-agentic-workflowsIf you do not want to use Git, you can also use GitHub's Code -> Download ZIP option and extract it locally.
Import a template straight from GitHub without cloning the full library:
gh aw add OneRose328/awesome-agentic-workflows/templates/issue-management/auto-triage.mdYou can also pass more than one workflow spec in one command:
gh aw add "OneRose328/awesome-agentic-workflows/templates/issue-management/auto-triage.md" "OneRose328/awesome-agentic-workflows/templates/pr-automation/code-review-assistant.md" --non-interactiveIf you used gh aw add in step 1, this step is already done — skip to step 3.
If you cloned the library, copy the template into the repository where you want the workflow to run:
# macOS / Linux / Windows (Git Bash or WSL)
mkdir -p .github/workflows
cp awesome-agentic-workflows/templates/issue-management/auto-triage.md .github/workflows/issue-triage.mdEdit the copied .md source file in your own repository and adjust:
onpermissionssafe-outputstools- labels, reviewers, branch names, or repository-specific instructions
For the safest first rollout:
- keep permissions read-only unless you have a clear reason not to
- express write actions through
safe-outputs - start with a workflow that comments, summarizes, drafts, or labels
Install the GitHub CLI extension if needed, then validate before compiling:
gh extension install github/gh-aw
gh aw validate --dir .github/workflows
gh aw compile --dir .github/workflowsThis creates:
.github/workflows/<name>.mdas your editable source file.github/workflows/<name>.lock.ymlas the compiled workflow GitHub Actions will run
Do not treat the .lock.yml file as your primary authoring file.
Commit both files:
git add .github/workflows/<name>.md .github/workflows/<name>.lock.yml
git commit -m "feat: add <name> agentic workflow"
git pushAfter pushing:
- Open your repository on GitHub.
- Make sure GitHub Actions is enabled for the repository.
- Trigger the workflow using a safe, low-risk event first.
- Check the Actions tab to confirm the run starts and completes as expected.
Good first tests:
- open a test issue
- update a test pull request
- run on a manual or low-impact schedule
Avoid starting with broad write behavior until you trust the workflow output.