← 返回案例库
CUSTOMER STORY · 企业知识库怎么搭

DevNotion:每周日把一周 GitHub 活动写成博客草稿

Turn a week of GitHub activity into a blog post

Tools · 使用工具未注明
Source · 来源原作者 · DEV
Zaowuyun · 可参考能力资产库 + 上下文管理
01

谁在用

Who

一位开发者。

02

遇到什么问题

Challenge

想坚持写开发周记,但每周回顾和写作都很费时。

03

怎么用 AI 解决

Solution
  1. 基于 Mastra 搭建 DevNotion,由每周日的 GitHub Actions 定时运行。
  2. GraphQL 拉取本周提交、PR、issue、评审和语言统计(不用大模型)。
  3. Gemini 写第一人称文章(失败时有确定性兜底),发布器创建 DEV.to 草稿和带表格的 Notion 规划页。
04

结果如何

Results据原作者自述
  • 每周稳定产出一篇草稿,作者编辑后再发布
  • 没有阅读数据;在试过的模型中 Gemini 效果最好;要求原生结构化输出会让每次调用多 20–40 秒

以上内容均由原作者自行报告,未经独立核实,也不代表造物云产品的效果。

05

提示词

Prompt

参考提示词(由 agentusecases.ai 整理为模板,非原帖原文)

中文

搭一个每周运行的流程:拉取我在【GitHub 仓库或用户名】过去 7 天的提交和 PR,先总结变化,再用【语气】起草博客,最后为【Notion 和 DEV】排版,存为 Notion 草稿。

ENGLISH

Build a weekly workflow that pulls my commits and pull requests from [GitHub repo or username] for the past 7 days, has one step summarize the changes, a second draft a blog post in [tone], and a third format it for [Notion and DEV]. Save the output as a draft in Notion. Finished means I can review a draft each week, and the workflow must pause for my approval before publishing anything publicly.