Automatically generate a Sunday roundup post titled 🔗 My web this week - W<weeknumber> from that week’s existing 🔗 posts in _posts/, and publish it on Sunday at 05:00 PT.
Issue #99 asks for a weekly summary post that compiles the week’s quotes into one Sunday artifact.
The repository already has:
_posts/_snippets/deploy_site.ymlpublish_social.ymlWhat is missing is a content-generation step that creates the weekly roundup before the Sunday publish window.
Add a small generator script, likely scripts/generate_my_web_this_week.py.
Responsibilities:
_posts/ for source posts inside that roundup weekđź”— The script should be deterministic and safe to rerun for the same Sunday.
Supported source shapes in v1:
Unsupported in v1:
wp:quote HTML extractionThat older markup cleanup should stay separate as follow-up issue #100.
This keeps the generator simple and aligned with the repository’s native-markup direction.
For a given target Sunday:
The workflow’s normal scheduled run should happen before Sunday morning publish, so in practice it composes the week that just ended.
The generator should work from the target Sunday date instead of “today” so manual reruns stay predictable.
Write or refresh a post at:
Required front matter:
layout: posttitle: "🔗 My web this week - W<weeknumber>"date: YYYY-MM-DD 12:00:00 +0000The date must follow the repository’s scheduled-post rule so it will publish at 05:00 PT.
The body should use native markdown and stay minimal.
For each included source post:
Linked artifact: followed by the visible source URLgurupanguji.com daily post for that dayThe roundup should not invent new commentary.
Write or refresh:
This repo already treats snippets as mandatory for future-dated posts, so the weekly generator should create both artifacts in the same pass.
The snippet should match the generated post’s front matter and canonical URL conventions.
Add a workflow that runs before the Sunday morning publish window.
Responsibilities:
mainThis should follow the repository’s PR-only automation policy.
Operational constraints:
If the weekly post or snippet already exists for that Sunday:
This makes the job idempotent in a useful way. Reruns should rebuild the roundup instead of treating an existing file as an error.
Failure conditions:
Partial success behavior:
wp:quote markup or missing leading supported contentdocs/superpowers/specs/2026-03-26-my-web-this-week-design.mdscripts/generate_my_web_this_week.pyscripts/validate_posts.py only if the weekly generation path needs explicit validation supportAdd unit coverage for:
gurupanguji.com link generation for each included daily postSome older link posts still use legacy wp:quote markup. Deferring that extraction keeps v1 smaller, but it means the first version may skip some otherwise relevant posts.
If GitHub Actions cannot create or update branches and PRs, the weekly generation workflow will not complete. The workflow should fail loudly with a clear message about the required repository setting or token permission.
Because reruns refresh the target Sunday artifact in place, the generator must use an explicit target Sunday window so manual reruns stay deterministic.
_posts/YYYY-MM-DD-my-web-this-week.md for the target Sunday.đź”— My web this week - W<weeknumber>.YYYY-MM-DD 12:00:00 +0000 front matter for the target Sunday.gurupanguji.com daily post.wp:quote extraction are skipped in v1 and logged as skipped._snippets/ during the same run.main.