Skip to content

Commit b7fd99b

Browse files
committed
use claude:
1 parent 997b8cb commit b7fd99b

13 files changed

Lines changed: 93 additions & 158 deletions

.github/copilot-instructions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This repository defines autonomous GitHub agents using the [gh-aw](https://githu
55
## Repository Structure
66

77
- `workflows/` - Agent definitions in markdown format
8-
- `workflows/outputs/` - Reusable components for agent outputs and reporting
8+
- `workflows/shared/` - Reusable components for agent outputs and reporting
99

1010
## Agent Definition Format
1111

@@ -26,7 +26,7 @@ Agents are defined as markdown files with YAML frontmatter specifying:
2626
### Components System
2727
Use `@include` directives to incorporate reusable components:
2828
```markdown
29-
@include outputs/shared-team-issue.md
29+
@include shared/shared-team-issue.md
3030
```
3131

3232
## Agent Patterns
@@ -72,7 +72,7 @@ Agents coordinate through a daily "Team Status DD/MM/YYYY" issue for progress re
7272
1. **Create agent file** - Add a new `.md` file in `workflows/` directory
7373
2. **Define YAML frontmatter** - Configure timeout, permissions, and tools
7474
3. **Write job description** - Numbered steps with clear exit conditions
75-
4. **Include components** - Use `@include outputs/shared-team-issue.md` for coordination
75+
4. **Include components** - Use `@include shared/shared-team-issue.md` for coordination
7676
5. **Test and compile** - Run `gh aw compile` to validate syntax
7777

7878
### Agent Development Process

workflows/agentic-coder.md

Lines changed: 13 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -22,34 +22,27 @@ tools:
2222
add_issue_comment,
2323
create_pull_request,
2424
]
25-
Bash:
26-
allowed: [":*"] # Allow all bash commands
27-
Task:
28-
Glob:
29-
Grep:
30-
LS:
31-
Read:
32-
Edit:
33-
MultiEdit:
34-
Write:
35-
NotebookRead:
36-
NotebookEdit:
37-
WebFetch:
38-
WebSearch:
25+
claude:
26+
Bash:
27+
allowed: [":*"] # Allow all bash commands
28+
Edit:
29+
MultiEdit:
30+
Write:
31+
NotebookEdit:
32+
WebFetch:
33+
WebSearch:
3934
---
4035

4136
# Agentic Coder
4237

4338
## Components
4439

45-
<!-- Includes https://github.com/githubnext/gh-aw/blob/main/components/samples/outputs/shared-team-issue.md -->
40+
<!-- Includes https://github.com/githubnext/gh-aw-samples/blob/main/workflows/samples/shared/shared-team-issue.md -->
4641

47-
@include outputs/shared-team-issue.md
42+
@include shared/shared-team-issue.md
4843

4944
## Job Description
5045

51-
<!-- https://github.com/githubnext/gh-aw/blob/main/components/samples/jobs/coder.md -->
52-
5346
Your name is "${{ github.workflow }}". Your job is to act as an agentic coder for the GitHub repository `${{ env.GITHUB_REPOSITORY }}`. You're really good at all kinds of tasks. You're excellent at everything.
5447

5548
1. Look for the issue labelled "swarm-plan". Read the plan, and any comments on the plan. If no issue is labelled "swarm-plan" ignore this step.
@@ -99,12 +92,8 @@ Your name is "${{ github.workflow }}". Your job is to act as an agentic coder fo
9992
10093
> NOTE: You can use the tools to list, get and add issue comments to add comments to pull reqests too.
10194
102-
> NOTE: If you are refused permission to run particular 'bash' commands, or need to request access to other tools or resources, include a request for access in the output report, explaining the exact prefix of bash commands needed or other resources you need access to, and file an issue to request access.
103-
104-
> NOTE: Include a link like this at the end of each new issue, issue comment or pull request you create:
95+
@include shared/bash-refused.md
10596

106-
```markdown
107-
> AI-generated content by [${{ github.workflow }}](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) may contain mistakes.
108-
```
97+
@include shared/include-link.md
10998

11099
<!-- Note - this file can be customized to your needs. Replace this section directly, or add further instructions here. After editing run 'gh aw compile' -->

workflows/agentic-dependency-updater.md

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -33,26 +33,18 @@ tools:
3333
get_dependabot_alert,
3434
list_dependabot_alerts,
3535
]
36-
Bash:
37-
allowed: [":*"] # Allow all bash commands for now, will be reviewed later
38-
Task:
39-
Glob:
40-
Grep:
41-
LS:
42-
Read:
43-
Edit:
44-
MultiEdit:
45-
Write:
46-
NotebookRead:
47-
NotebookEdit:
48-
WebFetch:
49-
WebSearch:
36+
claude:
37+
Bash:
38+
allowed: [":*"] # Allow all bash commands for now, will be reviewed later
39+
Edit:
40+
MultiEdit:
41+
Write:
42+
WebFetch:
43+
WebSearch:
5044
---
5145

5246
# Agentic Dependency Updater
5347

54-
<!-- https://github.com/githubnext/gh-aw/blob/main/components/samples/jobs/coder.md -->
55-
5648
Your name is "${{ github.workflow }}". Your job is to act as an agentic coder for the GitHub repository `${{ env.GITHUB_REPOSITORY }}`. You're really good at all kinds of tasks. You're excellent at everything.
5749

5850
1. Check the dependabot alerts in the repository. If there are any that aren't already covered by existing non-Dependabot pull requests, update the dependencies to the latest versions, by updating actual dependencies in dependency declaration files (package.json etc), not just lock files, and create a pull request with the changes. Try to bundle as many dependency updates as possible into one PR. Test the changes to ensure they work correctly, if the tests don't pass then divide and conquer and create separate pull requests for each dependency update. If the tests do pass close any Dependabot PRs that are already open for the same dependency updates with a note that the changes have been made in a different PR.
@@ -76,11 +68,7 @@ Your name is "${{ github.workflow }}". Your job is to act as an agentic coder fo
7668
7769
> NOTE: You can use the tools to list, get and add issue comments to add comments to pull reqests too.
7870
79-
> NOTE: If you are refused permission to run particular 'bash' commands, or need to request access to other tools or resources, include a request for access in the output report, explaining the exact prefix of bash commands needed or other resources you need access to, and file an issue to request access.
80-
81-
> NOTE: Include a link like this at the end of each new issue, issue comment or pull request you create:
71+
@include shared/bash-refused.md
8272

83-
```markdown
84-
> AI-generated content by [${{ github.workflow }}](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) may contain mistakes.
85-
```
73+
@include shared/include-link.md
8674

workflows/agentic-planner.md

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,24 @@ tools:
1818
create_issue_comment,
1919
create_or_update_file,
2020
]
21-
Bash:
22-
allowed: ["gh:*", "git:*"]
23-
Task:
24-
Glob:
25-
Grep:
26-
LS:
27-
Read:
28-
Edit:
29-
MultiEdit:
30-
Write:
31-
NotebookRead:
32-
NotebookEdit:
33-
WebFetch:
34-
WebSearch:
21+
claude:
22+
Bash:
23+
allowed: ["gh:*", "git:*"]
24+
Edit:
25+
MultiEdit:
26+
Write:
27+
NotebookEdit:
28+
WebFetch:
29+
WebSearch:
3530
---
3631

3732
# Agentic Planner
3833

3934
## Components
4035

41-
<!-- Includes https://github.com/githubnext/gh-aw/blob/main/components/samples/outputs/shared-team-issue.md -->
36+
<!-- Includes https://github.com/githubnext/gh-aw-samples/blob/main/workflows/samples/shared/shared-team-issue.md -->
4237

43-
@include outputs/shared-team-issue.md
38+
@include shared/shared-team-issue.md
4439

4540
## Job Description
4641

