You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/weekly-blog-post-writer.md
+26-7Lines changed: 26 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -113,29 +113,48 @@ Prioritize by user impact and interestingness.
113
113
114
114
Every blog post must include an **Agent of the Week** spotlight that celebrates one of the active agentic workflows in the repository.
115
115
116
-
#### 5-1: Load the Featured Workflows History
116
+
#### 5-1: Load Featured Workflows from Published Blog Posts (Ground Truth)
117
+
118
+
Use the published blog posts in `docs/src/content/docs/blog/` as the source of truth for past Agent of the Week picks. Extract previously featured workflow filenames from the "View the workflow on GitHub" links:
| sed -E 's#^blob/main/\.github/workflows/##; s#\.md$##' \
123
+
| sort -u > /tmp/gh-aw/featured-from-blog.txt
124
+
125
+
if [ -s /tmp/gh-aw/featured-from-blog.txt ];then
126
+
cat /tmp/gh-aw/featured-from-blog.txt
127
+
else
128
+
echo"(no featured workflows found in blog posts yet)"
129
+
fi
130
+
```
131
+
132
+
If this list is non-empty, treat it as authoritative for duplicate prevention.
133
+
134
+
#### 5-2: Load the Wiki Memory History (Fallback)
117
135
118
136
Read the wiki memory to find the list of workflows already featured as Agent of the Week. The wiki file is at `/tmp/gh-aw/repo-memory/wiki/agent-of-the-week.md`. If it doesn't exist yet, start fresh — every workflow is eligible.
119
137
120
138
```bash
121
139
cat /tmp/gh-aw/repo-memory/wiki/agent-of-the-week.md 2>/dev/null ||echo"(no history yet)"
122
140
```
123
141
124
-
#### 5-2: List All Active Workflows
142
+
#### 5-3: List All Active Workflows
125
143
126
144
Use the `agentic-workflows` MCP `list` tool to get all workflows in the repository:
127
145
128
146
**Tool**: `list`
129
147
**Parameters**: `{}`
130
148
131
149
From the list, exclude:
132
-
- Workflows already featured in the wiki history
150
+
- Workflows already featured in published blog posts (from `/tmp/gh-aw/featured-from-blog.txt`)
151
+
- Workflows already featured in the wiki history (as fallback memory)
133
152
- Test workflows (names starting with `test-`)
134
153
- The `weekly-blog-post-writer` itself
135
154
136
155
If all workflows have been featured, reset and start again from the beginning (oldest featured first).
137
156
138
-
#### 5-3: Query Recent Logs for the Chosen Workflow
157
+
#### 5-4: Query Recent Logs for the Chosen Workflow
139
158
140
159
Pick the workflow that has been active most recently and **hasn't been featured yet** (or was featured longest ago). To understand what it actually does in practice, use the `agentic-workflows` MCP `logs` tool to fetch its recent run logs:
141
160
@@ -155,7 +174,7 @@ Read the logs to understand:
155
174
- Typical inputs and outputs
156
175
- How often it runs and whether it's been busy lately
157
176
158
-
#### 5-4: Write the Agent of the Week Section
177
+
#### 5-5: Write the Agent of the Week Section
159
178
160
179
Write a fun, engaging spotlight section with these elements:
161
180
@@ -184,7 +203,7 @@ Write a fun, engaging spotlight section with these elements:
184
203
185
204
Where `{workflow-filename}` is the workflow's filename without the `.md` extension (e.g., `auto-triage-issues` for `auto-triage-issues.md`).
186
205
187
-
#### 5-5: Update the Wiki History
206
+
#### 5-6: Update the Wiki History
188
207
189
208
After choosing the workflow, update the wiki file at `/tmp/gh-aw/repo-memory/wiki/agent-of-the-week.md` using the `edit` tool. Append an entry with today's date and the chosen workflow name:
190
209
@@ -377,4 +396,4 @@ You have successfully completed this task when:
377
396
- ✅ All version/PR/commit references link to GitHub URLs
378
397
- ✅ The Agent of the Week section is present with real log-based anecdotes
379
398
- ✅ A pull request has been opened with the `blog` label, OR
380
-
- ✅ A `noop` call explains why no blog post was needed this week
399
+
- ✅ A `noop` call explains why no blog post was needed this week
0 commit comments