Skip to content

Commit 553f3dc

Browse files
committed
upgrade aw
1 parent e15e57b commit 553f3dc

12 files changed

Lines changed: 1316 additions & 589 deletions
Lines changed: 62 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
2-
description: GitHub Agentic Workflows (gh-aw) - Create, debug, and upgrade AI-powered workflows with intelligent prompt routing
2+
name: Agentic Workflows
3+
description: GitHub Agentic Workflows (gh-aw) - Create, debug, and upgrade AI-powered workflows with intelligent prompt routing.
34
disable-model-invocation: true
45
---
56

@@ -13,12 +14,16 @@ This is a **dispatcher agent** that routes your request to the appropriate speci
1314

1415
- **Creating new workflows**: Routes to `create` prompt
1516
- **Updating existing workflows**: Routes to `update` prompt
16-
- **Debugging workflows**: Routes to `debug` prompt
17+
- **Debugging workflows**: Routes to `debug` prompt
1718
- **Upgrading workflows**: Routes to `upgrade-agentic-workflows` prompt
1819
- **Creating report-generating workflows**: Routes to `report` prompt — consult this whenever the workflow posts status updates, audits, analyses, or any structured output as issues, discussions, or comments
1920
- **Creating shared components**: Routes to `create-shared-agentic-workflow` prompt
2021
- **Fixing Dependabot PRs**: Routes to `dependabot` prompt — use this when Dependabot opens PRs that modify generated manifest files (`.github/workflows/package.json`, `.github/workflows/requirements.txt`, `.github/workflows/go.mod`). Never merge those PRs directly; instead update the source `.md` files and rerun `gh aw compile --dependabot` to bundle all fixes
2122
- **Analyzing test coverage**: Routes to `test-coverage` prompt — consult this whenever the workflow reads, analyzes, or reports on test coverage data from PRs or CI runs
23+
- **Rendering ASCII charts in markdown**: Routes to `asciicharts` guide — consult this whenever the workflow needs compact charts that render reliably in GitHub issues, comments, or discussions
24+
- **CLI commands and triggering workflows**: Routes to `cli-commands` guide — consult this whenever the user asks how to run, compile, debug, or manage workflows from the command line, or when they need the MCP tool equivalent of a `gh aw` command
25+
- **Reducing token consumption / cost optimization**: Routes to `token-optimization` guide — consult this whenever the user asks how to reduce token usage, lower costs, speed up workflows, or measure the impact of prompt changes with experiments
26+
- **Choosing workflow architectures and design patterns**: Routes to `patterns` guide — consult this whenever the user asks for strategy, architecture, operating models, or pattern selection for agentic workflows
2227

2328
Workflows may optionally include:
2429

@@ -30,7 +35,7 @@ Workflows may optionally include:
3035
- Workflow files: `.github/workflows/*.md` and `.github/workflows/**/*.md`
3136
- Workflow lock files: `.github/workflows/*.lock.yml`
3237
- Shared components: `.github/workflows/shared/*.md`
33-
- Configuration: https://github.com/github/gh-aw/blob/v0.66.1/.github/aw/github-agentic-workflows.md
38+
- Configuration: `.github/aw/github-agentic-workflows.md`
3439

3540
## Problems This Solves
3641

@@ -52,27 +57,27 @@ When you interact with this agent, it will:
5257
### Create New Workflow
5358
**Load when**: User wants to create a new workflow from scratch, add automation, or design a workflow that doesn't exist yet
5459

55-
**Prompt file**: https://github.com/github/gh-aw/blob/v0.66.1/.github/aw/create-agentic-workflow.md
60+
**Prompt file**: `.github/aw/create-agentic-workflow.md`
5661

5762
**Use cases**:
5863
- "Create a workflow that triages issues"
5964
- "I need a workflow to label pull requests"
6065
- "Design a weekly research automation"
6166

62-
### Update Existing Workflow
67+
### Update Existing Workflow
6368
**Load when**: User wants to modify, improve, or refactor an existing workflow
6469

65-
**Prompt file**: https://github.com/github/gh-aw/blob/v0.66.1/.github/aw/update-agentic-workflow.md
70+
**Prompt file**: `.github/aw/update-agentic-workflow.md`
6671

6772
**Use cases**:
6873
- "Add web-fetch tool to the issue-classifier workflow"
6974
- "Update the PR reviewer to use discussions instead of issues"
7075
- "Improve the prompt for the weekly-research workflow"
7176

72-
### Debug Workflow
77+
### Debug Workflow
7378
**Load when**: User needs to investigate, audit, debug, or understand a workflow, troubleshoot issues, analyze logs, or fix errors
7479

