beehiiv
Manage your Beehiiv newsletter — list and read posts, create drafts from Markdown/HTML files. 6-command skill for Beehiiv newsletter automation.
What this skill does
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). [!PUB-ID] All commands except `publications` require a publication ID. If `BEEHIIV_PUBLICATION_ID` is set, it is used by default. Any command can override it with `--pub-id <id>`. To discover your publication ID, run `publications` first. [!API-COVERAGE] Covered resources: - Publications: list, get (commands: publications, publication) - Posts: list, get single, create as draft (commands: posts, get, draft) - PostTemplates: list (command: templates) NOT covered (future TODO): - Subscriptions: list, create, get by email/id, update, delete, bulk actions, JWT token, tags - Authors: list, get single - Automations: list, get single, journeys list/get - BulkSubscriptions: create, updates status - ConditionSets: list, get single - CustomFields: list, get, create, update, delete - EmailBlasts: list, get single - Engagements: list - Polls: list, get single, responses - PostAggregateStats: get - ReferralProgram: get - Segments: list, get, recalculate, members, results - Tiers: list, get single - Webhooks: list, get, create, update, delete, test - AdvertisementOpportunities: list
Related in Web Dev
generating-lwc-components
IncludedLightning Web Components with PICKLES methodology and 165-point scoring. Use this skill when the user creates or edits LWC components, builds wire service patterns, or writes Jest tests for LWC. TRIGGER when: user creates/edits LWC components, touches lwc/**/*.js, .html, .css, .js-meta.xml files, or asks about wire service, SLDS, or Jest LWC tests. DO NOT TRIGGER when: Apex classes (use generating-apex), Aura components, or Visualforce.
tanstack-query
IncludedManage server state in React with TanStack Query v5. Set up queries with useQuery, mutations with useMutation, configure QueryClient caching strategies, implement optimistic updates, and handle infinite scroll with useInfiniteQuery. Use when: setting up data fetching in React projects, migrating from v4 to v5, or fixing object syntax required errors, query callbacks removed issues, cacheTime renamed to gcTime, isPending vs isLoading confusion, keepPreviousData removed problems.
document-processor-api
IncludedProcess documents with Nutrient DWS. Use when the user wants to generate PDFs from HTML or URLs, convert Office/images/PDFs, assemble or split packets, OCR scans, extract text/tables/key-value pairs, redact PII, watermark, sign, fill forms, optimize PDFs, or produce compliance outputs like PDF/A or PDF/UA. Triggers include convert to PDF, merge these PDFs, OCR this scan, extract tables, redact PII, sign this PDF, make this PDF/A, or linearize for web delivery.
nutrient-document-processing
IncludedProcess documents with Nutrient DWS. Use when the user wants to generate PDFs from HTML or URLs, convert Office/images/PDFs, assemble or split packets, OCR scans, extract text/tables/key-value pairs, redact PII, watermark, sign, fill forms, optimize PDFs, or produce compliance outputs like PDF/A or PDF/UA. Triggers include convert to PDF, merge these PDFs, OCR this scan, extract tables, redact PII, sign this PDF, make this PDF/A, or linearize for web delivery.
tanstack-query
IncludedManage server state in React with TanStack Query v5. Covers useMutationState, simplified optimistic updates, throwOnError, network mode (offline/PWA), and infiniteQueryOptions. Use when setting up data fetching, fixing v4→v5 migration errors (object syntax, gcTime, isPending, keepPreviousData), or debugging SSR/hydration issues with streaming server components.
accelint-nextjs-best-practices
IncludedNext.js performance optimization and best practices. Use when writing Next.js code (App Router or Pages Router); implementing Server Components, Server Actions, or API routes; optimizing RSC serialization, data fetching, or server-side rendering; reviewing Next.js code for performance issues; fixing authentication in Server Actions; or implementing Suspense boundaries, parallel data fetching, or request deduplication.