Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 1.52 KB

File metadata and controls

26 lines (21 loc) · 1.52 KB

Claude Guidance

  • Always start by reading files in the .cursor/rules folder and use them as your rules

Rules

  • Never add coverage-suppression comments to source. Test the branch or refactor the code.
  • Do not modify or delete any of the files in the input folder. They are the data that is exclusively meant as input. They are the source of truth.
  • This repository is generic and public. Never commit specifics of any project being migrated — no project names, domain names, studio paths, dataset names, project IDs, author names, or other personal/identifying details. Keep all migration-target specifics out of source, docs, comments, commit messages and tests. If you need examples, use placeholders such as example.com.

Sanity

  • The sanity CLI is available globally. Use sanity --help to discover commands. Common ones:
    • sanity schemas list/extract — inspect deployed schemas (must run from a studio root).
    • sanity manifest extract — dump the studio manifest as JSON.
    • sanity documents query / sanity documents get — inspect content in a dataset.
    • sanity typegen generate — regenerate input/sanity.types.ts from a studio schema.
  • input/sanity.types.ts is generated by sanity typegen generate and reflects the schema of the target studio. Schema-aware CLI commands must be run from that studio's repository, not from this one.
  • Project credentials live in .env.local: NEXT_PUBLIC_SANITY_PROJECT_ID, NEXT_PUBLIC_SANITY_DATASET, SANITY_API_WRITE_TOKEN, SANITY_API_VERSION.