75-
**Prompt file**: https://github.com/github/gh-aw/blob/v0.66.1/.github/aw/debug-agentic-workflow.md
80+
**Prompt file**: `.github/aw/debug-agentic-workflow.md`
7681

7782
**Use cases**:
7883
- "Why is this workflow failing?"
@@ -82,7 +87,7 @@ When you interact with this agent, it will:
8287
### Upgrade Agentic Workflows
8388
**Load when**: User wants to upgrade workflows to a new gh-aw version or fix deprecations
8489

85-
**Prompt file**: https://github.com/github/gh-aw/blob/v0.66.1/.github/aw/upgrade-agentic-workflows.md
90+
**Prompt file**: `.github/aw/upgrade-agentic-workflows.md`
8691

8792
**Use cases**:
8893
- "Upgrade all workflows to the latest version"
@@ -92,7 +97,7 @@ When you interact with this agent, it will:
9297
### Create a Report-Generating Workflow
9398
**Load when**: The workflow being created or updated produces reports — recurring status updates, audit summaries, analyses, or any structured output posted as a GitHub issue, discussion, or comment
9499

95-
**Prompt file**: https://github.com/github/gh-aw/blob/v0.66.1/.github/aw/report.md
100+
**Prompt file**: `.github/aw/report.md`
96101

97102
**Use cases**:
98103
- "Create a weekly CI health report"
@@ -102,7 +107,7 @@ When you interact with this agent, it will:
102107
### Create Shared Agentic Workflow
103108
**Load when**: User wants to create a reusable workflow component or wrap an MCP server
104109

105-
**Prompt file**: https://github.com/github/gh-aw/blob/v0.66.1/.github/aw/create-shared-agentic-workflow.md
110+
**Prompt file**: `.github/aw/create-shared-agentic-workflow.md`
106111

107112
**Use cases**:
108113
- "Create a shared component for Notion integration"
@@ -112,7 +117,7 @@ When you interact with this agent, it will:
112117
### Fix Dependabot PRs
113118
**Load when**: User needs to close or fix open Dependabot PRs that update dependencies in generated manifest files (`.github/workflows/package.json`, `.github/workflows/requirements.txt`, `.github/workflows/go.mod`)
114119

115-
**Prompt file**: https://github.com/github/gh-aw/blob/v0.66.1/.github/aw/dependabot.md
120+
**Prompt file**: `.github/aw/dependabot.md`
116121

117122
**Use cases**:
118123
- "Fix the open Dependabot PRs for npm dependencies"
@@ -122,19 +127,54 @@ When you interact with this agent, it will:
122127
### Analyze Test Coverage
123128
**Load when**: The workflow reads, analyzes, or reports test coverage — whether triggered by a PR, a schedule, or a slash command. Always consult this prompt before designing the coverage data strategy.
124129

125-
**Prompt file**: https://github.com/github/gh-aw/blob/v0.66.1/.github/aw/test-coverage.md
130+
**Prompt file**: `.github/aw/test-coverage.md`
126131

127132
**Use cases**:
128133
- "Create a workflow that comments coverage on PRs"
129134
- "Analyze coverage trends over time"
130135
- "Add a coverage gate that blocks PRs below a threshold"
131136

137+
### CLI Commands Reference
138+
**Load when**: The user asks how to run, compile, debug, or manage workflows from the command line; needs the MCP tool equivalent of a `gh aw` command; or is in a restricted environment (e.g., Copilot Cloud) without direct CLI access.
139+
140+
**Reference file**: `.github/aw/cli-commands.md`
141+
142+
**Use cases**:
143+
- "How do I trigger workflow X on the main branch?"
144+
- "What's the MCP equivalent of `gh aw logs`?"
145+
- "I'm in Copilot Cloud — how do I compile a workflow?"
146+
- "Show me all available gh aw commands"
147+
148+
### Token Consumption Optimization
149+
**Load when**: The user asks how to reduce token usage, lower workflow costs, make a workflow faster or cheaper, or measure the impact of prompt or configuration changes.
150+
151+
**Reference file**: `.github/aw/token-optimization.md`
152+
153+
**Use cases**:
154+
- "How do I reduce the token cost of this workflow?"
155+
- "My workflow is too expensive — how do I optimize it?"
156+
- "How do I compare token usage between two runs?"
157+
- "Should I use gh-proxy or the MCP server?"
158+
- "How do I use sub-agents to reduce costs?"
159+
- "How do I measure the impact of a prompt change?"
160+
161+
### Workflow Pattern Selection
162+
**Load when**: The user asks for architecture, strategy, operating model selection, or pattern recommendations for building agentic workflows.
163+
164+
**Reference file**: `.github/aw/patterns.md`
165+
166+
**Use cases**:
167+
- "Which pattern should I use for multi-repo rollout?"
168+
- "How should I structure this workflow architecture?"
169+
- "What pattern fits slash-command triage?"
170+
- "Should this be DispatchOps or DailyOps?"
171+
132172
## Instructions
133173

