← Back to Skills Marketplace
squidpunch

Sanity Cms

by David Larrabee · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ⚠ suspicious
108
Downloads
0
Stars
0
Active Installs
3
Versions
Install in OpenClaw
/install sanity-cms
Description
Publish content to any Sanity CMS instance. Use when asked to create a Sanity draft, push a document to Sanity, upload an image asset to Sanity, or convert c...
Usage Guidance
What to check before installing/using this skill: - Metadata mismatch: the registry entry lists no required env vars or binaries, but SKILL.md and scripts require SANITY_PROJECT_ID and a write-enabled SANITY_API_TOKEN and expect curl, bash, and python3. Treat the registry metadata as incomplete and verify requirements before running. - Token scope: only provide a SANITY_API_TOKEN with the minimum necessary privileges (prefer a token limited to a staging dataset or Editor role scoped to specific datasets). Avoid supplying a global/owner token. - Supply env vars transiently: prefer giving the API token only for a single invocation rather than storing it long-term in the agent environment or persistent config. - Inspect the script yourself: the included scripts/publish_draft.sh is short and readable; verify it meets your expectations (it posts to https://<project>.api.sanity.io and uses your token only for those calls). - Workspace/file access: the skill can read schema files from your workspace or fetch remote schema URLs; do not let it read sensitive files you don't intend to expose. - Test safely: try on a staging dataset (SANITY_DATASET=staging) or with a token that cannot delete or manage production data first. - Trust and provenance: the skill has no homepage and an unknown source; if you do not trust the publisher, avoid giving write credentials. If you need autonomous agent invocation combined with write access, be especially cautious. If you want, I can (1) list the exact lines where the script requires env vars and external tools, (2) produce a minimal checklist to run the script safely, or (3) suggest a hardened invocation example that uses least privilege and staging.
Capability Analysis
Type: OpenClaw Skill Name: sanity-cms Version: 1.0.2 The skill bundle provides legitimate functionality for interacting with Sanity CMS, allowing an agent to upload images and publish documents. The shell script 'scripts/publish_draft.sh' and the instructions in 'SKILL.md' are well-structured and align perfectly with the stated purpose of content management. While the script uses shell variable interpolation within a Python heredoc (a potential injection vulnerability if file paths are maliciously crafted), there is no evidence of intentional malice, data exfiltration, or unauthorized access. All network activity is directed to the official Sanity API (sanity.io).
Capability Assessment
Purpose & Capability
Name, description, SKILL.md, references, and the shell script are coherent: the skill uploads images and pushes documents to a Sanity Content API using a project ID and write token — behavior matches stated purpose.
Instruction Scope
SKILL.md instructs the agent to read schema files from the workspace, accept pasted schema, fetch remote URLs via web_fetch, or introspect the dataset via Sanity API. These actions are reasonable for generating compatible documents but do allow the skill to read workspace files and fetch remote content — verify you want those accesses.
Install Mechanism
No install spec (instruction-only plus a bundled script). This is low-install risk. Note: the bundled script will be executed by bash and invokes curl and python3 at runtime; the registry did not declare these as required binaries.
Credentials
SKILL.md and the script require SANITY_PROJECT_ID and a write-enabled SANITY_API_TOKEN (sensitive). However the registry metadata lists no required env vars. Also the script relies on curl and python3 though required binaries are not declared. Asking for a write token is proportional to the task, but the metadata omission is an incoherence and increases the chance a user will accidentally provide more persistent credentials than intended.
Persistence & Privilege
The skill is not marked always:true and does not request persistent agent privileges. It does not modify other skills or system config. Autonomous invocation is enabled (default) but not combined here with other broad privileges.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install sanity-cms
  3. After installation, invoke the skill by name or use /sanity-cms
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.2
- Expanded schema discovery options: now supports reading schemas from workspace files, chat pastes, remote URLs, or direct API introspection without a file. - Added details for API-driven schema discovery (listing types and inferring fields from sample documents). - Clarified instructions for handling missing schema files and using GROQ queries. - Documentation in SKILL.md updated for improved usability and guidance.
v1.0.1
- Update scripts/publish_draft.sh (details not specified). - No changes to usage instructions, env vars, or workflow. - Documentation and overall skill functionality remain unchanged.
v1.0.0
Initial release of sanity-cms skill: - Enables publishing content to any Sanity CMS instance using the Content API. - Supports all Sanity document types and schemas, not limited to blog posts. - Draft creation and flexible publishing workflow via a bash script. - Handles image uploads and reference fields according to schema requirements. - Requires SANITY_PROJECT_ID and SANITY_API_TOKEN environment variables for authentication.
Metadata
Slug sanity-cms
Version 1.0.2
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 3
Frequently Asked Questions

What is Sanity Cms?

Publish content to any Sanity CMS instance. Use when asked to create a Sanity draft, push a document to Sanity, upload an image asset to Sanity, or convert c... It is an AI Agent Skill for Claude Code / OpenClaw, with 108 downloads so far.

How do I install Sanity Cms?

Run "/install sanity-cms" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Sanity Cms free?

Yes, Sanity Cms is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Sanity Cms support?

Sanity Cms is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Sanity Cms?

It is built and maintained by David Larrabee (@squidpunch); the current version is v1.0.2.

💬 Comments