Skip to content

About

A Claude Code skill that audits and fixes cache revalidation of Next.js sites on Sanity: which publish re-renders which routes, measured with sync tags.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

revalidation-audit

A Claude Code skill that audits and fixes how a Next.js site on Sanity revalidates its cache: which publish re-renders which routes, where one publish re-renders far too much, and where content is never refreshed.

About the skill: Revalidation Audit Skill: Fix Sanity Revalidation in Next.js.

The coverage table: routes against documents, coloured by the tag through which a publish reaches the route

Install

As a Claude Code plugin, in a Claude Code session:

/plugin marketplace add focusreactive/revalidation-audit-skill
/plugin install revalidation-audit@revalidation-audit

Or as a skill only, with the skills CLI:

npx skills add focusreactive/revalidation-audit-skill            # this project
npx skills add focusreactive/revalidation-audit-skill --global   # all projects

Then, in a Claude Code session, run /revalidation-audit inside the project, or /revalidation-audit [path to the project] if the skill is installed globally. What it does, how to read the table and the access levels: skills/revalidation-audit/README.md.

Read more

How sync tags work, how GROQ query shapes change them, and the pitfalls found on real sites: Sanity Sync Tags: How GROQ Queries Affect Next.js Cache Revalidation.

Development

The repository root is the plugin and its own marketplace (.claude-plugin/); the skill is skills/revalidation-audit/. How to work on it: CLAUDE.md. Tests: node --test.

License

MIT, FocusReactive. See LICENSE.

About

A Claude Code skill that audits and fixes cache revalidation of Next.js sites on Sanity: which publish re-renders which routes, measured with sync tags.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages