skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
christofferbergj/agent-skills78 installs

setup-pre-commit

Set up commit-time formatting, type checking, and tests using the repository's existing tools. Use when adding pre-commit hooks, configuring Husky or lint-staged, or changing commit checks.

How do I install this agent skill?

npx skills add https://github.com/christofferbergj/agent-skills --skill setup-pre-commit
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    This skill automates the configuration of Git pre-commit hooks using standard development tools like Husky, lint-staged, and Prettier. It follows established best practices for repository setup and utilizes official initialization commands.

  • Socketpass

    No alerts

  • Snykpass

    Risk: LOW · No issues

What does this agent skill do?

Set up commit checks

  1. Inspect the package manager, runtime versions, existing hooks, formatter, linter, and umbrella check commands. Invoke /linting-alignment when tool ownership is unclear. Complete when the current toolchain and requested hook boundary are known.
  2. Reuse the repository's formatter and existing hook manager. Add Husky and lint-staged only when they fit the project and are missing; install development dependencies through its package manager. Preserve existing prepare scripts and hooks. When the repo has no hook manager, staged-file runner, or formatter, follow the default Husky setup for the missing parts. Complete when one owner exists for each check and unrelated configuration is unchanged.
  3. Wire staged-file checks and the appropriate existing type/test checks using the project's commands. A repo using Oxfmt, Biome, or another formatter keeps it; Prettier is not an installation prerequisite. Avoid testing only staged fragments when the check requires the full project. Complete when the hook runs the requested checks without duplicating the toolchain.
  4. Validate syntax and exercise the hook against a harmless isolated or already-authorized change. Preserve the initial staging state and report absent checks rather than inventing scripts. Commit only the scoped result when authorized. Complete when the hook has observed evidence and each changed configuration has a known owner.

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/christofferbergj/agent-skills/setup-pre-commit">View setup-pre-commit on skillZs</a>