Sanity Content Auditor

Audit Sanity content for missing fields, broken references, and image issues.

2|Updated Apr 9, 2025
One-click install
npx skills add https://github.com/PP-Namias/Portfolio --skill sanity-content-auditor
Or copy as Structured Prompt for Agentโ–ผ
Please help me install this Agent Skill.
Skill: Sanity Content Auditor
Source: https://github.com/PP-Namias/Portfolio/tree/main/.agents/skills/sanity-content-audit
Command: npx skills add https://github.com/PP-Namias/Portfolio --skill sanity-content-auditor

SYSTEM DOCUMENTATION & REQUIREMENTS

๐Ÿ’ก This Skill requires sanity, node, python, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the auditing of Sanity content, identifying and reporting on issues such as missing fields, broken references, and image problems, saving time and ensuring content quality.

Core Features & Use Cases

  • Comprehensive Auditing: Checks for missing required fields, orphaned references, image issues, date validation, URL validation, duplicate content, content gaps, and size issues.
  • Customizable Output: Provides a JSON output format detailing the total number of documents, issues found, and their severity levels.
  • Integration Friendly: Can be easily integrated into CI/CD pipelines for continuous content quality checks.

Quick Start

Run the 'Sanity Content Auditor' to perform an audit on your Sanity content: node scripts/sanity-content-audit.mjs

Frequently Asked Questions about Sanity Content Auditor

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

FAQPage Schema
How do I automate Sanity content auditing to find broken references and missing fields?โ–ผ

Automate Sanity content auditing by running Python scripts that check documents, references, and assets for missing fields, broken references, and image issues. It requires Sanity API access and Node to execute the audit script.

Can I run Sanity content quality checks as part of my CI/CD pipeline?โ–ผ

Yes, Sanity content quality checks can be integrated into CI/CD pipelines for continuous monitoring. The automated audit outputs a JSON report detailing document totals, issues found, and severity levels for pipeline evaluation.

What specific content issues does an automated Sanity audit detect?โ–ผ

An automated Sanity audit detects missing required fields, orphaned references, image problems, date validation errors, invalid URLs, duplicate content, content gaps, and size issues to ensure content integrity and adherence to standards.

Do I need Python and Node to perform automated content audits on Sanity?โ–ผ

Yes, you need both Python and Node installed, along with Sanity API access. Python scripts execute the auditing logic while Node is used to run the sanity-content-audit script that initiates the process.

How does a Sanity content auditor report quality assurance issues?โ–ผ

A Sanity content auditor reports quality assurance issues using a customizable JSON output format. This output details the total number of documents checked, specific issues found, and their corresponding severity levels.

Best way to validate Sanity content integrity and consistency at scale?โ–ผ

The best way to validate Sanity content integrity at scale is automated auditing via Python scripts. It performs comprehensive checks on documents, references, and assets to identify content gaps, duplicates, and broken references.