/buttondown-mgmt:cli-referencefrom buttondown-mgmt
Reference and lightweight wrapper for the official Buttondown CLI (github.com/buttondown/cli). Use when the user prefers CLI operations over raw API calls — sending drafts, listing subscribers, managing emails from the terminal. Resolves the API key for the active newsletter.
Ships in buttondown-mgmt. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Upstream: https://github.com/buttondown/cli
command -v buttondown >/dev/null && buttondown --version
If not installed, point the user at the upstream README for install instructions (it changes — don't hardcode here).
The CLI reads the API key from the env var documented upstream. Pick the right newsletter, resolve its api_key_ref, then export:
DATA_ROOT="${CLAUDE_USER_DATA:-${XDG_DATA_HOME:-$HOME/.local/share}/claude-plugins}/buttondown-mgmt"
SLUG="<newsletter-slug>" # or .default==true entry
REF=$(jq -r ".newsletters.\"$SLUG\".api_key_ref" "$DATA_ROOT/config.json")
export BUTTONDOWN_API_KEY="$(op read "$REF")"
Always print which newsletter the env was set for before running CLI commands so the user can catch a wrong-newsletter mistake.
Before constructing any CLI invocation, consult the cached docs (docs-lookup skill) for current command syntax — the CLI evolves.
Common operations:
user_dirWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
11 skills in this plugin
/add-newsletterRegister an additional Buttondown newsletter alongside any already configured. Captures slug, display name, API key reference, user directory, and optional default flag. Use when the user has a new newsletter to manage from the same Claude Code setup./add-templateAdd a reusable email template to the local template store. Templates are markdown files with YAML frontmatter (subject, audience, scope, tags) used as starting points for new emails. Scope is either `global` (any newsletter) or a specific newsletter slug./docs-lookupLook up Buttondown documentation in the local cache before answering API questions or making API calls. Use grep/read against $CLAUDE_USER_DATA/buttondown-mgmt/cache/docs to ground responses in the canonical docs rather than training-data recall./list-emailsList recent Buttondown emails (drafts, scheduled, sent) for a specific newsletter via the Buttondown API. Grounds the request shape in the locally cached docs before calling./list-newslettersList all Buttondown newsletters registered with the plugin — slug, display name, user directory, and which one is the default. Read-only; use when the user asks "which newsletters are configured" or to look up a slug before invoking another skill./list-templatesList all email templates in the local template store — name, subject, scope (global or newsletter slug), tags, last updated. Read-only.buttondown-mgmt@danielrosehill is listed by danielrosehill/claude-code-plugins — review the source before installing
npx claudepluginhub danielrosehill/claude-code-plugins --plugin buttondown-mgmt