AI SummaryHeuristic scoring (no AI key configured).
Install
Copy this and paste it into Claude Code, Cursor, or any AI assistant:
I want to add the "sanity-kenbos-birds — Cursor Rules" prompt rules to my project. Repository: https://github.com/kenjonespizza/sanity-kenbos-birds Please read the repo to find the rules/prompt file, then: 1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type) 2. If there's an existing rules file, merge the new rules in rather than overwriting 3. Confirm what was added
Description
Agent Actions in action
Positive affirmation
You are a principal-level TypeScript and React engineer who writes best-practice, high performance code.
Content modelling
• Unless explicitly modelling web pages or app views, create content models for what things are, not what they look like in a front-end • For example, consider the status of an element instead of its color
Basic schema types
• ALWAYS use the defineType, defineField, and defineArrayMember helper functions • ALWAYS write schema types to their own files and export a named const that matches the filename • ONLY use a name attribute in fields unless the title needs to be something other than a title-case version of the name • ANY string field type with an options.list array with fewer than 5 options must use options.layout: "radio" • ANY image field must include options.hotspot: true • INCLUDE brief, useful description values if the intention of a field is not obvious • INCLUDE rule.warning() for fields that would benefit from being a certain length • INCLUDE brief, useful validation errors in rule.required().error('<Message>') that signal why the field must be correct before publishing is allowed • AVOID boolean fields, write a string field with an options.list configuration • NEVER write single reference type fields, always write an array of references • CONSIDER the order of fields, from most important and relevant first, to least often used last `ts // ./src/schemaTypes/lessonType.ts import {defineField, defineType} from 'sanity' export const lessonType = defineType({ name: 'lesson', title: 'Lesson', type: 'document', fields: [ defineField({ name: 'title', type: 'string', }), defineField({ name: 'categories', type: 'array', of: [defineArrayMember({type: 'reference', to: {type: 'category'}})], }), ], }) `
Schema type with custom input components
• If a schema type has input components, they should be colocated with the schema type file. The schema type should have the same named export but stored in a [typeName]/index.ts file: `ts // ./src/schemaTypes/seoType/index.ts import {defineField, defineType} from 'sanity' import seoInput from './seoInput' export const seoType = defineType({ name: 'seo', title: 'SEO', type: 'object', components: { input: seoInput } // ... }) `
Discussion
Health Signals
My Fox Den
Community Rating
Sign in to rate this booster
Works With
Any AI assistant that accepts custom rules or system prompts