beehiiv
Beehiiv API v2 skill for managing newsletter posts and drafts. All commands go through a single entry point: node <base_directory>/beehiiv.js <command> [flags]. Each command has its own doc file with the full reference for flags and behavior.
[!SETUP] Before first use, check whether <base_directory>/node_modules exists. If it does NOT exist, run npm install --prefix <base_directory>. Then check whether <base_directory>/dist/beehiiv.js exists. If it does NOT exist, run npm run build --prefix <base_directory>. NEVER cd into the skill directory; use --prefix to target it without changing your working directory.
[!COMMANDS]
Reading:
a) publications — list all publications associated with the API key. @docs/publications.md.
b) publication — get a single publication's details and stats. @docs/publication.md.
c) posts — list posts with filters (status, tags, authors, audience, platform). This is the primary search mechanism. @docs/posts.md.
d) get — retrieve a single post by ID with full HTML content. @docs/get.md.
Writing:
e) draft — create a draft post from a title + optional .md/.html file. Enterprise-only endpoint (beta). @docs/draft.md.
Utility:
f) templates — list available post templates. @docs/templates.md.
[!CREDENTIALS] One variable is REQUIRED: BEEHIIV_API_KEY. One variable is OPTIONAL: BEEHIIV_PUBLICATION_ID (default publication — if set, commands use it automatically; if not, pass --pub-id <id>). They resolve from the first source that provides them: a) .env.local in cwd, b) .env in cwd, c) .env.local in the plugin directory, d) .env in the plugin directory, e) environment variables. Obtain the API key from the Beehiiv dashboard (Settings > Integrations > API).
More from alberduris/skills
x-twitter
Interact with X (Twitter) API v2. Post tweets, search, engage, moderate, and analyze — all from your AI agent. Full 36-command skill for Twitter/X automation.
107second-opinion
Consult peer LLM for alternative perspectives when you need second opinion, peer review, or fresh take on technical decisions; useful for validating approaches or exploring alternative solutions
11langfuse-traces
Query Langfuse traces for debugging LLM calls, analyzing token usage, and investigating workflow executions. Use when debugging AI/LLM behavior, checking trace data, or analyzing observability metrics.
11newspaper-explainer
Generate self-contained HTML broadsheet newspapers to explain any subject worth reporting — project status, reviews, dispatches, reports, or anything else.
11telegram-notify
Send notifications via Telegram. Use when the user asks to notify, alert, message, or ping — or when a long-running task completes and the user previously asked to be notified. Can also schedule messages for later delivery.
4slack-reminders
Schedule Slack reminders. Use when the user asks to schedule, remind, or send a Slack message at a specific time.
1