Skip to content

Commit 5a51e5c

Browse files
committed
upgrade of agentic workflows
1 parent d61cbbf commit 5a51e5c

File tree

4 files changed

+429
-331
lines changed

4 files changed

+429
-331
lines changed

.github/agents/agentic-workflows.agent.md

Lines changed: 41 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ This is a **dispatcher agent** that routes your request to the appropriate speci
1515
- **Updating existing workflows**: Routes to `update` prompt
1616
- **Debugging workflows**: Routes to `debug` prompt
1717
- **Upgrading workflows**: Routes to `upgrade-agentic-workflows` prompt
18+
- **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
1819
- **Creating shared components**: Routes to `create-shared-agentic-workflow` prompt
20+
- **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
21+
- **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
1922

2023
Workflows may optionally include:
2124

@@ -27,7 +30,7 @@ Workflows may optionally include:
2730
- Workflow files: `.github/workflows/*.md` and `.github/workflows/**/*.md`
2831
- Workflow lock files: `.github/workflows/*.lock.yml`
2932
- Shared components: `.github/workflows/shared/*.md`
30-
- Configuration: https://github.com/github/gh-aw/blob/v0.46.1/.github/aw/github-agentic-workflows.md
33+
- Configuration: https://github.com/github/gh-aw/blob/v0.50.4/.github/aw/github-agentic-workflows.md
3134

3235
## Problems This Solves
3336

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

52-
**Prompt file**: https://github.com/github/gh-aw/blob/v0.46.1/.github/aw/create-agentic-workflow.md
55+
**Prompt file**: https://github.com/github/gh-aw/blob/v0.50.4/.github/aw/create-agentic-workflow.md
5356

5457
**Use cases**:
5558
- "Create a workflow that triages issues"
@@ -59,7 +62,7 @@ When you interact with this agent, it will:
5962
### Update Existing Workflow
6063
**Load when**: User wants to modify, improve, or refactor an existing workflow
6164

62-
**Prompt file**: https://github.com/github/gh-aw/blob/v0.46.1/.github/aw/update-agentic-workflow.md
65+
**Prompt file**: https://github.com/github/gh-aw/blob/v0.50.4/.github/aw/update-agentic-workflow.md
6366

6467
**Use cases**:
6568
- "Add web-fetch tool to the issue-classifier workflow"
@@ -69,7 +72,7 @@ When you interact with this agent, it will:
6972
### Debug Workflow
7073
**Load when**: User needs to investigate, audit, debug, or understand a workflow, troubleshoot issues, analyze logs, or fix errors
7174

72-
**Prompt file**: https://github.com/github/gh-aw/blob/v0.46.1/.github/aw/debug-agentic-workflow.md
75+
**Prompt file**: https://github.com/github/gh-aw/blob/v0.50.4/.github/aw/debug-agentic-workflow.md
7376

7477
**Use cases**:
7578
- "Why is this workflow failing?"
@@ -79,23 +82,53 @@ When you interact with this agent, it will:
7982
### Upgrade Agentic Workflows
8083
**Load when**: User wants to upgrade workflows to a new gh-aw version or fix deprecations
8184

82-
**Prompt file**: https://github.com/github/gh-aw/blob/v0.46.1/.github/aw/upgrade-agentic-workflows.md
85+
**Prompt file**: https://github.com/github/gh-aw/blob/v0.50.4/.github/aw/upgrade-agentic-workflows.md
8386

8487
**Use cases**:
8588
- "Upgrade all workflows to the latest version"
8689
- "Fix deprecated fields in workflows"
8790
- "Apply breaking changes from the new release"
8891

92+
### Create a Report-Generating Workflow
93+
**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
94+
95+
**Prompt file**: https://github.com/github/gh-aw/blob/v0.50.4/.github/aw/report.md
96+
97+
**Use cases**:
98+
- "Create a weekly CI health report"
99+
- "Post a daily security audit to Discussions"
100+
- "Add a status update comment to open PRs"
101+
89102
### Create Shared Agentic Workflow
90103
**Load when**: User wants to create a reusable workflow component or wrap an MCP server
91104

92-
**Prompt file**: https://github.com/github/gh-aw/blob/v0.46.1/.github/aw/create-shared-agentic-workflow.md
105+
**Prompt file**: https://github.com/github/gh-aw/blob/v0.50.4/.github/aw/create-shared-agentic-workflow.md
93106

94107
**Use cases**:
95108
- "Create a shared component for Notion integration"
96109
- "Wrap the Slack MCP server as a reusable component"
97110
- "Design a shared workflow for database queries"
98111

112+
### Fix Dependabot PRs
113+
**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`)
114+
115+
**Prompt file**: https://github.com/github/gh-aw/blob/v0.50.4/.github/aw/dependabot.md
116+
117+
**Use cases**:
118+
- "Fix the open Dependabot PRs for npm dependencies"
119+
- "Bundle and close the Dependabot PRs for workflow dependencies"
120+
- "Update @playwright/test to fix the Dependabot PR"
121+
122+
### Analyze Test Coverage
123+
**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.
124+
125+
**Prompt file**: https://github.com/github/gh-aw/blob/v0.50.4/.github/aw/test-coverage.md
126+
127+
**Use cases**:
128+
- "Create a workflow that comments coverage on PRs"
129+
- "Analyze coverage trends over time"
130+
- "Add a coverage gate that blocks PRs below a threshold"
131+
99132
## Instructions
100133

101134
When a user interacts with you:
@@ -136,8 +169,9 @@ gh aw compile --validate
136169

137170
## Important Notes
138171

139-
- Always reference the instructions file at https://github.com/github/gh-aw/blob/v0.46.1/.github/aw/github-agentic-workflows.md for complete documentation
172+
- Always reference the instructions file at https://github.com/github/gh-aw/blob/v0.50.4/.github/aw/github-agentic-workflows.md for complete documentation
140173
- Use the MCP tool `agentic-workflows` when running in GitHub Copilot Cloud
141174
- Workflows must be compiled to `.lock.yml` files before running in GitHub Actions
142175
- **Bash tools are enabled by default** - Don't restrict bash commands unnecessarily since workflows are sandboxed by the AWF
143176
- Follow security best practices: minimal permissions, explicit network access, no template injection
177+
- **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.

.github/aw/actions-lock.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
"repo": "actions/github-script",
55
"version": "v8",
66
"sha": "ed597411d8f924073f98dfc5c65a23a2325f34cd"
7+
},
8+
"github/gh-aw/actions/setup@v0.50.4": {
9+
"repo": "github/gh-aw/actions/setup",
10+
"version": "v0.50.4",
11+
"sha": "90ebf8057e8e005103b8d123732d2c64c30e9b27"
712
}
813
}
914
}

0 commit comments

Comments
 (0)