hashnode

Create Hashnode blog drafts from Markdown via GraphQL with explicit publish confirmation.

Updated Dec 9, 2023
One-click install
npx skills add https://github.com/gauravprwl14/dev-environment-setup --skill hashnode
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hashnode
Source: https://github.com/gauravprwl14/dev-environment-setup/tree/main/skills/hashnode
Command: npx skills add https://github.com/gauravprwl14/dev-environment-setup --skill hashnode

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires dotenv, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Publish blog posts to Hashnode via a GraphQL API using a safe two-step workflow that drafts first and requires explicit publishing.

Core Features & Use Cases

  • Draft-first publishing: the system creates drafts by default and never auto-publishes, enabling safer automation.
  • Rich content support: handles full Markdown content including images, code blocks, and tables with tags, series, and SEO metadata.
  • Targeted use cases: ideal for teams that want auditable publish workflows, content calendars, and cross-posting with canonical URLs.

Quick Start

To begin, create a draft from your Markdown article using node create-draft.js with your file path.

Frequently Asked Questions about hashnode

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Hashnode blog publishing safely without auto-publishing?

You can automate Hashnode blog publishing safely by using a GraphQL-based draft-first workflow. This approach creates drafts by default and requires explicit user confirmation to publish, ensuring content is reviewed before going live.

Does Hashnode GraphQL API support markdown content with tags and SEO metadata?

Yes, the Hashnode GraphQL API supports full markdown content including images, code blocks, and tables. It also handles tags, series, and SEO metadata to ensure comprehensive content management for your posts.

What is the best way to manage a Hashnode content calendar with auditable workflows?

The best way to manage a Hashnode content calendar is using a draft-first publishing automation that includes safety checks and action logging. This ensures an auditable workflow for teams tracking content publication statuses.

How do I create a Hashnode draft from a markdown file?

To create a Hashnode draft from a markdown file, execute the create-draft.js script with your file path. This initializes the draft-first workflow, preparing your article for review prior to explicit publishing.

Can I cross-post articles to Hashnode with canonical URLs?

Yes, you can cross-post articles to Hashnode with canonical URLs. The publishing automation supports SEO metadata, allowing you to specify canonical URLs and manage cross-posted content safely within its draft-first workflow.

Do I need dotenv to automate Hashnode publishing?

Yes, you need dotenv to manage environment variables when automating Hashnode publishing. It securely loads your Hashnode API tokens and configuration, which are required for authenticating GraphQL API requests.