Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add monkilabs/opencastle --skill sanity-cmsgit clone --depth 1 https://github.com/monkilabs/opencastleWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/monkilabs/opencastle/sanity-cms)<a href="https://agentmods.dev/skills/monkilabs/opencastle/sanity-cms"><img src="https://agentmods.dev/badge/skills/monkilabs/opencastle/sanity-cms/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/monkilabs/opencastle/sanity-cms"><img src="https://agentmods.dev/badge/skills/monkilabs/opencastle/sanity-cms.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00040 | $0.00390 |
| Opus 5.5 | $0.00016 | $0.00156 |
| Sonnet 5.5 | $0.00008 | $0.00078 |
| Haiku 4.5 | $0.00004 | $0.00039 |
Grade A, and why
sanity-cms scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Sanity CMS
Project config, schemas, plugins, document types, and GROQ examples: .opencastle/stack/sanity-config.md. Docs: https://www.sanity.io/docs
Rules that prevent silent failures
- Call
get_schemabefore writing any GROQ. Field names and shapes are not guessable from the frontend code. - Check array vs single reference.
author->on an array field (orauthor[]->on a single one) returns null with no error — the query just yields empty data. - Account for the
drafts.prefix. Unpublished documents live atdrafts.<id>; queries and mutations that ignore it silently miss or clobber content. - Local schema files are the source of truth — never edit a deployed schema in Studio; change local files and redeploy.
- Use
defineType/defineFieldfor every schema — plain object literals lose type safety. - Validate GROQ in Vision against real data before shipping it.
- Queries live in the shared queries library, never inline in components.
Change → validate → deploy
- Edit local schema files;
sanity startsurfaces schema errors immediately. - Run representative queries in Vision against local data.
- For risky changes,
sanity dataset exportthensanity dataset importinto a temporary dataset and re-run queries there. - Deploy the schema, then run a full site build to catch runtime breakage.
- Any failure: revert locally, fix, restart from step 1.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed · -2 lines · -17 tokens per session 488ece027a09
- 1mo ago First seen · 29 lines · 57 tokens per session scan A d237f5f74b62
sanity-cms is a skill published in the GitHub repository monkilabs/opencastle (82 stars, last pushed 10d ago), licensed MIT. It adds 40 tokens to every session and 390 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-04.
sanity-cms compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| sanity-cmsmonkilabs/opencastle | Skill | 82 | 10d ago | MIT | A | 40 | Claude Code, Codex |
| spring-data-redisrrezartprebreza/spring-boot-skills | Skill | 370 | 13d ago | MIT | A | 37 | Claude Code, Codex |
| spring-batchrrezartprebreza/spring-boot-skills | Skill | 370 | 13d ago | MIT | A | 66 | Claude Code, Codex |
| transactional-patternsrrezartprebreza/spring-boot-skills | Skill | 370 | 13d ago | MIT | A | 53 | Claude Code, Codex |
| oauth2-resource-serverrrezartprebreza/spring-boot-skills | Skill | 370 | 13d ago | MIT | A | 47 | Claude Code, Codex |
| rest-api-conventionsrrezartprebreza/spring-boot-skills | Skill | 370 | 13d ago | MIT | A | 57 | Claude Code, Codex |
| hateoasrrezartprebreza/spring-boot-skills | Skill | 370 | 13d ago | MIT | A | 44 | Claude Code, Codex |