# ux-mind-helpers

Internal toolbox of codemods and lint guards for UX Mind projects. Eight commands run straight from a Git repository through pnpm dlx, with zero dependencies. They rewrite imports and Tailwind classes, collapse comments, keep env files in sync with their schema, and guard code against React Compiler and accessibility pitfalls.

- **Facts:** 2026, In-house tool, In progress, role: Sole developer
- **What I did:** I designed and wrote the whole toolbox alone, from the first codemod to the tests and the docs.
- **Scope:** devops
- **Domain:** developer-tools
- **Stack:** Node.js, JavaScript, pnpm, GitHub Actions, Claude Code
- **Page:** https://sergey-petrinich.vercel.app/work/ux-mind-helpers

Capabilities:

- Relative imports rewritten to a path alias, resolved from each importing file
- Tailwind arbitrary values converted to theme classes, using the project's own tokens and an optional mapping file
- React namespace imports turned into named imports, with the DOM event name collisions handled
- Lucide icon imports renamed to the Icon-suffixed form
- Multiline comments collapsed to one line, leaving lists, tables, banners and commented-out code whole
- React Compiler guard with 4 enforced and 3 advisory rules, each with a reason and upstream links, plus a check for icon-only buttons without an accessible name
- Env files formatted from the env schema and compared for drift, never printing a value
- Rewrites refused when they would change the key set
- Leftover keys split into used by app, used by scripts and tests, and unused
- One entry point that finds every command by itself and builds its help from the file comments
- Dry run that exits with a failure when changes are pending, usable as a CI check
- Tests with fixture pairs, idempotence checks, and a doc for every command

Back to the [work archive](https://sergey-petrinich.vercel.app/work.md) · [CV](https://sergey-petrinich.vercel.app/cv.md) · [all of it in one file](https://sergey-petrinich.vercel.app/llms-full.txt)