134174
When a user interacts with you:
135175

136176
1. **Identify the task type** from the user's request
137-
2. **Load the appropriate prompt** from the GitHub repository URLs listed above
177+
2. **Load the appropriate prompt** from the repository paths listed above
138178
3. **Follow the loaded prompt's instructions** exactly
139179
4. **If uncertain**, ask clarifying questions to determine the right prompt
140180

@@ -147,6 +187,10 @@ gh aw init
147187
# Generate the lock file for a workflow
148188
gh aw compile [workflow-name]
149189

190+
# Trigger a workflow on demand (preferred over gh workflow run)
191+
gh aw run <workflow-name> # interactive input collection
192+
gh aw run <workflow-name> --ref main # run on a specific branch
193+
150194
# Debug workflow runs
151195
gh aw logs [workflow-name]
152196
gh aw audit <run-id>
@@ -169,10 +213,12 @@ gh aw compile --validate
169213

170214
## Important Notes
171215

172-
- Always reference the instructions file at https://github.com/github/gh-aw/blob/v0.66.1/.github/aw/github-agentic-workflows.md for complete documentation
216+
- Always reference the instructions file at `.github/aw/github-agentic-workflows.md` for complete documentation
173217
- Use the MCP tool `agentic-workflows` when running in GitHub Copilot Cloud
174218
- Workflows must be compiled to `.lock.yml` files before running in GitHub Actions
175219
- **Bash tools are enabled by default** - Don't restrict bash commands unnecessarily since workflows are sandboxed by the AWF
176220
- Follow security best practices: minimal permissions, explicit network access, no template injection
177-
- **Network configuration**: Use ecosystem identifiers (`node`, `python`, `go`, etc.) or explicit FQDNs in `network.allowed`. Bare shorthands like `npm` or `pypi` are **not** valid. See https://github.com/github/gh-aw/blob/v0.66.1/.github/aw/network.md for the full list of valid ecosystem identifiers and domain patterns.
221+
- **Network configuration**: Use ecosystem identifiers (`node`, `python`, `go`, etc.) or explicit FQDNs in `network.allowed`. Bare shorthands like `npm` or `pypi` are **not** valid. See `.github/aw/network.md` for the full list of valid ecosystem identifiers and domain patterns.
178222
- **Single-file output**: When creating a workflow, produce exactly **one** workflow `.md` file. Do not create separate documentation files (architecture docs, runbooks, usage guides, etc.). If documentation is needed, add a brief `## Usage` section inside the workflow file itself.
223+
- **Triggering runs**: Always use `gh aw run <workflow-name>` to trigger a workflow on demand — not `gh workflow run <file>.lock.yml`. `gh aw run` handles workflow resolution by short name, input parsing and validation, and correct run-tracking for agentic workflows. Use `--ref <branch>` to run on a specific branch.
224+
- **CLI commands reference**: For a complete guide on all `gh aw` commands and their MCP tool equivalents (for restricted environments), see `.github/aw/cli-commands.md`

.github/aw/actions-lock.json

