Skip to content
cccskills
FreePublished on GitHub

add-a-blog-post

Creates a new blog post document in the Sanity studio. Use when the user wants to write a blog post, publish an article, or schedule a future post.

The English summary is being prepared. Showing the original description.

See how to install

Files included (1)

  • SKILL.md2.5 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Add a Blog Post

Use this skill when the user wants to add a new post document. The post will appear on /blog (if published) and at /blog/[slug] for the public.

When to use this skill

  • Use this when the user says "write a blog post", "publish a post", "new article", "draft a post", or "I have a blog idea".
  • Use this when the user wants to schedule a post for the future.

Workflow

  1. Direct the user to Content → Pages → Blog → Posts in the studio.
  2. Click Create new.
  3. Fill the form with the following fields:
    • Title — required. Used in the slug.
    • Slug — auto-generated, lowercase + hyphens only.
    • Excerpt — 40-280 chars. Used in the blog card and meta description.
    • Body — rich text (Portable Text). Use the editor's headings, lists, and inline marks.
    • Main image — required for the blog card. Add alt text (4+ chars).
    • Published at — date the post went live. Defaults to now.
    • Publish at — optional scheduled publish time. Empty = publishes immediately.
    • Published — toggle to true when ready. The Stale badge will turn on if not edited in 30+ days.
    • Featured — toggles the post to the top of the blog list.
    • Author — reference to an Author document.
    • Categories — array of references to Category documents.
    • Tags — array of free-text strings.
  4. Reading time is auto-computed from the body word count. The user will see it as a read-only field once they have any body content.
  5. Open the Presentation tool, select this post, and confirm the blog post page renders.
  6. Publish — click Publish in the top-right. Use Publish & Revalidate if the marketing site's /blog and /blog/[slug] should refresh.

Scheduling a post

Set publishAt to a future datetime and published = false. The scheduled-publish Sanity Function will flip the toggle at that time.

Common mistakes

  • Setting published = true while still drafting — the post will show on /blog immediately.
  • Missing alt text on the main image (the SEO inspector will flag it).
  • Using the same slug as an existing post — the slug validator will block it.

Related

  • schedule-a-blog-post
  • use-ai-assist (for writing help)
  • use-status-badges
  • publish-and-revalidate

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Audit and fix accessibility issues across the portfolio to ensure WCAG 2.1 AA compliance.

The English summary is being prepared. Showing the original description.

PP-Namias/Portfolio2Updated Oct 23, 2026

Creates a new certification document in the Sanity studio. Use when the user wants to add a credential, certificate, or professional accreditation to the Certifications collection.

The English summary is being prepared. Showing the original description.

PP-Namias/Portfolio2Updated Oct 23, 2026

Adds a new skill MD file to the studio's skills collection. Use when the user wants to author a new step-by-step recipe for the studio's in-app Skills tool or the .agents mirror.

The English summary is being prepared. Showing the original description.

PP-Namias/Portfolio2Updated Oct 23, 2026

Creates a new project document in the Sanity studio. Use when the user wants to add a new portfolio project, a case study, or a work sample to the Projects collection.

The English summary is being prepared. Showing the original description.

PP-Namias/Portfolio2Updated Oct 23, 2026

Creates a new experience document in the Sanity studio. Use when the user wants to add a job, role, internship, or work history entry to the Experience collection.

The English summary is being prepared. Showing the original description.

PP-Namias/Portfolio2Updated Oct 23, 2026

Configure and manage Umami analytics tracking for the portfolio.

The English summary is being prepared. Showing the original description.

PP-Namias/Portfolio2Updated Oct 23, 2026

See all skills by PP-Namias

Report a problem with this skill