Skip to content

Point create-newsletter at the app-v2 posts and list the previewer - #38

Draft
MaxGhenis wants to merge 1 commit into
mainfrom
automation-docs-current-paths
Draft

MaxGhenis wants to merge 1 commit into
mainfrom
automation-docs-current-paths

Conversation

@MaxGhenis

Copy link
Copy Markdown
Contributor

Follow-up to #33, which listed these two stale references as out of scope.

Changes

  • .claude/commands/create-newsletter.md looked for posts in ../policyengine-app/src/posts/articles/, and PolicyEngine has archived that repo. The command now points to ../policyengine-app-v2/app/src/data/posts/articles/. It also says how a --posts slug maps to a file, because a lookup for <slug>.md alone would miss some posts: 14 of the 206 are notebooks, and two file names differ from their slugs (repealing_the_two_child_limit.md and Benefit-uprating-25.md).
  • .claude/README.md: the file tree now includes newsletter-previewer.md and preview-newsletter.md.
  • CLAUDE.md: the "Claude Code Automations" lists now include newsletter-previewer and /preview-newsletter.

No file in editions/ changes.

Verification

All app-v2 facts come from its main at d2ab11f.

  • app/src/data/posts/articles is a directory with 213 entries. website/src/data/posts/articles is a symlink to it (../../../../app/src/data/posts/articles), so the website reads the same files.
  • website/src/data/posts/postTransformers.ts builds each slug with filenameWithoutExt.toLowerCase().replace(/_/g, "-").
  • posts.json lists 206 posts: 192 .md and 14 .ipynb.
  • A script compared the eight files in .claude/agents/ and .claude/commands/ with the README tree and the CLAUDE.md lists, and found each one named in both.
  • bash scripts/lint-newsletters.sh passes all editions.

🤖 Generated with Claude Code

The create-newsletter command looked for posts in policyengine-app, which
PolicyEngine has archived. It now reads them from policyengine-app-v2 and
says how a slug maps to a file name, because 14 of the 206 posts are
notebooks and two file names differ from their slugs.

The file tree in .claude/README.md and the automation lists in CLAUDE.md
left out the newsletter-previewer agent and the /preview-newsletter
command. Both now name them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant