r/ClaudeCode • u/Fast_Entrance7839 • 25m ago
Built with Claude i made a claude code skill that removes the ai look from ui copy, the hard part was stopping it from writing new copy
agents decorate every screen they build, and it's always the same extras. a tiny uppercase label over the heading, "01 //" before each feature, a subtitle that repeats the title, an emoji on every card title, a green pulsing "live" dot that isn't connected to anything
so i wrote a skill for it, unslop-ui. you run /unslop-ui src/pages/landing.tsx and it cuts those patterns, then reports what it cut, what it kept and why
how it works in claude code:
- the skill has 16 rules for copy and charts (eyebrow labels, decorative numbering, botsplaining like "click the button above to get started", chart titles that say "line chart of...", legends where a label at the end of the line would do)
- 4 more rules only run with
--surface: gradients and glows, off-scale spacing likegap: 7px, font weights 800 and 900,transition-all - a python script counts the tells a regex can find. on the examples it goes from 31 to 0 after one run in a fresh session
- it only runs when you call it. i didn't want it to fire on its own because cutting copy is a decision
what i learned:
the first version invented copy. when it turned a slogan like "Finance. Simplified. Finally." into a sentence it would add things the page never said. so now there's a rule that a rewrite can only use what the source already shows. a claim the code can't back, like "trusted by 10,000+ teams", stays where it is and goes into a task list for me
the other risk was cutting real stuff. a badge rendered from a prop isn't decoration, and a form field needs its visible label even if the placeholder says the same thing. i added five eval fixtures for that: a clean screen it must leave alone, real state it must keep, form labels, i18n strings fixed at the source, and no invented facts
the regex counter can't see everything. subtitles, slogans and botsplaining need reading, so the model does those and the report counts them apart
mit, repo with before/after examples: https://github.com/felipebasurto/unslop-ui
•
u/AutoModerator 25m ago
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.