Reactivate weekly/daily content-creation-engine delivery to Peter/Ellie/John - #1
Draft
Graehamwatts wants to merge 1 commit into
Draft
Reactivate weekly/daily content-creation-engine delivery to Peter/Ellie/John#1Graehamwatts wants to merge 1 commit into
Graehamwatts wants to merge 1 commit into
Conversation
…ie/John The documented delivery mechanism for the weekly production calendar and daily focus emails (content-calendar/SKILL.md's "Email Delivery" section) was a Cowork scheduled task, daily-content-focus-email, that was never actually created in scheduled-tasks/ — only pcfs-cma-autobuild-weekly existed. Meanwhile content-creation-engine/SKILL.md and production-hardening.md still pointed at an older N8N workflow (REVqxrlAb3CHJumM) that content-calendar's SKILL.md says is retired. Net effect: no weekly calendar has ever shipped to online-content/dashboards/weekly-calendars/, and Peter/Ellie/John have not been receiving scripts. - Add scheduled-tasks/daily-content-focus-email/SKILL.md: Monday builds and sends the weekly plan (content-calendar -> weekly_overlap_check.py -> weekly-calendar-builder.py -> verify_output_brand.py fail-closed gate -> publish -> update_topic_history.py -> send); Tue-Fri sends a short daily focus email pulled from the live calendar. Sends via switchy-engine/scripts/send_email.py (SMTP), not the Gmail MCP (drafts only) and not N8N. - Register the task in scheduled-tasks/README.md. - Point content-creation-engine/SKILL.md and production-hardening.md at the new scheduled task instead of the retired N8N workflow, so the docs agree with content-calendar/SKILL.md's locked delivery spec. Verified as part of this change: all scripts the new task calls (weekly-calendar-builder.py, weekly_overlap_check.py, update_topic_history.py, verify_output_brand.py, send_email.py) parse cleanly; topic-history.json and identity.json are valid; the brand-identity tripwire passes. Still needs a manual step on Graeham's Mac Studio: rsync scheduled-tasks/ into ~/Documents/Claude/Scheduled/ and register/enable the task in Cowork at weekdays 7:30 AM PT (this session has no access to that machine or to the Gmail app-password file the send script reads). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Hfq5pC2EYzGY3i3ZiVV6pe
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Root cause of "Peter and Ellie aren't getting the weekly/daily scripts": the delivery mechanism
content-calendar/SKILL.mddocuments (a Cowork scheduled task,daily-content-focus-email) was never actually created — onlypcfs-cma-autobuild-weeklyexisted underscheduled-tasks/. Meanwhilecontent-creation-engine/SKILL.mdandproduction-hardening.mdstill pointed at an older N8N workflow (REVqxrlAb3CHJumM) thatcontent-calendar/SKILL.md's locked "Email Delivery" section says is retired. Net effect: no weekly calendar has ever shipped toonline-content/dashboards/weekly-calendars/, and the two skills disagreed about which automation was canonical.scheduled-tasks/daily-content-focus-email/SKILL.md: Monday builds and sends the weekly plan (content-calendar→weekly_overlap_check.py→weekly-calendar-builder.py→verify_output_brand.pyfail-closed brand/DRE gate → publish →update_topic_history.py→ send); Tue–Fri sends a short daily-focus email pulled from the live calendar. Sends viaswitchy-engine/scripts/send_email.py(SMTP) — not the Gmail MCP (drafts only, won't be seen) and not N8N.scheduled-tasks/README.md.content-creation-engine/SKILL.mdandproduction-hardening.mdat the new scheduled task instead of the retired N8N workflow, so all three docs agree.Functioning analysis (what I verified)
weekly-calendar-builder.py,weekly_overlap_check.py,update_topic_history.py,verify_output_brand.py,send_email.py.topic-history.jsonandidentity.jsonare valid JSON.python3 scripts/verify_brand_identity.pypasses (zero blocked DRE values in the repo).send_email.py/content-calendaruseDocuments/Claude/Skills/gmail-app-password.txt, butpast-client-follow-up-system,newsletter-generator, andfarming-postcard/scripts/send_options_email.pyreferenceDocuments/Skills LLMS/Claude/Skills/gmail-app-password.txt. Doesn't block this task (it callssend_email.pydirectly, which has the correct path), but worth a follow-up.Manual step still required (outside this session's reach)
This session runs in an isolated cloud container with no access to Graeham's Mac Studio or his Gmail app-password file. To actually go live:
cd ~/Documents/Claude/Skills && git pull origin main && rsync -a scheduled-tasks/ ~/Documents/Claude/Scheduled/daily-content-focus-emailin Cowork's scheduler at weekdays 7:30 AM PT (same placepcfs-cma-autobuild-weeklyis already registered).Documents/Claude/Skills/gmail-app-password.txtexists there —send_email.pyfails closed with a clear error if it's missing.Test plan
python3 scripts/verify_brand_identity.pypassesast.parse)topic-history.json,identity.json) validGenerated by Claude Code