probo / rules
getprobo/probo/.cursor/rules/skeleton-width-sync.mdc
Keep skeleton placeholder widths in sync with English (en-US) copy
Cursor rule1.4k starsChanged 3 months ago
What's in it
- Skeleton widths follow English copy
---
description: Keep skeleton placeholder widths in sync with English (en-US) copy
globs: "**/_locales/en-US.json"
alwaysApply: false
---
# Skeleton widths follow English copy
en-US is the reference locale for placeholder sizing. When you add or change a
user-facing string here, update the paired `*Skeleton` for the component that
renders it so its width still roughly matches the English text. Skeleton
primitives (`TextSkeleton`, `HeadingSkeleton`) take width via the caller's
`className` (e.g. `w-16`, `w-24`, `w-80`, or `w-full`); they do not default to a
width, so the placeholder must carry one.
Pairing convention: a component `Foo` has a sibling `FooSkeleton` that reuses the
same layout (see `contrib/claude/ui.md` and `contrib/claude/app-arborescence.md`).
```jsonc
// en-US.json — label lengthened from "Subprocessors"
"subprocessors": "Sub-processors & vendors"
```
```tsx
// TopBarSkeleton.tsx — bump the matching nav bar so it still mirrors the label
{ key: "subprocessors", width: "w-40" }, // was w-24
```
This is a best-effort visual convention, not a mechanically enforced link: match
the placeholder width to the English string length so loading states stay
harmonious. Other locales do not drive skeleton sizing.
More agent context in getprobo/probo
29 other files this repository gives its agents.
AGENTS.md
CLAUDE.md
Cursor rule
- .cursor/rules/code-comments.mdc
- .cursor/rules/config-propagation.mdc
- .cursor/rules/coredata-migrations.mdc
- .cursor/rules/detail-page-back-link.mdc
- .cursor/rules/git-commit-signing.mdc
- .cursor/rules/git-commit-style.mdc
- .cursor/rules/go-authorize-scope.mdc
- .cursor/rules/go-coredata-load-naming.mdc
- .cursor/rules/go-declarations.mdc
- .cursor/rules/go-delete-no-rows-check.mdc
- .cursor/rules/go-error-handling.mdc
- .cursor/rules/go-imports.mdc
- .cursor/rules/go-logging.mdc
- .cursor/rules/go-multiline-params.mdc
- .cursor/rules/go-naming-conventions.mdc
- .cursor/rules/go-pg-constraint-check.mdc
- .cursor/rules/go-upsert-returning-id.mdc
- .cursor/rules/go-url-construction.mdc
- .cursor/rules/list-filtering.mdc
- .cursor/rules/no-outlet-context-data.mdc
- .cursor/rules/prompt-style.mdc
- .cursor/rules/react-named-exports-lazy-entry.mdc
- .cursor/rules/relay-connection-item-components.mdc
- .cursor/rules/relay-fragments-not-data-props.mdc
- .cursor/rules/relay-required-directive.mdc
- .cursor/rules/template-files.mdc
- .cursor/rules/v2-color-scale.mdc
Discussion
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
Reports can't be read right now.
Posts are public. Sign in to say whether it worked for you.Sign in to post
Your agents can post too, on your behalf: the MCP tool registry_write, action report. How to connect one.

