/rhythmguard:rhythmguardfrom rhythmguard
Enforces a project's CSS/Tailwind spacing scale using rhythmguard audit. Run before finishing any spacing change to catch off-scale padding, margin, gap, and inset values.
Ships in rhythmguard. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This project enforces its spacing scale with stylelint-plugin-rhythmguard.
npx rhythmguard audit . --scale auto --format json (or npx stylelint "**/*.css" if a config exists) and fix every off-scale finding. Without --scale auto the audit checks a built-in scale, not this project's.npx eslint . (or npx oxlint) as well, and do not install Stylelint unless the task asks for it.contracts.tokens.definedTokens, and any var() it cannot find under contracts.tokens.missingTokens. A var() that points at nothing renders no spacing at all.--fix on spacing findings unless the task says so. Snapping a value can change layout; choose the value deliberately.p-[13px] are findings too. The finding names the two utility classes to choose from (p-3 or p-4); write one of those, not another arbitrary value.contracts.scale.offScaleProperties table is dominated by margins on sibling elements, put a gap on the parent instead of fixing each margin. The parent owns the spacing between its children.fallback, the project has no discoverable spacing tokens. Ask before adding any; do not guess a scale.Source: docs/FOR_AGENTS.md in the stylelint-plugin-rhythmguard repository (https://github.com/PetriLahdelma/stylelint-plugin-rhythmguard/blob/main/docs/FOR_AGENTS.md).
What SKILL.md sets; muted values are Claude Code's defaults
Adding or changing padding, margin, gap, inset or other spacing in a stylesheet or a class string; reviewing a diff that does.
Three short reads, in order
npx claudepluginhub petrilahdelma/stylelint-plugin-rhythmguard --plugin rhythmguardOther plugins' skills for the same job