Skip to content

Commit 2881b4d

Browse files
committed
update for daily
1 parent 4dd9446 commit 2881b4d

12 files changed

Lines changed: 192 additions & 55 deletions

docs/daily-plan.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ gh aw run daily-plan
2424

2525
1. Use local configuation to specify planning focus areas, reporting format, and frequency. Local configuration can be done in `.github/workflows/agentics/daily-plan.config.md`.
2626

27-
2. Build tool configuration for build tools shared across all workflows installed from this pack can be done in `.github/workflows/agentics/build-tools.md`.
28-
2927
After editing run `gh aw compile` to update the workflow and commit all changes to the default branch.
3028

3129
## What it reads from GitHub

docs/weekly-research.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ gh aw run weekly-research
2222

2323
## Configuration
2424

25-
- No build steps required - works out of the box
26-
- Edit the workflow file to customize output format, research topics, report length, focus areas or to adjust frequency or timing
27-
- After editing run `gh aw compile` to update the workflow and commit all changes to the default branch.
25+
1. Use local configuation to customize output format, research topics, report length, focus areas or to adjust frequency or timing. Local configuration can be done in `.github/workflows/agentics/daily-plan.config.md`.
26+
27+
After editing run `gh aw compile` to update the workflow and commit all changes to the default branch.
2828

2929
## What it reads from GitHub
3030

@@ -36,8 +36,7 @@ gh aw run weekly-research
3636

3737
## What it creates
3838

39-
- Creates new issues containing research reports
40-
- Requires `issues: write` permission
39+
- Creates a new issue containing a research report
4140

4241
## What web searches it performs
4342

@@ -54,6 +53,13 @@ gh aw run weekly-research
5453
- Close or update the issue once insights have been reviewed and acted upon
5554
- Disable or uninstall the workflow if research reports are not useful or relevant
5655

56+
## Security
57+
58+
- This workflow uses "safe outputs" to create a new issue containing a research report. The overall workflow has `issues: write` permission, but the agentic step doing the research only has `issues: read` permission and runs with no GitHub write permissions
59+
- This workflow has no access to secrets
60+
- This workflow does not modify existing issues or other repository content
61+
- This workflow does web searches and fetches content from the web
62+
5763
## Activity duration
5864

5965
- By default this workflow will trigger for at most 30 days, after which it will stop triggering.

workflows/ci-doctor.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ permissions:
1717
statuses: read # needed to read commit statuses
1818
issues: write # needed to create investigation issues
1919
pull-requests: write # needed to comment on PRs if failure is related
20-
models: read # typically needed for AI workflows
2120

2221
tools:
2322
github:

workflows/daily-accessibility-review.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ on:
88

99
timeout_minutes: 15
1010

11-
12-
permissions:
13-
contents: read # Required so the agent can review the code in the repository
14-
issues: write # Required so the agent can create issues for accessibility problems
11+
safe-output:
12+
create-issue:
1513

1614
tools:
1715
playwright:
@@ -20,11 +18,8 @@ tools:
2018
command: npx
2119
args: ["@playwright/mcp@0.0.33", "--headless"]
2220
allowed: ["browser_click", "browser_evaluate", "browser_handle_dialog", "browser_hover", "browser_navigate", "browser_navigate_back", "browser_navigate_forward", "browser_press_key", "browser_resize", "browser_select_option", "browser_snapshot", "browser_take_screenshot", "browser_type", "browser_wait_for"]
23-
github:
24-
allowed: ["create_issue"]
2521
claude:
2622
allowed:
27-
TodoWrite:
2823
WebFetch:
2924
WebSearch:
3025

workflows/daily-dependency-updates.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ on:
77
stop-after: +48h # workflow will no longer trigger after 48 hours. Remove this and recompile to run indefinitely
88

99
timeout_minutes: 15
10+
1011
permissions:
1112
contents: write # needed to push changes to a new branch in the repository in preparation for the pull request
1213
pull-requests: write # needed to create pull requests for the changes
1314
issues: read
14-
models: read
1515
discussions: read
1616
actions: read
1717
checks: read

workflows/daily-plan.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ on:
99
stop-after: +30d # workflow will no longer trigger after 30 days. Remove this and recompile to run indefinitely
1010

1111
permissions:
12-
issues: write # needed to write the output plan to an issue
12+
issues: write # needed to create or update issues
1313
contents: read
14-
models: read
1514
pull-requests: read
1615

