brain-polish
Skill0 starsChanged 40 days agoMITView on GitHub
Use when the user says "brain polish", "make Brain consistent", "fix the drift", or types /brain-polish, or after adding or changing UI in the Brain app (~/Notes/.brain/mobile/index.html or app/index.html). Finds controls, colours and motion that don't follow Brain's own rules and fixes them to match. Never redesigns.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 32
Every CSS animation or transition is also listed in the prefers-reduced-motion block.
- Distinctive: line 39
Scan: Run these and read the hits in context:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Brain polish
Brain already has a look: playful, springy, theme-aware. This skill makes every part of it follow the same rules, so a new button gets the same squish, colour and motion as the old ones. It encodes Brain's rules instead of generic design advice. When a rule and the code disagree, the code most of the app already uses wins. Ask before inventing anything new: a token, a colour meaning or a motion style.
Brain's rules
Colour: tokens only. Use --bg --tile --tile-2 --tile-3 --line --ink --muted --dim for surfaces and text, and --amber --mint --rose --sky --lilac with --amber-ink/--mint-ink for accents. No hex or rgba() literals in UI code. Make tints with color-mix(in srgb, var(--x) N%, transparent). Every colour must work in all three themes in app/theme.css: dark, light and Soft. JS that needs a colour (confetti) reads it with getComputedStyle(document.documentElement).getPropertyValue("--x"). The one exception is the graph's CIRCLE_COLORS.
Colour meanings. Amber means primary action or current. Mint means done, yes or ok. Rose means due, error or destructive. Sky and lilac are categories. Capture types: note is amber, idea lilac, todo mint, person sky, habit rose.
Type. --sans for text, and --mono at 500 weight and 11–12px for meta labels, dates and counts. --display is only for cover headlines and note titles.
Shape. Tiles use a 18px radius. Sheets, textareas and .go buttons use 14px. Inputs and banners use 12px. .ib icon buttons use 11px. Pills and chips use 999px.
Every tappable thing:
- Joins the shared transition list (
transform .18s var(--ease), background-color .2s, color .2s). - Has an
:activepress:scale(.92)for small buttons,.94for the fab,.985for full-width rows. Section headers darken their label instead. - Shows the shared
:focus-visiblering (2px--amber, offset 2;--accinside capture). - Uses
opacity: .4when disabled. - Has a touch target of at least about 36px tall.
Motion.
--easefor ordinary transitions;--springfor playful overshoot (switches, toasts, pops, icon flips).- WAAPI uses the
spring()helper. Never a hand-made bounce cubic-bezier. - Entrances use the
risekeyframe, staggered .04–.07s. - Confetti is only for completions (Done, Save).
- Every CSS animation or transition is also listed in the
prefers-reduced-motionblock. Every JS animation is guarded bycalm().
Parity. The phone app (mobile/index.html) and the desktop app (app/index.html) follow the same rules. A fix in one gets checked in the other.
The pass
- Branch. In
~/Notes/.brain, rungit checkout -b polish-<date>. Never polish onmain. - Scan. Run these and read the hits in context:
grep -nE '#[0-9a-fA-F]{3,8}\b|rgba?\(' mobile/index.html app/index.htmlfinds colour literals.grep -nE 'cubic-bezier\([^)]*1\.[0-9]' mobile/index.html app/index.htmlfinds hand-made bounces.- Compare every
<buttonclass and every[data-*]click target against the transition,:activeand reduced-motion lists. - Find every
@keyframesand.animate(and check that reduced motion covers it.
- List the drift as one short table: the element, the rule it breaks, and the fix. Classify each one:
- a local defect: fix it;
- a one-off that should reuse a shared class: fix it;
- a missing token or a new meaning: ask the user.
- Fix everything in the first two classes in one batch. Keep the diff small and leave copy and layout alone.
- Look. Render at phone size in dark and light, plus the capture sheet, with headless Chrome. It has a ~500px minimum width, so use
--window-size=500,1000. Copyapp/theme.cssnext to a copy ofmobile/. Inject the real~/Notes/phone/state.jsonasSand callrender(). Collect JS errors fromwindow.onerror. WAAPI doesn't advance in headless Chrome, so force it withgetAnimations().forEach(a => a.finish())to test animation endings. Do one round, fix, and confirm once. - Report in about five lines: what drifted, what you fixed, what needs the user's call, and screenshots. Merge to
main(which publishes the phone app) only when the user says so.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

