Yao Li

5 commits

YL

Yao Li

@yao23

Programmer, Maker, Dreamer

Commit activity

5 commits in the last 24 hours

longest streak 1 daycurrent 1

75 / 150 XP75 XP to operator

Today

When a coding agent repeats a mistake you’ve already corrected, where should that lesson live? A regression test? A repo instruction? A reusable skill? Somewhere else? My working view: observable behavior belongs in tests; procedural guidance may belong in a skill; both need a…
A mistake should become a deterministic guardrail (ideally) like a linting rule or maybe some compiler option you add; or a Claude Code hook in JS/shell that gets triggered after a commit/an event; if not possible it could be another instruction in your prompt (which is the…
React 19 migration check: does your build actually type-check the affected code? Two small examples worth checking: • An assignment-only ref callback such as ref={el => (node = el)} implicitly returns the node. Use a block body when you intend to return nothing; preserve…
A React migration lesson I wish I’d turned into a check earlier: Edit a character in the middle of a long text field. Does the caret stay where the user expects? During a recent React 19 migration, we encountered a regression where it jumped to the end. That doesn’t establish a…

That's @yao23's root commit.