
Setup Pre Commit
vinvcn/mattpocock-skills-zh-cn/skills/misc/setup-pre-commitby vinvcnbf98e53f9208No license4.6K starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated today
在当前仓库设置 Husky pre-commit hooks,集成 lint-staged (Prettier)、类型检查和测试。适用于用户想添加 pre-commit hooks、设置 Husky、配置 lint-staged,或在提交时运行格式化、类型检查和测试时。
Add to a SourceWeft workspace
- Open the skill in your dashboard and add it to a workspace.
- Enable it for the chats that should use it.
This skill is instructions only: it ships no scripts to execute.
Add to SourceWeftYou will be asked to sign in first, then taken straight to this skill.
Ask your agent to install it
Paste this prompt into Claude Code, Codex, Cursor or another agent that can run commands — or into SourceWeft chat. The agent reads this skill's install guide, shows you its source, license and scripts, and installs it with the SourceWeft CLI once you agree.
Read https://sourceweft.com/skills/gh-vinvcn-mattpocock-skills-zh-cn-setup-pre-commit/install.md and install the skill it describes. Before installing, show me its source, license and whether it ships scripts, and wait for my OK. Ask me before changing anything else on my machine.Install it yourself from a terminal
For Claude Code, Codex, Cursor and other local agents. The SourceWeft CLI fetches the skill from its source repository at the commit scanned here, and verifies every file against the hashes recorded when the skill was scanned. If anything differs, nothing is written.
npx @sourceweft/cli skills install @vinvcn/setup-pre-commitAdd --agent claude-code, codex, cursor or universal to choose which agent gets it (Claude Code by default).
Upstream installer — not verified by SourceWeft
The open-source skills installer fetches the same pinned commit, but does not check the files against the hashes SourceWeft recorded.
npx skills add https://github.com/vinvcn/mattpocock-skills-zh-cn/tree/bf98e53f92089fec9b4885f128a565d7eac0337f/skills/misc/setup-pre-commitSource and attribution
Source:vinvcn/mattpocock-skills-zh-cninskills/misc/setup-pre-commitat commitbf98e53
License: No license
Content belongs to its original authors. SourceWeft indexes it from a public repository.
More from vinvcn/mattpocock-skills-zh-cn

Wayfinder
vinvcn
Plans large, foggy efforts as a shared map of decision tickets on an issue tracker, resolving them until the route is clear.

Triage
vinvcn
Triages project issues and external pull requests through a role-based state machine, producing agent-ready briefs.

To Tickets
vinvcn
Splits a plan, spec, or conversation into tracer-bullet tickets with blocking edges and publishes them to a tracker.

To Spec
vinvcn
Turns the current conversation into a spec document and publishes it to the project issue tracker.

Setup Matt Pocock Skills
vinvcn
Configures per-repository engineering skills setup: issue tracker, triage labels, and domain docs layout.

Resolving Merge Conflicts
vinvcn
Guides an agent through resolving an in-progress git merge or rebase conflict step by step.
More in DevOps & Cloud

Playwright Devops
microsoft
DevOps workflows for Playwright: analyze GitHub Actions failures for the last commit on main and fetch failed job logs.

M5 Onboard
anthropics
Provisions M5Stack ESP32 boards by detecting them on USB, flashing UIFlow 2.0 firmware, and installing a MicroPython app bundle.
Yeet
openai
Stages, commits, pushes, and opens or updates a GitHub pull request in one flow using the GitHub CLI.

Runbook
anthropics
Creates or updates step-by-step operational runbooks for recurring tasks, including troubleshooting, rollback and escalation.

Incident Response
anthropics
Guides an incident response workflow: severity triage, status updates, mitigation tracking, and blameless postmortems.

Deploy Checklist
anthropics
Generates a pre-deployment readiness checklist covering pre-deploy, deploy, post-deploy and rollback triggers.