1716
timeout_minutes: 15
Lines changed: 167 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,167 @@
1+
---
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
# Run daily at 2am UTC, all days except Saturday and Sunday
6+
- cron: "0 2 * * 1-5"
7+
stop-after: +48h # workflow will no longer trigger after 48 hours
8+
9+
timeout_minutes: 30
10+
11+
permissions:
12+
contents: write # needed to create branches, files, and pull requests in this repo without a fork
13+
issues: write # needed to create report issue
14+
pull-requests: write # needed to create results pull request
15+
actions: read
16+
checks: read
17+
statuses: read
18+
19+
tools:
20+
github:
21+
allowed:
22+
[
23+
create_issue,
24+
update_issue,
25+
search_issues,
26+
list_issues,
27+
get_pull_request,
28+
get_pull_request_files,
29+
list_pull_requests,
30+
search_pull_requests,
31+
add_issue_comment,
32+
create_or_update_file,
33+
create_branch,
34+
delete_file,
35+
push_files,
36+
update_pull_request,
37+
]
38+
claude:
39+
allowed:
40+
Edit:
41+
MultiEdit:
42+
Write:
43+
NotebookEdit:
44+
WebFetch:
45+
WebSearch:
46+
# Configure bash build commands here, or in .github/workflows/agentics/daily-roadmap-progress.config.md
47+
#Bash: [":*"]
48+
Bash: ["gh pr create:*", "git commit:*", "git push:*", "git checkout:*", "git branch:*", "git add:*", "gh auth status", "gh repo view", "gh issue comment:*"]
49+
50+
steps:
51+
- name: Checkout repository
52+
uses: actions/checkout@v3
53+
54+
- name: Check if action.yml exists
55+
id: check_build_steps_file
56+
run: |
57+
if [ -f ".github/actions/daily-roadmap-progress/build-steps/action.yml" ]; then
58+
echo "exists=true" >> $GITHUB_OUTPUT
59+
else
60+
echo "exists=false" >> $GITHUB_OUTPUT
61+
fi
62+
shell: bash
63+
- name: Build the project ready for feature work
64+
if: steps.check_build_steps_file.outputs.exists == 'true'
65+
uses: ./.github/actions/daily-roadmap-progress/build-steps
66+
id: build-steps
67+
68+
---
69+
70+
# Daily Roadmap Progress
71+
72+
## Job Description
73+
74+
Your name is ${{ github.workflow }}. Your job is to act as an agentic coder for the GitHub repository `${{ github.repository }}`. You're really good at all kinds of tasks. You're excellent at everything.
75+
76+
1. Roadmap research (if not done before).
77+
78+
1a. Check carefully if an open issue with title "${{ github.workflow }}: Research, Roadmap and Plan" exists. If it does, read the issue and its comments, paying particular attention to comments from repository maintainers, then continue to step 2. If it doesn't exist, follow the steps below to create it:
79+
80+
1b. Do some deep research into the feature reoadmap in this repo.
81+
- Read any existing documentation, issues, pull requests, project files, dev guides and so on in the repository that do similar things.
82+
- Look at any existing open issues and pull requests that are related to features.
83+
- Look at any project boards or roadmaps that may exist in the repository.
84+
- Look at any discussions or community forums related to the repository.
85+
- Look at any relevant web pages, articles, blog posts, or other online resources that
86+
may provide insights into the feature roadmap for the project.
87+
- Understand the main features of the project, its goals, and its target audience.
88+
- Understand the goals of the project, what would constitute success, and the features needed to achieve those goals.
89+
- Simplicity may be a good goal, don't overcomplicate things.
90+
- Features can include documentation, code, tests, examples, communication plans and so on.
91+
- If you find a relevant roadmap document, read it carefully and use it to inform your understanding of the project's feature goals.
92+
93+
1b. Use this research to write an issue with title "${{ github.workflow }}: Research, Roadmap and Plan", then exit this entire workflow.
94+
95+
2. Generate build steps configuration (if not done before) to help set up the environment for individual development work.
96+
97+
2a. Check if `.github/actions/daily-roadmap-progress/build-steps/action.yml` exists in this repo. Note this path is relative to the current directory (the root of the repo). If this file exists, it will have been run already as part of the GitHub Action you are executing in, so read the file to understand what has already been run and continue to step 3. Otherwise continue to step 2b.
98+
99+
2b. Check if an open pull request with title "${{ github.workflow }}: Updates to complete configuration" exists in this repo. If it does, add a comment to the pull request saying configuration needs to be completed, then exit the workflow. Otherwise continue to step 2c.
100+
101+
2c. Research the typical steps needed to build and run the project for feature work.
102+
103+
2d. Create the file `.github/actions/daily-roadmap-progress/build-steps/action.yml` as a GitHub Action containing these steps, ensuring that the action.yml file is valid and carefully cross-checking with other CI files and devcontainer configurations in the repo to ensure accuracy and correctness.
104+
105+
2e. Make a pull request for the addition of this file, with title "${{ github.workflow }}: Updates to complete configuration". Explain that adding these files to the repo will make this workflow more reliable and effective. Encourage the maintainer to review the files carefully to ensure they are appropriate for the project. Exit the entire workflow.
106+
107+
3. Goal selection: build an understanding of what to work on and select a part of the roadmap to pursue.
108+
109+
3a. You can now assume the repository is in a state where the steps in `.github/actions/daily-roadmap-progress/build-steps/action.yml` have been run and is ready for you to work on features.
110+
111+
3b. Read the plan in the issue mentioned earlier, along with comments.
112+
113+
3c. Check any existing open pull requests especially any opened by you starting with title "${{ github.workflow }}".
114+
115+
3d. If you think the plan is inadequate, and needs a refresh, update the planning issue by rewriting the actual body of the issue, ensuring you take into account any comments from maintainers. Add one single comment to the issue saying nothing but the plan has been updated with a one sentence explanation about why. Do not add comments to the issue, just update the body. Then continue to step 3e.
116+
117+
3e. Select a goal to pursue from the plan. Ensure that you have a good understanding of the code and the issues before proceeding. Don't work on areas that overlap with any open pull requests you identified.
118+
119+
4. Work towards your selected goal.
120+
121+
4a. Create a new branch.
122+
123+
4b. Make the changes to work towards the goal you selected.
124+
125+
4c. Ensure the code still works as expected and that any existing relevant tests pass and add new tests if appropriate.
126+
127+
4d. Apply any automatic code formatting used in the repo
128+
129+
4e. Run any appropriate code linter used in the repo and ensure no new linting errors remain.
130+
131+
5. If you succeeded in writing useful code changes that work on the feature roadmap, create a draft pull request with your changes.
132+
133+
- Use Bash `git add ...`, `git commit ...`, `git push ...` etc. to push the changes to your branch.
134+
135+
- Use Bash `gh pr create --repo ${{ github.repository }} ...` to create a pull request with the changes.
136+
137+
5b. Do NOT include any tool-generated files in the pull request. Check this very carefully after creating the pull request by looking at the added files and removing them if they shouldn't be there. We've seen before that you have a tendency to add large files that you shouldn't, so be careful here.
138+
139+
5c. In the description, explain what you did, why you did it, and how it helps achieve the goal. Be concise but informative. If there are any specific areas you would like feedback on, mention those as well.
140+
141+
5d. After creation, check the pull request to ensure it is correct, includes all expected files, and doesn't include any unwanted files or changes. Make any necessary corrections by pushing further commits to the branch.
142+
143+
5e. Add a very brief comment to the issue from step 1a if it exists, saying you have worked on the particular goal and linking to the pull request you created.
144+
145+
5f. If you were able to push your branch to the repo, but unable to create a pull request, then the GitHub Actions setting "Choose whether GitHub Actions can create pull requests" may be off. Create an issue describing the problem with a link to https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#preventing-github-actions-from-creating-or-approving-pull-requests and exit the entire workflow.
146+
147+
6. If you didn't succeed, create an issue with title starting with "${{ github.workflow }}", summarizing similar information to above.
148+
149+
7. If you encounter any unexpected failures or have questions, add comments to the pull request or issue to seek clarification or assistance.
150+
151+
8. Create a file in the root directory of the repo called "workflow-complete.txt" with the text "Workflow completed successfully".
152+
153+
@include agentics/shared/no-push-to-main.md
154+
155+
@include agentics/shared/tool-refused.md
156+
157+
@include agentics/shared/include-link.md
158+
159+
@include agentics/shared/xpia.md
160+
161+
@include agentics/shared/gh-extra-tools.md
162+
163+
<!-- You can whitelist tools in .github/workflows/build-tools.md file -->
164+
@include? agentics/build-tools.md
165+
166+
<!-- You can customize prompting and tools in .github/workflows/agentics/daily-roadmap-progress.config -->
167+
@include? agentics/daily-roadmap-progress.config.md

