new-block

new-block is a skill for Claude Code, Codex from robotostudio/turbo-start-sanity. It costs 83 tokens per session (2,859 once invoked), scanned A, original, MIT.

A scaffold for adding a complete content block to a Sanity page builder. Sanity is a content management system; the block includes its editor schema, data query, React display, Markdown output, tests, and registrations.

In plain words
What is it for?
Use it when adding sections such as testimonials, pricing tables, or other content modules that editors manage in Sanity.
Why use it?
It reduces the chance of missing one of the several files and workspaces needed for a new block to work everywhere.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { buttonsFragment, richTextFragment } from "../internal/groq-fragments";.

Good fit Use it when adding sections such as testimonials, pricing tables, or other content modules that editors manage in Sanity.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/robotostudio/turbo-start-sanity
agentmods
npx agentmods add skills/robotostudio/turbo-start-sanity/new-block

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for new-block

README.md
[![agentmods](https://agentmods.dev/badge/skills/robotostudio/turbo-start-sanity/new-block/github.svg)](https://agentmods.dev/skills/robotostudio/turbo-start-sanity/new-block)
Your own site
<a href="https://agentmods.dev/skills/robotostudio/turbo-start-sanity/new-block"><img src="https://agentmods.dev/badge/skills/robotostudio/turbo-start-sanity/new-block/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.

agentmods 80×15 button for new-block

Your own site · 80×15
<a href="https://agentmods.dev/skills/robotostudio/turbo-start-sanity/new-block"><img src="https://agentmods.dev/badge/skills/robotostudio/turbo-start-sanity/new-block.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,859 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00083 $0.02859
Opus 5 $0.00042 $0.01430
Sonnet 5 $0.00017 $0.00572
Haiku 4.5 $0.00008 $0.00286

Measured 7d ago against content hash 572496a6d4df, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

new-block 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 7d 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.

.agents/skills/new-block/SKILL.md · 284 lines

How it starts

The opening of the file, as written. The whole thing — 284 lines — stays where its author put it; the contents beside it link to each section on GitHub.

New Page Builder Block

Scaffold a complete page builder block in one pass. Every block touches three workspaces — packages/sanity-blocks (source of truth), packages/sanity (GROQ), and apps/web (rendering) — plus generated types. Studio registration is automatic once the schema joins blockSchemas.

Credit: adapted for Turbo Start Sanity from Michael's /new-module skill for SanityPress — https://sanitypress.dev/blog/new-module-skill-claude-code.

Inputs

Before writing files, establish:

  1. Block name — two forms, used consistently everywhere:

    • camelCase schema type name, e.g. pricingTable (matches _type)
    • kebab-case directory/file name, e.g. pricing-table

    Check blockSchemas in packages/sanity-blocks/src/sanity-blocks.ts first — if the name is taken you are editing a block, not adding one.

  2. Fields — what content editors manage. If the request doesn't say, ask. Reuse shared field helpers from packages/sanity-blocks/src/internal/schema-fields.ts (buttonsField, definePortableTextField, etc.) before defining new shapes.

  3. An icon — all ten block schemas import one from lucide-react; match them. Then add a matching stub to packages/sanity-blocks/src/internal/testing/lucide-react.mock.tsx: lucide-mock-coverage.test.ts greps src/ for from "lucide-react" and fails the whole suite on any icon with no stub, and an unstubbed icon renders as undefined ("Element type is invalid") in every component test. (@sanity/icons is not scanned, so it needs no stub — but it is used for Studio UI, not block schemas.)

Study the closest existing block in packages/sanity-blocks/src/ (e.g. cta for text+buttons, showcase-grid for card grids, faq-accordion for nested arrays) and mirror its structure and idioms.

Steps

Work through all steps in order — a block missing any registration renders as "Component not found" on the web or blank in .md output.

1. Create the block directory

Read the full file on GitHub · 284 lines

Changes

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.

  1. 7d ago Changed 572496a6d4df
  2. 11d ago First seen · 284 lines · 83 tokens per session scan A b5fe0d850408

Subscribe to this mod's changes

new-block is a skill published in the GitHub repository robotostudio/turbo-start-sanity (176 stars, last pushed today), licensed MIT. It adds 83 tokens to every session and 2,859 once invoked, about $0.0004 per session on Opus 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-08-30.

Related

Other skills, from other repositories

sanity-live-cache-components

Integrates Sanity Live with Next.js Cache Components in next-sanity v13+ apps. Sets up sanityFetch, a shared cachedSanity 'use cache' boundary, , Visual Editing, Presentation Tool, draft mode handling, and the three-layer (Page/Dynamic/Cached) component pattern with explicit perspective/stega prop-drilling. Sequences…

sanity-io/next-sanity · 155 tokens

pnpm

Node.js package manager with strict dependency resolution. Use when running pnpm specific commands, configuring workspaces, or managing dependencies with catalogs, patches, or overrides.

sanity-io/next-sanity · 35 tokens

vercel-react-best-practices

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance…

sanity-io/next-sanity · 67 tokens

migrate-radix-to-base

Migrates React projects and components from Radix UI to Base UI. Use when asked to migrate from radix, move to base-ui, convert radix primitives, or switch a shadcn project's base library. Handles single components ("migrate accordion") and whole projects.

shadcn-ui/ui · 61 tokens

copilotkit-integrations

Use when wiring an external agent framework (LangGraph, CrewAI, PydanticAI, Mastra, ADK, LlamaIndex, Agno, Strands, Microsoft Agent Framework, or others) into a CopilotKit application via the AG-UI protocol.

CopilotKit/CopilotKit · 61 tokens

a2ui-renderer

Render A2UI (Agent-to-UI declarative surfaces) in CopilotKit v2. Enable the runtime via CopilotRuntime({ a2ui: {...} }), then enable the provider via . Auto-activates via /info — do NOT manually pass renderActivityMessages. createA2UIMessageRenderer ships from @copilotkit/react-core/v2; low-level primitives…

CopilotKit/CopilotKit · 175 tokens