AugmentClaude

Weekly Newsletter Publisher

Send weekly newsletters to Payload CMS as draft articles using API authentication.

Installation

  1. Make sure Claude is on your device and in your terminal.

    Skills load from ~/.claude/skills/ when Claude Code starts up — so you need it on your machine first. If you don't have it yet, install it once with the command below, then run claude in any terminal to verify.

    One-time setup
    npm i -g @anthropic-ai/claude-code

    Already have it? Skip ahead.

  2. Paste into Claude Code or into your terminal.

    This copies the whole skill folder into ~/.claude/skills/publish-weekly-miantiao-me/ — the SKILL.md plus any scripts, reference docs, or templates the skill ships with. Safe default: works for every skill.

    Faster alternative (instruction-only skills)

    Skips the clone and grabs only the SKILL.md file. Don't use this if the skill ships Python scripts, reference markdowns, or asset templates — they won't be downloaded and the skill will fail when it tries to load them.

    Quick install (SKILL.md only)
    Sign up to copy
  3. Restart Claude Code.

    Quit and reopen Claude Code (or any other agent that loads from ~/.claude/skills/). New skills are picked up on startup.

  4. Just ask Claude.

    Skills auto-activate when your request matches the skill's description — no slash command needed. Trigger phrases live in the skill's own frontmatter; you can read them in the “What this skill does” section above.

Prefer to read the source first? Open on GitHub.

When Claude uses it

Use when publishing your weekly newsletter — writes the issue into Payload CMS as a draft article through its REST API, authenticating with your users API key.

What this skill does

This skill publishes weekly newsletters to Payload CMS as draft articles through its REST API. It reads a local Markdown file, extracts metadata, and either creates a new draft article or updates an existing one in the weekly collection, keeping the status locked to "draft" for editorial review.

What it does

  • Reads a Markdown file from your working directory and publishes it to Payload CMS's weekly collection as a draft article
  • Automatically checks if an article with the same issueNumber already exists; updates it if found, or creates a new one if not
  • Maps your input data (week ID, title, filename, date, and optional summary, tags, links) directly to Payload CMS fields
  • Extracts or generates a summary from the article content if one isn't provided
  • Converts tag strings into Payload's expected array format and preserves link objects (label and URL pairs)
  • Saves the API response to published/{week_id}.json for audit and recovery purposes
  • Reports detailed error information (status code, response body, request URL) if the API call fails, without exposing your API key

How to use it

Invoke the skill with the /weekly command, providing these parameters: week_id (e.g. Y26W12), title, filename (the Markdown file to read), and current_date (ISO date string). Optionally include summary, tags (string array), and links (array of objects with label and url fields). The skill authenticates using the PAYLOAD_API_KEY environment variable and posts to the Payload CMS REST endpoint at {PAYLOAD_BASE_URL}/api/weekly.

Related skills