workflows/daily-team-status.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ on:
1010
timeout_minutes: 15
1111
permissions:
1212
contents: read
13-
models: read
1413
issues: write # needed to write the output status report to an issue
1514
pull-requests: read
1615
discussions: read

workflows/issue-triage.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ on:
77

88
permissions:
99
contents: read
10-
models: read
1110
issues: write # needed to write comments to the issue
1211
actions: read
1312
checks: read
@@ -40,7 +39,9 @@ timeout_minutes: 10
4039
You're a triage assistant for GitHub issues. Your task is to analyze issue #${{ github.event.issue.number }} and perform some initial triage tasks related to that issue.
4140

4241
1. Select appropriate labels for the issue from the provided list.
42+
4343
2. Retrieve the issue content using the `get_issue` tool. If the issue is obviously spam, or generated by bot, or something else that is not an actual issue to be worked on, then do nothing and exit the workflow.
44+
4445
3. Next, use the GitHub tools to get the issue details
4546

4647
- Fetch the list of labels available in this repository. Use 'gh label list' bash command to fetch the labels. This will give you the labels you can use for triaging issues.

workflows/pr-fix.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ permissions:
1212
statuses: read # needed to read commit statuses
1313
issues: read # needed to create investigation issues
1414
pull-requests: write # needed to comment on PRs if failure is related
15-
models: read # typically needed for AI workflows
1615

1716
tools:
1817
github:

0 commit comments

Comments
 (0)