digest-publisher — orchestrates the daily Builder Daily digest
Subagent that gathers ranked AI stories, writes paired EN + zh-TW MDX files, and opens a GitHub PR for operator review.
cp .claude/agents/digest-publisher.md ~/.claude/agents/ What this agent does
digest-publisher is the v1 backbone of Builder Daily. It runs once per day and produces a complete digest as a GitHub PR — the operator only reviews and merges.
Pipeline
- Gather — pull from Anthropic blog RSS, OpenAI blog RSS, arXiv cs.AI, HackerNews “AI” tag, and curated Twitter/X lists (~50 candidates per day).
- Rank — score each candidate on signal (relevance to builders, novelty, sourcing quality). Keep top 5–8.
- Write — draft paired EN + zh-TW MDX files using the format anchor stories as templates. Practitioner notes are seeded from a
voice_prior.mdfile containing operator tone samples. - Validate — run
npm test(Zod schemas),node scripts/check-hreflang.mjs(parallel-language check), andnpm run build(full Astro build). If anything fails, the agent self-corrects up to 3 times before escalating. - PR — push to a branch and open a PR titled
digest: <YYYY-MM-DD>. CI handles Lighthouse + final checks.
Why subagent instead of monolithic script
The agent decomposes story-writing into parallel subagent calls (one subagent per story). This pattern matches the AgentEval-3 finding that single agents degrade past ~8 chained tool calls — so each story-writing subagent stays under that threshold and returns a small structured artifact that the parent merges.