This automates the full pre-commit setup with Husky, lint-staged, and Prettier, and wires in typecheck and test scripts if they exist in your package.json. It detects whether you're using npm, pnpm, yarn, or bun, installs the right dependencies, and commits everything with a single message to trigger the hooks as a smoke test. The lint-staged config runs Prettier on all staged files, which is fast, then fires off your full type checking and tests. It's smart enough to skip creating a Prettier config if you already have one. Good for when you're past the prototype phase and want to stop broken code from sneaking into commits without manually setting up the whole Husky dance.
npx skills add https://github.com/vinvcn/mattpocock-skills-zh-cn --skill setup-pre-commit