CV

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.

Developer tools

Year
2026
In-house tool
My part
Sole developer
Core stack
5 technologies
Claude Code, GitHub Actions, JavaScript, Node.js
Website
Not public
No public link

My role

I designed and wrote the whole toolbox alone, from the first codemod to the tests and the docs.

DevOps

Capabilities

Codemods

  • 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

Guards

  • 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

  • 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

Tooling

  • 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

Patterns and decisions

The toolbox has 8 commands and runs straight from a Git repository through pnpm dlx, with no registry and no build step. It is plain JavaScript on Node.js with zero dependencies: only built-in modules.

One entry point forwards to the matching command and discovers every command in the folder by itself. The help line comes from the first comment of each file, so a new codemod shows up the moment it lands. A single entry point also works around pnpm dlx failing to expose extra binaries on Windows.

The main codemods share one shape: a pure function that takes source and returns nothing when there is nothing to change, wrapped in a thin command line. The command lists the files it would touch and asks for confirmation, or applies with a yes flag, or only prints with a dry run flag. A dry run exits with a failure when changes are pending, so it works as a CI check. Without a terminal the command refuses instead of hanging. The tests for those transforms run each one twice, and the second run must change nothing.

Cases

Tidying secret files without showing a secret. Env files collect whatever order things were pasted in, and cleaning one by hand means opening a file full of secrets. A variable added in one place silently missed the other files. I made the layout and the expected key set come from the project's env schema, and made the guarantee about the output. The command prints only key names, counts and section titles. Values are copied byte for byte from the right of the first equals sign, so quotes, a hash inside a value, multi-line values and encrypted blobs survive. A rewrite is refused if it would change the set of keys, and the file stays untouched. Anything outside the schema moves to its own section instead of being dropped. The schema is a TypeScript file, and importing it would run project code, so I read it as text.

Collapsing comments without touching code. Hard-wrapped comments fight editors that wrap softly, but a naive regex also rewrites comment markers inside strings, URLs, JSX and regex character classes, and it flattens lists and commented-out code. I wrote a small scanner by hand, with no dependencies, that walks the source and yields comment spans while skipping strings, template literals and regex literals. It decides whether a slash starts a regex from the previous significant token. Block comments and runs of adjacent line comments become one line, and prose JSDoc without tags becomes one line comment per paragraph. Linter and compiler directives are never moved. A comment with a list, a table, a banner, a fenced block, commented-out code or a deeper-indented usage block stays whole. When the scanner misreads a regex, the worst outcome is a skipped comment, never damaged code.

A lint gap for the React Compiler. The lint setups on our projects have no rule that flags libraries the React Compiler cannot cache safely, such as TanStack Table, TanStack Virtual and React Hook Form, so UI that silently stops updating reached review. I wrote a guard that looks for value imports, hook calls and method calls against a rule list. Type-only imports are excluded, and a file that already carries the opt-out directive is skipped. The rules are split into enforced and advisory. Seven built-in rules cover it: 4 fail CI, and 3 only warn, for MobX, Zustand and TanStack Query, which are probably safe and stay on a watch list. Each rule carries its reason and links to the upstream issues, printed with the failure, and a project can replace the whole list with its own config file.

Core stack

AI engineering

APIs & back end

Build tools

Infrastructure & observability

Languages & markup