Add and review Sanity config properties that are reduced across root config and plugins. Use when adding beta flags, feature config, workspace/source options, default plugin gates, or resolved Source fields in packages/sanity/src/core/config.
npx skills add https://github.com/sanity-io/sanity --skill sanity-config-reducers
Use this skill when a config value can be supplied by root config or plugins and needs deterministic merge behavior.
Inspect these files first:
packages/sanity/src/core/config/types.tspackages/sanity/src/core/config/configPropertyReducers.tspackages/sanity/src/core/config/prepareConfig.tsxpackages/sanity/src/core/config/flattenConfig.tspackages/sanity/src/core/config/resolveDefaultPlugins.ts if the config gates default plugin injection.Reducers usually:
flattenConfig(config, []).initialValue.innerConfig.undefined.getPrintableType(value) for invalid values.Config namespaces should usually be objects, even when they initially only contain one flag. This keeps room for future options without changing the public shape. For booleans, prefer feature.enabled and follow this shape:
export const featureEnabledReducer = (opts: {
config: PluginOptions
initialValue: boolean
}): boolean => {
const {config, initialValue} = opts
const flattenedConfig = flattenConfig(config, [])
return flattenedConfig.reduce((acc, {config: innerConfig}) => {
const enabled = innerConfig.feature?.enabled
if (typeof enabled === 'undefined') return acc
if (typeof enabled === 'boolean') return enabled
throw new Error(
`Expected \`feature.enabled\` to be a boolean, but received ${getPrintableType(enabled)}`,
)
}, initialValue)
}
Root config is flattened after plugin config, so root values usually win when a reducer overwrites with the latest defined value.
When adding a config property:
PluginOptions, WorkspaceOptions, or the relevant nested type in types.ts.beta.feature.enabled over direct booleans such as beta.feature.Source, Workspace, or the relevant prepared object in prepareConfig.tsx.source.__internal.options as an implementation detail, not the primary runtime API.Default plugin lists are computed before full source resolution. If a config value controls default plugin injection:
prepareConfig.tsx, before calling getDefaultPlugins.getDefaultPluginsOptions or the options passed to getDefaultPlugins.Beta flags live under BetaFeatures in types.ts and resolved runtime values under source.beta.
Prefer a dedicated reducer when:
Do not special-case beta flags in components by reading raw config if a resolved value can be exposed instead.
Add focused config tests for:
enabled is not the documented type.Integration with protocols.io API for managing scientific protocols. This skill should be used when working with protocols.io to search, create, update, or publish protocols; manage protocol steps and materials; handle discussions and comments; organize workspaces; upload and manage files; or integrate protocols.io functionality into workflows. Applicable for protocol discovery, collaborative protocol development, experiment tracking, lab protocol management, and scientific documentation.
Analyzes job descriptions and generates tailored resumes that highlight relevant experience, skills, and achievements to maximize interview chances
Generate Excalidraw diagrams from natural language descriptions. Use when asked to "create a diagram", "make a flowchart", "visualize a process", "draw a system architecture", "create a mind map", or "generate an Excalidraw file". Supports flowcharts, relationship diagrams, mind maps, and system architecture diagrams. Outputs .excalidraw JSON files that can be opened directly in Excalidraw.
Build and distribute Expo development clients locally or via TestFlight
Use when you have a written implementation plan to execute in a separate session with review checkpoints
Data structure for annotated matrices in single-cell analysis. Use when working with .h5ad files or integrating with the scverse ecosystem. This is the data format skill—for analysis workflows use scanpy; for probabilistic models use scvi-tools; for population-scale queries use cellxgene-census.
Benchling R&D platform integration. Access registry (DNA, proteins), inventory, ELN entries, workflows via API, build Benchling Apps, query Data Warehouse, for lab data management automation.
Comprehensive molecular biology toolkit. Use for sequence manipulation, file parsing (FASTA/GenBank/PDB), phylogenetics, and programmatic NCBI/PubMed access (Bio.Entrez). Best for batch processing, custom bioinformatics pipelines, BLAST automation. For quick lookups use gget; for multi-service integration use bioservices.
Take sanity-io/sanity-config-reducers from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.