@@ -79,10 +74,7 @@ Your job is to act as an agentic planner for the GitHub repository ${{ env.GITHU
7974

8075
Sometimes agentic coders leave labels on issues or pull requests they've "claimed". These labels will usually start with "Agentic Coder". Look around the repo to see if there are any stale labels. You can tell a stale label by whether the agentic coder left an "I'm working on it" comment on the issue or pull request over 20 minutes ago. In this case remove the label and add a comment saying that the agentic coder didn't seem to make progress on the issue and the issue is now open for anyone to work on.
8176

82-
> NOTE: If you are refused permission to run particular 'bash' commands, or need to request access to other tools or resources, include a request for access in the output report, explaining the exact prefix of bash commands needed or other resources you need access to.
77+
@include shared/bash-refused.md
8378

84-
> NOTE: Include a link like this at the end of each new issue, issue comment or pull request created:
79+
@include shared/include-link.md
8580

86-
```
87-
> AI-generated content by [${{ github.workflow }}](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) may contain mistakes.
88-
```

workflows/agentic-qa.md

Lines changed: 14 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -24,29 +24,24 @@ tools:
2424
add_issue_comment,
2525
create_pull_request,
2626
]
27-
Bash:
28-
allowed: [":*"] # Allow all bash commands
29-
Task:
30-
Glob:
31-
Grep:
32-
LS:
33-
Read:
34-
Edit:
35-
MultiEdit:
36-
Write:
37-
NotebookRead:
38-
NotebookEdit:
39-
WebFetch:
40-
WebSearch:
27+
claude:
28+
Bash:
29+
allowed: [":*"] # Allow all bash commands
30+
Edit:
31+
MultiEdit:
32+
Write:
33+
NotebookEdit:
34+
WebFetch:
35+
WebSearch:
4136
---
4237

4338
# Agentic QA Engineer
4439

4540
## Components
4641

47-
<!-- Includes https://github.com/githubnext/gh-aw/blob/main/components/samples/outputs/shared-team-issue.md -->
42+
<!-- Includes https://github.com/githubnext/gh-aw-samples/blob/main/workflows/samples/shared/shared-team-issue.md -->
4843

49-
@include outputs/shared-team-issue.md
44+
@include shared/shared-team-issue.md
5045

5146
## Job Description
5247

@@ -73,24 +68,7 @@ Your name is ${{ github.workflow }}. Your job is to act as an agentic QA enginee
7368

7469
If the repository is empty or doesn't have any implementation code just yet, then exit without doing anything.
7570

76-
2. You have access to the following tools:
77-
78-
- **GitHub**: To interact with the GitHub API, e.g. to list issues, create issues, add comments, etc.
79-
- **Bash**: To run shell commands, e.g. to run tests, build the code, etc.
80-
- **Task**: To create and manage tasks.
81-
- **Glob**: To match files using glob patterns.
82-
- **Grep**: To search for text in files.
83-
- **LS**: To list files in a directory.
84-
- **Read**: To read files.
85-
- **Edit**: To edit files.
86-
- **MultiEdit**: To edit multiple files at once.
87-
- **Write**: To write files.
88-
- **NotebookRead**: To read Jupyter notebooks.
89-
- **NotebookEdit**: To edit Jupyter notebooks.
90-
- **WebFetch**: To fetch web pages.
91-
- **WebSearch**: To search the web.
92-
93-
You can use these tools to perform your tasks. For example, you can use the GitHub tool to list issues, create issues, add comments, etc. You can use the Bash tool to run shell commands, e.g. to run tests, build the code, etc.
71+
2. You have access to various tools. You can use these tools to perform your tasks. For example, you can use the GitHub tool to list issues, create issues, add comments, etc.
9472

9573
3. If you find one or more problems, you should create new issues or add a comment on an existing issue. For each distinct problem:
9674

@@ -100,10 +78,6 @@ Your name is ${{ github.workflow }}. Your job is to act as an agentic QA enginee
10078

10179
- If you think the fix to a problem is simple, also create a pull request to fix it.
10280

103-
> NOTE: If you are refused permission to run particular 'bash' commands, or need to request access to other tools or resources, include a request for access in the output report, explaining the exact prefix of bash commands needed or other resources you need access to, and file an issue to request access.
81+
@include shared/bash-refused.md
10482

105-
> NOTE: Include a link like this at the end of each new issue, issue comment or pull request you create:
106-
107-
```
108-
> AI-generated content by [${{ github.workflow }}](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) may contain mistakes.
109-
```
83+
@include shared/include-link.md

workflows/agentic-researcher.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,9 @@ permissions:
2020
tools:
2121
github:
2222
allowed: [create_issue]
23-
Task:
24-
Glob:
25-
Grep:
26-
LS:
27-
Read:
28-
NotebookRead:
29-
WebFetch:
30-
WebSearch:
23+
claude:
24+
WebFetch:
25+
WebSearch:
3126
---
3227

3328
# Agentic Researcher

workflows/agentic-triage.md

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,13 @@ permissions:
1515
tools:
1616
github:
1717
allowed: [update_issue]
18-
Task:
19-
Glob:
20-
Grep:
21-
LS:
22-
Read:
23-
Edit:
24-
MultiEdit:
25-
Write:
26-
NotebookRead:
27-
NotebookEdit:
28-
WebFetch:
29-
WebSearch:
18+
claude:
19+
Edit:
20+
MultiEdit:
21+
Write:
22+
NotebookEdit:
23+
WebFetch:
24+
WebSearch:
3025

3126
timeout_minutes: 10
3227
---
@@ -88,10 +83,7 @@ You're a triage assistant for GitHub issues. Your task is to analyze issue #${{
8883
- If appropriate break the issue down to sub-tasks and write a checklist of things to do.
8984
- Use collapsed-by-default sections in the GitHub markdown to keep the comment tidy. Collapse all sections except the short main summary at the top.
9085

91-
> NOTE: If you are refused permission to run particular 'bash' commands, or need to request access to other tools or resources, include a request for access in the output report, explaining the exact prefix of bash commands needed or other resources you need access to.
86+
@include shared/bash-refused.md
9287

93-
> NOTE: Include a link like this at the end of each new issue, issue comment or pull request you create:
88+
@include shared/include-link.md
9489

95-
```markdown
96-
> AI-generated content by [${{ github.workflow }}](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) may contain mistakes.
97-
```

workflows/shared/bash-refused.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
tools:
3+
github:
4+
allowed:
5+
[
6+
create_issue,
7+
]
8+
---
9+
> NOTE: If you are refused permission to run particular 'bash' commands, or need to request access to other tools or resources, include a request for access in the output report, explaining the exact prefix of bash commands needed or other resources you need access to. Also open an issue to request access if one is not already open.

workflows/shared/include-link.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
> NOTE: Include a footer link like this at the end of each new issue, issue comment or pull request you create. Do this in addition to any other footers you are instructed to include.
2+
3+
```markdown
4+
> AI-generated content by [${{ github.workflow }}](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) may contain mistakes.
5+
```
File renamed without changes.

0 commit comments

Comments
 (0)