sanity-publisher

Convert polished blog drafts into schema-compliant Sanity posts with SEO metadata.

Updated Dec 3, 2025
One-click install
npx skills add https://github.com/Zura1555/agents --skill sanity-publisher
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sanity-publisher
Source: https://github.com/Zura1555/agents/tree/main/.claude/skills/sanity-publisher
Command: npx skills add https://github.com/Zura1555/agents --skill sanity-publisher

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires js-yaml.

What problem does it solve?

The Sanity Publisher automates formatting and publishing of blog content to Sanity CMS, handling both markdown output and API publishing to streamline editorial workflows and ensure consistent metadata.

Core Features & Use Cases

  • Dual publishing modes (markdown or API) to fit different publication workflows.
  • Image handling and SEO metadata integration to ensure ready-to-publish posts.
  • Use Case: When finalizing a blog draft, feed polished content and SEO data to generate a Sanity-ready post with all fields populated automatically.

Quick Start

Publish a ready-to-post draft to Sanity by supplying the polished content, SEO data, and author details.

Frequently Asked Questions about sanity-publisher

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

FAQPage Schema
How do I publish markdown blog drafts to Sanity CMS automatically?

To publish markdown blog drafts to Sanity CMS, you can use an automation tool that processes polished content and metadata into schema-compliant posts. The Sanity Publisher handles this by formatting drafts and applying SEO, Open Graph, and social metadata automatically.

What do I need to prepare before publishing content to Sanity via API?

Before publishing content to Sanity via API, you need valid author and category references, Sanity API credentials, and properly handled images per the image manifest workflow. Your polished blog draft and SEO data must also be ready for processing.

Can I generate SEO and Open Graph metadata when publishing posts to Sanity?

Yes, you can generate SEO and Open Graph metadata when publishing posts to Sanity. The publishing process automatically populates these metadata fields along with social metadata, ensuring your published content is fully optimized for search engines and social sharing.

What is the best way to format blog content for deterministic schema-compliant Sanity posts?

The best way to format blog content for deterministic schema-compliant Sanity posts is to use a dedicated publishing tool that processes polished drafts into structured data. This ensures all fields are populated correctly, maintaining strict compliance with your CMS schema requirements.

Does the Sanity publishing workflow support both markdown output and direct API publishing?

Yes, the Sanity publishing workflow supports both markdown output and direct API publishing. These dual publishing modes allow you to choose between generating formatted markdown files or pushing content directly to Sanity CMS, fitting different editorial workflow requirements.

Why does publishing to Sanity require valid author and category references?

Publishing to Sanity requires valid author and category references because the system generates deterministic schema-compliant posts. These references ensure relational integrity within your CMS, linking each published post to existing author profiles and taxonomy categories without breaking schema validation.