sidorares/node-mysql2/code-review
Claude Code and agent skill by sidorares/node-mysql2
- community
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install sidorares/node-mysql2/code-reviewSKILL.md
The same SKILL.md was published earlier as sidorares/node-mysql2/code-review.
MySQL2 — Pull Request Review Skill
The review checklist for MySQL2 pull requests. Read it before reviewing a pull request, a diff, or a branch.
Never approve a PR that violates an item below without first alerting the author.
General
- Tests: every bug fix and every new feature ships with tests, and the tests for a fix must fail without it.
- Documentation: every new feature is documented under
website/docs/. - Node 14 compatibility: Node 14 is the minimum supported runtime, whatever the
enginesfield declares. - Breaking changes: flag anything that can change existing behavior, even in a patch or a minor feature. The change itself is not an error, an unintentional semver violation is. A change to an existing test is the strongest signal there is, so read it closely for regressions.
- Comments: ask for a better implementation, never for a better explanation.
- An obvious comment is a finding on its own.
- Comment length measures the code underneath it. The more explanation it needs, the worse it usually is.
- A comment that explains the implementation is replaced by clear names, decoupled functions with a defined scope, and proper abstractions.
Tests
- Connection scope:
end(),close(),destroy(), andrelease()belong in a scope outside the assertions. The wrong shapes are not obvious, so check them against the section below. - `process.exit`: a conditional skip uses Poku's
skip. - `new Promise` with `setTimeout`: waiting uses Poku's
sleep. - `node:assert` and `node:test`: assertions and test structure come from
poku, andstrictreplacesassert. - `as unknown as` and `any`: never in test files.
- `@ts-expect-error`: only
// @ts-expect-error: internal accessor// @ts-expect-error: TODO: implement typings, and only when the type error is unrelated to the contribution. When it is related, the fix belongs in/typings. - Timer-dependent tests: waiting on an internal timer is flaky in CI, so the test asserts the state synchronously or calls the internal method directly.
- Promise-based API: new tests prefer
.promise(). Callbacks stay for events, streams, anything the promise API does not cover, and features that genuinely need both modes. A recommendation, not a rule. - `async`/`await`:
describe,it, andtestare awaited only when the callback is asynchronous.
Types
- Typings structure: types follow the existing structure in
/typingsand never land in an arbitrary location. See the `/types` skill for the architecture and the known gaps.
Connection scope
The most frequent contributor mistake, and the most expensive: a failing assertion skips the teardown and the test process hangs until CI times out. Both wrong shapes below read as correct at a glance, so compare the diff against them directly.
- Every teardown method and every connection type is affected:
close,end,destroy,release, onConnection,Pool,PoolCluster, and the rest. - Each connection is isolated by a nested or dedicated
describe. - Callbacks fail the same way, with the teardown buried in a nested callback that a failing assertion prevents from ever running.
await conn.promise().end()replaces wrapping a callback innew Promise.
Verifying the branch
Integration and global tests need a running MySQL with a test database. The global suite runs sequentially and needs elevated privileges, and Poku skips those files when hasPrivileges() fails, so a green local run does not prove they were exercised.
Security
- Security scanPassed, 93 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/code-review/SKILL.md
Popularity
- Repository stars
- 4,382
- Repository forks
- 676
- 7-day trend score
- 42
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sidorares/node-mysql2/code-review)