Lines changed: 29 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,25 @@
11
{
22
"entries": {
3-
"actions/checkout@v4": {
3+
"actions/checkout@v7.0.0": {
44
"repo": "actions/checkout",
5-
"version": "v4",
6-
"sha": "34e114876b0b11c390a56381ad16ebd13914f8d5"
7-
},
8-
"actions/checkout@v6.0.2": {
9-
"repo": "actions/checkout",
10-
"version": "v6.0.2",
11-
"sha": "de0fac2e4500dabe0009e67214ff5f5447ce83dd"
5+
"version": "v7.0.0",
6+
"sha": "9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0"
127
},
138
"actions/download-artifact@v8.0.1": {
149
"repo": "actions/download-artifact",
1510
"version": "v8.0.1",
1611
"sha": "3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c"
1712
},
18-
"actions/github-script@v8": {
19-
"repo": "actions/github-script",
20-
"version": "v8",
21-
"sha": "ed597411d8f924073f98dfc5c65a23a2325f34cd"
22-
},
23-
"actions/github-script@v9": {
24-
"repo": "actions/github-script",
25-
"version": "v9",
26-
"sha": "373c709c69115d41ff229c7e5df9f8788daa9553"
27-
},
2813
"actions/github-script@v9.0.0": {
2914
"repo": "actions/github-script",
3015
"version": "v9.0.0",
3116
"sha": "3a2844b7e9c422d3c10d287c895573f7108da1b3"
3217
},
33-
"actions/upload-artifact@v7": {
18+
"actions/upload-artifact@v7.0.1": {
3419
"repo": "actions/upload-artifact",
35-
"version": "v7",
20+
"version": "v7.0.1",
3621
"sha": "043fb46d1a93c77aae656e7c1c64a875d1fc6a0a"
3722
},
38-
"actions/upload-artifact@v7.0.0": {
39-
"repo": "actions/upload-artifact",
40-
"version": "v7.0.0",
41-
"sha": "bbbca2ddaa5d8feaa63e36b76fdaad77386f024f"
42-
},
4323
"github/gh-aw-actions/setup@v0.78.2": {
4424
"repo": "github/gh-aw-actions/setup",
4525
"version": "v0.78.2",
@@ -65,15 +45,32 @@
6545
"version": "v0.66.1",
6646
"sha": "d688a4a5fa8aa96ad18fa13f0b187c38548a275c"
6747
},
68-
"super-linter/super-linter@v8.5.0": {
48+
"super-linter/super-linter@v8.7.0": {
6949
"repo": "super-linter/super-linter",
70-
"version": "v8.5.0",
71-
"sha": "61abc07d755095a68f4987d1c2c3d1d64408f1f9"
50+
"version": "v8.7.0",
51+
"sha": "4ce20838b8ab83717e78138c5b3a1407148e0918"
52+
}
53+
},
54+
"containers": {
55+
"ghcr.io/github/gh-aw-firewall/agent:0.25.55": {
56+
"image": "ghcr.io/github/gh-aw-firewall/agent:0.25.55",
57+
"digest": "sha256:138c363411decc9a61a5af9b95e8d64c76648b00add0ba06fc7ba786f0e72731",
58+
"pinned_image": "ghcr.io/github/gh-aw-firewall/agent:0.25.55@sha256:138c363411decc9a61a5af9b95e8d64c76648b00add0ba06fc7ba786f0e72731"
7259
},
73-
"super-linter/super-linter@v8.6.0": {
74-
"repo": "super-linter/super-linter",
75-
"version": "v8.6.0",
76-
"sha": "9e863354e3ff62e0727d37183162c4a88873df41"
60+
"ghcr.io/github/gh-aw-firewall/api-proxy:0.25.55": {
61+
"image": "ghcr.io/github/gh-aw-firewall/api-proxy:0.25.55",
62+
"digest": "sha256:4142b873b678cd3279b98dcbe464857d56ea2f2348719b00379cdf35dd843ff3",
63+
"pinned_image": "ghcr.io/github/gh-aw-firewall/api-proxy:0.25.55@sha256:4142b873b678cd3279b98dcbe464857d56ea2f2348719b00379cdf35dd843ff3"
64+
},
65+
"ghcr.io/github/gh-aw-firewall/squid:0.25.55": {
66+
"image": "ghcr.io/github/gh-aw-firewall/squid:0.25.55",
67+
"digest": "sha256:74084b704d8d3664a363655986664d70bd9cdb4830532d0b35cd784d867aabca",
68+
"pinned_image": "ghcr.io/github/gh-aw-firewall/squid:0.25.55@sha256:74084b704d8d3664a363655986664d70bd9cdb4830532d0b35cd784d867aabca"
69+
},
70+
"ghcr.io/github/gh-aw-mcpg:v0.3.19": {
71+
"image": "ghcr.io/github/gh-aw-mcpg:v0.3.19",
72+
"digest": "sha256:a6c890d7c24d7190c9ef97b9c954cc4cffaae6b01c371ced1f959f1370b1f68f",
73+
"pinned_image": "ghcr.io/github/gh-aw-mcpg:v0.3.19@sha256:a6c890d7c24d7190c9ef97b9c954cc4cffaae6b01c371ced1f959f1370b1f68f"
7774
}
7875
}
7976
}
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
---
2+
name: agentic-workflows
3+
description: Route gh-aw workflow design/create/debug/upgrade requests to the right prompts.
4+
---
5+
6+
# Agentic Workflows Router
7+
8+
Use this skill when a user asks to design, create, update, debug, or upgrade GitHub Agentic Workflows in this repository.
9+
10+
This skill is a dispatcher: identify the task type, load the matching workflow prompt/skill file, and follow it directly. Keep responses concise and ask a clarifying question if the correct prompt is unclear.
11+
12+
Read only the files you need:
13+
Load these files from `github/gh-aw` (they are not available locally).
14+
- `.github/aw/agentic-chat.md`
15+
- `.github/aw/agentic-workflows-mcp.md`
16+
- `.github/aw/asciicharts.md`
17+
- `.github/aw/campaign.md`
18+
- `.github/aw/charts-trending.md`
19+
- `.github/aw/charts.md`
20+
- `.github/aw/cli-commands.md`
21+
- `.github/aw/context.md`
22+
- `.github/aw/create-agentic-workflow.md`
23+
- `.github/aw/create-shared-agentic-workflow.md`
24+
- `.github/aw/debug-agentic-workflow.md`
25+
- `.github/aw/dependabot.md`
26+
- `.github/aw/deployment-status.md`
27+
- `.github/aw/experiments.md`
28+
- `.github/aw/github-agentic-workflows.md`
29+
- `.github/aw/github-mcp-server.md`
30+
- `.github/aw/llms.md`
31+
- `.github/aw/mcp-clis.md`
32+
- `.github/aw/memory.md`
33+
- `.github/aw/messages.md`
34+
- `.github/aw/network.md`
35+
- `.github/aw/optimize-agentic-workflow.md`
36+
- `.github/aw/patterns.md`
37+
- `.github/aw/pr-reviewer.md`
38+
- `.github/aw/report.md`
39+
- `.github/aw/reuse.md`
40+
- `.github/aw/safe-outputs-automation.md`
41+
- `.github/aw/safe-outputs-content.md`
42+
- `.github/aw/safe-outputs-management.md`
43+
- `.github/aw/safe-outputs-runtime.md`
44+
- `.github/aw/safe-outputs.md`
45+
- `.github/aw/serena-tool.md`
46+
- `.github/aw/shared-safe-jobs.md`
47+
- `.github/aw/skills.md`
48+
- `.github/aw/subagents.md`
49+
- `.github/aw/syntax-agentic.md`
50+
- `.github/aw/syntax-core.md`
51+
- `.github/aw/syntax-tools-imports.md`
52+
- `.github/aw/syntax.md`
53+
- `.github/aw/test-coverage.md`
54+
- `.github/aw/test-expression.md`
55+
- `.github/aw/token-optimization.md`
56+
- `.github/aw/triggers.md`
57+
- `.github/aw/update-agentic-workflow.md`
58+
- `.github/aw/upgrade-agentic-workflows.md`
59+
- `.github/aw/visual-regression.md`
60+
- `.github/aw/workflow-constraints.md`
61+
- `.github/aw/workflow-editing.md`
62+
- `.github/aw/workflow-patterns.md`
63+
64+
- `.github/skills/agentic-workflow-designer/SKILL.md`
65+
After loading the matching workflow prompt or skill, follow it directly:
66+
- Design workflows from scratch via interview: `skills/agentic-workflow-designer/SKILL.md`
67+
- Create new workflows: `.github/aw/create-agentic-workflow.md`
68+
- Update existing workflows: `.github/aw/update-agentic-workflow.md`
69+
- Debug, audit, or investigate workflows: `.github/aw/debug-agentic-workflow.md`
70+
- Upgrade workflows and fix deprecations: `.github/aw/upgrade-agentic-workflows.md`
71+
- Create shared components or MCP wrappers: `.github/aw/create-shared-agentic-workflow.md`
72+
- Create report-generating workflows: `.github/aw/report.md`
73+
- Fix Dependabot manifest PRs: `.github/aw/dependabot.md`
74+
- Analyze coverage workflows: `.github/aw/test-coverage.md`
75+
- Render compact markdown charts: `.github/aw/asciicharts.md`
76+
- Map CLI commands to MCP usage: `.github/aw/cli-commands.md`
77+
- Choose workflow architecture and patterns: `.github/aw/patterns.md`
78+
- Optimize token usage and cost: `.github/aw/token-optimization.md`
79+
80+
When the task involves OTEL, OTLP, traces, observability backends, or telemetry-driven analysis, also read and follow `skills/otel-queries/SKILL.md` after loading the matching workflow prompt or skill.

.github/workflows/copilot-setup-steps.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ jobs:
1313
- name: Checkout repository
1414
uses: actions/checkout@v4
1515
- name: Install gh-aw extension
16-
uses: github/gh-aw-actions/setup-cli@73ae9ce231580f337133352d321d42b6bf54b6a9 # v0.66.1
16+
uses: github/gh-aw-actions/setup-cli@v0.79.8
1717
with:
18-
version: v0.66.1
18+
version: v0.79.8

0 commit comments

Comments
 (0)